SVA-Forge Guard MCP Server
by eyeoverthink
README.md
# SVA-Forge Guard (Codegeist 2026)
**Fail-closed AI verification, split-token PII/secret sealing with `<untrusted>` Sentinel quarantine, hidden Unicode stego-injection defense, and cryptographic execution receipts for Atlassian Jira, Confluence, Rovo Agents, and MCP workflows.**
- **Live Zero-Backend Interactive Simulator (GitHub Pages):** https://eyeoverthink.github.io/sva-forge-guard/
- **Open-Source Dependency Disclosure:** Powered by the published zero-dependency npm package [`@eyeoverthink/sva-gate@1.0.0`](https://www.npmjs.com/package/@eyeoverthink/sva-gate) (Apache-2.0, also open-source at [`eyeoverthink/sva-gate`](https://github.com/eyeoverthink/sva-gate)).
## Codegeist 2026 Alignment
| Track / Bonus Category | How `SVA-Forge Guard` Delivers |
| --- | --- |
| **Apps for Software Teams** | Protects Jira issues & Confluence ADRs/RFCs with deterministic PII sealing, CI/CD receipt verification, and hallucination checks. |
| **Best Agents (Rovo)** | Native `rovo:agent` (`SVA-Forge Guard`) backed by 4 structured `action` modules and fail-closed `sva-guard-prompt.txt` guardrails. |
| **Best Atlassian MCP App** | Built-in zero-dependency stdio JSON-RPC 2.0 MCP server (`mcp/sva-forge-mcp.mjs`, 5 tools) designed to run alongside the Atlassian Remote MCP Server. |
## Architecture (3 Fail-Closed Verification Layers)
```text
Jira Issue / Confluence RFC
│
├─► Layer 1 (Privacy + Stego Gate): scanUnicodeStego() + StreamSealGuard + wrapUntrusted()
│ Strips zero-width / variation-selector / Unicode-tag stego injections
│ Seals API keys, AWS keys, SSNs, emails across arbitrary chunk boundaries
│ Wraps flagged content inside <untrusted> + [SENTINEL WARNING] -> SEALED + QUARANTINED
│
├─► Layer 3 (Epistemic Judge): auditRfcDocument() via SVA-JEV/1
│ Verifies verbatim >=12-char quotes, planted-fake trap controls, and
│ zero-LLM new_terms scanning (catches invented CVEs / ticket IDs / metrics)
│
└─► Layer 2 (Execution Receipt Gate): OPEG/1 + SVA-ER/1 + IETF AER-1 v0.4
Blocks DIRECT_INFERENCE & tampered deliverables fail-closed; mints
Ed25519 + RFC 6962 Merkle signed audit receipts for Jira comments
```
## Live Simulator Scenarios (`https://eyeoverthink.github.io/sva-forge-guard/`)
| Button / Scenario | What It Proves | Expected Verdict Badge |
| --- | --- | --- |
| **1. Seal PII + Scan Stego** | Seals secrets, emails, and SSNs across 9-char chunks, strips zero-width + variation selectors, flags prompt injection, and wraps output in `<untrusted>` with `[SENTINEL WARNING]` | `SEALED + QUARANTINED` |
| **2. Mint & Verify SVA-ER/1** | Real browser `crypto.subtle` Ed25519 signing + RFC 6962 Merkle root + SHA-256 deliverable binding | `PASS` |
| **3. Test Tamper / DIRECT_INFERENCE** | Rejects ungrounded `DIRECT_INFERENCE` claims and 1-byte deliverable modifications fail-closed | `BLOCK` |
| **4. Audit Grounded RFC** | Verifies verbatim `>=12`-char source quote and zero invented `new_terms` | `PASS` |
| **4b. Test Hallucinated CVE** | Deterministically blocks invented identifiers (`CVE-2026-99999`, `PROJ-8842`, `99.99`) | `BLOCK` |
| **5. Run Full 3-Layer Rovo Pipeline** | Executes Layer 1 -> Layer 3 -> Layer 2 and emits an Ed25519-signed `BLOCK_REVIEW` or `ALLOW` Jira audit comment | `BLOCK` (or `PASS` when clean) |
## Quick Start & Local Verification
```bash
npm install
npm run verify-manifest
npm test
```
## Stdio MCP Client Configuration
Pair `SVA-Forge Guard` with any MCP-compatible coding or DevSecOps client (e.g., alongside Atlassian Remote MCP):
```json
{
"mcpServers": {
"sva-forge-guard": {
"command": "node",
"args": ["./mcp/sva-forge-mcp.mjs"]
}
}
}
```
Exposed MCP tools:
1. `forge_seal_jira_issue` — cross-token secret/PII sealing, Unicode stego scanner, and `<untrusted>` Sentinel wrapping.
2. `forge_verify_receipt` — `OPEG/1` fail-closed verifier (`SVA-ER/1` + IETF `AER-1` v0.4).
3. `forge_audit_rfc` — `SVA-JEV/1` RFC quote & deterministic `new_terms` epistemic audit.
4. `forge_mint_rovo_receipt` — Ed25519 + RFC 6962 Merkle action receipt minter.
5. `forge_triage_pipeline` — full 3-layer Jira triage pipeline returning `ALLOW` or `BLOCK_REVIEW` with a signed receipt.
## Deploying to Atlassian Cloud
See [DEPLOY-FORGE.md](./DEPLOY-FORGE.md) for `forge login`, `forge register`, `forge deploy`, and `forge install` steps.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues