MCP Hub
Back to servers

Mcp-Omega-Brain

AI agent provenance, trust, and auditability layer. VERITAS multi-gate scoring, Cortex approval gates, S.E.A.L. hash-chain audit ledger, and semantic RAG with cryptographic provenance tracking for every decision an agent makes.

glama
Updated
Apr 14, 2026
VERITAS

OMEGA BRAIN MCP + VERITAS BUILD GATES

Standalone Model Context Protocol Server with Built-In Intelligence + Deterministic Build Pipeline

Two files. One dependency. Full sovereign cognition + 10-gate build verification.

Status Version Stack License


A self-contained MCP server that gives AI agents verifiable provenance, cross-session memory, a cryptographic audit trail, and a 10-gate deterministic build evaluation pipeline. No external server required.

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.

Architecture

LayerComponentRole
Brain CoreVault (SQLite)Persistent session/entry storage with FTS5 search
Brain CoreSEAL LedgerAppend-only SHA3-256 hash chain for tamper-proof audit
Brain CoreRAG ProvenanceSemantic embedding store with 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, Agreement computation
Build GatesCLAEGConstraint-locked state machine with 3 terminal states
Build GatesNAFE ScannerNarrative failure signature detection

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.

Tools (26)

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 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/v1.0.0Full canonical VERITAS Omega Build Spec
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

Quick Start

Requirements

  • Python 3.11+
  • pip install mcp

Optional (better embeddings)

pip install fastembed              # ONNX embeddings, ~30MB
pip install sentence-transformers numpy  # Best quality, larger

Configure in Claude Desktop / Antigravity

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

SSE Mode

python omega_brain_mcp_standalone.py --sse --port 8055
# Endpoints: GET /sse, POST /messages

File Structure

omega-brain-mcp/
  omega_brain_mcp_standalone.py   # MCP server (~1430 lines) — Brain Core + tool dispatch
  veritas_build_gates.py          # Gate engine (~1430 lines) — pure deterministic logic
  omega_client.py                 # Python client helper
  requirements.txt                # mcp>=1.0.0
  pyproject.toml                  # Package config
  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

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.

License

MIT


Built by RJ Lopez | VERITAS Omega Framework

Reviews

No reviews yet

Sign in to write a review