vo-mcp

v0.1.0
@algosuite/vo-mcp Checked 4 hours ago Published 5 months ago

Virtual Office MCP server — open protocol surface for the VO consensus / ratchet tool family.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

vo_check_assertion_strength

Analyzes a test file's assertions and returns a strength score (0-100), an overall verdict (strong/weak/hollow), and per-assertion findings. Hollow patterns flagged include toBeDefined()-only checks, toBeTruthy/toBeFalsy against literals, and tautological self-comparisons. Strong patterns rewarded include toBe, toEqual, toMatchObject, toContain, toHaveBeenCalledWith, toStrictEqual. Use BEFORE accepting a generated or hand-written test, to catch tests that 'pass' without verifying product truth. Open-shell ratchet — institutional thresholds load from a closed ratchet library; the scoring shap…

ParameterTypeDescription
source *stringFull test file body to analyze.
file_pathstringOptional path hint for nicer findings messages.
languagestringOptional language hint.

vo_check_hollow_test

Detects 'hollow' test patterns where a test passes without verifying product behavior — e.g. mocks that return whatever the test expects, assertions on local fixtures rather than real outputs, tests that exercise no real code path. Returns a consensus verdict (pass/fail/uncertain) with per-model reasoning. Complements vo_check_assertion_strength (static ratchet); this tool uses LLM judgment for patterns static analysis can't reach. Falls back to 'unimplemented' when no engine credentials are configured; the call is always logged.

ParameterTypeDescription
source *stringFull test file body to analyze.
file_pathstringOptional path hint for nicer findings messages.

vo_verify_answer

Compares an expected value against an observed value via consensus fan-out and returns whether they are semantically equivalent (handles formatting drift, unit conversions, paraphrase). Default routes to the mid-exec-verify gate (cheap 3-model panel); pass deep:true to escalate to final-deep-verify (4-model deliberation). Returns per-model verdicts and a synthesized pass/fail/uncertain. Falls back to "unimplemented" when engine credentials are absent; the call is always logged.

ParameterTypeDescription
expected *The expected value (string, number, or structured JSON).
observed *The observed value to compare against expected.
deepbooleanWhen true, routes to the final-deep-verify gate (deliberation synthesizer, 4-model expensive panel, max 2 rounds). Default false → mid-exec-verify gate (weighted, 3-model cheap panel).
domainstringDomain hint for semantic comparison (e.g. tax, code, prose).

vo_consensus_judgment

Submit a prompt to multiple LLMs and return a synthesized consensus verdict with per-model verdicts visible. Use for high-stakes judgment calls where a single model's verdict is too risky (architecture reviews, weak-vs-strong-assertion calls, factual grounding against authoritative sources). Returns a real synthesized verdict when the closed consensus engine is wired in with credentials; falls back to 'unimplemented' otherwise. The call IS always logged for dataset and unit-economics audit (V1 launch gate #7).

ParameterTypeDescription
prompt *stringThe judgment prompt — what you want multiple models to assess.
contextobjectTool-specific context (e.g. source file, diff, observed value).
gate_typestringWhich gate this judgment serves. Phase 2 kebab-case names (plan-review, mid-exec-verify, final-deep-verify, architecture-review) drive the engine’s synthesizer choice. Phase 1 underscore names back-…

vo_architecture_review

Senior-architect review of a proposed diff against the project's architectural defaults — naming conventions, boundary discipline, error-handling shape, test honesty. Runs the architecture-review gate (human-tiebreak synthesizer, expensive 3-model panel). When the panel disagrees, the response includes an `escalation` field recommending operator review (the verdict still resolves via majority-vote — the engine does NOT block). Falls back to 'unimplemented' when engine credentials are absent; the call is always logged.

ParameterTypeDescription
change_type *stringClassification of the change.
diff *stringUnified diff of the proposed change.
summarystringOne-paragraph summary of intent / motivation.

vo_decompose_dispatch

Decomposes a customer goal into a structured dispatch plan (research / build / verify / ship tiers) with subagent counts, model recommendations, token cost estimates, kill switches, and per-tier artifacts. Runs the consensus engine with gate_type='plan-review' so multiple models each propose a plan, then surfaces the synthesized JSON plan AND each model's raw plan for operator audit. Use BEFORE starting any non-trivial work to make the cost shape visible up front. Operator approves each tier separately; the plan is a proposal, not a commitment.

