Skip to main content
Glama
MSMD-RUA

agenticrail-mcp

agenticrail-mcp

ライブの AgenticRail 執行ゲートを、任意の MCP クライアントに2つのツールとして公開する Model Context Protocol サーバーです。

AgenticRail は AI エージェント向けの決定論的な執行レイヤーです。エージェントを宣言されたステップ順に拘束し、リプレイやスキップされたステップを拒否し、完了した各シーケンスを署名付きレシートで封印します。このサーバーはその前面に立つ MCP アダプターです。

エンドポイント: https://mcp.agenticrail.nz/ (Streamable HTTP、ステートレス) プロトコル: 2026-07-28 — initialize 交換と Mcp-Session-Id を廃止したリビジョン。このサーバーはどちらも持たないステートレスとして構築されたため、移行は不要でした。initialize は古いクライアント向けに引き続き応答します。 レジストリ: 公式 MCP レジストリ 上の nz.agenticrail/gate

ツール

ツール

機能

呼び出し

evaluate_step

単一のエージェントステップを実行前に ALLOW/DENY し、署名付きレシートを封印します

POST https://api.agenticrail.nz/v1/evaluate

verify_receipt

シーケンスの検証レポートを取得し、レシートチェーンが無傷であることを確認します

POST https://report.agenticrail.nz/report

シーケンスの各ステップを実行する前に evaluate_step を呼び出し、ゲートが DENY したステップは実行しないでください。

DENY は修正方法を教えてくれます

すべての拒否は、応答エンベロープ内に独自の対処法を伴います。これは署名なしの DENY 専用です。なぜなら、行われた決定ではなく、シーケンスの現在の状態を説明するからです。

拒否

返される内容

ACTION_NOT_ALLOWED

allowed_action_types — このステップが受け入れたであろう正確な内容

SEQUENCE_VIOLATION

next_expected_step — シーケンスが待っているステップ

STEP_ORDER_MISMATCH

locked_step_order — このシーケンスが最初の呼び出しでロックされた順序

UNKNOWN_STEP

expected_step_order + step_order_source (caller または msmd_spine)

action_type は 8つの値からなる enum であり、各ステップはサブセットのみを受け入れます。準拠したクライアントは無効なものを構築できません。step_order は最初の呼び出しでロックされ、少なくとも1つのエントリが必要です。省略するとロックをクリアするのではなく、組み込みの MSMD スパインが選択されます。したがって、計画を変更するには新しい sequence_id を開始してください。

Related MCP server: Proof Layer MCP

接続

# zero config — uses the public demo key
claude mcp add --transport http agenticrail https://mcp.agenticrail.nz/

# with your own key
claude mcp add --transport http agenticrail https://mcp.agenticrail.nz/ \
  --header "Authorization: Bearer <your-agenticrail-key>"

Streamable-HTTP の MCP クライアントならどれでも動作します — URL を指定してください。

何もインストールせずに試す

BASE=https://mcp.agenticrail.nz/

curl -s -X POST "$BASE" -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq .

# ⚠️ Use a sequence_id nobody else will pick. On the shared demo key the id is
# GLOBAL and sealing is PERMANENT — a fixed one in an example works once for one
# person on earth and returns SEALED_SEQUENCE for everyone after.
SEQ="mcp-smoke-$(date +%s)-$RANDOM"

curl -s -X POST "$BASE" -H 'content-type: application/json' \
  -d "{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{
        \"name\":\"evaluate_step\",
        \"arguments\":{\"sequence_id\":\"$SEQ\",\"step\":\"intake\",
                       \"action_type\":\"CHECK_STATE\"}}}" | jq .

Authorization ヘッダーがない場合、公開デモキーが使用され、sequence_id は demo-mcp-<your id> に書き換えられて返されます。demo- は公開レーンを示し、mcp- は匿名の MCP トラフィックであることを示します。以降は応答で返された ID を使用してください。送信した ID は解決されません。 これは意図的なものであり、漏洩ではありません。

demo- シーケンスのレポートは読むのにキーを必要としないため、それに送信したものはすべて公開として扱ってください。

設計 — 変更前に読んでください

  • プロトコルアダプターのみ。 このワーカーは 内部シークレットを保持せず、執行コアへの特権パスもありません。外部呼び出し元が使用するのと同じ 公開 API を呼び出すため、ツールロジックは AgenticRail の内部 および MCP トランスポートバージョンから切り離されています。

  • fetch ではなくサービスバインディング。 mcp.agenticrail.nz は api. や report. と同じゾーンにあるため、単純な fetch() は同一ゾーンのループバックになります (Cloudflare エラー 1002)。バインディングは同一の公開ハンドラーにヒットします — 内部バイパスではありません。

  • ステートレスな Streamable HTTP。 Mcp-Session-Id は発行も要求もされません。すべての POST は自己完結型です。トランスポートシェルは handleRpc + fetch ハンドラーであり、仕様リビジョンが触れる唯一の部分です。価値を持つ呼び出し (callEvaluate / callVerify) はプレーンな HTTPS であり、変更されません。

  • GET / はディスカバリーカードを提供し、他のすべての GET パスは 404 を返します。 POST は意図的に寛容に残されており、エンドポイント URL にパスを追加するクライアントでも動作します。

  • /.well-known/oauth-* での 404 は正しいです — これは MCP サーバーが 認証不要 を示す方法です。agent.json、agent-card.json、x402、ai-plugin.json はこのサーバーが実装しないプロトコルです。それらに応答することは主張になります。

デプロイ

npx wrangler deploy

リンク


運営: TUARA KURI LIMITED (NZBN 9429053582867)、ホキアンガ、アオテアロア・ニュージーランド。

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Provides tools to issue, verify, and export cryptographically signed receipts for AI agent actions, enabling tamper-proof audit trails for compliance with regulations like the EU AI Act.
    4
    26 npm
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides cryptographic governance receipts for AI agents, enabling pre-execution evaluation and signed verdicts (EXECUTE/BLOCK/REVIEW/SHADOW) with offline-verifiable audit trails.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Issue and verify signed receipts for agent actions, enabling durable, independently checkable proof of policy decisions. Supports offline verification via get_keyset and verify_receipt tools without an account.
    0
    Inno Setup
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides permission gates and tamper-evident audit logging for AI agent tool executions, with declarative policies, consent ladders, and hash-chained verification.
    MIT