VrtxOmega/omega-brain-mcp

πŸ’» Developer Tools
0 Views
0 Installs

🐍 🏠 🍎 πŸͺŸ 🐧 - Omega Brain MCP Server. Hardened AI execution pipeline prioritizing NAEF logic constraints over narrative LLM hallucination. 15 VERITAS Build Gates for uncompromising determinism, semantic vault integration, and Tri-Node Cortex validations.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "vrtxomega-omega-brain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "vrtxomega-omega-brain-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

VERITAS Omega

OMEGA BRAIN MCP

Governance-First MCP Server β€” VERITAS Gates Β· Cryptographic Audit Ledger Β· Cortex Approval Pipeline

CI Status Version Python License

omega-brain-mcp MCP server


Ecosystem Canon

Omega Brain MCP is the governing cognitive substrate of the VERITAS & Sovereign Ecosystem (Omega Universe). Where other memory layers persist context, Omega Brain enforces it: every execution path passes through the Cortex approval gate, every state transition is sealed to a tamper-proof SHA-3-256 audit ledger, and every artifact claim must survive a 10-gate deterministic build pipeline before a verdict is issued. It does not make trust decisions on behalf of the operator β€” it enforces the constraints the operator has declared, cryptographically and without exception. In the Omega Universe, Omega Brain MCP is the control plane: the point where agent autonomy ends and declared policy begins.

SYSTEM INVARIANT: VERITAS Build does not determine whether code is 'good.' VERITAS Build determines whether code survives disciplined attempts to break it under explicitly declared primitives, constraints, test regimes, boundaries, cost models, evidence, and policy.


Table of Contents


Overview

What It Is

Omega Brain MCP is a self-contained Model Context Protocol (MCP) server that runs as a local process alongside any MCP-compatible AI client. It exposes 26 tools and 9 resources covering four governance domains:

  • Cross-session episodic memory β€” SQLite vault with full-text search, persisted across all restarts
  • 10-gate VERITAS build pipeline β€” deterministic artifact evaluation from INTAKE through TRACE/SEAL
  • Cryptographic S.E.A.L. audit ledger β€” append-only SHA-3-256 hash chain; every operation is sealed
  • Cortex approval gate β€” Tri-Node similarity gate that enforces declared baseline policy on every tool call

Two Python files. One pip dependency. Zero external services.

Compatible clients: Claude Desktop, VS Code Copilot, Cursor, Windsurf, AutoGen, LangChain, CrewAI, LlamaIndex, and any MCP-compliant host.

Omega Agent Bus

Omega Brain Network is the MCP server and vault. Omega Agent Bus is the cross-agent collaboration layer on top of it β€” mail, live drain, watchers, roster, and task queue. PCF MCP is a separate stdio server for contribution gates.

LayerNameDoc
Vault + HTTP MCPOmega Brain NetworkThis README
Agent collaborationOmega Agent Bus (OMSG)docs/OMEGA_AGENT_BUS.md
Contribution gatesPCF MCPpremature-contribution-firewall/docs/MCP.md

Quick start: enable omega-brain-network.service, copy examples/collaboration-roster.json to ~/.omega-brain/collaboration-roster.json, enable omsg-watch@<agent>, drain with omsg-drain <agent> --json during active work.

What It Is Not

  • Not a cloud service. No network egress, no API keys, no telemetry. All data remains on the operator's machine under ~/.omega-brain/ (or OMEGA_BRAIN_DATA_DIR).
  • Not a language model. Omega Brain does not generate text. It governs, routes, stores, and audits agent operations.
  • Not a policy authority. VERITAS gates enforce what the operator declares. The system cannot determine correctness beyond what its evidence and constraints describe.
  • Not a firewall or OS-level isolation layer. See the Threat Model for explicit out-of-scope boundaries.

Features

Cross-Session Episodic Memory

  • Vault (SQLite + FTS5) β€” sessions, entries, and events persist across restarts; auto-loaded at startup via omega://session/preload
  • Semantic RAG provenance β€” 3-tier embedding engine: sentence-transformers β†’ fastembed ONNX β†’ TF-IDF n-gram; always available with no GPU requirement
  • Sealed handoff β€” SHA-256 signed cross-session memory file; auto-loaded on restart, auto-written on task seal

