codebank 0.4.1

A powerful code documentation generator that creates structured markdown documentation from your codebase. Supports multiple languages including Rust, Python, TypeScript, C, and Go with intelligent parsing and formatting. Features test code filtering, summary generation, and customizable documentation strategies.
Documentation
# CodeBank MCP Server

This is a Model Context Protocol (MCP) server for CodeBank, allowing AI agents to interact with code bases and generate code bank summaries.

## Installation

Make sure you have Rust and Cargo installed, then install the `cb-mcp` binary by running:

```bash
cargo install codebank
```

The binary will be in `~/.cargo/bin/cb-mcp`.

## Usage

### Running as an MCP Server

#### STDIO Mode

Please add the following to your the mcp config of cursor or claude:

```json
"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):

```bash
cb-mcp stdio
```

This allows AI agents to interact with the server through standard input/output.

#### SSE Mode

Please add the following to your the mcp config of cursor or claude:

```json
"cb-mcp": {
      "url": "http://localhost:3000/sse"
    }
```

Run as an MCP server in SSE (Server-Sent Events) mode on a specific port:

```bash
cb-mcp sse --port 3000
```

This starts a web server that AI agents can interact with.

## Server API

When running in server mode, the following tools are available to AI agents:

- `gen`: Generate code bank from source code
- `gen_file`: Generate code bank and save to file

## Strategies

CodeBank supports different generation strategies:

- `default`: Includes all code from the specified path
- `summary`: Includes only public interfaces, function signatures without bodies
- `no-tests`: Includes all code except test cases