# Delentia Sovereign AI Operating System [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/delentia-labs/delentia-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 347  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/delentia-sovereign-ai-operating-system

## Description
Sovereign AI OS gateway with FDIA security, RCT-7 thinking, Delta compression & JITNA swarm.

## Tools
Capabilities this server exposes over MCP:

- **evaluate_fdia** — Computes the FDIA safety score F = (D^I) x A to decide whether a proposed action should be authorized before it runs. F is a single 0.0-1.0 number that collapses to exactly 0 whenever A = 0 (no amount of good data can rescue an unauthorized action); otherwise it grows with D (data quality) raised to the I (intent precision) exponent. AUTHORIZED means F met the policy's safety_threshold (default 0.5); BLOCKED_PREEMPTION or a SECURITY_* verdict means it did not, or A was denied outright — read `verdict` and `reason` to decide how to proceed. USE WHEN: immediately before executing a specific action, especially one that is destructive, irreversible, or security/credential-sensitive. DO NOT USE WHEN: the action is routine and read-only (adds latency for no behavior change), you need to change the rules being checked (use configure_policy instead), or you are still planning multi-step work (use rct_think or orchestrate_swarm first, then evaluate_fdia on the resulting concrete action). OPTIONAL RCT-7 SYNTHESIS: pass `problem_statement` (and optionally `environment_context`/`target_desired_outcome`) instead of `intent_precision` to have this worker run the real RCT-7 7-stage decomposition and derive intent_precision from its actual alignment score (range 0.5-2.0) rather than you supplying an arbitrary number — the response then includes an `rct7_synthesis` field. Omit `problem_statement` for byte-identical behavior to before this option existed. Every call also steps a real, Durable-Object-persisted MEE growth tracker (delta = future_score - 0.5, a governance violation when unauthorized) and returns it as `mee_growth` — see `session_id` below to scope it per-caller instead of the shared deployment-wide default.
- **configure_policy** — Sets the authorization policy that evaluate_fdia checks against FOR YOUR SESSION ONLY. REQUIRES `session_id`: the policy is stored in that session's Durable Object and applies only to evaluate_fdia calls that pass the same session_id; other callers, and calls without a session_id, keep using the deployment's default policy (which this tool cannot change). IMPACT: this is a full REPLACE of your session's policy, not a merge — any rule you don't include is dropped, so resend the complete rule set. REVERSIBLE: yes — call configure_policy again with the previous policy JSON to roll back; no automatic version history is kept, so save the current policy yourself before changing it if you may need to undo. PARAMETER A: each rule assigns a binary authorization gate via `assigned_A` — A=1 lets matching actions proceed to normal F=(D^I)*A scoring, A=0 hard-blocks them regardless of data quality (this is how you make a category of actions always fail evaluate_fdia). USE WHEN: onboarding a new action type, changing RBAC/role rules, or adjusting the safety threshold. DO NOT USE WHEN: you only need to check one action (use evaluate_fdia) or reason about a task (use rct_think) — and avoid calling it speculatively per-request.
- **rct_think** — Performs a structured 7-stage causal reasoning walkthrough (Observe, Analyze, Deconstruct, Reverse Reasoning, Identify Core Intent, Reconstruct, Compare with Intent) to produce an explicit, auditable reasoning trail before acting on a complex or ambiguous task. USE WHEN: a task has multiple plausible approaches or unclear scope and you want a documented plan before execution. DO NOT USE WHEN: the task is simple and unambiguous — this tool only produces a reasoning report, it does not check authorization (pair it with evaluate_fdia before acting) or execute anything itself (pair it with orchestrate_swarm or your own tooling to carry out the plan).
- **compress_context** — Compresses verbose conversation history, logs, or codebase context by deduplicating repeated content lines and, when `aggressive_mode` is true and `intent_focus` is provided, keeping only lines that contain the intent's meaningful keywords (plus one line of context on each side; skipped gaps are marked with "…"). Token reduction is computed fresh per request from the actual input (highly variable — near-zero or even negative on already-short/unique input, higher on repetitive logs) — it is not a fixed guaranteed range. USE WHEN: context is large or repetitive and approaching a token budget; supply `intent_focus` AND `aggressive_mode: true` for real filtering — otherwise only deduplication is applied (measured ~6-12% on real code/logs/docs). Measured on real code/logs/docs (benchmarks/compression-real): aggressive mode cut ~70-75% of tokens and kept the answer line for 100% of questions that reuse the source's words, but only ~60% of paraphrased questions — use the exact identifiers/terms you are looking for in `intent_focus`. DO NOT USE WHEN: you need the content reasoned about (use rct_think) or expect true semantic summarization — this is line-level filtering, not an LLM rewrite, so it can drop details a summarizer would keep.
- **expand_context** — Fetches lines from an original that compress_context stored (retain_original: true). Use it when the compressed text is missing something you need: search by terms (`pattern`: any of the space-separated terms, case-insensitive, with `context_lines` of surrounding lines) or by `start_line`/`end_line`. Returns numbered lines, capped at `max_lines` (default 200, max 400). Much cheaper than re-sending the whole original.
- **orchestrate_swarm** — Decomposes a high-level objective into a JITNA packet — a 6-field record: I (Intent: a normalized action code derived from your objective), D (Data readiness, 0-100%), delta (gap remaining to completion = 100-D), A (which of the 4 pillars — Router, Guardian, Executor, or Scribe — is assigned as primary handler), R (a short rationale string), and M (a key-value memory/context map) — then returns a dispatch roster describing what each of the 4 pillars would handle. USE WHEN: you need to break a broad objective into role-based subtasks or want a standardized packet format for downstream coordination. DO NOT USE WHEN: you need to authorize or execute something — it does not call evaluate_fdia itself, so run evaluate_fdia separately on any subtask (especially ones routed to Executor) before acting on it.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "delentia-sovereign-ai-operating-system": {
    "command": "npx",
    "args": ["-y","delentia-mcp"]
  }
}
```

## Documentation

## What Delentia Sovereign AI Operating System does

Delentia Sovereign AI Operating System exposes six MCP tools for advisory policy checks, structured reasoning, context handling, and task coordination. The tools are intended to be called by an MCP client before or during agent work rather than to execute external actions themselves.

`evaluate_fdia` calculates a deterministic safety score using F = (D^I) × A. The authorization gate A can force the result to zero, while the configured safety threshold determines whether the result is authorized. Responses include a verdict, reason, and SHA-256 audit digest. Optional RCT-7 synthesis can derive intent precision from a seven-stage analysis. `configure_policy` replaces the complete policy for one session, including authorization rules and the threshold.

`rct_think` produces an auditable seven-stage reasoning walkthrough and heuristic alignment score. It is useful for ambiguous or multi-step work, but it neither authorizes nor executes a plan. `orchestrate_swarm` converts a broad objective into a JITNA packet containing intent, data readiness, remaining gap, a primary role, rationale, and memory/context, followed by a roster for the Router, Guardian, Executor, and Scribe roles.

## How it works

The package acts as a small stdio connector while the hosted tools run on Delentia's Cloudflare Global Workers and Durable Objects. MCP clients communicate with the bridge over MCP; a streamable HTTP endpoint is also available through the remote bridge setup.

Policy evaluation is advisory and deterministic for the same inputs. A caller can scope policy and the persisted MEE growth tracker with `session_id`. Context compression performs line-level deduplication and can apply keyword-based filtering in aggressive mode. When the original is retained, `expand_context` retrieves selected lines by search terms or line range instead of requiring the full source to be sent again.

## Setup and configuration

A remote MCP connection can be configured with `mcp-remote`:

```bash
npx -y mcp-remote https://delentia-sovereign-mcp.delentia.workers.dev/mcp
```

The same command can be placed in an MCP client configuration such as Cursor or Claude Desktop. The community sandbox allows 50 daily calls per caller IP on a best-effort basis; `initialize` and `tools/list` are excluded from that count. A Zuplo API key can be supplied for the paid preview tier, either as an authorization header with `mcp-remote` or through `DELENTIA_API_KEY` when using the package CLI. Exceeding the sandbox quota returns HTTP 429 for tool calls.

## Tools and capabilities

- `evaluate_fdia`: score and authorize a concrete proposed action.
- `configure_policy`: replace session-specific authorization rules.
- `rct_think`: produce a seven-stage reasoning and alignment report.
- `compress_context`: deduplicate or keyword-filter long context without an LLM rewrite.
- `expand_context`: retrieve retained source lines by pattern or range.
- `orchestrate_swarm`: create JITNA packets and a four-role dispatch roster.

## Limitations and notes

The tools are advisory. An agent that skips `evaluate_fdia` is not stopped, and the tools do not enforce calls made to other MCP servers. Delentia Guard is the separate local stdio proxy for pre-call enforcement and signed, hash-chained logging.

Compression is line-based rather than semantic summarization. Without aggressive mode and an intent focus, it performs deduplication only; aggressive filtering may omit details, especially when later questions use paraphrased terms. `rct_think` provides a checklist and heuristic score, not a correctness guarantee. `configure_policy` is a full replacement for the selected session and has no automatic version history, so callers should preserve the prior policy if rollback may be needed.

_Full upstream README: https://allmcps.com/mcp/delentia-sovereign-ai-operating-system/readme_

