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. Read-only agents (deepseek-researcher, deepseek-reviewer) cannot modify files; deepseek-coder can edit and run tests. Set allow_edits=false to force edit tools off for this call. 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, so follow-ups can build on earlier exploration and edits.

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.3/5.0

Scored across 7 tools

Disambiguation5/5

Each tool targets a distinct stage in a delegation session lifecycle: creating/delegating, sending follow-ups, inspecting state/diff, aborting, and listing available agents. create_session and delegate_task could be confused since both initiate sessions, but their descriptions clearly separate 'no task yet' from 'run a task'.

Naming Consistency5/5

All tools follow a consistent verb_noun snake_case pattern: create_session, delegate_task, send_message, get_session, get_diff, abort_session, list_agents. The verbs are predictable and directly match the action performed.

Tool Count5/5

Seven tools is well-scoped for a delegation/session management server; each tool represents a meaningful lifecycle operation without overlap and none feel redundant.

Completeness4/5

The surface covers the core lifecycle: create/delegate, continue, inspect, diff, abort, and enumerate agents. Obvious minor gaps are session enumeration/list_sessions and explicit session deletion/cleanup, but an agent can operate from returned session IDs.

Maintenance

ActivityMaintained
ResponsivenessNo issues