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 |
Capabilities
Features and capabilities supported by this server
| 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
- 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