Connect a trusted local AI agent to Vericore’s deterministic repository intelligence and verification boundary.
Vericore exposes a local stdio MCP server for agents that need repository evidence, architecture signals, planning, and change verification.
Vericore is the evidence and verification layer, not the coding agent. It does not autonomously modify repository source files.
Build/install Vericore, then launch:
vericore mcp
The process uses newline-delimited JSON-RPC over stdin/stdout. stdout is reserved for protocol messages; do not pipe human-readable CLI output into the MCP process.
Client configuration uses the stable executable boundary:
vericore mcp-config
To create a project-level configuration file directly:
vericore mcp-config --write
This writes .mcp.json:
{
"mcpServers": {
"vericore": {
"command": "vericore",
"args": ["mcp"]
}
}
}
The generated configuration uses the vericore executable from PATH, so it remains portable across machines and contains no API keys. Existing .mcp.json files are protected from accidental replacement; use --force only when intentionally regenerating the file.
Claude Code supports project-scoped .mcp.json configurations, making this a convenient checked-in project integration. citeturn1search2 Other MCP clients may use their own configuration locations; the printed JSON can be copied into those clients.
For the complete CLI command contract, see CLI Reference.
| Tool | What it does | Mutates source? |
|---|---|---|
vericore_analyze_repository |
Repository structure, dependency graph, hotspots, and deterministic analysis | No |
vericore_impact_analysis |
Dependency-aware impact for changed paths | No |
vericore_architecture_analysis |
Architecture Intelligence | No |
vericore_pr_intelligence |
Working-tree or revision-pair change intelligence | No |
vericore_review |
Deterministic review with optional grounded AI interpretation | No |
vericore_recommendations |
Prioritized deterministic engineering recommendations from the analysis snapshot | No |
vericore_get_engineering_reality |
Repository-state-bound Engineering Reality | No |
vericore_get_context_snapshot |
Versioned engineering-context snapshot | No |
vericore_get_context_diff |
Deterministic snapshot diff | No |
vericore_get_architecture_drift |
Baseline/current architecture drift | No |
vericore_get_architecture_contract |
Architecture governance evaluation | No |
vericore_prepare_change |
Evidence + engineering plan + persisted change contract | Writes artifacts under output/ |
vericore_get_change_contract |
Retrieves the persisted output/agent-change-contract.json |
No |
vericore_get_evidence |
Bounded grounded repository evidence | No |
vericore_change_safety |
Current working-tree scope signal | No |
vericore_verify_change |
Verifies the persisted Agent Change Contract and plan | No |
All repository arguments use repoPath. Remote repository URLs are rejected.
The canonical MCP tool namespace is vericore_*. Retained codecontext_* aliases are legacy compatibility paths only; they emit a deprecation warning and should be migrated to the corresponding vericore_* tool.
{"repoPath":"/absolute/path/to/repository"}
{
"repoPath":"/absolute/path/to/repository",
"changedPaths":["src/main/kotlin/com/example/PaymentService.kt"]
}
The server accepts at most 100 changed paths per call.
Working tree:
{"repoPath":"/absolute/path/to/repository"}
Revision pair:
{
"repoPath":"/absolute/path/to/repository",
"baseRevision":"main",
"headRevision":"feature/payment-retry"
}
Both revisions must be supplied together.
The review tool is the agent-native equivalent of vericore review. It always runs deterministic review first and accepts either the current working tree or a base/head revision pair.
{
"repoPath":"/absolute/path/to/repository",
"baseRevision":"main",
"headRevision":"feature/payment-retry",
"includeAi":false
}
Set includeAi to true when grounded AI interpretation is wanted. AI review requires AI to be enabled/configured and a current output/analysis-snapshot.json; the deterministic review remains the authoritative fact layer. AI claims are constrained by the grounded evidence service and the Git diff. If the snapshot is stale, AI review fails closed instead of silently analyzing an outdated repository state.
Use vericore_review before modifying a repository and again after a change when the agent needs an impact/risk/test signal. It does not mutate source files and does not replace vericore_verify_change.
The recommendations tool returns the same deterministic engineering actions exposed by the CLI. It requires a current output/analysis-snapshot.json.
{
"repoPath":"/absolute/path/to/repository"
}
Use vericore_recommendations when an agent needs actionable engineering priorities before deciding what to change. Recommendations are evidence-backed signals, not proof of correctness or security.
{
"repoPath": "/absolute/path/to/repository",
"changeSummary": "Add payment retry validation",
"plannedPaths": ["src/main/kotlin/com/example/PaymentService.kt"],
"specification": {
"requiredBehaviors": ["Reject invalid retry counts"],
"forbiddenBehaviors": ["Do not log credentials"],
"protectedInvariants": ["Retries remain idempotent"],
"acceptanceCriteria": ["Invalid retry counts return a validation error"],
"requiredEvidence": ["Unit-test results for invalid retry counts"],
"evidenceBindings": [
{
"criterionId": "acceptance-criterion-001",
"evidenceIds": ["file.1"]
}
]
}
}
The specification object is optional. Its lists are caller-authored, validated, preserved in the plan and contract, and included in the contract fingerprint when non-empty. evidenceBindings maps stable criterion IDs to either prepared evidence-citation IDs or declared verification-command-NNN IDs based on the 1-based position in the persisted verification-command list, in the exact order commands execute. Unknown criterion IDs or evidence IDs fail closed. Bindings default to MANUAL_REVIEW; the narrowly scoped ALL_BOUND_COMMANDS_SUCCEEDED rule is supported only for requiredEvidence criteria and command IDs. It proves only that the bound command results executed and exited zero, not that a test covers the requested behavior. The presence of a criterion or evidence link is not proof that Vericore has passed it.
Preparation persists repository-scoped artifacts, including:
output/engineering-preparation.json
output/engineering-plan.json
output/agent-change-contract.json
Engineering Reality
↓
Context / architecture / impact
↓
Grounded evidence
↓
Prepare change
↓
Persist Agent Change Contract
↓
Agent modifies repository
↓
Verify ORIGINAL persisted contract
↓
Tests / human review
The contract binds repository identity and prepared Git HEAD to planned paths, expected components, verification commands, evidence IDs, architecture expectations, and a SHA-256 fingerprint. Optional specification lists let an agent record required behaviors, forbidden behaviors, protected invariants, acceptance criteria, and required evidence. These declarations are fingerprint-bound, but their presence does not mean Vericore has already semantically evaluated them. Empty specifications preserve legacy contract fingerprints.
vericore_prepare_change is the agent-facing preparation boundary. It returns the plan and contract and persists the same contract to output/agent-change-contract.json (plus the preparation and plan artifacts). An agent can therefore call MCP prepare, modify the repository, then call MCP get_change_contract and verify without falling back to the CLI to establish the verification boundary.
These operations have intentionally different responsibilities:
vericore_prepare_change creates/persists the change contract.vericore_get_change_contract retrieves the persisted output/agent-change-contract.json.vericore_verify_change verifies the persisted contract and does not silently generate a replacement.This distinction prevents an agent from replacing the verification boundary after it has prepared a change.
New preparation contracts use schema 3.0 and embed the deterministic per-path candidate-input baseline. The contract fingerprint binds the baseline digest. MCP verification applies the same prepare-to-verify drift check as the CLI, including ignored and untracked inputs, and fails closed for legacy contracts without baseline data; call vericore_prepare_change again to establish a current baseline. Planned file paths authorize exact files; planned directory paths authorize descendants under that directory. The CLI binds custom preparation-artifact paths inside the repository into the manifest’s exclusion list, and that list is itself digest-bound.
The MCP server is intended for trusted local use.
vericore_prepare_change writes repository-local artifacts; it does not modify source code.For a shared or remote deployment, put an authenticated service boundary in front of Vericore rather than exposing the stdio process directly.
The current implementation targets the 2025-11-25 MCP lifecycle and implements initialize, notifications/initialized, ping, tools/list, and tools/call for the current Vericore tool surface. Legacy codecontext_* aliases are accepted only for migration and emit deprecation warnings on stderr.
Modern MCP lifecycle behavior is intentionally deferred until the server can implement the required request/discovery model correctly rather than advertising unsupported behavior.
The vericore_prepare_change MCP tool accepts an optional agentContext object:
{
"provider": "cursor",
"agentId": "team-agent-7",
"sessionId": "session-opaque-123",
"eventId": "turn-opaque-456"
}
The MCP boundary records source: "mcp"; callers cannot self-assert a different transport source. Equivalent CLI options are --agent-provider, --agent-id, --agent-session-id, and --agent-event-id. These are opaque identifiers only—never put prompts, source text, credentials, or private model reasoning in them. Context is optional for backward compatibility; when supplied it is fingerprint-bound in the contract and included in the verification receipt. Provider values are extensible lowercase slugs, so adding a new agent does not require a new verification engine.