paper-ops
Provides tools for auditing LaTeX papers, generating LaTeX macros from experiment artifacts, and checking citations, cross-references, build logs, and timing disclosures.
Provides tools for checking and compacting Markdown living documents, archiving older sections, and auditing Markdown review/revision reports for grounded citations and anchors.
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.
paper-ops
Zero-dependency paper lifecycle toolkit & MCP server for Codex and Antigravity (AGY).
Built from real multi-wave ML/systems research workflows to stop the five recurring paper-engineering failures:
Living-doc context bloat (
docs-check/docs-compact): Multi-wave research logs (PLAN.md,RESULTS.md,METHOD.md,GOAL.md,RELATED.md) quietly grow past 500 KB and blow up agent context windows.docs-compactlosslessly archives older##waves intoarchive/<stem>_archive_<YYYYMMDD>.md, writes an indexedarchive/ARCHIVE_MAP.mdwith SHA-256 digests, and inserts a compact pointer table in the live doc. Dry-run by default; requires--apply.Artifact-to-LaTeX number drift (
sync-macros/verify-claims): Generates\newcommandmacros directly from experiment.jsonartifacts plus a SHA-256numbers_provenance.json, and detects stale macros or mutated source artifacts before submission.Incomplete timing & correctness disclosures (
audit-timing): Audits.tex(recursively via\input/\include) and.mdreports against 7 mandatory dimensions (hardware/precision/stack, warmup/repeats/sync/workload, variance/seeds/statistics, isolation/shared-host contention, baseline parity, paired quality/correctness, scope/limitations) and optionally validatestiming_attestation.jsongenerated bylab-gpu-steward.4-Gate Pre-Submission Audit (
gate):Gate 1 — Citations & Provenance: Undefined
\cite*keys, incomplete.bibentries, andCITATION_PROVENANCE.mdcoverage.Gate 2 — Claims, Cross-Refs, Macros & Placeholders: Missing
\inputs, undefined\ref/\eqref/\cref, duplicate\labels, unresolvedTBD/TODO/FIXME/XXX/??/\todo{}, and optional manifest macro drift.Gate 3 — Timing & Correctness Disclosure: 7-dimension audit + optional
timing_attestation.json.Gate 4 — Build Log & Rendered PDF Hygiene: Inspects
.logfor fatal errors, undefined control sequences/refs/cites, multiply-defined labels, and severeOverfull \hbox; verifies.pdfheader, non-zero size, staleness vs.tex/.bib, and page count (whenpdfinfois available).
Grounded Review Gate (
audit-review): Verifies that review, revision, or rebuttal Markdown reports cite real local artifact paths on disk, concrete Section/Table/Figure anchors, and avoid unanchored sweeping verdicts.
Installation
Pure Python 3.11+ standard library (zero third-party dependencies):
git clone https://github.com/WhoJay0609/paper-ops.git
cd paper-ops
pip install --no-build-isolation --no-deps -e .Or run directly without installing:
PYTHONPATH=src python3 -m paper_ops --versionRelated MCP server: Gumi-MCP
Plug into Codex & Antigravity (AGY)
Print ready-to-paste config snippets:
paper-ops install-config --host all --repo-dir /path/to/paper-ops1. Codex (~/.codex/config.toml)
[mcp_servers.paper_ops]
command = "paper-ops"
args = ["mcp"]
startup_timeout_sec = 152. Antigravity (~/.gemini/config/mcp_config.json)
{
"mcpServers": {
"paper-ops": {
"command": "paper-ops",
"args": ["mcp"]
}
}
}3. Agent Skill Symlinks (Both Hosts)
ln -sfn "/path/to/paper-ops" "$HOME/.codex/skills/paper-ops"
ln -sfn "/path/to/paper-ops" "$HOME/.gemini/config/skills/paper-ops"Quick Examples
# 1. Check living-doc size budgets
paper-ops docs-check /path/to/paper-repo --max-kb 100
# 2. Preview lossless compaction (dry-run by default)
paper-ops docs-compact --doc doc/RESULTS.md --keep-recent 4 --json
# Apply compaction
paper-ops docs-compact --doc doc/RESULTS.md --keep-recent 4 --apply
# 3. Sync JSON artifacts -> LaTeX macros + SHA-256 provenance
paper-ops sync-macros --manifest paper/paper_ops_macros.json
paper-ops verify-claims --manifest paper/paper_ops_macros.json --tex paper/main.tex --json
# 4. Run 4-Gate Pre-Submission Audit
paper-ops gate --tex paper/main.tex --json
# 5. Audit 7-dimension timing disclosure + GPU timing attestation
paper-ops audit-timing paper/main.tex --attestation runs/timing_attestation.json --json
# 6. Grounded Review Gate
paper-ops audit-review --report paper/report.md --project-root paper --jsonManifest Format (paper_ops_macros.json)
{
"output_tex": "generated/numbers.tex",
"provenance_json": "generated/numbers_provenance.json",
"macros": [
{
"name": "SpeedupMain",
"source": "../results/summary.json",
"key": "decode.speedup_vs_dense",
"format": "{:.2f}\\times",
"description": "End-to-end decode speedup on A800"
}
]
}MCP Tools
The built-in pure-stdlib stdio MCP server (paper-ops mcp) supports both newline-delimited JSON-RPC and Content-Length framing and exposes 6 read-only tools:
paper_ops_docs_checkpaper_ops_compact_previewpaper_ops_verify_claimspaper_ops_audit_timingpaper_ops_gatepaper_ops_audit_review
Testing
PYTHONPATH=src python3 -m unittest discover -s tests -vLicense
MIT — see 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
Run verified read-only code tools: quant diagnostics + agent-ops preflight, no source exposure.
Keyless, read-only checks of Intentrax AI-agent execution proofs. Never executes, signs, or writes.
Checks RAG citations against their sources (CrossSource method), plus claim checks. Read-only, free.
ArXiv to code, replication audits, paper contradictions, citation audit, prose forensics.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides read-only repository health scanning tools for drift detection, module reachability, prompt bloat, evidence calibration, and registration completeness, enabling agents to diagnose repositories via MCP.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to safely inspect a local repository's code and metadata while blocking private data from leaving the machine, providing read-only tools for search, change tracking, and integrity verification.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query a repository's verified semantic model, including capabilities, ownership, contracts, constraints, impact, health, and verification status, without re-deriving project facts. It exposes read-only tools for inspecting, reasoning about, and verifying the provenance-tracked surface.2Apache 2.0
- AlicenseAqualityBmaintenanceEnables MCP-capable assistants to run read-only AI governance inventory checks, assemble Decision Packs, and validate signed Agent Trust Passports against pinned upstream tooling, returning every result as non-authorizing with authority_effect NONE.3Apache 2.0