Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_TOOL_TIMEOUTNoServer-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

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription
delegate_taskInstructions for the correct workflow to delegate tasks to OpenCode agents via this MCP server

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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