witnis
Witnis is a local MCP server that indexes a repo and provides read-only blast-radius analysis plus gated test verification for coding agents.
index: Incrementally indexes the current working directory into SQLite, without running tests or modifying source; returns file and symbol counts.look: Read-only witness card for a symbol or file name, showing definition, callers, impact size, related tests, and verify plan; requires a prior index.impact: Read-only blast-radius envelope for a symbol, listing direct and transitive callers/callees up to a default limit of 50; requires a prior index and is not a security audit.verify: Gated verification that returns only a plan by default; runs tests only whenexecute=trueandWITNIS_ALLOW_VERIFY=1, otherwise remains blocked.automation_verifiedis true only after authorized execution.Public tools are limited to
index,look,impact, andverify; other tools requireWITNIS_MCP_EXPERIMENTAL=1.
Provides a GitHub Actions PR gate (L00PLeGeNd/Witnis/.github/actions/pr-gate@v1) that runs Witnis checks on pull requests against a full-history checkout (fetch-depth: 0), blocking CI by default until commands are explicitly authorized.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@witnis index this repository and find impact of changing AuthService.login"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Witnis
Local evidence for coding agents: index a repo, show blast radius, put the same envelope on a PR, and keep verify blocked until you authorize it.
Search name: witnis-dev. Not Witnis AB. Apache-2.0.
Install
pip install witnis
# or
uvx witnisRelated MCP server: roam-code
What it catches that grep misses
On spring-petclinic @ 500158f, git grep -lw Person -- '*.java' hits five files. None of them are OwnerController, PetController, or VisitController — those only talk about Owner.
witnis impact Person follows Owner extends Person into those controllers.
witnis index .
witnis impact Person --plainThat is analysis completeness (grep vs index), not an LLM A/B test. Dual-human labels are still open. Notes: docs/benchmarks/petclinic-person-grep-vs-impact.md.
PR Action
Use a full clone (fetch-depth: 0). @v1 moves with 1.x; pin @v1.11.2 if you do not want that. Default run is blocked — 0 commands executed.
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: L00PLeGeNd/Witnis/.github/actions/pr-gate@v1MCP
Public tools: index, look, impact, verify. Everything else needs WITNIS_MCP_EXPERIMENTAL=1.
uvx witnis loop-initThat writes a Cursor / Claude snippet and a Harnis stdio policy. One install — seatbelt is not a second product. WITNIS_DB defaults to .witnis/index.sqlite.
{
"mcpServers": {
"witnis": {
"command": "npx",
"args": [
"-y", "harnis", "mcp", "--preset", "coding-agent", "--",
"uvx", "witnis", "mcp"
]
}
}
}Verify honesty
Verify does nothing until WITNIS_ALLOW_VERIFY=1 and --execute. automation_verified means the allowlisted commands ran. It is not a human review.
More: SECURITY.md · docs/trusted-agent-loop.md · docs/cli-cheatsheet.md · PetClinic GT (not dual-human): docs/benchmarks/petclinic-human-v2.md.
mcp-name: io.github.L00PLeGeNd/witnis
Available Tools
4 toolsimpactA
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.
Inputs: target (required), limit. Returns: result
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.
Inputs: no named parameters. Returns: result
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.
Inputs: target (required). Returns: result
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.
Inputs: target, execute. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
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.
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.
Four tools is well-scoped for a focused code indexing and verification server. Each tool earns its place in the workflow without obvious redundancy.
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
Related MCP Connectors
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Repository knowledge graph MCP server for codebase understanding and debugging.
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to perform local code search, indexing, and analysis across Java, JavaScript/TypeScript, .NET/C#, and Python projects through the MCP protocol.1Apache 2.0
- AlicenseNot gradedqualityAmaintenanceProvides local codebase intelligence as an MCP server, enabling AI agents to query dependencies, assess change impact, and produce tamper-evident change evidence packets.477 PyPI516Apache 2.0
- AlicenseNot gradedqualityBmaintenanceProvides bounded repository context and edit-grant MCP tools to coding agents such as Codex, indexing local repositories and enabling fingerprint-checked patch application.23Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables proof-backed code audit via MCP tools for AST-based code maps, symbol lookup, callers, audit commands, and persistent verdict memory.MIT