# Codemaster MCP server

> Allows AI clients to explore the Claude Code source code by browsing tools, commands, and searching the codebase.

- Repository: https://github.com/codeaashu/claude-code
- Page: https://hostedmcp.org/servers/codeaashu/codemaster
- Transport: stdio
- Stars: 3438
- Latest version: 1.1.0

## Install

### Claude Code

```sh
claude mcp add codemaster -- npx -y @divyesh2000/codemaster
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "codemaster": {
      "command": "npx",
      "args": [
        "-y",
        "@divyesh2000/codemaster"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "codemaster": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@divyesh2000/codemaster"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "codemaster": {
      "command": "npx",
      "args": [
        "-y",
        "@divyesh2000/codemaster"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.codemaster]
command = "npx"
args = ["-y", "@divyesh2000/codemaster"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "codemaster": {
      "command": "npx",
      "args": [
        "-y",
        "@divyesh2000/codemaster"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CLAUDE_CODE_SRC_ROOT` | no | no |  |
| `MCP_API_KEY` | no | no |  |

## Tools (8)

- `list_tools`
- `list_commands`
- `get_tool_source`
- `get_command_source`
- `read_source_file`
- `search_source`
- `list_directory`
- `get_architecture`

## FAQ

### What can I do with this server?

You can list agent tools and slash commands, read specific tool or command implementations, search the source tree with regex, and get architecture overviews.

### How do I run the server locally using STDIO?

You can run it using the command `npm start` or by specifying a custom source path with the `CLAUDE_CODE_SRC_ROOT` environment variable.

### Does the HTTP transport require authentication?

Yes, you can secure the HTTP server by setting the `MCP_API_KEY` environment variable, which requires clients to include a Bearer token in the Authorization header.

### Can I use this with Claude Desktop?

Yes, you can configure it in your Claude Desktop configuration file by adding the server command and the path to the Claude Code source directory.
