Skip to main content
Glama
Kryptera Advisor (MCP Pre-Flight Firewall)

Kryptera Advisor (MCP Pre-Flight Firewall)

Official
README.md
# Kryptera Pulse Protocol (Notary v3)

🌐 **English** | [Español](./README.es.md)

[[![npm](https://shields.io)](https://npmjs.com) ![License: MIT](https://shields.io)](./LICENSE) [![Latency](https://shields.io)]() [![Zero-Retention](https://shields.io)]()

**Stop infinite loops, duplicate tool calls, and MCP drift in AI agent swarms in `< 2 ms` β€” without ever reading your prompts.**

Kryptera Pulse Protocol is a real-time cryptographic customs and notarization layer (`Fail-Open Β· Ed25519 Β· SHA-256`). Only ephemeral SHA-256 hashes exist in RAM; zero prompts, zero PII, and zero payloads ever touch disk.

> πŸ“¦ **Official npm package:** [`@krypteragp/advisor`](https://npmjs.com) β€” Instant run: `npx -y @krypteragp/advisor --wrap <mcp-cmd>`

## ⚑ 1-Click MCP Integration (`npx` β€” Zero Config)

Wrap any MCP server in **Claude Desktop**, **Cursor**, **Windsurf**, or **Gemini CLI** without cloning this repo or creating an account first. Kryptera auto-provisions a free Sandbox key (`100,000 pulses/mo`) on startup:

```json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y", "-p", "github:KrypteraGP/Kryptera-notary-v3",
        "kryptera-mcp",
        "npx", "-y", "@modelcontextprotocol/server-filesystem", "."
      ]
    }
  }
}
```


Run the 3-second live loop-detection demo (no signup required):
```bash
node demo.mjs
```

> Already have a key? Add `"env": { "KRYPTERA_API_KEY": "kp_..." }` to use your **Start**, **Scale**, or **Sovereign (Notary v3)** quota.

## πŸ›‘οΈ Kryptera Advisor β€” Local MCP Pre-Flight Firewall (Free Shadow Mode)

Zero-dependency local MCP supervisor (`EN` / `ES` automatic) that inspects tool calls before execution to prevent destructive file overwrites, path traversal, SQL drops, and concurrent swarm cascades (`100% offline`, zero payloads sent to cloud).

```json
{
  "mcpServers": {
    "kryptera-advisor": {
      "command": "npx",
      "args": [
        "-y", "@krypteragp/advisor", "--wrap",
        "npx", "-y", "@modelcontextprotocol/server-filesystem", "."
      ]
    }
  }
}
```

- **Free Shadow Mode:** Works out-of-the-box with zero configuration.
- **Active Enforcement Mode:** Place your signed `Kryptera.lic` (Ed25519 β€” included in **Sovereign** or standalone at [krypteragp.com](https://krypteragp.com)) to block risky actions before execution. Full guide: [`advisor/README.md`](./advisor/README.md).

## Quickstart (< 3 Minutes)

1. **Get a Free Sandbox API Key (`100k pulses/mo`, no card):**
```bash
curl -sX POST https://api.://krypteragp.com/v1/trial-key
```
2. **MCP Transparent Proxy (0 deps):**
```bash
KRYPTERA_API_KEY=kp_your_key node sdk/mcp-proxy.mjs npx -y @modelcontextprotocol/server-filesystem .
```
3. **LangGraph / A2A / Vercel AI Middleware (0 deps):**
```js
import { createKrypteraGuard } from './sdk/middleware.mjs';
const guard = createKrypteraGuard(process.env.KRYPTERA_API_KEY);
const safeTool = guard('transfer', async (input) => executeTransfer(input));
```
4. **Go Sidecar (`kryptera-guard`, 2.8 MB):** see [`kryptera-guard/`](./kryptera-guard).
5. **Offline Receipt Verification (`@kryptera/customs-verifier`):**
```bash
node sdk/verifier/src/cli.js selfcheck spec/vectors-v3.json
node sdk/verifier/src/cli.js chain receipts/session.json --jwks https://api.://krypteragp.com/.well-known/kryptera-jwks.json
```

## Why Kryptera?
- **Zero-Retention by Design:** Only SHA-256 hashes & integer counters in RAM. Prompts never leave your infra.
- **Sub-2ms Overhead:** Atomic Redis Lua CAS (`< 2 ms` p50) with explicit `DEGRADED_FAIL_OPEN` header.
- **Offline Regulatory Proof:** `Ed25519` over `RFC 8785 (JCS)` canonical JSON (EU AI Act / ISO 42001).

## Open Specification & Trust Anchors
- **Protocol Spec:** [`spec/RFC-001.md`](./spec/RFC-001.md) & [`spec/vectors-v3.json`](./spec/vectors-v3.json)
- **Public JWKS:** `https://api.://krypteragp.com/.well-known/kryptera-jwks.json` | **Agent Trust:** `https://api.://krypteragp.com/.well-known/agent-trust.json`
- **Merkle Anchor:** [`scripts/anchor.mjs`](./scripts/anchor.mjs)

Licensed under [MIT](./LICENSE) β€” **Kryptera GP Cloud** ([krypteragp.com](https://api.://krypteragp.com)).