claude-code-cli

huangserva
565
This is the CLI client main body of Claude Code (src/ directory), which is the source code of the entire terminal interaction layer. It specifically includes: 1. CLI entry and command parsing — main.tsx (4684 lines), entrypoints/ (CLI mode, SDK mode, MCP mode) 2. Terminal UI rendering — components/ (144 components, using React + Ink to render the terminal interface) 3. Tool system — tools/ (43 tools, including Bash, file read/write/edit, Grep, Glob, Web search, etc.) 4. API communication layer — services/api/ (communicating with Anthropic backend) 5. MCP protocol 6. Multi-Agent/Team collaboration 7. Authentication and policy 8. Auxiliary services, etc.

Content

MCP Config

Below is the configuration for this MCP Server. You can copy it directly to Cursor or other MCP clients.

mcp.json