Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoBridge listen address. Default is 127.0.0.1.127.0.0.1
MCP_PORTNoBridge listen port.8087
EXEC_TIMEOUT_SNoCap for exec_run timeouts (seconds).120
ENABLE_EXEC_RUNNoSet to true to enable the exec_run tool (legacy /mcp only). Default false.false
TASK_STATE_PATHNoPath to the JSON task state file./tmp/opencode-mcp-bridge/tasks.json
DEFAULT_MODEL_IDNoDefault model ID.muse-spark-1.3-contributor-free
MCP_BEARER_TOKENYesStatic token clients send as Authorization Bearer header. Required.
DEFAULT_DIRECTORYNoWorking directory for sessions when clients omit it. Default: $HOME$HOME
OPENCODE_BASE_URLNoOpenCode server URL.http://127.0.0.1:8080
MCP_MAX_BODY_BYTESNoMaximum request body size in bytes for /mcp and /worker-mcp.1048576
DEFAULT_PROVIDER_IDNoDefault provider ID.opencode
MCP_ALLOWED_ORIGINSNoOptional comma-separated list of allowed origins for CORS.
EXEC_MAX_OUTPUT_CHARSNoMax output characters for exec_run.20000
OPENCODE_SERVER_PASSWORDYesBasic auth password for the OpenCode server. Required.
OPENCODE_SERVER_USERNAMENoBasic auth user for the OpenCode server.opencode
MCP_BEARER_TOKEN_SECONDARYNoOverlap 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

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