MCP Hub
Back to servers

nobulex-mcp-server

Proof-of-behavior enforcement for AI agents. Declare behavioral constraints, enforce at runtime, produce SHA-256 hash-chained audit trails. Supports covenants (permit/forbid/require), real-time verification, and cross-agent trust handshakes.

glama
Stars
13
Forks
1
Updated
Apr 13, 2026
Validated
Apr 15, 2026

Nobulex

The proof-of-behavior protocol for autonomous AI agents.

Every AI agent makes promises — "I won't transfer more than $500," "I'll only access approved APIs," "I won't touch production data." But today, there's no way to prove an agent kept those promises. Logs are written by the same software being audited. Compliance is asserted, never proven.

Nobulex changes that. Define behavioral rules. Enforce them before execution. Prove compliance with cryptography, not trust.

CI Tests License TypeScript

What is Proof-of-Behavior?

You can't audit a neural network. But you can audit actions against stated commitments.

verify(covenant, actionLog) → { compliant: boolean, violations: Violation[] }

This is always decidable, always deterministic, always efficient. No ML, no heuristics — mathematical proof.

Proof-of-behavior means every autonomous agent action is:

  • Declared — behavioral rules defined before deployment in a formal language
  • Enforced — violations blocked at runtime, before execution
  • Proven — every action hash-chained into a tamper-evident audit trail that third parties can independently verify

Quick Start

npm install @nobulex/sdk
import { createDID } from '@nobulex/identity';
import { parseSource } from '@nobulex/covenant-lang';
import { EnforcementMiddleware } from '@nobulex/middleware';
import { verify } from '@nobulex/verification';

// 1. Create an agent identity
const agent = await createDID();

// 2. Write behavioral rules
const spec = parseSource(`
  covenant SafeTrader {
    permit read;
    permit transfer (amount <= 500);
    forbid transfer (amount > 500);
    forbid delete;
  }
`);

// 3. Enforce at runtime
const mw = new EnforcementMiddleware({ agentDid: agent.did, spec });

// $300 transfer — allowed
await mw.execute(
  { action: 'transfer', params: { amount: 300 } },
  async () => ({ success: true }),
);

// $600 transfer — BLOCKED before execution
await mw.execute(
  { action: 'transfer', params: { amount: 600 } },
  async () => ({ success: true }),  // never runs
);

// 4. Prove compliance
const result = verify(spec, mw.getLog());
console.log(result.compliant);    // true
console.log(result.violations);   // []

Cross-Agent Verification Handshake

Before two agents transact, they verify each other's proof-of-behavior. No proof, no transaction.

import { generateProof, verifyCounterparty } from '@nobulex/sdk';

// Agent A generates its proof-of-behavior
const proof = await generateProof({
  identity: agentA,
  covenant: spec,
  actionLog: middleware.getLog(),
});

// Agent B verifies Agent A before transacting
const result = await verifyCounterparty(proof);

if (!result.trusted) {
  console.log('Refusing transaction:', result.reason);
  return; // No proof, no transaction
}

// Safe to transact — Agent A is verified
await executeTransaction(proof.agentDid, amount);

The handshake checks six things in order: covenant signature, proof signature, log integrity, compliance, minimum history, and required covenant. If any check fails, the transaction is refused.

Why Proof-of-Behavior Matters

What exists todayWhat's missing
Guardrails filter prompts and outputsNo proof the agent followed rules at the action layer
Monitoring watches what agents do after the factNo enforcement before execution
Identity verifies who the agent isNo verification of what the agent did
Governance platforms provide dashboards and policiesNo cryptographic evidence a third party can independently verify

Proof-of-behavior fills the gap: declare → enforce → prove.

The Covenant DSL

covenant SafeTrader {
  permit read;
  permit transfer (amount <= 500);
  forbid transfer (amount > 500);
  forbid delete;
  require counterparty.compliance_score >= 0.8;
}

Forbid wins. If any forbid matches, the action is immediately blocked regardless of permits. Default deny for unmatched actions. Conditions support >, <, >=, <=, ==, != on numeric, string, and boolean fields.

Three keywords. No configuration files. No YAML. No JSON schemas. Just rules.

Architecture

┌─────────────────────────────────────────────────────────────┐
│                        Platform                             │
│              cli  ·  sdk  ·  mcp-server                     │
├─────────────────────────────────────────────────────────────┤
│                  Proof-of-Behavior Stack                    │
│                                                             │
│  ┌──────────┐  ┌──────────────┐  ┌────────────┐            │
│  │ identity │  │ covenant-lang│  │ action-log │            │
│  │  (DID)   │  │    (DSL)     │  │(hash-chain)│            │
│  └──────────┘  └──────────────┘  └────────────┘            │
│                                                             │
│  ┌────────────┐  ┌──────────────┐  ┌───────────────┐       │
│  │ middleware  │  │ verification │  │ composability │       │
│  │(pre-exec)  │  │ (post-hoc)   │  │(trust graph)  │       │
│  └────────────┘  └──────────────┘  └───────────────┘       │
├─────────────────────────────────────────────────────────────┤
│                      Foundation                             │
│            core-types  ·  crypto  ·  types                  │
└─────────────────────────────────────────────────────────────┘

Core Packages

PackageWhat It Does
@nobulex/identityW3C DID creation with Ed25519 keys
@nobulex/covenant-langCedar-inspired DSL: lexer, parser, compiler
@nobulex/action-logSHA-256 hash-chained tamper-evident log with Merkle proofs
@nobulex/middlewarePre-execution enforcement — blocks violations before they run
@nobulex/verificationDeterministic compliance verification
@nobulex/sdkUnified API combining all primitives
@nobulex/mcp-serverMCP compliance server for any MCP-compatible agent
@nobulex/cliCommand-line: nobulex init, verify, inspect
@nobulex/langchainLangChain middleware integration (PyPI)

Integrations

  • npmnpm install @nobulex/sdk
  • PyPIpip install langchain-nobulex
  • MCPnpx @nobulex/mcp-server (works with Claude Desktop, Cursor, VS Code)
  • LangChain — drop-in compliance middleware
  • ElizaOS — plugin for actions, evaluators, providers

Conceptual Comparison

BitcoinEthereumNobulex
What it verifiesMonetary transfersContract executionAgent behavior
MechanismProof of WorkProof of StakeProof of Behavior
What's provenTransaction validityState transitionsBehavioral compliance
GuaranteeTrustless moneyTrustless contractsTrustless agents

Live Demo

npx tsx demo/covenant-demo.ts

Creates two agents, defines behavioral rules, enforces at runtime, blocks a forbidden transfer, and cryptographically verifies compliance — all in one script.

Development

git clone https://github.com/arian-gogani/nobulex.git
cd nobulex
npm install
npx vitest run    # 4,237 tests, 80 files, 0 failures

Documentation

Links

License

MIT — use it for anything.

Reviews

No reviews yet

Sign in to write a review