surgical-editing-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SURGICAL_ROOT_DIR | No | Restrict edits to one directory tree. Can also be set with the --root <dir> flag (the flag wins). When a root is set, relative paths resolve against it and any target outside it fails with `Path traversal blocked`. |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| surgical_replaceA | Transactional exact-match editor. Send ONLY the minimal snippets to change, across one or more files. Each |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of misselection or overlapping purpose. Its description clearly frames it as an exact-match, atomic replacement editor.
A single snake_case verb_noun-style name (surgical_replace) is internally consistent by definition and matches the server's stated purpose.
One tool is thin for a general editing server, but the tool is deliberately broad (multi-file, multi-snippet, atomic, dry-run) so it earns its place. Still, a single operation is borderline for practical agent workflows.
Replacement plus dry-run diff covers the core edit loop, but there is no way to read files, create new files, append/insert at a location, or undo within this server. Agents must pair it with a separate read/inspect capability, leaving notable gaps.