Explore the Claude Code CLI source β browse tools, commands, search code, and more.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
The full source code of Anthropic's Claude Code CLI, leaked on March 31, 2026
The original unmodified leaked source is preserved in the
backupbranch.
The X-Ray Intelligence Engine for Your Codebase.
|
Understand Any Codebase
|
Spend less time reading code, more time building.
Chaofan Shou (@Fried_rice) discovered that the published npm package for Claude Code included a .map file referencing the full, unobfuscated TypeScript source β downloadable as a zip from Anthropic's R2 storage bucket.
"Claude code source code has been leaked via a map file in their npm registry!"
Claude Code is Anthropic's official CLI tool for interacting with Claude directly from the terminal β editing files, running commands, searching codebases, managing git workflows, and more. This repository contains the leaked src/ directory.
| Leaked | 2026-03-31 |
| Language | TypeScript (strict) |
| Runtime | Bun |
| Terminal UI | React + Ink |
| Scale | ~1,900 files Β· 512,000+ lines of code |
For in-depth guides, see the docs/ directory:
| Guide | Description |
|---|---|
| Architecture | Core pipeline, startup sequence, state management, rendering, data flow |
| Tools Reference | Complete catalog of all ~40 agent tools with categories and permission model |
| Commands Reference | All ~85 slash commands organized by category |
| Subsystems Guide | Deep dives into Bridge, MCP, Permissions, Plugins, Skills, Tasks, Memory, Voice |
| Exploration Guide | How to navigate the codebase β study paths, grep patterns, key files |
Also see: CONTRIBUTING.md Β· MCP Server README
This repo ships an MCP server that lets any MCP-compatible client (Claude Code, Claude Desktop, VS Code Copilot, Cursor) explore the full source interactively.
The MCP server is published as warrioraashuu-codemaster on npm β no need to clone the repo:
Replace /absolute/path/to/claude-code with your actual clone path.
VS Code β add to .vscode/mcp.json:
Claude Desktop β add to your config file:
Cursor β add to ~/.cursor/mcp.json (same format as Claude Desktop).
| Tool | Description |
|---|---|
list_tools | List all ~40 agent tools with source files |
list_commands | List all ~50 slash commands with source files |
get_tool_source | Read full source of any tool (e.g. BashTool, FileEditTool) |
get_command_source | Read source of any slash command (e.g. review, mcp) |
read_source_file | Read any file from src/ by path |
search_source | Grep across the entire source tree |
list_directory | Browse src/ directories |
get_architecture | High-level architecture overview |
| Prompt | Description |
|---|---|
explain_tool | Deep-dive into how a specific tool works |
explain_command | Understand a slash command's implementation |
architecture_overview | Guided tour of the full architecture |
how_does_it_work | Explain any subsystem (permissions, MCP, bridge, etc.) |
compare_tools | Side-by-side comparison of two tools |
Try asking: "How does the BashTool work?" Β· "Search for where permissions are checked" Β· "Show me the /review command source"
src/tools/β Every tool Claude can invoke is a self-contained module with its own input schema, permission model, and execution logic.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/claude-code-explorer-mcp)<a href="https://allmcps.com/mcp/claude-code-explorer-mcp"><img src="https://allmcps.com/api/badge/claude-code-explorer-mcp?style=directory" alt="Claude Code Explorer MCP on AllMCPs" /></a>