opencode-delegate-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENCODE_DELEGATE_CONFIG | No | Override path to the config file (default: ~/.config/opencode-delegate/config.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": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| delegate_taskA | Hand off self-contained, high-volume "grunt work" to a cheaper model running through OpenCode, so the primary agent can stay focused on architecture and critical decisions. The subagent runs non-interactively in a real working directory and CAN read, write, and edit files and run shell commands there (auto-approved by default). Give it a complete, self-contained brief — it does not see your conversation. Good for: writing repetitive/boilerplate code, mechanical refactors, generating tests, fixing lint/type errors, updating call sites, docstrings, simple migrations. Avoid for: architecture, security-sensitive logic, ambiguous specs, or anything where a wrong edit is costly. Args:
See also: delegate_tests — same shape, dedicated to test-writing; its required field is named Returns structured content: { ok, model, session_id, directory, result, error?, usage{tokens,cost}, actions[], duration_ms }. |
| delegate_testsA | Test-focused wrapper around delegate_task. The subagent writes (and optionally runs) tests for the given scope while avoiding changes to production code unless strictly required to make tests pass. Args:
See also: delegate_task — same shape, general-purpose; its required field is named Returns the same structured content shape as delegate_task. |
| list_modelsA | List provider/model ids that OpenCode can use, in "provider/model" form (e.g. "minimax-coding-plan/MiniMax-M2.5-highspeed"). Optionally filter to a single provider. Use these ids for the Args:
|
| get_delegate_configA | Return the current delegate configuration (default model/provider, agent, variant, auto-approve, timeout, default directory, and named profiles) plus the config file path. Read-only. |
| set_delegate_configA | Change the active delegation settings at runtime — this is how you dynamically switch the cheap model or provider without reinstalling. Only the fields you pass are updated. Returns the updated config. Args (all optional):
|
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 5 tools
Each tool has a clearly distinct purpose: config read, config write, two specialized delegation tasks (general vs test), and model listing. The two delegation tools are differentiated by required field and documented use cases.
All tools use consistent snake_case with a verb_noun pattern (get_, delegate_, list_, set_). No mixing of conventions.
5 tools is well-scoped for the server's purpose: reading/writing config, listing models, and delegating tasks (general and test-specific). No excess or deficiency.
Covers all core operations for configuring and using delegation. Minor gap: no tool to retrieve results of a past delegation by session ID, but the delegation tools return results synchronously, so it's not a critical omission.