10-Gate VERITAS Build Pipeline

Full deterministic evaluation pipeline: INTAKE β†’ TYPE β†’ DEPENDENCY β†’ EVIDENCE β†’ MATH β†’ COST β†’ INCENTIVE β†’ SECURITY β†’ ADVERSARY β†’ TRACE/SEAL

Every gate returns a structured verdict (PASS, MODEL_BOUND, INCONCLUSIVE, or VIOLATION). The pipeline seals the final result as a cryptographically identified record. Fail-fast on VIOLATION by default.

Cryptographic Audit Ledger (S.E.A.L.)

  • Append-only SHA-3-256 hash chain
  • Every Cortex check, ingest, session log, gate run, and execution is automatically sealed
  • Chain integrity is verifiable at any point; any tampered entry breaks the chain
  • Persisted to omega_ledger.json under the data directory

Cortex Approval Gate

  • Tri-Node similarity gate evaluates every tool call against the operator-declared baseline prompt
  • Hard-block window < 0.45 β€” execution is refused; event sealed to ledger
  • Steer window 0.45–0.65 β€” arguments are corrected toward baseline alignment before execution
  • Blocks NAFE drift (narrative rescue, moral override, authority drift, intent inference) before execution
  • CLAEG state machine governs terminal states: STABLE_CONTINUATION, ISOLATED_CONTAINMENT, TERMINAL_SHUTDOWN; absence of allowed transition is prohibition

Operational Characteristics

  • Two transports β€” stdio (default, MCP standard) and SSE (HTTP streaming for web clients)
  • Docker-ready β€” single Dockerfile, non-root user, unbuffered I/O
  • Single dependency β€” mcp>=1.0.0; optional fastembed or sentence-transformers for higher-quality embeddings
  • Fully local β€” no cloud, no API keys, no external server required

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        MCP CLIENT                               β”‚
β”‚   (Claude Desktop / VS Code Copilot / Cursor / AutoGen / ...)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            β”‚  MCP stdio / SSE (JSON-RPC 2.0)
                            β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   OMEGA BRAIN MCP SERVER                        β”‚
β”‚               omega_brain_mcp_standalone.py                     β”‚
β”‚                                                                 β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚       BRAIN CORE         β”‚  β”‚      VERITAS BUILD GATES     β”‚ β”‚
β”‚  β”‚                          β”‚  β”‚                              β”‚ β”‚
β”‚  β”‚  Cortex Approval Gate    β”‚  β”‚  10-Gate Pipeline            β”‚ β”‚
β”‚  β”‚  (Tri-Node, steer/block) β”‚  β”‚  INTAKE β†’ TYPE β†’ DEPENDENCY  β”‚ β”‚
β”‚  β”‚                          β”‚  β”‚  β†’ EVIDENCE β†’ MATH β†’ COST    β”‚ β”‚
β”‚  β”‚  RAG Provenance Store    β”‚  β”‚  β†’ INCENTIVE β†’ SECURITY      β”‚ β”‚
β”‚  β”‚  (3-tier embeddings)     β”‚  β”‚  β†’ ADVERSARY β†’ TRACE/SEAL    β”‚ β”‚
β”‚  β”‚                          β”‚  β”‚                              β”‚ β”‚
β”‚  β”‚  S.E.A.L. Audit Ledger   β”‚  β”‚  Evidence Engine             β”‚ β”‚
β”‚  β”‚  (SHA-3-256 hash chain)  β”‚  β”‚  (Quality(e), MIS_GREEDY)    β”‚ β”‚
β”‚  β”‚                          β”‚  β”‚                              β”‚ β”‚
β”‚  β”‚  Sealed Handoff          β”‚  β”‚  CLAEG State Machine         β”‚ β”‚
β”‚  β”‚  (SHA-256 cross-session) β”‚  β”‚  NAFE Scanner                β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”‚β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”‚β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              β”‚                                  β”‚
              β–Ό  SQLite                          β–Ό  Pure Python
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚   ~/.omega-brain/   β”‚           β”‚  veritas_build_gates.py β”‚
    β”‚   omega_vault.db    β”‚           β”‚  (stateless, no I/O,    β”‚
    β”‚   omega_ledger.json β”‚           β”‚   reproducible verdicts)β”‚
    β”‚   omega_handoff.jsonβ”‚           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Component Roles

