AI 클라이언트가 도구와 명령어를 탐색하고 코드베이스를 검색하여 Claude Code 소스 코드를 분석할 수 있도록 지원합니다.
다른 이름 codeaashu/claude-code, codemaster, @divyesh2000/codemaster
- 스타
- 3,438
- Tools
- 8
- 다운로드, 30일
- 218
- 최신 버전
- 1.1.0
- 마지막 커밋
- 2026년 10월 14일
- 라이선스
- —
Codemaster MCP란?
Codemaster은(는) MCP server입니다. AI 클라이언트가 도구와 명령어를 탐색하고 코드베이스를 검색하여 Claude Code 소스 코드를 분석할 수 있도록 지원합니다. 8개 도구를 제공합니다. 예: list_tools, list_commands, get_tool_source.
프로젝트 README에서 생성된 요약
Codemaster MCP server 정보
Claude Code의 내부 동작 원리를 이해하려는 개발자는 이 서버를 사용하여 방대한 코드베이스를 탐색할 수 있습니다. 이 서버는 특정 도구, 리소스, 프롬프트를 노출함으로써 AI 클라이언트가 1,900개 이상의 파일과 512,000줄 이상의 코드를 검사할 수 있는 방법을 제공합니다. Claude Desktop, VS Code 또는 Cursor에서 stdio를 통해 로컬로 사용하거나, streamable HTTP 또는 SSE 트랜스포트를 사용하여 원격으로 호스팅할 수 있습니다.
이 서버에는 Agent Skills를 확인하기 위한 list_tools, 슬래시 명령어를 보기 위한 list_commands, 소스 트리 전체를 정규 표현식으로 검색하기 위한 search_source와 같은 도구가 포함되어 있습니다. 또한 특정 서브시스템이나 권한이 어떻게 작동하는지 안내된 설명을 제공하기 위해 architecture_overview 및 explain_tool과 같은 특화된 프롬프트를 제공합니다. 원격 설정의 경우 Bearer 토큰을 통해 MCP_API_KEY를 사용하여 연결을 보호할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Codemaster MCP 설치 방법
형식 확인: 2026년 11월 10일Claude Code에 Codemaster MCP 설치
$ claude mcp add codemaster -- npx -y @divyesh2000/codemasterCursor에 Codemaster MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"codemaster": {
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}VS Code에 Codemaster MCP 설치
.vscode/mcp.json
{
"servers": {
"codemaster": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}Claude Desktop에 Codemaster MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"codemaster": {
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}Codex에 Codemaster MCP 설치
~/.codex/config.toml
[mcp_servers.codemaster] command = "npx" args = ["-y", "@divyesh2000/codemaster"]
Gemini CLI에 Codemaster MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"codemaster": {
"command": "npx",
"args": [
"-y",
"@divyesh2000/codemaster"
]
}
}
}Codemaster MCP 도구 8
README에서 감지됨list_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 | — |
구성
CLAUDE_CODE_SRC_ROOTMCP_API_KEY
| 이름 | 설명 | 유형 |
|---|---|---|
| CLAUDE_CODE_SRC_ROOT | — | |
| MCP_API_KEY | — |
자동 검사
2026년 11월 12일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)No license결함 발견
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음통과
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨통과
- 모델에 대한 숨겨진 지침 없음통과
- 패키지와 의존성에 심각한 보안 권고 없음통과
README
GitHub에서 보기warrioraashuu 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 질문
Codemaster MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add codemaster -- npx -y @divyesh2000/codemaster를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
Codemaster MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
Codemaster MCP는 어떤 도구를 제공하나요?
8개 도구를 제공합니다. 예: list_tools, list_commands, get_tool_source, get_command_source, read_source_file.
이 서버로 무엇을 할 수 있나요?
Agent Skills 및 슬래시 명령어를 나열하고, 특정 도구 또는 명령어의 구현 내용을 읽으며, 정규 표현식으로 소스 트리를 검색하거나 아키텍처 개요를 확인할 수 있습니다.
stdio를 사용하여 로컬에서 서버를 실행하려면 어떻게 하나요?
npm start 명령어를 사용하거나 CLAUDE_CODE_SRC_ROOT 환경 변수로 사용자 정의 소스 경로를 지정하여 실행할 수 있습니다.
HTTP 트랜스포트 사용 시 인증이 필요한가요?
네, MCP_API_KEY 환경 변수를 설정하여 HTTP 서버를 보호할 수 있으며, 이 경우 클라이언트는 Authorization 헤더에 Bearer 토큰을 포함해야 합니다.
Claude Desktop에서 사용할 수 있나요?
네, Claude Desktop 설정 파일에 서버 명령어와 Claude Code 소스 디렉토리 경로를 추가하여 구성할 수 있습니다.