prooftrail

ProofTrail MCP Server

apps/mcp-server is the governed MCP side road for ProofTrail.

It exposes this repository’s automation, reporting, and register orchestration flows as MCP tools for external AI clients without replacing the canonical public mainline.

This README documents a repo-native MCP surface and a later-lane package contract. It is not proof that ProofTrail already has a published registry package, published Docker image, or official vendor integration.

The repo now also materializes the official MCP Registry submission descriptor at apps/mcp-server/server.json, but that artifact still does not imply a live registry listing.

API vs MCP In One Sentence

If you are a builder, do not choose between them by fashion. Choose by the shape of your integration:

This is also the truthful integration shape for Codex-, Claude Code-, OpenHands-, OpenCode-, and OpenClaw-style coding agents:

That includes Codex-, Claude Code-, OpenHands-, OpenCode-, OpenClaw-, and other AI-agent-shell workflows. The truthful pitch is not that this repo replaces those shells. The truthful pitch is that it gives them a governed browser-evidence and recovery layer.

For the direct search-intent page, see ProofTrail for Coding Agents and Agent Ecosystems.

When to Use It

This is also the truthful fit for Codex, Claude Code, OpenHands, OpenCode, OpenClaw, and similar tool-using agent shells when they need:

Use MCP after you already understand the main product story:

As a practical rule of thumb:

Core Commands

pnpm mcp:start
pnpm mcp:check
pnpm mcp:test
pnpm test:mcp-server:real

Builder Quick Path

Use this order if you are integrating ProofTrail into another agent stack:

  1. verify the API/generated-client contract is current
pnpm test:contract

That repo-native contract pass already includes generated-client freshness.

  1. optionally widen the contract check if you also want the endpoint coverage gate
pnpm contracts:check-openapi-coverage
  1. verify the MCP surface still matches the checked-in adapter contract
pnpm mcp:check
pnpm mcp:test
  1. only then connect your MCP client to this server

That sequence keeps the contract layer and the governed tool layer honest before you attach a higher-level agent shell.

Architecture

flowchart LR
  A["MCP Client"] --> B["apps/mcp-server"]
  B --> C["packages/orchestrator (uiq CLI)"]
  B --> D["backend FastAPI"]
  C --> E[".runtime-cache/artifacts/runs"]
  D --> E

Local Prerequisites

If you are deciding whether you should be here or in the API docs first:

The checked-in generated client is a repo-local helper, not a published SDK.

Install Surfaces

Registry submission artifact:

Use docs/reference/mcp-distribution-contract.md for the exact current-vs-future install contract.

MCP Docker Surface

This repo now includes a dedicated MCP container contract at apps/mcp-server/Dockerfile.

That container surface is intentionally narrow:

Repo verification command:

pnpm mcp:container:smoke

Environment Variables

Real vs Stubbed Test Boundaries

What This Surface Is Not