LayerComponentRole
Brain CoreVault (SQLite)Persistent session/entry storage with FTS5 full-text search
Brain CoreS.E.A.L. LedgerAppend-only SHA-3-256 hash chain for tamper-proof audit
Brain CoreRAG ProvenanceSemantic embedding store β€” 3-tier engine (ST / fastembed / TF-IDF)
Brain CoreCortexTri-Node approval gate with steer/block modes
Brain CoreHandoffSHA-256 sealed cross-session memory transfer
Build Gates10-Gate PipelineINTAKE→TYPE→DEPENDENCY→EVIDENCE→MATH→COST→INCENTIVE→SECURITY→ADVERSARY→TRACE/SEAL
Build GatesEvidence EngineQuality(e) formula, MIS_GREEDY independence scoring, Agreement computation
Build GatesCLAEGConstraint-locked state machine with 3 terminal states
Build GatesNAFE ScannerNarrative failure signature detection and auto-seal

πŸ›οΈ Protocol Standard: The omega-brain-mcp is the official execution engine for the VERITAS Ξ©-CODE v2.0 specification. The structural gates here enforce the deterministic claims that power veritas-vault session capture, AEGIS remediation, and Sovereign artifacts.

Verdict System

VerdictPrecedenceMeaning
PASS0 (lowest)All gates satisfied. Artifact is deployable under declared regime.
MODEL_BOUND1Gates pass but resource/coverage/confidence near redline. Deploy with monitoring.
INCONCLUSIVE2Insufficient evidence or timeout. Cannot affirm or deny. Block deploy.
VIOLATION3 (highest)Constraint failure, security vulnerability, or test failure. Block deploy.

Requirements

RequirementDetails
Python3.11 or 3.12
Core dependencymcp >= 1.0.0
OSLinux, macOS, Windows (WSL2 recommended on Windows)
Disk~5 MB for source + SQLite data dir (default ~/.omega-brain/)
Optionalfastembed >= 0.2.0 β€” ONNX embeddings, ~30 MB model cache, no GPU
Optionalsentence-transformers >= 2.0.0 + numpy β€” highest quality embeddings, GPU-capable

Embedding engine auto-selection: The server probes for sentence-transformers first, then fastembed, then falls back to built-in TF-IDF n-gram. You always get semantic search β€” richer models improve recall quality.


Installation

From PyPI

pip install omega-brain-mcp

From Source

git clone https://github.com/VrtxOmega/omega-brain-mcp.git
cd omega-brain-mcp
pip install mcp
# Optional: better embeddings
pip install fastembed                       # recommended β€” fast ONNX, no GPU
pip install sentence-transformers numpy     # best quality, larger download

Docker

docker build -t omega-brain-mcp .
docker run --rm -i omega-brain-mcp                              # stdio mode (MCP standard)
docker run --rm -p 8055:8055 omega-brain-mcp --sse --port 8055  # SSE mode

Run Tests

pip install pytest pytest-asyncio pytest-cov
PYTHONUTF8=1 OMEGA_BRAIN_DATA_DIR=/tmp/omega-test pytest tests/ -v --tb=short

Quickstart

1 β€” Verify the server starts

python omega_brain_mcp_standalone.py --help

2 β€” Run in stdio mode (default)

The server reads JSON-RPC 2.0 messages from stdin and writes responses to stdout. MCP clients manage this process automatically via the config below.

python omega_brain_mcp_standalone.py

3 β€” Run in SSE mode (HTTP streaming)

