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.0.tar.gz (11.1 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.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proofflow_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 11.1 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.0.tar.gz
Algorithm Hash digest
SHA256 da86ccd2fda474c9522053e922fbb8bd00ec19729e94c74a08883d68b8e9939b
MD5 9c18cbc2fad6627ab220de32b77cbd1e
BLAKE2b-256 d96916dec6a4c9d7159181d116791e9183d3e7b238aa554c0b7cc4887deb5cc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for proofflow_mcp-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: proofflow_mcp-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c7fae5660e44340ece5dcc6821f89db71616ecad82f88e0003d92d71b6cec87
MD5 f3be4eebd9f030a1d1342c33746750ad
BLAKE2b-256 a6b46c877c8aef3974f2df5fb790f5c60c0027c5f210726392cf1217a265eb32

See more details on using hashes here.

Provenance

The following attestation bundles were made for proofflow_mcp-0.1.0-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