OpenCode MCP Gateway
by gjabdelnoor
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GATEWAY_PORT | No | Gateway HTTP port. | 3001 |
| MCP_CLIENT_ID | No | OAuth client ID expected by this gateway. | opencode-mcp-gateway |
| OPENCODE_HOST | No | OpenCode API host. | localhost |
| OPENCODE_PORT | No | OpenCode API port. | 9999 |
| MCP_AUTH_TOKEN | No | Bearer token used for authentication. Should be a long random secret. | |
| ENABLE_RAW_BASH | No | Enables direct bash/bash_exec command tool. | true |
| PUBLIC_BASE_URL | No | Override externally visible OAuth base URL; set this when using Cloudflare Tunnel or any reverse proxy. | |
| MCP_ALLOWED_CLIENT_IDS | No | Comma-separated list of additional OAuth client IDs to accept. | opencode-mcp-gateway |
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 | |
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/gjabdelnoor/opencode-mcp-gateway-cloudflare-desktop'
If you have feedback or need assistance with the MCP directory API, please join our Discord server