OpenCode MCP Bridge
by ManuOtel
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_HOST | No | Bridge listen address. Default is 127.0.0.1. | 127.0.0.1 |
| MCP_PORT | No | Bridge listen port. | 8087 |
| EXEC_TIMEOUT_S | No | Cap for exec_run timeouts (seconds). | 120 |
| ENABLE_EXEC_RUN | No | Set to true to enable the exec_run tool (legacy /mcp only). Default false. | false |
| TASK_STATE_PATH | No | Path to the JSON task state file. | /tmp/opencode-mcp-bridge/tasks.json |
| DEFAULT_MODEL_ID | No | Default model ID. | muse-spark-1.3-contributor-free |
| MCP_BEARER_TOKEN | Yes | Static token clients send as Authorization Bearer header. Required. | |
| DEFAULT_DIRECTORY | No | Working directory for sessions when clients omit it. Default: $HOME | $HOME |
| OPENCODE_BASE_URL | No | OpenCode server URL. | http://127.0.0.1:8080 |
| MCP_MAX_BODY_BYTES | No | Maximum request body size in bytes for /mcp and /worker-mcp. | 1048576 |
| DEFAULT_PROVIDER_ID | No | Default provider ID. | opencode |
| MCP_ALLOWED_ORIGINS | No | Optional comma-separated list of allowed origins for CORS. | |
| EXEC_MAX_OUTPUT_CHARS | No | Max output characters for exec_run. | 20000 |
| OPENCODE_SERVER_PASSWORD | Yes | Basic auth password for the OpenCode server. Required. | |
| OPENCODE_SERVER_USERNAME | No | Basic auth user for the OpenCode server. | opencode |
| MCP_BEARER_TOKEN_SECONDARY | No | Overlap token for rotation; unset means single-token mode. |
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
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues