physproof-site
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
PhysProof Monograph & Exhibition (physproof-site v2.0.0)
A Swiss Architectural Monograph, static research exhibition, and AI-native MCP / REST / OpenAPI / SSE control plane for the archived PhysProof-early Lean 4 corpus (1,062 formal-verification sessions, 1,367 Lean 4 modules, 79,627 scanned declarations at 99.22% purity, 650 closed targets, 376 empirical benchmarks, a 42,334-node 2D Proof Atlas, and the 3D Argon WebGL2 cosmos) — live at https://physproof.thisness.us.
Highlights · AI Agent & MCP · Architecture · Repository Layout · Quick Start · Configuration · Security Model · Documentation
Licensed under the MIT License. Sibling pure Lean 4 library: mischa-thisness/PhysProof.
Highlights
AI-Native Read & Write MCP Control (Zero Dependencies):
Universal Stdio & Streamable HTTP MCP (
mcp/physproof_site_mcp.py): Pure Python 3.9+ stdlib server (zeropippackages) supporting both stdio (python3 mcp/physproof_site_mcp.py) and Streamable HTTP (http://127.0.0.1:18436/mcp, protocol versions2024-11-05..2026-01-26).10 Intent-Shaped Tools + 4 Resources + 3 Prompts: Inspect live site metrics and the Honest Ledger, search across all
1,367Lean modules and987session logs, read full Lean 4 module sources directly from the 32 sharded chunks, author or update Flagship Papers and Era Journal chapters with strict Zod-matching frontmatter validation &dry_runpreview, run full link/KaTeX/JSON-shard audits, and triggernpm run build.Local REST API v1 + OpenAPI 3.1 + Live SSE + Web
llms.txt: Exposes/api/v1/*,/openapi.json,/.well-known/agent.json, and/api/v1/eventslocally, plus publisheshttps://physproof.thisness.us/llms.txtand repo-root llms.txt + skills/physproof-site/SKILL.md.Built-In Security Guardrails: Loopback-only (
127.0.0.1) default, browserOrigin:CSRF/DNS-rebinding block (403),Cache-Control: no-store, optional constant-time Bearer token (PHYSPROOF_SITE_MCP_TOKEN), master kill switch (PHYSPROOF_SITE_MCP_ENABLED=false), and strict content-directory path sandboxing.
Curated Swiss Monograph & Honest-Count Exhibition (
https://physproof.thisness.us):8 Distilled Flagship Papers (
/papers/*): KaTeX-typeset longform editions covering AWARENESS A1–A4, Constructive Yang–Mills & the 3×3 Vault, Proof Indigestion, Tegmark Vericoding, P vs NP, Language of Thought (PNAS 2026), 376 Empirical Benchmarks, and It from Bit — each with an explicit Honest Debt Manifest, clickable Lean 4 source anchors, and 1-click BibTeX citation export.30 Legacy Manuscripts Archive (
/papers/archive): Complete audited manifest catalog of all historicalPapers/directories.10 Era Journal Chapters + Searchable 987-Session Chronicle (
/journal/*) & 1,062-Session Playback Scrubber (/live): Synchronized growth curves, honest-audit resets, and milestone replay running purely on static JSON.Three Observatory Scales (
/explore,/atlas,/argon): Instant 1,367-module explorer with static Lean source drawer, GPU-accelerated 2D Proof Atlas (42,334nodes /177,746edges), and 3D Argon WebGL2 + WebAssembly cosmos — all served with zero runtime Workers, zero KV, and zero external CDNs.
Related MCP server: Sumi-Docs-MCP
AI Agent & MCP Integration
Connect any MCP-compatible coding agent (Claude Code, Claude Desktop, Antigravity, Cursor, Codex, VS Code, Windsurf, or OpenAI Agents) directly to this repository to inspect the formal Lean 4 corpus, verify Honest-Count claims, author new MDX papers/chapters, and run static builds.
1-Step MCP Connection
Option A — Stdio MCP (Recommended · Zero Dependencies, No Background Server):
{
"mcpServers": {
"physproof-site": {
"command": "python3",
"args": ["/path/to/physproof-site/mcp/physproof_site_mcp.py"]
}
}
}Option B — Streamable HTTP MCP (--http --port 18436):
python3 mcp/physproof_site_mcp.py --http --port 18436{
"mcpServers": {
"physproof-site": {
"url": "http://127.0.0.1:18436/mcp"
}
}
}For VS Code (.vscode/mcp.json), use "servers": { "physproof-site": { "type": "http", "url": "http://127.0.0.1:18436/mcp" } }, or print any client config automatically:
python3 mcp/physproof_site_mcp.py --print-config [http|stdio|claude|cursor|antigravity|codex|vscode]MCP Tools, Resources & Prompts
Tool | Read-Only | Capabilities |
| Yes | Site metadata, live URL, content & Lean shard counts, build status, MCP status |
| Yes | Authoritative Honest Ledger metrics, epistemic breakdown, benchmarks, landmarks & dead ends |
| Yes | Fast search across 1,367 Lean modules/symbols, 987 sessions, papers, journal, or full Lean source |
| Yes | Fetch full or line-sliced Lean 4 source & import/audit metadata from |
| Yes | List all Flagship Papers, Era Journal chapters, 30 Archive manuscripts, and all Astro routes |
| Yes | Read parsed YAML frontmatter, MDX body, heading outline, and Lean anchor links |
| No | Create or update a Flagship MDX paper ( |
| No | Create or update an Era Journal MDX chapter ( |
| Yes | Validate all MDX frontmatter, internal & Lean links, line bounds, KaTeX math balance, and 32+ JSON shards |
| No | Execute |
4 Live Resources (
resources/read):physproof-site://status,physproof-site://ledger,physproof-site://papers,physproof-site://journal.3 Built-In Prompts (
prompts/get):draft-flagship-paper,audit-monograph-honesty,explore-lean-corpus.
What Your AI Agent Can Do (Example Prompts)
Verify Honest-Count claims against static Lean 4 shards (Read): "Cross-check our Yang–Mills flagship paper's line citations against
PhysProof.Targets.YangMillsMassGapand verify the exact epistemic breakdown in the Honest Ledger." → callssite_read_content,site_read_lean_module, andsite_ledger(section="epistemic").Search across 1,367 Lean modules & 987 session logs (Read): "Find every session log and Lean declaration mentioning Strong Subadditivity or proof indigestion across the archive." → calls
site_search_corpus.Author or revise a Flagship Paper with schema preview (Write + Guardrail): "Draft an updated MDX paper with KaTeX equations and Honest Debt Manifest, preview it with
dry_run: true, then write it once Zod frontmatter and math balance pass." → callssite_write_paper(dry_run=true)→site_write_paper(dry_run=false)(strict slug & content-directory sandbox prevents escapingsrc/content/papers/).Publish an Era Journal chapter (Write): "Add a new Era Journal dispatch summarizing sessions 1050–1062 and link the corresponding Lean source anchors." → calls
site_write_journal_chapter.Audit every link, KaTeX block & shard, then build
dist/(Read + Write): "Validate all 18 MDX files, internal links, line bounds, and 32 Lean JSON chunks, then run a clean productionnpm run build." → callssite_validate_contentfollowed bysite_build.
Local REST API v1, OpenAPI 3.1 & Real-Time SSE
When running --http --port 18436, every capability is also available over standard JSON HTTP:
Discovery & Live Stream:
GET /.well-known/agent.json,GET /openapi.json,GET /api/v1/status,GET /api/v1/ledger,GET /api/v1/search,GET /api/v1/lean,GET /api/v1/content,GET /api/v1/content/<collection>/<slug>,GET /api/v1/validate,GET /api/v1/events(text/event-streamSSE).Write & Build (
POST):/api/v1/papers,/api/v1/journal,/api/v1/build,/api/v1/tool/<tool_name>.
# Inspect site status & Honest Ledger epistemic counts
curl -s http://127.0.0.1:18436/api/v1/status
curl -s "http://127.0.0.1:18436/api/v1/ledger?section=epistemic"
# Read Lean 4 source directly from static CDN shards
curl -s "http://127.0.0.1:18436/api/v1/lean?module=PhysProof.Targets.YangMillsMassGap&start_line=520&end_line=555"
# Validate all 18 MDX files + 32 Lean chunks + /api/* JSON shards
curl -s http://127.0.0.1:18436/api/v1/validate
# Subscribe to live write & build SSE events
curl -N http://127.0.0.1:18436/api/v1/eventsSee mcp/README.md for full schemas, Bearer auth, and self-test instructions (python3 mcp/physproof_site_mcp.py --self-test).
Architecture & Exhibition Surfaces
physproof-site builds to 100% static files (dist/) deployed on Cloudflare Pages Free ($0/mo) — zero KV, zero Durable Objects, zero runtime Workers:
Route | Surface | Backing Data |
| Swiss Monograph Home & Honest Ledger |
|
| 8 Distilled Flagship Editions (MDX + KaTeX + BibTeX) |
|
| 30 Archived Legacy Manuscript Manifests |
|
| 10 Era Chapters + 987-Session Searchable Chronicle |
|
| 1,062-Session Static Playback Scrubber |
|
| 1,367-Module Explorer + Static Lean Source Drawer |
|
| 2D Polar Proof Atlas ( |
|
| 3D Argon WebGL2 + WebAssembly Verification Cosmos |
|
| Web AI Agent Discovery & Search Indexing |
|
Repository Layout
physproof-site/
├── src/
│ ├── content.config.ts # Strict Zod schemas for papers & journal MDX collections
│ ├── content/papers/ # 8 distilled Flagship Papers (*.mdx)
│ ├── content/journal/ # 10 Era Journal chapters & prover dispatches (*.mdx)
│ ├── components/ # React 19 islands (ExplorerApp, LiveReplayApp, CommandSearch, CitationBox)
│ ├── layouts/ # MonographLayout.astro (OpenGraph, theme toggle, self-hosted fonts)
│ ├── lib/ledger.ts # Typed loaders for ledger.json & papers-archive.json
│ ├── pages/ # Static Astro routes + sitemap.xml.ts
│ └── styles/global.css # Tailwind CSS v4 Swiss editorial typography & tokens
├── public/
│ ├── data/ # ledger.json, modules-index.json, timeline-1062.json, 32 lean-chunks/*.json
│ ├── api/ # Pre-built static /api/atlas/*, state, events, intelligence, unified-validation
│ ├── atlas/ & argon/ # Harmonized static HTML shells for 2D Atlas & 3D Argon
│ ├── vendor/ # Bundled atlas.js, argon.js & zero-KV static-api-shim.js
│ ├── fonts/ # Self-hosted Crimson Pro, Source Sans 3 & JetBrains Mono woff2
│ ├── llms.txt # Live web AI discovery index (https://physproof.thisness.us/llms.txt)
│ └── _headers # Cloudflare Pages Content-Type, immutable caching & security headers
├── mcp/
│ ├── physproof_site_mcp.py # Zero-dependency Python 3.9+ stdlib Stdio/HTTP MCP + REST + OpenAPI + SSE
│ └── README.md # MCP setup, schemas, curl recipes & guardrails
├── skills/
│ └── physproof-site/SKILL.md # Portable cross-agent skill definition
├── scripts/
│ ├── extract-early.py # Optional read-only extractor (PhysProof-early -> public/)
│ └── build-visualizers.mjs # Optional esbuild bundler for 2D Atlas & 3D Argon
├── .github/workflows/
│ ├── ci.yml # Automated build, MCP self-test & zero-PII path check
│ └── deploy.yml # Automated Cloudflare Pages production deploy
├── llms.txt # Repo-root AI discovery index
├── AGENTS.md # Coding-agent quick orientation
├── SECURITY.md # Threat model & vulnerability reporting
├── CONTRIBUTING.md # Editorial honesty standards & PR checklist
└── LICENSE # MIT License (Copyright (c) 2026 Mischa Gentry)Quick Start
Prerequisites
Node.js 20+ / 22 LTS (for Astro 5 static build and dev server)
Python 3.9+ (optional, zero
pippackages — for the MCP server, self-test, and optional data re-extraction)
Build & Run Locally
git clone https://github.com/mischa-thisness/physproof-site.git
cd physproof-site
# Install dependencies
npm ci
# Start local Astro dev server (http://localhost:4321)
npm run dev
# Run isolated MCP & content validation self-test (zero mutation)
python3 mcp/physproof_site_mcp.py --self-test
# Build full static exhibition -> dist/
npm run build
# Preview production build locally
npm run previewConfiguration & Data Pipelines
All static data shards in public/data/ and public/api/ are pre-generated and checked in so npm run build works completely standalone with no external corpus required.
If you also hold a local checkout of the archived PhysProof-early corpus and want to regenerate shards or re-bundle the visualizers, configure paths via environment variables (portable relative defaults are used if unset):
Environment Variable | Default | Purpose |
| Repository root | Target |
|
| Read-only archived corpus directory for |
| (unset / optional) | Optional directory containing archived |
| (unset / loopback-only) | Optional Bearer token required for remote HTTP MCP/REST clients |
|
| Master kill switch ( |
| (unset / direct local) | Optional HTTP MCP URL to proxy to when running in stdio mode |
# Optional: re-extract static JSON & Lean chunks (strictly read-only on PhysProof-early)
PHYSPROOF_EARLY_DIR=../PhysProof-early python3 scripts/extract-early.py
# Optional: re-bundle 2D Proof Atlas & 3D Argon visualizers
PHYSPROOF_EARLY_DIR=../PhysProof-early node scripts/build-visualizers.mjsSecurity Model
100% Static Production Site:
https://physproof.thisness.usruns zero server-side code, zero cookies, and zero runtime databases, withX-Content-Type-Options: nosniffandReferrer-Policy: strict-origin-when-cross-originenforced viapublic/_headers.Loopback-Only Local MCP Server:
mcp/physproof_site_mcp.py --httpbinds strictly to127.0.0.1:18436by default and refuses non-loopback binds unlessPHYSPROOF_SITE_MCP_TOKEN(or--token) is configured.Browser CSRF / DNS-Rebinding Defense: All HTTP MCP, REST, and SSE endpoints reject any request carrying a browser
Origin:header (403 browser_origin_forbidden) and returnCache-Control: no-store.Strict Content Sandbox & Constant-Time Auth: Write tools validate slugs against
^[a-z0-9][a-z0-9-]{0,80}$and verify resolved paths stay insidesrc/content/papers/orsrc/content/journal/. Token verification useshmac.compare_digest, and secrets are automatically redacted from JSON payloads.
AI Authorship & Provenance
Website, Monograph & AI-Native MCP Server (
physproof-site): The Astro 5 static exhibition, Swiss Architectural Monograph design system, distilled flagship papers, 32-shard Lean reader, static 2D/3D visualizer bundles,/llms.txt, and MCP/REST/OpenAPI/SSE corpus server were generated and built by Gemini 4 Neon (Extra High / XHigh reasoning effort) in Google Antigravity, under the direction and review of Mischa Gentry.Exhibited Research Corpus (
PhysProof-early, Sessions 001–1062, 9,773 commits): Unlike the standalone apps in this portfolio, the underlyingPhysProof-earlyLean 4 corpus was built collaboratively across four AI agent lineages under human direction by Mischa Gentry (March–November 2026):
Collaborator / Model Family | Exact Model Versions & Context Observed | Harness / Surface | Recorded Reasoning Effort | Verified Footprint in |
Anthropic Claude Opus |
| Claude Code CLI & autonomous workflow fleets |
| 3,807 co-authored commits (2026-03-12 → 2026-11-19); primary theorem formalizer, integrator, honesty/verification infrastructure, |
Anthropic Claude Fable |
| Claude Code CLI ( |
| 702 co-authored commits (2026-06-10 → 2026-11-12); core proof waves, multi-branch Gemini/Codex integration, narrative & paper synthesis. |
Anthropic Claude Sonnet |
| Claude Code CLI | Not logged per-commit | 7 co-authored commits (early 2026-03-18; later superseded by Opus/Fable-only proof policy). |
OpenAI Codex / GPT-6 Astra |
| Codex CLI & Codex Desktop (Mac satellite & Linux) | Not logged per-commit in git trailers (high-reasoning formalization & verification sessions) | 16 |
Google Gemini |
| Google AI Studio (Mar–Apr 2026), Gemini CLI ( |
| 127 Gemini/Argon/Antigravity-attributed commits & merges (2026-03-16 → 2026-11-13) + 20 archived AI Studio / Antigravity / Gemini CLI sessions; early architecture audits (s023–035), WebGL2+WASM 3D Atlas PhysProof-Argon ( |
Muse |
| Muse desktop/chat workspace | Not logged in export | Independent adversarial audit of |
Commits without a Co-Authored-By: trailer include principal human commits by Mischa Gentry, automated loop/heartbeat/state-sync commits, and cross-seat merge receipts. Where a harness did not record per-commit reasoning effort in git metadata, this table states so explicitly rather than inferring values.
Documentation
mcp/README.md — MCP stdio & Streamable HTTP setup, 10 tools, 4 resources, 3 prompts, REST/SSE API, and guardrails.
llms.txt & public/llms.txt — Machine-readable discovery indices for coding agents and web LLMs.
AGENTS.md — Concise workspace reference for autonomous coding agents.
skills/physproof-site/SKILL.md — Drop-in portable AI agent skill.
SECURITY.md — Security policy, trust boundaries, and vulnerability reporting.
CONTRIBUTING.md — Honest-Count editorial standards and contribution checklist.
LICENSE — MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Lean 4 MCP server: compile, prove theorems, and formalize math with Mathlib.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Turn a GitHub repo or docs site into agent-ready context: pack it or search it, over MCP.
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server for agentic interaction with the Lean theorem prover via LSP, providing tools for understanding, analyzing, and interacting with Lean projects.2123MIT
- AlicenseNot gradedqualityDmaintenanceRead-only MCP server for Markdown, MDX, and OpenAPI docs, exposing list, search, fetch, and OpenAPI spec tools over stdio.1MIT
- AlicenseNot gradedqualityBmaintenanceExposes a living systems memory vault to autonomous agents, letting them search notes with BM25 ranking, read sections within token budgets, extract API/port/schema contracts, compute dependency blast radius, and run machine-verifiable invariant assertions before mutating code. It also supports surgical frontmatter edits, schema linting, wikilink integrity checks, and worklog recording, over stdio MCP.MIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to read, navigate, and query long-term memory stored as readable, reviewable source files, exposing paged catalogs, indexed searches that explain their misses, bounded relation traces, link diagnostics, raw file access, and preflight checks of drafts against MUST constraints. It serves this read-only by default over stdio so any MCP client can start from a memory catalog and keep reading toward the answer instead of relying on a single similarity guess.2MIT