claude-opencode-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENCODE_BIN | No | Path to the OpenCode binary, used to locate the executable. | |
| DEEPSEEK_API_KEY | No | DeepSeek API key, used for authentication if not using `opencode auth login`. | |
| CLAUDE_OPENCODE_LOG | No | Log level for the bridge (debug, info, warn, error, silent). | |
| CLAUDE_OPENCODE_CONFIG | No | Path to an additional configuration file (JSON) that overrides global and project configs. | |
| OPENCODE_SERVER_PASSWORD | No | Password for authenticating with an auto-started OpenCode server. | |
| OPENCODE_SERVER_USERNAME | No | Username for authenticating with an auto-started OpenCode server. | |
| CLAUDE_OPENCODE_STATE_DIR | No | Directory for storing session state and logs. |
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": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| delegate_taskA | Delegate a software-engineering task to an OpenCode agent (DeepSeek by default) that runs in the same workspace. The agent explores the repository itself and returns a concise summary plus structured findings. Every agent can be granted or denied edits and shell access per call with allow_edits / allow_bash; grants still enforce the bridge security policy (sensitive-file protection for edits, no git history changes for shell). Returns { status, session_id, summary, findings, files_changed }. |
| create_sessionA | Create a persistent delegation session in a workspace without running a task yet. Follow up with send_message to keep the agent's context between calls. |
| send_messageA | Continue an existing delegated session with another message. The agent keeps its previous context and its permission level; allow_edits / allow_bash can change that level for this and later messages. |
| get_sessionA | Return the stored state of a delegated session plus its live OpenCode status when a server is running. Use get_diff to inspect file changes. |
| get_diffA | Return the file changes associated with a delegated session: OpenCode's own session diff when available, otherwise a git diff against the baseline captured when the session was created. |
| abort_sessionA | Stop a long-running or unwanted delegated task. Safe to call when the session is already idle. |
| list_agentsA | List the agents that delegate_task and create_session can use, including project-local agents from .claude-opencode/agents. |
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 7 tools
Most tools are clearly distinct: abort_session, get_diff, get_session, and list_agents target unique actions. However, delegate_task overlaps somewhat with create_session + send_message since delegate_task essentially creates a session and runs a task in one call, so an agent could wonder which entry point to use.
Every tool follows a strict snake_case verb_noun pattern: abort_session, delegate_task, create_session, send_message, get_diff, get_session, list_agents. No deviations or mixed conventions.
Seven tools is well-scoped for a delegation bridge: session lifecycle (create/send/abort), task execution, inspection (get_session/get_diff), and discovery (list_agents). Each tool earns its place without bloat.
The lifecycle is largely covered: create, delegate, continue, abort, and inspect sessions and diffs. A minor gap is the lack of a list_sessions operation, meaning an agent must track session IDs itself rather than rediscovering existing sessions.