Memungkinkan AI client untuk mengeksplorasi source code Claude Code dengan menelusuri tools, commands, dan melakukan pencarian di dalam codebase.
Juga dikenal sebagai codeaashu/claude-code, codemaster, @divyesh2000/codemaster
- Stars
- 3.437
- Tools
- 8
- Unduhan, 30 hari
- 218
- Versi terbaru
- 1.1.0
- Commit terakhir
- 14 Okt 2026
- Lisensi
- —
Apa itu Codemaster MCP?
Codemaster adalah MCP server. Memungkinkan AI client untuk mengeksplorasi source code Claude Code dengan menelusuri tools, commands, dan melakukan pencarian di dalam codebase. Server ini menyediakan 8 tool, seperti list_tools, list_commands, get_tool_source.
Ringkasan dibuat dari README proyek
Tentang Codemaster MCP server
Developer yang ingin memahami cara kerja internal Claude Code dapat menggunakan server ini untuk menavigasi codebase-nya yang sangat besar. Server ini menyediakan cara bagi AI client untuk memeriksa lebih dari 1.900 file dan 512.000 baris kode dengan mengekspos tools, resources, dan prompts tertentu. Anda dapat menggunakannya secara lokal via STDIO dengan Claude Desktop, VS Code, atau Cursor, atau menghostingnya secara remote menggunakan transport streamable HTTP atau SSE.
Server ini menyertakan tools seperti list_tools untuk melihat kapabilitas agent, list_commands untuk melihat slash commands, dan search_source untuk pencarian regex di seluruh source tree. Server ini juga menawarkan prompt khusus seperti architecture_overview dan explain_tool untuk memberikan penjelasan terpandu tentang cara kerja subsystem atau permission tertentu. Untuk setup remote, Anda dapat mengamankan koneksi menggunakan MCP_API_KEY melalui Bearer token.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal Codemaster MCP
Format diverifikasi 10 Nov 2026Instal Codemaster MCP di Claude Code
$ claude mcp add codemaster -- npx -y @divyesh2000/codemasterInstal Codemaster MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"codemaster": {
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}Instal Codemaster MCP di VS Code
.vscode/mcp.json
{
"servers": {
"codemaster": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}Instal Codemaster MCP di Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"codemaster": {
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}Instal Codemaster MCP di Codex
~/.codex/config.toml
[mcp_servers.codemaster] command = "npx" args = ["-y", "@divyesh2000/codemaster"]
Instal Codemaster MCP di Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"codemaster": {
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}Tool Codemaster MCP 8
Terdeteksi dari 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 | — |
Konfigurasi
CLAUDE_CODE_SRC_ROOTMCP_API_KEY
| Nama | Deskripsi | Tipe |
|---|---|---|
| CLAUDE_CODE_SRC_ROOT | — | |
| MCP_API_KEY | — |
Pengecekan otomatis
Berjalan 12 Nov 2026Laporan lengkap →Lolos checks otomatis kami. Ini bukan audit keamanan: baca kodenya dan berikan server akses paling terbatas yang dibutuhkannya. Cara kerja checks
- Source repository terhubung dan dapat dijangkauLolos
- Lisensi open source (OSI)No licenseTemuan
- Ada commit atau release dalam satu tahun terakhirLolos
- Nama package tidak mirip dengan package populerLolos
- Remote endpoint menggunakan HTTPSTidak diperiksa
- Tools yang bersifat destruktif telah diberi labelLolos
- Tidak ada instruksi tersembunyi untuk modelLolos
- Tidak ada advisory kritis di paket maupun dependensinyaLolos
README
Lihat di GitHubwarrioraashuu 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
Pertanyaan tentang Codemaster MCP
Bagaimana cara menambahkan Codemaster MCP ke Claude Code?
Jalankan claude mcp add codemaster -- npx -y @divyesh2000/codemaster di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan Codemaster MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
Tool apa yang disediakan Codemaster MCP?
Server ini menyediakan 8 tool, termasuk list_tools, list_commands, get_tool_source, get_command_source, read_source_file.
Apa yang bisa saya lakukan dengan server ini?
Anda dapat melihat daftar agent tools dan slash commands, membaca implementasi tool atau command tertentu, mencari di source tree menggunakan regex, dan mendapatkan gambaran umum arsitektur.
Bagaimana cara menjalankan server ini secara lokal menggunakan STDIO?
Anda dapat menjalankannya menggunakan command npm start atau dengan menentukan path source kustom menggunakan environment variable CLAUDE_CODE_SRC_ROOT.
Apakah transport HTTP memerlukan autentikasi?
Ya, Anda dapat mengamankan HTTP server dengan mengatur environment variable MCP_API_KEY, yang mengharuskan client untuk menyertakan Bearer token pada header Authorization.
Bisakah saya menggunakannya dengan Claude Desktop?
Ya, Anda dapat mengonfigurasinya di file konfigurasi Claude Desktop Anda dengan menambahkan command server dan path ke direktori source Claude Code.