ParameterTypeDescription
customer_goal *stringThe customer's goal statement — what they want accomplished. Keep concise; large supporting material belongs in `context`.
contextobjectOptional context: relevant file paths, current state observations, constraints, prior decisions, deadlines. Forwarded to the engine as caller_context.

vo_check_ratchets

Runs the vo-ratchets library against a project directory and returns the deterministic detector report (assertion-strength, hollow-tests, verify-answer, fix-strength, qa-honesty). Use BEFORE accepting generated tests or fixes to catch hollow assertions, weak verification, and other product-truth bypass patterns. Output includes per-detector findings (file, line, severity, message), suppressed findings (allowlist hits), and a pass/fail signal. Use `only` to scope to one detector for speed. Cache is bypassed — output reflects the live filesystem state at `cwd`.

ParameterTypeDescription
cwdstringAbsolute path the ratchet run resolves files against. Defaults to the MCP server process cwd (the directory the operator launched it from — typically the project root).
onlystringRestrict the run to a single detector. Equivalent to disabling every other detector. Omit to run all enabled detectors.
pathsarrayOptional list of file globs / paths to scan. When omitted, each detector walks the project and applies its own file filters.
report_onlybooleanWhen true, the run never reports `failed: true` even on error-severity findings. Useful for diagnostic scans; do NOT set in CI gates.

vo_trigger_heal

Triggers a self-heal pass against open PRs. Optionally scope to a `focus_page` (priority queue for one tester) or omit to fire the auto-process queue. Wraps the `voTriggerHeal` admin Cloud Function. V1 stub: returns `verdict: 'unimplemented'` with structured normalized_input — cloud-mode wiring is pending. The contract is locked; consumers can call this tool today and get the correct surface without working execution.

ParameterTypeDescription
focus_pagestringOptional focus page identifier (maps to a known tester via vo-heal-focus state). When set, the heal pass becomes priority-queued for that tester. Omit to trigger the auto-process queue.
forcebooleanWhen true, request the heal pass even if a queue manager is already active. Default false.

vo_fix_retry

Retries one or more failed fix attempts by id. Pass `attempt_id` for the single case or `attempt_ids` (up to 50) for the batch case. Wraps `voRetryFixAttempt` / `voRetryFixAttempts` admin Cloud Functions. V1 stub: returns `verdict: 'unimplemented'` — cloud-mode wiring pending.

ParameterTypeDescription
attempt_idstringRetry a single fix attempt by id (wraps voRetryFixAttempt). Mutually exclusive with attempt_ids.
attempt_idsarrayRetry up to 50 fix attempts by id (wraps voRetryFixAttempts). Mutually exclusive with attempt_id.

vo_fix_clear

Clears (cancels) a single fix attempt by id. Wraps `voClearFixAttempt` admin Cloud Function. V1 stub: returns `verdict: 'unimplemented'` — cloud-mode wiring pending.

ParameterTypeDescription
attempt_id *stringRequired. Fix-attempt id in the virtual_office_attempts collection.

vo_stop_workflow

Cancels a running GitHub Actions workflow by run id. Wraps `voStopWorkflow` admin Cloud Function. V1 stub: returns `verdict: 'unimplemented'` — cloud-mode wiring pending.

ParameterTypeDescription
run_id *numberRequired. GitHub Actions workflow run id (positive integer).
forcebooleanOptional. When true, force-cancel even if the run looks healthy. Default false.

vo_get_workflow_runs

Returns the current Command Center workflow-runs snapshot (Heal, Manager, Auto-Merge, Deploy on Merge, etc.). Wraps `voGetWorkflowRuns` admin Cloud Function. Read-only diagnostic. V1 stub: returns `verdict: 'unimplemented'` — cloud-mode wiring pending.

vo_list_pending_prs

Lists open VO-source pull requests with blocker / source / tester / specialist-context metadata. Read-only diagnostic for Command Center reads. Wraps `voListPendingPRs` admin Cloud Function. V1 stub: returns `verdict: 'unimplemented'` — cloud-mode wiring pending.

vo_merge_pr

