patchpilot
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Path to the repository workspace, passed as --workspace when starting the MCP server. |
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": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| audit_unified_diffC | Parse and audit a multi-file unified git diff against 8 deterministic AST anti-reward-hacking & safety rules (RH001–RH008) and export canonical Nexus Aegis G5 leaf attestation. |
| localize_faultA | Rank suspect Python functions/methods from a traceback or pytest failure log using hybrid Stack-Trace + AST Call-Graph + BM25 token overlap, returning minimal line-numbered AST slices within a strict token budget. |
| verify_patch_integrityB | Evaluate a proposed patch (original vs patched files or unified diff) against 8 deterministic AST anti-reward-hacking & safety rules (RH001–RH008). |
| apply_transactional_patchB | Apply a candidate patch inside a snapshot-backed workspace transaction, verifying RH001–RH008 and running an optional test command with automatic byte-exact SHA-256 rollback on failure. |
| inspect_ast_symbolsB | Query the AST symbol table and bidirectional call graph of a workspace by symbol name or (file_path, line_number). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| diagnose-and-repair | Localize the root-cause function from a pytest failure traceback and inspect suspect AST slices within a strict token budget. |
| audit-git-diff | Audit a unified git diff against RH001-RH008 rules to ensure no test deletion, artificial pass shortcuts, or stubbed functions. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| AST Anti-Reward-Hacking Rule Catalog (RH001-RH008) | Deterministic AST safety and anti-reward-hacking rules preventing LLM coding agents from deleting tests, adding trivial assertions, or stubbing functions. |
| PatchPilot Engine Capabilities & AST Specs | Overview of supported Python AST node visitors, fault localization algorithms (Stack-Trace + AST Call-Graph + BM25), and snapshot sandbox guarantees. |
TDQS
Scored across 5 tools
audit_unified_diff and verify_patch_integrity both evaluate a patch against the same RH001–RH008 rules, differing mainly in input shape and attestation output, which creates real risk of misselection. localize_fault, inspect_ast_symbols, and apply_transactional_patch are clearly distinct, and descriptions help resolve most ambiguity.
All five tools follow a consistent verb_noun snake_case pattern (audit_*, localize_*, verify_*, apply_*, inspect_*). No mixed conventions or casing deviations.
Five tools is well within the ideal range and each maps to a distinct phase of the patch workflow: locate, inspect, verify, audit, and apply. The set is tightly scoped with no filler tools.
The surface covers a full localize→inspect→verify→audit→apply lifecycle, including rollback and optional test execution in apply_transactional_patch. Minor gaps exist, such as no standalone rule-query or attestation-retrieval tool, but core workflows are covered.