MCP Server Mode
CodeCLI can act as an MCP (Model Context Protocol) server, exposing all its built-in tools to other applications like Claude Desktop, VS Code extensions, or any MCP-compatible client.
Quick Start
Stdio Transport (default)
Connect from another app:
HTTP Transport
Connect from another app:
Available Tools (36)
Built-in Tools (25)
| Tool | Description |
|---|---|
| bash | Execute shell commands |
| read | Read file contents |
| write | Create files |
| edit | Edit files with exact string replacement |
| glob | Find files by pattern |
| grep | Search file contents with regex |
| computer_use | GUI automation (screenshot, click, type, etc.) |
| task | Spawn sub-agents |
| webfetch | Fetch and parse web content |
| websearch | Search the web |
| skill | Load specialized skill instructions |
| todowrite / todoread | Task list management |
| kanbanwrite / kanbanread | Kanban board management |
Management Tools (11)
| Tool | Description |
|---|---|
| codecli_info | Server version, directory, tool/MCP counts |
| codecli_tools_list | List all tools with descriptions |
| codecli_mcp_list | MCP server status |
| codecli_mcp_toggle | Connect/disconnect an MCP server |
| codecli_mcp_tools | Tools from connected MCP servers |
| codecli_skills_list | Available skills |
| codecli_commands_list | Slash commands |
| codecli_config_get | Current configuration |
| codecli_config_set | Update config values |
| codecli_plugins_list | Loaded plugins and hooks |
| codecli_sessions_list | Recent sessions |
Protocol
The server implements the MCP protocol (version 2024-11-05) using the official@modelcontextprotocol/sdk. It supports:
initialize— protocol handshaketools/list— enumerate all tools with JSON Schema parameterstools/call— execute any toolping— health check