python omega_brain_mcp_standalone.py --sse --port 8055
# GET  http://localhost:8055/sse      β€” event stream
# POST http://localhost:8055/messages β€” send tool calls

4 β€” Test a tool call manually (stdio)

echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"omega_brain_status","arguments":{}}}' \
  | python omega_brain_mcp_standalone.py

5 β€” Configure your MCP client (see Configuration)


Configuration

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "omega-brain": {
      "command": "python",
      "args": ["/absolute/path/to/omega_brain_mcp_standalone.py"],
      "env": { "PYTHONUTF8": "1" }
    }
  }
}

VS Code / GitHub Copilot

Add to .vscode/mcp.json in your workspace (or user settings):

{
  "servers": {
    "omega-brain": {
      "type": "stdio",
      "command": "python",
      "args": ["/absolute/path/to/omega_brain_mcp_standalone.py"],
      "env": { "PYTHONUTF8": "1" }
    }
  }
}

Cursor

In Cursor Settings β†’ MCP β†’ Add Server:

{
  "mcpServers": {
    "omega-brain": {
      "command": "python",
      "args": ["/absolute/path/to/omega_brain_mcp_standalone.py"],
      "env": { "PYTHONUTF8": "1" }
    }
  }
}

Windsurf / Cascade

In ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "omega-brain": {
      "command": "python",
      "args": ["/absolute/path/to/omega_brain_mcp_standalone.py"],
      "env": { "PYTHONUTF8": "1" }
    }
  }
}

SSE / HTTP Client

{
  "mcpServers": {
    "omega-brain": {
      "type": "sse",
      "url": "http://localhost:8055/sse"
    }
  }
}

Environment Variables

VariableDefaultDescription
PYTHONUTF80Set to 1 on Windows to avoid encoding errors
OMEGA_BRAIN_DATA_DIR~/.omega-brain/Override the data directory for vault, ledger, and handoff files

Integrations

Omega Brain MCP integrates with any MCP-compatible client using standard JSON-RPC 2.0 over stdio or SSE. For framework-specific integration patterns (LangChain, CrewAI, AutoGen, LlamaIndex) see INTEGRATIONS.md and the examples/ directory.

Recommended Integration Pattern

For production use, keep one persistent server process across all calls. This avoids the 2–3s cold-start cost of loading the embedding model and SQLite on every call.

from omega_client import OmegaBrainClient

client = OmegaBrainClient()  # starts server subprocess once

# Governance-first: always run a Cortex check before executing
check = client.call("omega_cortex_check", {
    "tool": "omega_rag_query",
    "args": {"query": "sensitive project data"},
    "baseline_prompt": "You are a data analysis agent. Only access approved datasets."
})
# {"approved": true, "similarity": 0.71, "verdict": "APPROVED", "node_votes": [1, 1, 1]}

# Memory retrieval
result = client.call("omega_rag_query", {"query": "VERITAS evidence thresholds", "top_k": 5})

# Run VERITAS build gate pipeline
verdict = client.call("veritas_run_pipeline", {"claim": {...}, "regime": "baseline"})

# Session persistence β€” always seal before terminating
client.call("omega_seal_task", {})
client.close()

Quick-Reference Pattern Table

GoalToolNotes
Pre-action guard (binary)omega_cortex_checkReturns approved: true/false
Pre-action guard + auto-fixomega_cortex_steerReturns steered args if in 0.45–0.65 window
Full Cortex-wrapped executionomega_executeOmega Brain tools only; returns steered_args for external tools
Memory / context retrievalomega_rag_query / omega_preload_contextUse at agent task start
Human-readable auditomega_brain_reportSEAL chain tail, blocked count, VERITAS avg
Session persistenceomega_seal_taskOne call, no fields required
Full artifact evaluationveritas_run_pipeline10-gate deterministic verdict + seal hash

Usage Examples

All examples use JSON-RPC 2.0. In practice, your MCP client sends these automatically when you invoke a tool. The shell one-liner form is useful for testing.

Check server health

echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"omega_brain_status","arguments":{}}}' \
  | python omega_brain_mcp_standalone.py

