Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENCODE_BINNoPath to the OpenCode binary, used to locate the executable.
DEEPSEEK_API_KEYNoDeepSeek API key, used for authentication if not using `opencode auth login`.
CLAUDE_OPENCODE_LOGNoLog level for the bridge (debug, info, warn, error, silent).
CLAUDE_OPENCODE_CONFIGNoPath to an additional configuration file (JSON) that overrides global and project configs.
OPENCODE_SERVER_PASSWORDNoPassword for authenticating with an auto-started OpenCode server.
OPENCODE_SERVER_USERNAMENoUsername for authenticating with an auto-started OpenCode server.
CLAUDE_OPENCODE_STATE_DIRNoDirectory for storing session state and logs.

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

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
delegate_taskA

Delegate a software-engineering task to an OpenCode agent (DeepSeek by default) that runs in the same workspace. The agent explores the repository itself and returns a concise summary plus structured findings. Every agent can be granted or denied edits and shell access per call with allow_edits / allow_bash; grants still enforce the bridge security policy (sensitive-file protection for edits, no git history changes for shell). Returns { status, session_id, summary, findings, files_changed }.

create_sessionA

Create a persistent delegation session in a workspace without running a task yet. Follow up with send_message to keep the agent's context between calls.

send_messageA

Continue an existing delegated session with another message. The agent keeps its previous context and its permission level; allow_edits / allow_bash can change that level for this and later messages.

get_sessionA

Return the stored state of a delegated session plus its live OpenCode status when a server is running. Use get_diff to inspect file changes.

get_diffA

Return the file changes associated with a delegated session: OpenCode's own session diff when available, otherwise a git diff against the baseline captured when the session was created.

abort_sessionA

Stop a long-running or unwanted delegated task. Safe to call when the session is already idle.

list_agentsA

List the agents that delegate_task and create_session can use, including project-local agents from .claude-opencode/agents.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 7 tools

Disambiguation4/5

Most tools are clearly distinct: abort_session, get_diff, get_session, and list_agents target unique actions. However, delegate_task overlaps somewhat with create_session + send_message since delegate_task essentially creates a session and runs a task in one call, so an agent could wonder which entry point to use.

Naming Consistency5/5

Every tool follows a strict snake_case verb_noun pattern: abort_session, delegate_task, create_session, send_message, get_diff, get_session, list_agents. No deviations or mixed conventions.

Tool Count5/5

Seven tools is well-scoped for a delegation bridge: session lifecycle (create/send/abort), task execution, inspection (get_session/get_diff), and discovery (list_agents). Each tool earns its place without bloat.

Completeness4/5

The lifecycle is largely covered: create, delegate, continue, abort, and inspect sessions and diffs. A minor gap is the lack of a list_sessions operation, meaning an agent must track session IDs itself rather than rediscovering existing sessions.

Maintenance

ActivityMaintained
ResponsivenessNo issues