Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BRAVE_API_KEYNoAPI key for the Brave websearch provider.
MCP_AUTH_TOKENNoAlternative environment variable for the bearer token used to authenticate HTTP MCP requests. Can also be provided with --token or AGENT_MCP_TOKEN.
TAVILY_API_KEYNoAPI key for the Tavily websearch provider.
AGENT_MCP_SHELLNoOverride the shell used by the shell tool. Defaults to $SHELL -lc on Linux/macOS and PowerShell on Windows.
AGENT_MCP_TOKENNoBearer token used to authenticate HTTP MCP requests. Can also be provided with --token or the MCP_AUTH_TOKEN environment variable. Required for authenticated HTTP; tokens shorter than 16 characters are rejected.

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 mirrors the file, search, and execution tools built into OpenCode.

Paths are resolved against the server's workspace root. Relative paths are joined to that root; absolute paths are accepted only inside it unless the operator enabled outside-root access.

The patch tool accepts the OpenCode/Codex envelope:

*** Begin Patch *** Add File: path +content *** Update File: path @@ context -old +new *** End Patch

The shell tool runs with the server user's privileges. Background commands return a PID and a log path that can be read with the read tool.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
readA

Read a file or list a directory. Text is returned with line numbers. Use offset (1-based) and limit to page through large files.

globA

Find files by glob pattern such as '**/*.ts'. Hidden files are skipped unless hidden=true. Results are newest first.

grepA

Search file contents with a regular expression (or literal text). Narrow with path and include, e.g. include='*.ts'. Returns path:line: text.

editA

Replace exact text in a file. oldString must match exactly once unless replaceAll=true. The file's encoding and newline style are preserved. Returns a unified diff.

writeA

Create or completely replace a text file. Missing parent directories are created. Prefer edit for small changes to existing files.

patchA

Apply an OpenCode/Codex patch envelope with *** Begin Patch, *** Add File, *** Update File, *** Move to, and *** Delete File. All hunks are validated before any file is written.

shellB

Run a command in the host shell. timeout is in milliseconds (0 disables it). Set background=true to start a long-running process; the result contains its PID and log path.

webfetchB

Fetch an HTTP or HTTPS URL as markdown (default), text, or raw HTML. Private and loopback addresses are blocked unless the operator allows them.

websearchB

Search the web. Requires BRAVE_API_KEY or TAVILY_API_KEY in the server environment; returns a clear error when neither is configured.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 9 tools

Disambiguation4/5

Content search (grep) vs filename search (glob) vs read are clearly separated, as are webfetch and websearch. The main overlap is edit vs patch, both of which modify existing files, but descriptions steer usage ('Prefer edit for small changes', patch is for multi-file envelopes). Minor write vs edit overlap is also softened by explicit guidance.

Naming Consistency5/5

All nine tools follow one convention: single lowercase words, no separators, no mixed styles (grep, edit, write, patch, shell, webfetch, read, glob, websearch). The pattern is predictable and readable even though it is not verb_noun.

Tool Count5/5

Nine tools is a well-scoped surface for an agent file/shell/web toolkit, with each tool earning its place across read, search, mutate, and network operations. No thin filler tools and no bloat.

Completeness4/5

Core lifecycle is covered: read/list, glob, grep, write/create, edit, patch (including add/move/delete files), shell, plus fetch and search. Gaps are minor, e.g. no direct file delete outside a patch envelope and no way to inspect or kill processes started with background=true.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues