opencode-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_TOOL_TIMEOUT | No | Server-side maximum timeout for opencode_wait_for_task in milliseconds. Can be set via environment variable or CLI argument MCP_TOOL_TIMEOUT=<ms>. Defaults to 300000 (5 minutes). | 300000 |
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
} |
| prompts | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| opencode_start_serverB | Start a headless OpenCode server instance in the current working directory |
| opencode_stop_serverB | Stop a running OpenCode server instance |
| opencode_list_agentsA | List agents (native and custom) and available models/providers on an OpenCode server instance |
| opencode_start_taskB | Delegate a task to an OpenCode agent: create a session and start the prompt without waiting for it to finish |
| opencode_get_task_statusB | Get the current status of a delegated task |
| opencode_get_task_resultB | Get the final result of a completed task |
| opencode_wait_for_taskA | Long-poll one or more delegated tasks until they finish or the timeout elapses. Use mode 'all' to wait for all tasks, or 'any' to return as soon as one completes. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| delegate_task | Instructions for the correct workflow to delegate tasks to OpenCode agents via this MCP server |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alejandro-technology/opencode-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server