Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_LOG_FILENoOptional file path for log output; default is stderr.
OPENCODE_BINNoPath to the opencode executable (managed mode only).opencode
OPENCODE_URLNoWhen set, the server runs in external host mode and connects to the given opencode serve URL. When unset, managed mode is used and the server spawns opencode serve itself.
MCP_LOG_LEVELNoOne of debug / info / warn / error.info
OPENCODE_PORTNoPort for the managed host (managed mode only).4096
OPENCODE_HOSTNAMENoBind address for the managed host (managed mode only).127.0.0.1
OPENCODE_DEFAULT_CWDNoInitial workspace registered as default.process CWD

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/define9/opencode-agent-mcp'

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