Skip to main content

MCP server for ProofFlow – audit infrastructure for AI coding agents

Project description

ProofFlow MCP Server

MCP (Model Context Protocol) server that exposes ProofFlow's audit capabilities as tools for Claude Code and Codex.

What it does

Lets AI coding assistants trigger ProofFlow workflows directly:

  • Scan folders — index files with SHA-256 hashes, create audit Cases
  • Code review — analyze git diffs, generate evidence-backed risk claims
  • Suggest actions — generate file organization suggestions
  • Approve & execute — run pending actions (with policy gate awareness)
  • Export Proof Packets — generate shareable markdown audit reports
  • Search — full-text search across indexed artifacts
  • Undo — reverse executed actions

Prerequisites

  • Python 3.11+
  • ProofFlow backend running on http://127.0.0.1:8787

Installation

cd mcp-server
pip install -e .

For development (includes test dependencies):

pip install -e ".[dev]"

Note: Install in a separate virtualenv from the backend to avoid starlette version conflicts between FastAPI and the MCP SDK.

Configuration

Claude Code

Add to your project's .mcp.json or ~/.claude/settings.json:

{
  "mcpServers": {
    "proofflow": {
      "command": "python",
      "args": ["-m", "proofflow_mcp"],
      "env": {
        "PROOFFLOW_BASE_URL": "http://127.0.0.1:8787"
      }
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "proofflow": {
      "command": "proofflow-mcp",
      "env": {
        "PROOFFLOW_BASE_URL": "http://127.0.0.1:8787"
      }
    }
  }
}

Codex

Add to your Codex MCP configuration with the same command/args pattern.

Environment Variables

Variable Default Description
PROOFFLOW_BASE_URL http://127.0.0.1:8787 ProofFlow backend URL
PROOFFLOW_TIMEOUT 30 HTTP request timeout in seconds
PROOFFLOW_API_KEY (unset) API key for backend auth (optional)
PROOFFLOW_MCP_MAX_CONCURRENT 5 Max concurrent MCP tool calls

Available Tools

Tool Description
proofflow_health Check backend connectivity
proofflow_scan Scan a folder, create Case + Artifacts
proofflow_suggest Generate cleanup suggestions for a scanned Case
proofflow_review AgentGuard code review on a git repo
proofflow_status Get full Case status (artifacts, claims, actions)
proofflow_approve_execute Approve and execute a pending action
proofflow_export_packet Export Case as Proof Packet (markdown)
proofflow_search Full-text search across artifacts
proofflow_list_cases List all Cases
proofflow_list_actions List actions for a Case
proofflow_undo Undo an executed action
proofflow_decide Create a decision to approve/reject a policy gate

Usage Example

In Claude Code, once configured:

> Review the code changes in this repo for safety

Claude will call proofflow_review with the current repo path,
creating an AgentGuard Case with evidence-backed claims.

Running Tests

cd mcp-server
python -m pytest tests/ -v

Running the Server Directly

python -m proofflow_mcp

The server communicates via stdio (stdin/stdout) per the MCP protocol.

Architecture

Claude Code / Codex
    ↓ (MCP stdio)
ProofFlow MCP Server
    ↓ (HTTP)
ProofFlow Backend (localhost:8787)
    ↓
SQLite DB + Local Files

The MCP server is a thin adapter — all business logic lives in the ProofFlow backend.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proofflow_mcp-0.1.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

proofflow_mcp-0.1.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file proofflow_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: proofflow_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for proofflow_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 21cd3ac03a212f8a324adb656838189dbae36197070da048854fd7c0f228d9c9
MD5 283acb321c7f9baa98710da82ebac3bd
BLAKE2b-256 e348d3aaa550dae0c52def0ae8daa9399291c93ba0ca5697c99cdcc7e1bcfa8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for proofflow_mcp-0.1.1.tar.gz:

Publisher: publish-mcp.yml on Hyperion-GPU/ProofFlow-v0.1

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file proofflow_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: proofflow_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for proofflow_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab2f878aa428fbc092138886b21bc806a3f9bb2f7422aca0b30960cf515236d8
MD5 db8bd1eeed8b0fd12379390c45b82564
BLAKE2b-256 881f4d4a2da6f7195bf802a22e855fec4e0483475e8f6c2bf433d7969e88225a

See more details on using hashes here.

Provenance

The following attestation bundles were made for proofflow_mcp-0.1.1-py3-none-any.whl:

Publisher: publish-mcp.yml on Hyperion-GPU/ProofFlow-v0.1

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page