Skip to main content
Glama
S0ra-ai
by S0ra-ai

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENCODE_MODENospawn or persistentspawn
OPENCODE_PATHNoOpenCode executable pathopencode
OPENCODE_TIMEOUTNoTimeout in ms120000
OPENCODE_PROJECTSNoJSON format multi-project configuration
OPENCODE_WHITELISTNoEnable command whitelistfalse
OPENCODE_DEFAULT_PROJECTNoDefault project absolute path

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
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
write_codeA

Create or overwrite a file with code. Use this to write new files or completely replace file contents.

edit_codeA

Edit an existing file using OpenCode. Delegates all edits to OpenCode for lint/typecheck safety.

read_fileC

Read the contents of a file.

search_codeB

Search for patterns in the codebase using ripgrep.

run_commandB

Execute a shell command in the project directory. Use for builds, installs, scripts, etc.

run_testsC

Run the project test suite with configurable options.

git_statusA

Get git status (branch, staged/unstaged changes).

git_diffB

View git diff (unstaged, staged, or specific commit).

git_commitC

Stage all changes and create a git commit.

git_logB

View recent git commits.

planA

Use OpenCode in plan mode to analyze, design, and plan without executing. Safe for exploration.

execute_planB

Execute a previously generated plan. OpenCode will implement the plan step by step.

list_projectsB

List all registered projects.

add_projectC

Register a new project directory.

list_sessionsB

List active OpenCode sessions (persistent mode only).

resume_sessionB

Resume a previous OpenCode session (persistent mode only).

ask_opencodeA

Send an arbitrary prompt to OpenCode in a project context. General-purpose delegation tool.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 17 tools

Disambiguation5/5

Each tool has a clearly distinct purpose. Potential confusion between edit_code and write_code is resolved by descriptions (edit vs create/overwrite). All other tools target different operations or resources.

Naming Consistency4/5

Most tools follow a verb_noun pattern (add_project, edit_code, run_command). 'plan' is a lone verb without a noun, and git_* tools use a non-verb prefix, but the overall pattern is consistent and readable.

Tool Count5/5

17 tools is appropriate for a coding assistant delegate. Each tool addresses a distinct need (project management, file ops, git, sessions, delegation) without redundancy.

Completeness4/5

Core workflow (plan, edit, test, commit) is covered. Minor gaps exist: no tool to delete a project or end a session, but these are not essential for typical usage.

Maintenance

ActivityStale
ResponsivenessNo issues