Skip to main content
Glama
OpenCode MCP

OpenCode MCP

by nones-tools

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENCODE_MCP_URLNoUse an explicit endpoint instead of discovery. Loopback is the default; a remote host requires HTTPS and OPENCODE_MCP_ALLOW_REMOTE=1.
OPENCODE_MCP_PASSWORDNoBasic-auth password for user `opencode` when OPENCODE_MCP_URL is set. Pass it through the environment, never a committed config or command argument.
OPENCODE_MCP_ALLOW_EXECNoSet to `1`, plus `confirm: true`, to allow explicit shell, command, and PTY operations.
OPENCODE_MCP_TIMEOUT_MSNoRequest timeout from 100 to 120000 ms. Default: 30000.
OPENCODE_MCP_ALLOW_ADMINNoSet to `1`, plus `confirm: true`, to allow plugin updates, global configuration, and other unclassified mutations.
OPENCODE_MCP_ALLOWED_DIRSNoPlatform path-delimited list of existing directories that bounds project and session scope.
OPENCODE_MCP_ALLOW_REMOTENoSet to `1` to allow a remote HTTPS endpoint.
OPENCODE_MCP_SERVICE_FILENoPath to an OpenCode-managed service registration passed to the discovery adapter.
OPENCODE_MCP_ALLOW_DESTRUCTIVENoSet to `1`, plus per-call `confirm: true`, to allow deletion, filesystem writes, and rollback/commit operations.

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