Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WITNIS_DBYesAbsolute path to the SQLite index database for the repository to be served, e.g. /ABS/PATH/TO/repo/.witnis/index.sqlite
WITNIS_RUST_INDEXNoControls use of the Rust indexer. Set to 1 to always use the Rust indexer, or auto to use it when the native module is loaded. By default, Rust is used for non-.py trees and Python AST for .py files.
WITNIS_ALLOW_VERIFYNoSet to 1 to allow gated verification execution via verify --execute. Verification remains blocked otherwise.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Witnis (witnis-dev) is a local evidence gate for coding agents. Public tools: index, look, impact, verify. Never tell the user tests passed, the change is safe, or verification succeeded unless the verify tool returned automation_verified=true after an authorized execute. blocked / plan-only means 0 commands ran. Set WITNIS_MCP_EXPERIMENTAL=1 for the rest of the catalog.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
indexA

Index the current working directory into SQLite (WITNIS_DB or .witnis/index.sqlite). Incremental; does not run tests or modify source. Call this first in a new repo. Returns JSON with file and symbol counts.

lookA

Witness card for a symbol or file name: definition, callers, impact size, related tests, verify plan. Read-only. Requires a prior index. Does not execute tests.

impactA

Blast-radius envelope for a symbol: direct and transitive callers/callees, capped by limit (default 50). Read-only. Requires a prior index. Not a security audit.

verifyA

Gated verification. Default (execute=false) returns a plan only — 0 commands ran. execute=true runs tests only if WITNIS_ALLOW_VERIFY=1; otherwise status is blocked. Never treat blocked or plan-only as tests passed. automation_verified is true only after authorized execute.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 4 tools

Disambiguation4/5

Each tool has a distinct role: index builds state, look returns a symbol card, impact computes blast radius, and verify handles gated test execution. There is slight overlap because look includes callers and impact size, but the descriptions make the deeper blast-radius purpose of impact clear.

Naming Consistency4/5

All names are short, lowercase single words, giving a predictable style. They do not follow a verb_noun convention, and impact reads more like a noun than a verb, but the set is otherwise consistent.

Tool Count5/5

Four tools is well-scoped for a focused code indexing and verification server. Each tool earns its place in the workflow without obvious redundancy.

Completeness4/5

The core lifecycle is covered: index the repo, inspect symbols/files, assess impact, and verify with gated execution. A symbol search or index-status tool would fill a minor discovery gap, but agents can work around it.

Maintenance

ActivityMaintained
ResponsivenessOutdated data