vo-mcp
v0.1.0Virtual Office MCP server — open protocol surface for the VO consensus / ratchet tool family.
@algosuite/vo-mcp Virtual Office MCP server — the open protocol surface that exposes VO's consensus and ratchet tool family to any MCP-capable LLM client (Claude Code, Claude Desktop, Cursor, Continue, Codex, etc.). Status: Phase 2. Stdio transport. 20 tools registered (source of truth: src/server.ts buildToolRegistry()). The static-ratchet tools (vo_check_assertion_strength, vo_check_ratchets) run locally today; the consensus-routed tools fall back to { verdict: "unimplemented", ...
Summary extracted from the README.
@algosuite/vo-mcp
Virtual Office MCP server — the open protocol surface that exposes VO's consensus and ratchet tool family to any MCP-capable LLM client (Claude Code, Claude Desktop, Cursor, Continue, Codex, etc.).
Status: Phase 2. Stdio transport. 20 tools registered (source of truth: src/server.ts buildToolRegistry()). The static-ratchet tools (vo_check_assertion_strength, vo_check_ratchets) run locally today; the consensus-routed tools fall back to { verdict: "unimplemented", ... } until engine credentials are present; the heal-family, PR-admin, and session-state tools forward to the vo-control-plane admin proxy in cloud mode. vo_review_merge is a read-only consensus pre-merge review (the verify-before-act gate for the Command Center — never merges). The shape is stable; the institutional-knowledge content is loaded from closed packages.
This package is intentionally shell-only. Per docs/handoffs/vo-mcp-server-2026-05-21.md §C-1: tool definitions (schemas, names, descriptions) ship openly. Tool implementations that encode institutional knowledge (specific ratchet thresholds, consensus prompt content, architectural-defaults knowledge base) live behind the cloud or in closed companion packages.
Tools
| Name | Phase 1 status | Description |
|---|---|---|
vo_check_assertion_strength |
Implemented (stub ratchet) | Score a test file's assertions 0-100 with per-assertion findings. |
vo_check_hollow_test |
Stub | Detect tests that pass without verifying product truth. |
vo_verify_answer |
Stub | Semantic-equivalence comparison of expected vs observed. |
vo_consensus_judgment |
Stub + logging skeleton | Submit a prompt to multiple models, return synthesized verdict. Logs every call (V1 launch gate #7). |
vo_architecture_review |
Stub | Senior-architect review of a diff against project defaults. |
All tools follow the same response envelope:
{
"tool": "vo_check_assertion_strength",
"schema_version": 1,
"cache": { "hit": false, "key": "<sha256 hex>" },
"payload": { /* tool-specific */ }
}
V1 launch gates implemented in Phase 1
- Gate #7 — consensus-call logging. Every tool invocation appends a JSONL line to
~/.claude/vo-mcp-events.jsonl(override with$VO_MCP_EVENTS_PATH). Schema is locked: seesrc/types.tsConsensusCallEvent.per_model_verdictsandsynthesized_verdictare empty/null in the scaffold; the schema shape is the deliverable. - Gate #8 — content-hash cache. Every tool invocation computes
sha256(canonicalize(tool_input)). Repeat calls with the same canonicalized input return the cached envelope withcache.hit = true. Backed by sqlite at~/.claude/vo-mcp-cache.db(override with$VO_MCP_DB_PATH).
Building & testing
cd packages/vo-mcp
pnpm install
pnpm run build # tsc -p tsconfig.json
pnpm run typecheck # tsc --noEmit
pnpm test # vitest run
The integration test (test/integration/stdio-roundtrip.test.ts) spawns the built CLI, exchanges JSON-RPC over stdio, and asserts:
initialize+tools/listreturns the 20 expected tools.vo_check_assertion_strengthruns end-to-end and writes a JSONL event line.- A repeat call with identical input hits the cache (
cache.hit = true). vo_consensus_judgmentreturnsunimplementedand still writes its event line.
Running the server
The CLI is a stdio MCP server. Don't run it interactively; register it in your MCP client.
Claude Desktop / Claude Code
Add to ~/.claude/mcp_settings.json (Claude Desktop) or your Claude Code config:
{
"mcpServers": {
"vo": {
"command": "node",
"args": ["<absolute-path>/packages/vo-mcp/dist/cli.js"],
"env": {
// Optional overrides — defaults shown below
// "VO_MCP_EVENTS_PATH": "/path/to/events.jsonl",
// "VO_MCP_DB_PATH": "/path/to/cache.db"
}
}
}
}
Cursor
Cursor reads MCP servers from its global config (Settings → Features → MCP). Add an entry:
{
"mcpServers": {
"vo": {
"command": "node",
"args": ["<absolute-path>/packages/vo-mcp/dist/cli.js"]
}
}
}
After saving, restart Cursor. The tools appear under the @vo namespace in the chat composer's tool picker.
Continue
Continue reads MCP servers from ~/.continue/config.json under the experimental.modelContextProtocolServer (or v2 mcpServers) section, depending on the Continue release on your machine. Verify the current shape against Continue's docs; the launch command itself is the same:
{
"command": "node",
"args": ["<absolute-path>/packages/vo-mcp/dist/cli.js"]
}
Cross-vendor smoke. A captured cross-vendor smoke now exists — see
CROSS_VENDOR_SMOKE.md. Runpnpm run smoke:cross-vendorto drive the built server through the full MCP lifecycle under each vendor's real client parameters (protocol-version negotiation, capabilities, client identity, schema validity) and reproduce the recorded transcripts. That doc also carries the operator checklist for capturing real Cursor/Continue/Codex GUI sessions. The integration test in this package exercises the generic single-version stdio surface that any MCP-spec-compliant client uses.
Environment variables
| Var | Default | Purpose |
|---|---|---|
VO_MCP_EVENTS_PATH |
~/.claude/vo-mcp-events.jsonl |
Where consensus-call event lines are appended. |
VO_MCP_DB_PATH |
~/.claude/vo-mcp-cache.db |
sqlite cache file for content-hash cache. |
VO_CONTROL_PLANE_URL |
(unset → cloud off) | vo-control-plane base URL. Set together with the admin token to activate cloud mode — the admin-proxy tools (concierge dispatch, heal/PR families) forward to vo-control-plane instead of returning unimplemented stubs. |
VO_CONTROL_PLANE_ADMIN_TOKEN |
(unset → cloud off) | Bearer token vo-control-plane validates. Required with the URL above; setting only one is a configuration error. |
VO_ADMIN_CALLABLES_READONLY |
false |
When truthy (1/true), cloud mode runs read-only: read-only tools (concierge dispatch + the list/get diagnostics) forward, but the heal/PR write tools (merge, reject, trigger-heal, …) stay gated to their stubs. Lets you expose concierge without exposing destructive admin actions. |
Adding a new tool (Phase 2+)
- Create
src/tools/<tool>.tsexporting:TOOL_NAMEconstantdescription(writes the discovery copy that cross-vendor clients show)inputSchema(JSON Schema for MCPtools/list)handle<Tool>(deps, rawInput)(validate input, hit cache, call backend, log event, returnjsonContent(envelope))
- Add it to
buildToolRegistry()insrc/server.ts. - Add tests under
test/tools/<tool>.test.ts. - Update this README's tool table and
EXTRACTION_AUDIT.md.
The tool handler MUST:
- Hash the canonicalized input via
deps.cache.keyFor(TOOL_NAME, rawInput). - Read the cache before any expensive work; return cached envelope with
cache.hit = trueif present. - Append a
ConsensusCallEventviadeps.events.append(buildBaseEvent(...))on every invocation. - Sanitize inputs before logging (
sanitizeExcerptis applied automatically inbuildBaseEvent). - Return a
ToolResultEnvelope<TPayload>JSON-encoded in a single text content block.
Hard rules (handoff §C)
This package complies with:
- Open shell, closed content. Stub ratchet client lives here; real thresholds load from
@algosuite/ratchets-genericin Phase 2 (seeEXTRACTION_AUDIT.md). - Cross-vendor by design. No Claude-specific assumptions; tool schemas are MCP-spec compliant.
- Content-hash cache every consensus call. Implemented at
src/cache/sqlite-cache.ts. - Log every consensus call. Implemented at
src/logging/events-writer.ts. - TypeScript strict, zero
any, zero@ts-ignore. - No PII in logs.
sanitizeExcerptstrips JWTs, sk- keys, bearer tokens, and email addresses before logging.
See EXTRACTION_AUDIT.md for what's stub, what's real, and where the moat lives.