Set up your MCP client
Every recipe launches the same compiled executable over stdio and supplies the Core connection through the server’s environment. Replace the executable placeholder with the absolute path to your target/release/komodo-mcp.
The recipes set all four optional grants to "false", so the server stays read-only even if the launching environment enables a grant. Change a grant only deliberately, and restart the server afterward. See Configuration.
Client recipes
Section titled “Client recipes”Choose your client. Each tab links directly, for example #claude-desktop.
Codex reads MCP servers from config.toml. env_vars forwards the already exported Core connection values without writing them into the file.
Where to configure it: Add these tables to ~/.codex/config.toml (or .codex/config.toml in a trusted project).
[mcp_servers.komodo]command = "/absolute/path/to/komodo-mcp/target/release/komodo-mcp"env_vars = ["KOMODO_ADDRESS", "KOMODO_API_KEY", "KOMODO_API_SECRET"]
[mcp_servers.komodo.env]KOMODO_ALLOW_OPERATE = "false"KOMODO_ALLOW_CONFIGURATION_EDIT = "false"KOMODO_ALLOW_PRUNE = "false"KOMODO_ALLOW_TERMINAL = "false"Evidence: configuration syntax reviewed against the client documentation on . See compatibility for connection evidence.
Reload the client: Start a new Codex session from the shell that exported the Core variables, then run codex mcp list or /mcp to confirm that komodo is listed.
Configuration syntax: Codex MCP documentation.
Verify it works
After the client initializes the server and discovers its tools, ask for your first read and approve only the named read-only call:
List the stacks I can access in Komodo and show their current status. Use list_stacks and do not change anything.Claude Code expands ${VAR} references in a project-scoped .mcp.json, so the shared file names the Core credentials without containing them.
Where to configure it: Export the three Core variables, then create .mcp.json at the project root. Claude Code asks you to approve project-scoped servers.
{ "mcpServers": { "komodo": { "type": "stdio", "command": "/absolute/path/to/komodo-mcp/target/release/komodo-mcp", "args": [], "env": { "KOMODO_ADDRESS": "${KOMODO_ADDRESS}", "KOMODO_API_KEY": "${KOMODO_API_KEY}", "KOMODO_API_SECRET": "${KOMODO_API_SECRET}", "KOMODO_ALLOW_OPERATE": "false", "KOMODO_ALLOW_CONFIGURATION_EDIT": "false", "KOMODO_ALLOW_PRUNE": "false", "KOMODO_ALLOW_TERMINAL": "false" } } }}Evidence: configuration syntax reviewed against the client documentation on . See compatibility for connection evidence.
Reload the client: Start a new Claude Code session, approve the project server, then run /mcp or claude mcp list and confirm that komodo is connected.
Configuration syntax: Claude Code MCP documentation.
Verify it works
After the client initializes the server and discovers its tools, ask for your first read and approve only the named read-only call:
List the stacks I can access in Komodo and show their current status. Use list_stacks and do not change anything.Claude Desktop launches the compiled executable as a developer-defined local stdio server. komodo-mcp does not ship a desktop extension.
Where to configure it: Open Settings → Developer → Edit Config and merge this entry into claude_desktop_config.json without removing other servers.
{ "mcpServers": { "komodo": { "command": "/absolute/path/to/komodo-mcp/target/release/komodo-mcp", "args": [], "env": { "KOMODO_ADDRESS": "https://komodo.example.test", "KOMODO_API_KEY": "replace-in-this-user-local-file", "KOMODO_API_SECRET": "replace-in-this-user-local-file", "KOMODO_ALLOW_OPERATE": "false", "KOMODO_ALLOW_CONFIGURATION_EDIT": "false", "KOMODO_ALLOW_PRUNE": "false", "KOMODO_ALLOW_TERMINAL": "false" } } }}Evidence: configuration syntax reviewed against the client documentation on . See compatibility for connection evidence.
Reload the client: Fully quit and reopen Claude Desktop, then open Connectors → Manage connectors and select komodo to see its tools. Server stderr is written to mcp-server-komodo.log in Claude's log directory.
Configuration syntax: MCP local-server guide.
Verify it works
After the client initializes the server and discovers its tools, ask for your first read and approve only the named read-only call:
List the stacks I can access in Komodo and show their current status. Use list_stacks and do not change anything.VS Code's Copilot harness reads the portable mcpServers format and expands ${NAME} references in a stdio server's command, args, and env.
Where to configure it: Merge this entry into ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json when set), or add it with MCP: Add Server → Global.
{ "mcpServers": { "komodo": { "type": "stdio", "command": "/absolute/path/to/komodo-mcp/target/release/komodo-mcp", "args": [], "env": { "KOMODO_ADDRESS": "${KOMODO_ADDRESS}", "KOMODO_API_KEY": "${KOMODO_API_KEY}", "KOMODO_API_SECRET": "${KOMODO_API_SECRET}", "KOMODO_ALLOW_OPERATE": "false", "KOMODO_ALLOW_CONFIGURATION_EDIT": "false", "KOMODO_ALLOW_PRUNE": "false", "KOMODO_ALLOW_TERMINAL": "false" } } }}Evidence: configuration syntax reviewed against the client documentation on . See compatibility for connection evidence.
Reload the client: Launch VS Code from an environment that defines the Core variables, then run MCP: List Servers and start komodo. Adding configuration alone does not confirm that a chat session can use it; run the verification call.
Configuration syntax: VS Code MCP configuration reference.
Verify it works
After the client initializes the server and discovers its tools, ask for your first read and approve only the named read-only call:
List the stacks I can access in Komodo and show their current status. Use list_stacks and do not change anything.OpenCode starts local servers from a command array and substitutes {env:NAME} inside JSON strings.
Where to configure it: Merge this into the project's opencode.jsonc, or add the server with opencode mcp add --global for every project.
{ "$schema": "https://opencode.ai/config.json", "mcp": { "servers": { "komodo": { "type": "local", "command": ["/absolute/path/to/komodo-mcp/target/release/komodo-mcp"], "environment": { "KOMODO_ADDRESS": "{env:KOMODO_ADDRESS}", "KOMODO_API_KEY": "{env:KOMODO_API_KEY}", "KOMODO_API_SECRET": "{env:KOMODO_API_SECRET}", "KOMODO_ALLOW_OPERATE": "false", "KOMODO_ALLOW_CONFIGURATION_EDIT": "false", "KOMODO_ALLOW_PRUNE": "false", "KOMODO_ALLOW_TERMINAL": "false" } } } }}Evidence: configuration syntax reviewed against the client documentation on . See compatibility for connection evidence.
Reload the client: Restart OpenCode from the shell that exported the Core variables and confirm that the komodo server is connected and its tools are listed.
Configuration syntax: OpenCode MCP server documentation.
Verify it works
After the client initializes the server and discovers its tools, ask for your first read and approve only the named read-only call:
List the stacks I can access in Komodo and show their current status. Use list_stacks and do not change anything.Other clients and MCP Inspector
Section titled “Other clients and MCP Inspector”Any MCP client that can launch a local stdio process works the same way: run the absolute executable path with no arguments and set the environment variables. For a scripted check without a model, the interactive stdio walkthrough generates a verified MCP Inspector 2.14.0 configuration against a synthetic mock Core and lists stacks from the CLI.
If the server does not connect
Section titled “If the server does not connect”- The client cannot start it: check that the path is absolute, exists, and is executable. Build it first.
- It starts, then closes during initialization: the startup
GetVersionprobe failed. Read the server’s stderr forconfiguration,authentication,unreachable, ortimeoutand follow Troubleshooting. - It connects but tools are missing: inspect the server’s tool selection and local grants, restart it after changes, and run
tools/listagain. list_stacksreturns an empty list: the identity can read no Stacks. Check Core Read permissions; an empty list is not an error.