AI writes. SPARDA proves. Deterministic, offline security gate for AI edits.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
π«π· FranΓ§ais β L'IA Γ©crit. SPARDA prouve. Un gate dΓ©terministe et hors-ligne qui dΓ©tecte quand une modif d'IA retire une garde, expose une route ou casse un invariant β sans clΓ© API, directement dans la boucle d'Γ©dition de l'agent. Pour tout comprendre en 10 minutes (douleur, architecture, vision) : SPARDA-EXPLIQUE.md.
L'IA Γ©crit. SPARDA prouve.
The trust layer for AI-written backends. SPARDA compiles your backend β routes, database queries, state mutations, guards, side-effects β into one deterministic behavior graph, then statically proves what can and can't break before you ship: no unguarded mutation, no broken invariant, no non-atomic aggregate write.
100% local Β· deterministic Β· zero API key Β· no cloud account. It fails loudly on a real risk, and when it can only see part of your app it says PROVEN (PARTIAL) β never a false green. And when it can prove it was not even looking at your whole app, it says PREMISE NOT VERIFIED and claims nothing at all.
From your Express, FastAPI, Flask, Next.js, NestJS or Medusa app β nothing to configure:
Under the hood it compiles your backend into one language-agnostic graph β the Unified Behavior Graph (UBG), serialized as .sparda/ubg.json under the SBIR specification (SPARDA Behavior IR) β and every command is a pass over that graph.
The one thing a text-diff review and a pattern scanner structurally can't do: prove that this specific edit dropped a protection the previous version had. sparda gate diffs the behavior graph before/after an edit and blocks a regression β deterministic, offline, sub-second, exit 2 (the Claude Code PostToolUse contract that stops the agent's edit loop). See it end-to-end in one command, zero setup:
Wire it into Claude Code in one line β the plugin registers a PostToolUse hook that runs npx -y sparda-mcp gate --hook after every Edit/Write, so a guard-removing edit is caught before it lands.
[!IMPORTANT]
The Route-Compilation Proof β reproduce it yourself. SPARDA compiles real open-source monsters to their behavior graph with zero crashes, each in β1β2 seconds: Next.js Dub (579 routes), NestJS Immich (281), MedusaJS (477). It natively resolves deep Dependency Injection, external controllers, and Next.js handlers. One command clones them and re-measures on your machine:Honesty first: compiling a route is a parser result (the number above); proving it safe is a separate per-repo verdict β and most real apps come back NOT_PROVEN, which is the true state, not a failure. (Our full 25-repo corpus stress compiles 3,565 routes at ~150 routes/s; that one needs the corpus checked out.)
What the graph unlocks β 100% local, deterministic, 4 exact-pinned dependencies, zero API key:
| Command | What it does |
|---|---|
prove | The whole trust verdict in one gesture β proof + coverage + premise check + a shareable seal (--json / --markdown) |
apocalypse | Prove the deploy β no guard, invariant, transaction or aggregate boundary can be broken (SARIF + CI gate) |
heal | Self-heal, proven β the gate Copilot Autofix doesn't have: a fix ships only if replay matches, verify still passes, and apocalypse finds no new risk / no dropped guard. Whoever wrote the fix, the machine judges it. |
badge | The shareable artifact β a self-contained SVG badge + README snippet (verdict Β· coverage Β· routes) |
dossier | The public report β one self-contained HTML page: verdict, risks, and SPARDA's own blind spots |
ubg | Compile the codebase to its behavior graph (Express Β· FastAPI Β· Flask Β· Next.js Β· NestJS Β· Medusa natively; any stack via OpenAPI) |
timeless | Time-travel β record a production request, replay it byte-identically, export the bug as a test |
mirror | Execute the graph β serve the compiled behavior over HTTP with no framework and no source |
init / dev | Runtime, optional β expose the graph to AI clients as a live MCP server (+ Twin, Immune, Evolution) |
The prover is the product. The MCP server is one output of the graph, not the point β SPARDA compiles the whole system's behavior, then proves, replays, heals, and (optionally) serves it.
Nomenclature: SBIR is the specification (the format, like "JSON"); UBG is the compiled graph itself (the artifact, ubg.json). The MCP server is one output of the graph, not the product.
Beyond proving, SPARDA can turn your running app into a live MCP server β the graph, executable, with write-safety and an immune layer. This is optional and separate from the prover above.
Scan + inject β run once, from your app's directory:
SPARDA parses your routes (AST), generates a marked /mcp router, injects it into
your app (with a backup), and writes sparda.json. Every step is reversible.
Start your app, then start the bridge:
Connect your client. init prints a ready-to-paste block for
claude_desktop_config.json, pre-filled with your app's name and path:
Claude Code connects to the same bridge. That's it β your running app is now a set of MCP tools your AI can call.
To see SPARDA in action instantly without modifying your codebase:
This runs the entire MCP lifecycle (detect β parse β generate β inject β remove) on a bundled demo app in a temporary folder, in about 10 seconds. For the compiler itself, run npx sparda-mcp ubg then apocalypse on any Express/FastAPI app.
SPARDA is designed as a local organism. To see what it remembers and how much compute it has recycled:
This prints a terminal dashboard aggregating your exposed tools, write opt-ins, proof journal decisions, and crystallized composite tools.
To write a self-contained, offline HTML dashboard at .sparda/report.html, append the --html flag:
To output raw JSON for integration:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sparda)<a href="https://allmcps.com/mcp/sparda"><img src="https://allmcps.com/api/badge/sparda?style=directory" alt="SPARDA on AllMCPs" /></a>