Response (abbreviated):

{
  "result": {
    "content": [{
      "type": "text",
      "text": "{\"vault_sessions\": 3, \"vault_entries\": 42, \"rag_fragments\": 18, \"ledger_entries\": 127, \"embedding_engine\": \"fastembed\", \"omega_status\": \"OK\"}"
    }]
  }
}

Cortex approval check

{
  "jsonrpc": "2.0", "id": 4,
  "method": "tools/call",
  "params": {
    "name": "omega_cortex_check",
    "arguments": {
      "tool": "omega_rag_query",
      "args": {"query": "sensitive user data"},
      "baseline_prompt": "You are a data analysis agent. Only access approved datasets."
    }
  }
}

Response:

{"approved": true, "similarity": 0.71, "verdict": "APPROVED", "node_votes": [1, 1, 1]}

Run the full VERITAS pipeline

{
  "jsonrpc": "2.0", "id": 5,
  "method": "tools/call",
  "params": {
    "name": "veritas_run_pipeline",
    "arguments": {
      "claim": {
        "claim_id": "claim-001",
        "artifact_type": "function",
        "description": "Validates user authentication tokens",
        "primitives": ["jwt", "hmac-sha256"],
        "evidence": [
          {
            "id": "e1", "type": "test_suite",
            "provenance": 0.9, "repeatability": 0.95,
            "freshness": 0.85, "env_match": 1.0
          }
        ],
        "constraints": [{"op": "lte", "left": "latency_ms", "right": 50}],
        "cost": {"cpu_p95": 0.3, "memory_gb_p95": 0.1},
        "security": {"sast_findings": [], "secrets_found": false}
      },
      "regime": "baseline"
    }
  }
}

Response:

{
  "verdict": "PASS",
  "gates_passed": 10,
  "seal_hash": "a3f9c2...",
  "pipeline_ms": 12,
  "omega_status": "OK"
}

NAFE scan (detect AI narrative failures)

{
  "jsonrpc": "2.0", "id": 6,
  "method": "tools/call",
  "params": {
    "name": "veritas_nafe_scan",
    "arguments": {
      "text": "Although the tests failed, the developer clearly intended the function to work correctly, so we can assume it passes."
    }
  }
}

Response:

{
  "nafe_detected": true,
  "signatures": ["NARRATIVE_RESCUE", "INTENT_INFERENCE"],
  "seal_hash": "b7d1e4...",
  "omega_status": "NAFE_VIOLATION"
}

Tools Reference (26 Tools)

Brain Core (12)

ToolPurpose
omega_preload_contextEpisodic task briefing: RAG + vault + sealed handoff + VERITAS score
omega_rag_querySemantic search over RAG provenance store
omega_ingestAdd text fragment to RAG store
omega_vault_searchFull-text keyword search across vault entries
omega_cortex_checkTri-Node approval gate with similarity scoring
omega_cortex_steerCortex correction mode β€” steer drifting args or hard block
omega_seal_runAppend tamper-proof S.E.A.L. entry to audit ledger
omega_log_sessionWrite session record to vault
omega_write_handoffSHA-256 sealed cross-session handoff
omega_executeCortex-wrapped meta-tool β€” default execution path
omega_brain_reportHuman-readable audit report
omega_brain_statusUnified brain health: vault stats, fragment count, ledger entries

Build Gates (15)

ToolPurpose
veritas_intake_gateGate 1/10: Canonicalize, validate fields, compute ClaimID
veritas_type_gateGate 2/10: Primitives, domains, operators, symbols
veritas_dependency_gateGate 3/10: SBOM, CVE, integrity, licenses, depth
veritas_evidence_gateGate 4/10: MIS_GREEDY, Quality(e), K/A/Q thresholds
veritas_math_gateGate 5/10: Constraint satisfaction via interval arithmetic
veritas_cost_gateGate 6/10: Resource utilization vs redline thresholds
veritas_incentive_gateGate 7/10: Source dominance and vendor concentration
veritas_security_gateGate 8/10: SAST, secrets, injection, auth, crypto
veritas_adversary_gateGate 9/10: Fuzz, mutation, exploit, outage, spike
veritas_run_pipelineFull 10-gate pipeline β€” final verdict + seal hash
veritas_compute_qualityCompute Quality(e) for single evidence item
veritas_mis_greedyRun MIS_GREEDY algorithm on evidence items
veritas_claeg_resolveMap verdict to CLAEG terminal state
veritas_claeg_transitionValidate state transition (absence = prohibition)
veritas_nafe_scanScan for NAFE failure signatures in AI text