Approves + merges a single VO-source pull request by number. Wraps `voMergePR` admin Cloud Function (server-side refuses non-VO PRs with permission-denied). V1 stub: returns `verdict: 'unimplemented'` — cloud-mode wiring pending.

ParameterTypeDescription
pr_number *numberRequired. GitHub pull request number (positive integer).

vo_reject_pr

Closes a pull request without merging. No retry dispatched — use `vo_reject_and_retry` for close+retry. Wraps `voRejectPR` admin Cloud Function. V1 stub: returns `verdict: 'unimplemented'` — cloud-mode wiring pending.

ParameterTypeDescription
pr_number *numberRequired. GitHub pull request number (positive integer).

vo_approve_all_fixes

Iterates all open VO-source pull requests and merges (or arms auto-merge) on each. Returns counts of merged / accepted / total plus per-PR results. Wraps `voApproveAllFixes` admin Cloud Function. V1 stub: returns `verdict: 'unimplemented'` — cloud-mode wiring pending.

vo_reject_and_retry

Closes a VO pull request and dispatches a self-heal pass to retry the same focus page. Cloud callable refuses non-VO PRs and respects the self-heal kill switch + per-PR retry block. Wraps `voRejectAndRetry` admin Cloud Function. V1 stub: returns `verdict: 'unimplemented'` — cloud-mode wiring pending.

ParameterTypeDescription
pr_number *numberRequired. GitHub pull request number (positive integer).

vo_review_merge

READ-ONLY pre-merge review: given a PR number, fetches its CI/blocker status + source + linked bugs, runs a multi-model consensus 'should this merge?' check, and returns a recommendation (merge | hold | reject) with per-model reasoning. NEVER merges — acting on it is a separate vo_merge_pr call. A deterministic safety overlay refuses to recommend merge when the PR has an open blocker and defaults to hold when consensus is unavailable. Use BEFORE vo_merge_pr to put a verification gate in front of the Command Center. Increment 1 reviews on metadata; needs cloud mode for PR context + model keys…

ParameterTypeDescription
pr_number *numberGitHub pull request number (positive integer) to review for merge.
notesstringOptional reviewer notes / context to factor into the verdict.

vo_report_session_state

Reports per-session context-window utilization to VO and returns a directive: 'continue' (under 70%), 'prepare_handoff' (70-84%), or 'execute_handoff_now' (≥85%). Implements V1 launch gate #9 (fleet context lifecycle management) per the official VO roadmap. V1 backend is stub-local — computes the directive purely from `context_used_pct` against the documented thresholds without a network call. Phase 3 wires this to the deployed vo-control-plane HTTP API; the response shape stays stable across the cutover (`backend_mode` field in the payload tells the caller which mode produced the verdict)…

ParameterTypeDescription
agent_type *stringWhich host agent runtime is reporting (claude-code | codex | cursor | continue).
context_used_pct *numberCurrent context-window utilization, 0-100. Used to compute the directive.
operator_id *stringStable identifier (UUID expected) of the operator owning this session.
session_id *stringStable identifier (UUID expected) of the session reporting state.
current_goalstringOptional one-line goal statement. Truncated server-side at 500 chars.
recent_files_touchedarrayOptional list of recent file paths touched in the session. Capped at 20 items.
recent_tool_usesarrayOptional list of recent tool names invoked in the session. Capped at 50 items.

vo_concierge_dispatch

Dispatches a provider-scoped knowledge pack (gcp | firebase | aws | cloudflare | vercel | netlify | tax | hybrid). Cross-vendor MCP equivalent of the /vo-concierge Claude-Code slash command. Route explicitly via `pack`, or via tenant.cloud_provider by passing `tenant_id`. Returns the pack's README (`readme_markdown`) + file index. In cloud mode, dispatches via vo-control-plane and returns `verdict: 'pass'` with the pack/directory data; without cloud config, returns `verdict: 'unimplemented'`.

ParameterTypeDescription
packstringExplicit knowledge pack name. One of: gcp, firebase, aws, cloudflare, vercel, netlify, tax, hybrid. When provided, overrides tenant-based routing. Omit to let server route by tenant_id.
tenant_idstringTenant identifier. When provided (and pack is omitted), the server looks up Tenant.cloud_provider and dispatches to the matching pack. Ignored when pack is also provided.