Ermöglicht es AI-Clients, den Claude Code Quellcode zu explorieren, indem sie Tools und Commands durchsuchen und die Codebase durchsuchen.
Auch bekannt als codeaashu/claude-code, codemaster, @divyesh2000/codemaster
- Stars
- 3.438
- Tools
- 8
- Downloads, 30 Tage
- 218
- Neueste Version
- 1.1.0
- Letzter Commit
- 14. Okt. 2026
- Lizenz
- —
Was ist Codemaster MCP?
Codemaster ist ein MCP server. Ermöglicht es AI-Clients, den Claude Code Quellcode zu explorieren, indem sie Tools und Commands durchsuchen und die Codebase durchsuchen. Er stellt 8 Tools bereit, etwa list_tools, list_commands, get_tool_source.
Zusammenfassung generiert aus dem README des Projekts
Über Codemaster MCP server
Entwickler, die die Funktionsweise von Claude Code verstehen wollen, können diesen Server nutzen, um durch die massive Codebase zu navigieren. Er bietet AI-Clients die Möglichkeit, über 1.900 Dateien und 512.000 Zeilen Code zu inspizieren, indem spezifische Tools, Resources und Prompts bereitgestellt werden. Du kannst ihn lokal via STDIO mit Claude Desktop, VS Code oder Cursor nutzen oder ihn remote über Streamable HTTP oder SSE-Transports hosten.
Der Server enthält Tools wie list_tools, um Agent Capabilities zu sehen, list_commands, um Slash Commands anzuzeigen, und search_source für Regex-Suchen im Source Tree. Er bietet zudem spezialisierte Prompts wie architecture_overview und explain_tool, um geführte Erklärungen darüber zu liefern, wie spezifische Subsysteme oder Permissions funktionieren. Für Remote-Setups kannst du die Verbindung mittels MCP_API_KEY über ein Bearer-Token absichern.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du Codemaster MCP
Formate geprüft am 10. Nov. 2026Codemaster MCP in Claude Code installieren
$ claude mcp add codemaster -- npx -y @divyesh2000/codemasterCodemaster MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"codemaster": {
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}Codemaster MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"codemaster": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}Codemaster MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"codemaster": {
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}Codemaster MCP in Codex installieren
~/.codex/config.toml
[mcp_servers.codemaster] command = "npx" args = ["-y", "@divyesh2000/codemaster"]
Codemaster MCP in Gemini CLI installieren
~/.gemini/settings.json
{
"mcpServers": {
"codemaster": {
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}Codemaster MCP tools 8
Erkannt aus dem READMElist_toolslist_commandsget_tool_sourceget_command_sourceread_source_filesearch_sourcelist_directoryget_architecture
| list_tools | — | |
| list_commands | — | |
| get_tool_source | — | |
| get_command_source | — | |
| read_source_file | — | |
| search_source | — | |
| list_directory | — | |
| get_architecture | — |
Konfiguration
CLAUDE_CODE_SRC_ROOTMCP_API_KEY
| Name | Beschreibung | Typ |
|---|---|---|
| CLAUDE_CODE_SRC_ROOT | — | |
| MCP_API_KEY | — |
Automatisierte Checks
Geluften am 12. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbarBestanden
- Open Source Lizenz (OSI)No licenseBefund
- Commit oder Release im letzten JahrBestanden
- Package-Name ähnelt keinem populären PackageBestanden
- Remote Endpoint nutzt HTTPSNicht geprüft
- Destruktive Tools sind markiertBestanden
- Keine versteckten Anweisungen an das ModellBestanden
- Kein kritischer Hinweis im Paket oder seinen AbhängigkeitenBestanden
README
Auf GitHub ansehenwarrioraashuu Codemaster — MCP Server
A standalone Model Context Protocol (MCP) server that lets any MCP-compatible client explore the Claude Code source code. Rebranded and published by warrioraashuu. Supports STDIO, Streamable HTTP, and SSE transports.
What It Does
Exposes 8 tools, 3 resources, and 5 prompts for navigating the ~1,900-file, 512K+ line Claude Code codebase. This is the official npm package: warrioraashuu-codemaster.
Transports
| Transport | Endpoint | Best For |
|---|---|---|
| STDIO | node dist/index.js |
Claude Desktop, local Claude Code, VS Code |
| Streamable HTTP | POST/GET /mcp |
Modern MCP clients, remote hosting |
| Legacy SSE | GET /sse + POST /messages |
Older MCP clients |
Tools
| Tool | Description |
|---|---|
list_tools |
List all 40+ agent tools (BashTool, FileEditTool, etc.) |
list_commands |
List all 50+ slash commands (/commit, /review, etc.) |
get_tool_source |
Read a specific tool's implementation |
get_command_source |
Read a specific command's implementation |
read_source_file |
Read any file from src/ by relative path |
search_source |
Regex search across the entire source tree |
list_directory |
List contents of any directory under src/ |
get_architecture |
Get a full architecture overview |
Resources
| URI | Description |
|---|---|
claude-code://architecture |
README / architecture overview |
claude-code://tools |
Tool registry (JSON) |
claude-code://commands |
Command registry (JSON) |
claude-code://source/{path} |
Any source file (template) |
Prompts
| Prompt | Description |
|---|---|
explain_tool |
Deep-dive explanation of a specific tool's purpose, schema, permissions, and flow |
explain_command |
Explanation of a specific slash command's behavior and implementation |
architecture_overview |
Guided tour of the full Claude Code architecture |
how_does_it_work |
Explain a feature/subsystem (permissions, MCP, bridge, etc.) |
compare_tools |
Side-by-side comparison of two tools |
Setup
cd mcp-server
npm install
npm run build
Run Locally (STDIO)
npm start
# or with custom source path:
CLAUDE_CODE_SRC_ROOT=/path/to/src npm start
Run Locally (HTTP)
npm run start:http
# Streamable HTTP at http://localhost:3000/mcp
# Legacy SSE at http://localhost:3000/sse
# Health check at http://localhost:3000/health
With Authentication
MCP_API_KEY=your-secret-token npm run start:http
# Clients must include: Authorization: Bearer your-secret-token
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"warrioraashuu-codemaster": {
"command": "node",
"args": ["/absolute/path/to/claude-code/mcp-server/dist/index.js"],
"env": {
"CLAUDE_CODE_SRC_ROOT": "/absolute/path/to/claude-code/src"
}
}
}
}
VS Code (GitHub Copilot)
Add to .vscode/mcp.json in your workspace:
{
"servers": {
"claude-code-explorer": {
"type": "stdio",
"command": "node",
"args": ["${workspaceFolder}/mcp-server/dist/index.js"],
"env": {
"CLAUDE_CODE_SRC_ROOT": "${workspaceFolder}/src"
}
}
}
}
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"claude-code-explorer": {
"command": "node",
"args": ["/absolute/path/to/claude-code/mcp-server/dist/index.js"],
"env": {
"CLAUDE_CODE_SRC_ROOT": "/absolute/path/to/claude-code/src"
}
}
}
}
Environment Variables
| Variable | Default | Description |
|---|---|---|
CLAUDE_CODE_SRC_ROOT |
../src (relative to dist/) |
Path to the Claude Code src/ directory |
PORT |
3000 |
HTTP server port (HTTP mode only) |
MCP_API_KEY |
(none) | Bearer token for HTTP auth (optional) |
Remote HTTP Client Configuration
For Claude Desktop connecting to a remote server:
{
"mcpServers": {
"claude-code-explorer": {
"url": "https://your-deployment.railway.app/mcp",
"headers": {
"Authorization": "Bearer your-secret-key"
}
}
}
}
Deployment
Railway
- Connect your GitHub repo to Railway
- Railway automatically detects the
mcp-server/Dockerfile - Set environment variables in the Railway dashboard:
MCP_API_KEY— a secret bearer tokenPORTis set automatically by Railway
- Deploy — available at
your-app.railway.app
Or via CLI:
railway init
railway up
Vercel
npx vercel
Set environment variables in the Vercel dashboard:
CLAUDE_CODE_SRC_ROOT— path where src/ files are bundledMCP_API_KEY— bearer token
Note: Vercel functions are stateless with execution time limits (10s hobby / 60s pro). Best for simple tool calls. For persistent SSE streams, use Railway or Docker.
Docker
# From repo root
docker build -f mcp-server/Dockerfile -t claude-code-mcp .
docker run -p 3000:3000 -e MCP_API_KEY=your-secret claude-code-mcp
Works on any Docker host: Fly.io, Render, AWS ECS, Google Cloud Run, etc.
Prompts
The server also exposes prompt templates for guided exploration:
| Prompt | Description |
|---|---|
explain_tool |
Deep-dive explanation of a specific tool (input schema, permissions, execution flow) |
explain_command |
Explain how a slash command works |
architecture_overview |
Guided tour of the entire Claude Code architecture |
how_does_it_work |
Explain a feature or subsystem (e.g. "permission system", "MCP client", "query engine") |
compare_tools |
Side-by-side comparison of two tools |
Example Usage
Once connected, you can ask your AI assistant things like:
- "List all Claude Code tools"
- "Show me the BashTool implementation"
- "Search for how permissions are checked"
- "What files are in the bridge directory?"
- "Read the QueryEngine.ts file, lines 1-100"
- "How does the MCP client connection work?"
- Use the
explain_toolprompt with "FileEditTool" to get a full breakdown - Use
how_does_it_workwith "bridge" to understand IDE integration
Publishing to MCP Registry
This server is published to the MCP Registry via GitHub Actions. On a tagged release (v*), the workflow:
- Publishes the npm package to npmjs.org
- Authenticates with the MCP Registry using GitHub OIDC
- Publishes the
server.jsonmetadata to the registry
To publish manually:
# Install the MCP Publisher CLI
curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
# Authenticate (GitHub OAuth)
./mcp-publisher login github
# Publish
cd mcp-server
../mcp-publisher publish
Registry name: warrioraashuu-codemaster
Development
npm install
npm run dev # Watch mode TypeScript compilation
npm run build # Compile TypeScript to dist/
npm start # Run STDIO server
npm run start:http # Run HTTP server
Architecture
mcp-server/
├── src/
│ ├── server.ts — Shared MCP server (tools, resources, prompts) — transport-agnostic
│ ├── index.ts — STDIO entrypoint (local)
│ └── http.ts — HTTP + SSE entrypoint (remote)
├── api/
│ ├── index.ts — Vercel serverless function
│ └── vercelApp.ts — Express app for Vercel
├── Dockerfile — Docker build (Railway, Fly.io, etc.)
├── railway.json — Railway deployment config
├── package.json
└── tsconfig.json
Codemaster MCP Fragen
Wie füge ich Codemaster MCP zu Claude Code hinzu?
Führe claude mcp add codemaster -- npx -y @divyesh2000/codemaster in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich Codemaster MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Welche Tools bietet Codemaster MCP?
Er stellt 8 Tools bereit, darunter list_tools, list_commands, get_tool_source, get_command_source, read_source_file.
Was kann ich mit diesem Server machen?
Du kannst Agent Tools und Slash Commands auflisten, spezifische Implementierungen von Tools oder Commands lesen, den Source Tree mittels Regex durchsuchen und Architektur-Übersichten abrufen.
Wie starte ich den Server lokal über STDIO?
Du kannst ihn mit dem Befehl npm start ausführen oder einen benutzerdefinierten Source-Pfad über die Umgebungsvariable CLAUDE_CODE_SRC_ROOT angeben.
Benötigt der HTTP-Transport eine Authentifizierung?
Ja, du kannst den HTTP Server absichern, indem du die Umgebungsvariable MCP_API_KEY setzt. Clients müssen dann ein Bearer-Token im Authorization-Header mitsenden.
Kann ich das mit Claude Desktop nutzen?
Ja, du kannst ihn in deiner Claude Desktop Konfigurationsdatei einrichten, indem du den Server-Command und den Pfad zum Claude Code Source-Verzeichnis hinzufügst.