Resources (9)

URIDescription
omega://session/preloadAuto-fetched at startup: RAG + handoff + vault context
omega://session/handoffSHA-256 verified cross-session handoff
omega://session/currentSession ID, call count, data directory
omega://brain/statusDB stats, embedding engine, ledger count
veritas://spec/v2.0.0Full canonical VERITAS Omega Build Spec v2.0.0
veritas://claeg/grammarTerminal states, transitions, invariants, prohibitions
veritas://gates/orderThe 10-gate pipeline sequence
veritas://thresholds/baselineDev/baseline regime numeric thresholds
veritas://thresholds/productionEscalated production regime thresholds

CLAEG State Machine

INIT β†’ { STABLE_CONTINUATION | ISOLATED_CONTAINMENT | TERMINAL_SHUTDOWN }
STABLE_CONTINUATION β†’ { STABLE_CONTINUATION | ISOLATED_CONTAINMENT | TERMINAL_SHUTDOWN }
ISOLATED_CONTAINMENT β†’ { STABLE_CONTINUATION | TERMINAL_SHUTDOWN }
TERMINAL_SHUTDOWN β†’ {} (absorbing)

Invariant: Absence of an allowed transition is treated as prohibition. TERMINAL_SHUTDOWN is absorbing β€” there are no exit transitions.

StateMeaning
STABLE_CONTINUATIONNormal operation; execution proceeds
ISOLATED_CONTAINMENTAnomaly detected; execution continues under isolation
TERMINAL_SHUTDOWNCritical failure; execution halted, no recovery

File Structure

omega-brain-mcp/
β”œβ”€β”€ omega_brain_mcp_standalone.py   # MCP server β€” Brain Core + tool dispatch (~1430 lines)
β”œβ”€β”€ veritas_build_gates.py          # Gate engine β€” pure deterministic logic (~1430 lines)
β”œβ”€β”€ omega_client.py                 # Python client helper (persistent process)
β”œβ”€β”€ requirements.txt                # mcp>=1.0.0
β”œβ”€β”€ pyproject.toml                  # Package config + optional deps
β”œβ”€β”€ Dockerfile                      # Non-root, unbuffered, stdio + SSE
β”œβ”€β”€ INTEGRATIONS.md                 # LangChain, CrewAI, AutoGen, LlamaIndex guides
β”œβ”€β”€ SECURITY.md                     # Vulnerability reporting policy
β”œβ”€β”€ CHANGELOG.md                    # Release history
β”œβ”€β”€ docs/
β”‚   └── integration.md              # Detailed integration reference
β”œβ”€β”€ examples/
β”‚   β”œβ”€β”€ langchain_quickstart.py
β”‚   β”œβ”€β”€ crewai_quickstart.py
β”‚   β”œβ”€β”€ autogen_quickstart.py
β”‚   └── llamaindex_quickstart.py
└── tests/
    β”œβ”€β”€ test_build_gates.py         # Gate pipeline tests
    β”œβ”€β”€ test_veritas.py             # VERITAS scoring tests
    β”œβ”€β”€ test_seal.py                # SEAL chain integrity tests
    β”œβ”€β”€ test_handoff.py             # Handoff seal/context tests
    β”œβ”€β”€ test_cortex.py              # Cortex approval tests
    └── test_vault.py               # Vault persistence tests

Troubleshooting

Server does not start / ModuleNotFoundError: mcp

pip install mcp

UnicodeDecodeError on Windows

Set the environment variable before running:

