Code Mode MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PYTHONPATH | Yes | Path to the codemode-mcp `src` directory, e.g. `/absolute/path/to/codemode-mcp/src`. Required to run from source since no package installation is needed. | |
| CODEMODE_CONFIG | Yes | Path to the codemode-mcp configuration file, e.g. `/absolute/path/to/codemode.toml`. Configuration accepts TOML or JSON. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| cm_discoverC | Find namespaces, callable signatures, or schemas. |
| cm_execD | Run trusted Python; pass the worker worktree as cwd. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
cm_discover is purely introspective (finding namespaces, signatures, schemas) while cm_exec runs Python code. The two purposes are orthogonal with no overlap, so an agent can always pick the right tool.
Both tools use the same cm_ prefix followed by a short verb (discover, exec) in consistent snake_case. The pattern is predictable and readable despite the verb-only names.
Two tools is slightly below the typical 3-15 range, but each is essential to the code-mode loop: one to introspect the API surface and one to execute. A larger surface would likely be redundant for this meta-server.
Discovery plus execution forms a complete lifecycle for a code-mode server. Minor gaps exist (e.g., cancellation, validation-without-execution, or worktree listing), but the core discover-then-run workflow is fully covered.