Skip to main content
Glama
nmt3325

opencode-mcp-bridge

by nmt3325

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENCODE_BASE_URLNoURL of the opencode serverhttp://127.0.0.1:4096
OPENCODE_MCP_HOSTNoHost address for the bridge to listen on127.0.0.1
OPENCODE_MCP_PORTNoPort for the bridge to listen on8787
OPENCODE_API_TOKENNoBearer token to send to the opencode server
OPENCODE_MCP_TOKENNoIf set, requires Authorization: Bearer or x-mcp-token
OPENCODE_MCP_PTY_SHELLNoShell executable used in PTY backendbash
OPENCODE_SERVER_PASSWORDNoPassword for Basic authentication with the opencode server
OPENCODE_SERVER_USERNAMENoUsername for Basic authentication with the opencode server
OPENCODE_MCP_DEFAULT_AGENTNoDefault agent
OPENCODE_MCP_DEFAULT_MODELNoDefault model
OPENCODE_MCP_DENY_PATTERNSNoAdditional deny patterns (comma-separated, wildcards allowed)rm -rf /, rm -rf /*, rm -rf ~, mkfs*, dd if=* of=/dev/*, shutdown*, reboot*, halt*, chmod -R 777 /*
OPENCODE_MCP_SHELL_BACKENDNoShell backend to use: auto, pty, v2, or legacyauto
OPENCODE_MCP_ALLOW_PATTERNSNoIf set, acts as a whitelist for allowed patterns (comma-separated, wildcards allowed)
OPENCODE_MCP_MAX_OUTPUT_CHARSNoMaximum characters in one response; excess is truncated and retrievable via cursor20000
OPENCODE_MCP_POLL_INTERVAL_MSNoPolling interval in milliseconds1000
OPENCODE_MCP_PTY_BUFFER_CHARSNoMaximum characters kept per PTY output buffer1000000
OPENCODE_MCP_WAIT_MAX_SECONDSNoMaximum seconds a tool call will wait (max 50)45
OPENCODE_MCP_DEFAULT_DIRECTORYNoDefault working directory
OPENCODE_MCP_REQUEST_TIMEOUT_MSNoTimeout in milliseconds for requests to opencode20000
OPENCODE_MCP_SHELL_TIMEOUT_SECONDSNoDefault timeout in seconds for shell jobs120

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

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

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/nmt3325/opencode-mcp-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server