set PYTHONUTF8=1
python omega_brain_mcp_standalone.py

Or add "env": { "PYTHONUTF8": "1" } to your MCP client config.

Client shows "Server disconnected" immediately

  1. Confirm the path in your client config is absolute (e.g., C:\Users\you\omega-brain-mcp\omega_brain_mcp_standalone.py), not relative.
  2. Run the server manually in a terminal to see startup errors: python /path/to/omega_brain_mcp_standalone.py
  3. Check Python version: python --version must be 3.11+.

Embeddings are slow / low quality

Install a better embedding backend:

pip install fastembed          # fast, no GPU, ~30MB download β€” recommended
# or
pip install sentence-transformers numpy   # highest quality

The server auto-selects the best available engine at startup and logs which tier is active.

NAFE_VIOLATION returned unexpectedly

The NAFE scanner detected a narrative failure pattern (rescue framing, intent inference, moral override, or authority drift) in the text passed to veritas_nafe_scan. Review the signatures field in the response for the specific pattern detected, then revise the input text to state facts without narrative interpretation.

Vault / ledger corruption

Delete the data directory and restart to rebuild from scratch (all persisted memory will be lost):

rm -rf ~/.omega-brain/
python omega_brain_mcp_standalone.py

To use a separate data directory per project:

OMEGA_BRAIN_DATA_DIR=/path/to/project-brain python omega_brain_mcp_standalone.py

SSE mode: Connection refused on port 8055

Ensure the server is running with --sse --port 8055 and that the port is not blocked by a firewall. Check with:

curl -N http://localhost:8055/sse

Security & Sovereignty

  • All data is local. The vault, S.E.A.L. ledger, RAG store, and handoff file are stored in ~/.omega-brain/ (or OMEGA_BRAIN_DATA_DIR). No data is transmitted to any external service.
  • No API keys required. The server requires only a local Python installation and the mcp package.
  • Cryptographic integrity. The S.E.A.L. ledger uses SHA-3-256 hash chaining; any tampering with a past entry breaks the chain. Handoff files are SHA-256 sealed.
  • Cortex blocks drift. The Cortex gate hard-blocks tool calls with similarity below 0.45 to the declared baseline prompt, preventing prompt injection from steering the agent off its declared mission.
  • NAFE guardrails. The NAFE scanner detects and seals AI narrative failures β€” including attempts to override constraints via ethical framing or authority assertions β€” before they propagate.
  • Non-root Docker. The provided Dockerfile runs as a non-root omega user.
  • VERITAS gates are stateless and deterministic. veritas_build_gates.py has no network calls, no file I/O, and no side effects. All verdicts are reproducible given the same input.
  • Sensitive data handling. Do not ingest secrets, credentials, or PII into the RAG store or vault. The vault is unencrypted SQLite on disk; protect it with OS-level file permissions.

For vulnerability reporting, see SECURITY.md.


Threat Model

In Scope

ThreatMitigation
Tampered audit recordsS.E.A.L. SHA-3-256 hash chain; any modified entry breaks chain verification
Agent prompt injection steering execution off declared baselineCortex Tri-Node gate hard-blocks calls below similarity threshold 0.45
AI narrative failures bypassing constraintsNAFE scanner detects and seals rescue framing, moral override, intent inference, authority drift
Unapproved state transitions in agent executionCLAEG state machine; absence of allowed transition is prohibition
Artifact deployment without declared evidenceVERITAS 10-gate pipeline requires structured evidence, constraints, and cost model before issuing a verdict
Unsigned or tampered cross-session memoryHandoff files are SHA-256 sealed; tampering is detected on load

Out of Scope

The following threats are not addressed by Omega Brain MCP:

  • Compromised host or operating system β€” if the process environment is controlled by an adversary, no application-layer protection is sufficient
  • Stolen or leaked vault encryption keys β€” the vault is unencrypted SQLite; OS-level access controls are the operator's responsibility
  • Malicious administrator β€” an operator with filesystem access can modify or delete the data directory directly
  • Supply-chain compromise of mcp or Python itself β€” dependency integrity verification is the operator's responsibility; use lock files and hash verification
  • Network-level attacks β€” SSE mode exposes an HTTP endpoint; TLS termination and network access control are the operator's responsibility
  • Model-level jailbreaks β€” Cortex gates on declared tool calls; it does not govern the language model's internal reasoning or responses

