← Back to directory
C

Claude Code Source Restoration (CC)

Community
Not a standard server
A runnable TypeScript source reconstruction of Claude Code CLI from source maps, for research only.

This is not a typical connect-and-use MCP server; read the source repository before using it.

Category
Dev Tools #436 of 438
Stars
★ 277 Popular
Transport
stdio (local process)
Runtime
Bun 1.3.5+ · Node.js 24+
Credentials
No credential needed
Last commit
⚠
14FMRS · D

This MCP server is an unofficial source reconstruction of Claude Code, suitable for research and education but not for production. It runs on Bun and provides a complete source tree and development entry. Users should be aware of copyright and completeness issues.

Strongest · Setup experience 4/20 Weakest · Reliability 1/20

Reliability
1/20
Security and permissions
4/20
Maintenance
2/20
Documentation
3/20
Setup experience
4/20
Why each score
Reliability 1/20
The evidence shows this repository is not an MCP server; it is a source-map reconstruction of the Claude Code CLI. The services/mcp directory is an MCP client/service layer, not the MCP server surface this review targets, and no server entrypoint, init handshake, or tools/list protocol evidence exists; the server manifest is also uncached. The README claims bun run dev works, but README content is untrusted evidence, and no CI workflow or committed tests verify key paths; the 2 open issues further indicate incompleteness. Score sits at 1, just above the broken/contradictory anchor, solely because the README describes a plausible CLI run path.
Security and permissions 4/20
This is a non-official reconstruction of the Claude Code CLI handling Anthropic API keys, auth, and MCP OAuth credentials, while shims/ replace unrecoverable native modules with compatibility substitutes, making the code irreconcilable with the official build — a severe supply-chain integrity risk that the README itself warns about. Dangerous capabilities such as BashTool, FileWriteTool, PowerShellTool, and the remote bridge are listed with no documented confirmation or least-privilege behavior. No direct malware, real tokens, or credential-theft evidence was found, so the 0-4 red-line band is not triggered, but credential handling plus unverifiable provenance and the missing license force an extremely low score.
Maintenance 2/20
The license is unknown (the README attributes copyright to Anthropic but the repository itself has no open-source license), and there is no verifiable evidence of releases, commit history, dependency updates, or an issue-response mechanism. The repository is not archived and has stars, but stars and issue counts are discovery signals only and add no points. Per the anchors, missing license plus absent governance and update paths places the score at the very low end between 0 and 10.
Documentation 3/20
The README is fairly detailed about the reconstruction itself: directory layout, architecture overview, and known missing modules with shim fallbacks are all covered. However, the object under review is an MCP server, and the documentation contains no MCP server install, auth, tool-parameter, limit, cost, or troubleshooting content, nor any client integration examples; the docs describe a CLI and do not match the reviewed capability. README is untrusted evidence, and no tests or logs are provided for verification.
Setup experience 4/20
The README provides three quick-start commands (bun install, bun run dev, bun run version) and runtime requirements (Bun >= 1.3.5, Node.js >= 24), but these are CLI startup steps, not MCP client integration steps. No client configuration examples such as claude_desktop_config.json or mcp.json exist, no CI or committed tests verify the install path, and the Node >= 24 requirement is unusually high. Static calibration caps setup at 15 without execution evidence, and here even basic runnability cannot be verified, so the score is only 4.

Static review · not runListed 2026-08-07

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeUses the network

Best for

  • Developers interested in Claude Code's internals
  • Researchers analyzing large TypeScript projects
  • Technical users who want to study or extend Claude Code's source

Not for

  • Production use, as it is unofficial and incomplete
  • Users seeking official support or stability
  • Commercial use, as copyright belongs to Anthropic

Required permissions

  • This repo itself doesn't require API permissions, but running Claude Code features may need an Anthropic API key
  • Filesystem read/write permissions to install dependencies and run the CLI
  • Network access to call Anthropic API or fetch resources

Risks and side effects

  • The reconstructed version may contain unknown bugs or security vulnerabilities; not recommended for production
  • Source may be incomplete; some features may be missing or behave incorrectly
  • Copyright risk; for personal research and study only, not for commercial use

Setup

Before you start

Runtime:Bun 1.3.5+ · Node.js 24+

  1. Ensure Bun >= 1.3.5 and Node.js >= 24 are installed.
  2. Clone the repo: git clone https://github.com/lsm1103/CC and enter the directory.
  3. Install dependencies: bun install.
  4. Verify installation: bun run version should output the version.
  5. Start the development CLI: bun run dev.

Check that it works

Run bun install, then bun run version; if it prints a version and bun run dev launches an interactive CLI process, the restored source is runnable.

Troubleshooting

  1. Check that Bun and Node.js versions meet requirements
  2. Ensure network connectivity during `bun install`; if dependency issues occur, delete bun.lock and reinstall
  3. Check runtime logs for missing native modules or shim errors
  4. If the CLI fails to start, confirm an Anthropic API key is set (if needed)

Things to try

Once connected, you can ask your AI assistant things like:

  • Start the restored CLI with bun run dev
  • Show the version number using bun run version
  • List which tool implementations were restored under src/tools/
  • Show what compatibility shims exist in the shims/ directory

Use cases

Researching the internal architecture and source code of Claude Code
Learning about Anthropic API clients, MCP integration, terminal UI, and more
Testing and debugging this reconstructed version locally

Overview

This is an unofficial repository that reconstructs the Claude Code CLI source code from the source maps of the public npm package @anthropic-ai/claude-code. It includes 1,987 TypeScript/TSX files and can be installed and run with Bun. It is intended for research and learning about Claude Code's internal implementation. Due to source map limitations, some modules are replaced with compatible shims or degraded implementations, so behavior may differ from the original.

Similar servers

Context7 80 · B

Upstash's official server providing up-to-date third-party library docs for AI coding assistants

★ 63.3k · Tools 2 Compare with this →

Source revision 17f86397c5aa Data synced 2026-10-19 Read the FMRS scoring method