This is a Model Context Protocol (MCP) server for CodeBank, allowing AI agents to interact with code bases and generate code bank summaries.
Make sure you have Rust and Cargo installed, then install the cb-mcp binary by running:
cargo install codebankThe binary will be in ~/.cargo/bin/cb-mcp.
Please add the following to your the mcp config of cursor or claude:
"cb-mcp": {
"command": "/Path/to/cb-mcp",
"args": [
"stdio"
]
}Your mcp client will run the following command (if they didn't, you can run it manually):
cb-mcp stdioThis allows AI agents to interact with the server through standard input/output.
Please add the following to your the mcp config of cursor or claude:
"cb-mcp": {
"url": "http://localhost:3000/sse"
}Run as an MCP server in SSE (Server-Sent Events) mode on a specific port:
cb-mcp sse --port 3000This starts a web server that AI agents can interact with.
When running in server mode, the following tools are available to AI agents:
gen: Generate code bank from source codegen_file: Generate code bank and save to file
CodeBank supports different generation strategies:
default: Includes all code from the specified pathsummary: Includes only public interfaces, function signatures without bodiesno-tests: Includes all code except test cases