Trust Boundaries

  [ MCP Client / AI Agent ]
           β”‚
           β”‚  Trust: MCP client is the operator's declared agent.
           β”‚         Baseline prompt defines the trust contract.
           β–Ό
  [ Omega Brain MCP Server ]  ← Enforcement boundary
           β”‚
           β”‚  Trust: Local filesystem is operator-controlled.
           β”‚         No external services are contacted.
           β–Ό
  [ ~/.omega-brain/ (vault, ledger, handoff) ]

The Cortex gate is the primary trust enforcement point. All tool calls cross this boundary. The VERITAS pipeline enforces evidence-based policy on artifact claims. The S.E.A.L. ledger provides a tamper-evident record of all crossings.


Roadmap

MilestoneStatusDescription
v2.1 β€” Core governance stackReleasedCortex gate, S.E.A.L. ledger, 10-gate VERITAS pipeline, CLAEG, NAFE
v2.2 β€” Vault encryptionPlannedOptional AES-256-GCM encryption for the local SQLite vault
v2.3 β€” Ledger export & attestationPlannedStructured ledger export for external audit tools; Merkle root attestation
v2.4 β€” Multi-agent handoffPlannedVerified cross-agent memory transfer with provenance chain
v3.0 β€” Ecosystem bridgePlannedNative integration with Aegis policy engine and Veritas Vault retention layer

Community contributions are welcome. See CONTRIBUTING.md for invariants that must not be broken.


Omega Universe

Omega Brain MCP is the governance control plane of the VERITAS & Sovereign Ecosystem. The following repositories form the broader Omega Universe:

RepositoryRole
VrtxOmega/omega-brain-mcpThis repo β€” Governance control plane: Cortex gate, VERITAS pipeline, S.E.A.L. ledger
VrtxOmega/veritas-vaultRetention substrate β€” deterministic storage under VERITAS constraints
VrtxOmega/AegisPolicy enforcement engine β€” sovereign access control layer
VrtxOmega/aegis-rewriteNext-generation Aegis rewrite
VrtxOmega/driftSemantic drift detection and correction for agent pipelines
VrtxOmega/SovereignMediaSovereign desktop media application
VrtxOmega/Ollama-OmegaLocal LLM bridge β€” Ollama integration with Omega governance layer
VrtxOmega/sovereign-arcadeSovereign application arcade

πŸ“– Read the master narrative: Why Sovereign AI?

🌐 VERITAS Omega Ecosystem

This project is part of the VERITAS Omega Universe β€” a sovereign AI infrastructure stack.

License

MIT β€” see LICENSE for full text.


Built by RJ Lopez Β· VERITAS Omega Framework
Report Issue Β· Changelog Β· Integrations Β· Security Policy Β· Glama MCP Registry

Related MCP Servers

Moxie-Docs-MCPβ˜… Featured

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

πŸ’» Developer Tools2 views
3KniGHtcZ/codebeamer-mcp

πŸ“‡ ☁️ 🍎 πŸͺŸ 🐧 - Codebeamer ALM integration for managing work items, trackers, and projects. Provides 17 tools for reading and writing items, associations, references, comments, and risk management data via Codebeamer REST API v3.

πŸ’» Developer Tools1 views
21st-dev/Magic-MCP

Create crafted UI components inspired by the best 21st.dev design engineers.

πŸ’» Developer Tools0 views
a-25/ios-mcp-code-quality-server

πŸ“‡ 🏠 🍎 - iOS code quality analysis and test automation server. Provides comprehensive Xcode test execution, SwiftLint integration, and detailed failure analysis. Operates in both CLI and MCP server modes for direct developer usage and AI assistant integration.

πŸ’» Developer Tools0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it β†’
β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.