Skip to main content
Glama
Cubiczan

governed-mcp-gateway

by Cubiczan

Cubiczan Agent Platform

アイデンティティ、マネー、そして実際にリリースするエージェントのための証拠。

3つのSKU、1つのワークスペース。MCPクライアントはtools/callとSSEを通じてBearerプリンシパルを保持します。支出はマンデートなしには決済できず、上限を超える場合は人間のセカンドキーが必要です。取締役会のクレームは、エージェント、CHPロック、ハッシュ化されたドキュメントなしには封印できません。

3つのSKU: ガバンドMCPゲートウェイ、支出マンデートプレーン、CFOエージェントメッシュ

SKU

Port

Repo

Job

Governed MCP Gateway

:7474

icohangar-ops/governed-mcp-gateway

すべてのツール呼び出しとSSEフレームにプリンシパル。保管庫の資格情報ローテーション。ツールの許可リスト。

Agent Spend & Mandate Plane

:7475

icohangar-ops/spend-mandate-plane

提案 → マンデート → 副署 → 決済。デフォルトはStripe。x402はレール。

Auditable CFO Agent Mesh

:7476

icohangar-ops/cfo-agent-mesh

クレーム → エージェント → ロック → ドキュメント。ASC 842 / 606 / 718エンジン。HMACチェーン証拠パック。

共有プリミティブ(packages/shared):CHPゲート、HMAC台帳、HTTP/SSEヘルパー。ランタイムのnpm依存関係はゼロ。Stripeとx402はレールであり、テストはライブネットワークを呼び出しません。

クイックスタート

npm install
npm test
npm run gateway   # :7474
npm run spend     # :7475
npm run cfo       # :7476

デモBearerキー(.env.exampleにもあります):

ロール

キー

ゲートウェイエージェント

mcp_agt_payops_demo

ゲートウェイ人間

mcp_human_controller_demo

ゲートウェイリサーチ(stripe.chargeなし)

mcp_agt_research_demo

支出エージェント

spend_agt_payops_demo

支出人間

spend_human_controller_demo

CFOエージェント

cfo_agt_lease_demo

CFO人間

cfo_human_controller_demo

ライブのローカルAPIからREADMEカードを再生成:

npm run shots

Related MCP server: production-grade-mcp-agentic-system

1. Governed MCP Gateway

本番MCPはアイデンティティを落とします。listToolsはリクエストスレッドで実行され、tools/callとSSEは別の場所で実行されます。このゲートウェイはBearer資格情報をプリンシパルに解決し、すべてのJSON-RPC呼び出しに注入し、すべてのSSEフレームで繰り返します。名前付き保管庫入力はその場でローテーションされます — github_tokengithub_tokenのままです。

tools/callに注入されたプリンシパル

SSEはすべてのフレームでプリンシパルを繰り返す

新しい入力IDなしでgithub_tokenをローテーション

curl -sS -H "Authorization: Bearer mcp_agt_payops_demo" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"echo.ping","arguments":{"hello":"world"}}}' \
  http://127.0.0.1:7474/mcp

メソッド

パス

内容

POST

/mcp

JSON-RPC initializetools/listtools/call

GET

/mcp/sse?once=1

_meta.cubiczan.principalを含むSSE通知

POST

/v1/credentials/:name/rotate

人間のみの保管庫ローテーション。古いハッシュは破棄

POST

/v1/credentials/verify

現在のハッシュに対してシークレットを確認


2. Agent Spend & Mandate Plane

エージェントは提案します。マンデートが承認します。金額が自動上限を超える場合、人間が副署します。提案したエージェントは自分自身を副署できません。決済はレールです:デフォルトではStripeメーターイベント、要求すればx402 payment-required。このMVPではチェーン呼び出しはありません。

上限未満の提案は自動ロック

上限超過は人間のセカンドキーが必要

Stripeメーター vs x402 payment-required

curl -sS -H "Authorization: Bearer spend_agt_payops_demo" \
  -H "Content-Type: application/json" \
  -d '{"agent":"agt_payops","merchant":{"name":"Stripe","url":"https://stripe.com","country":"US"},"total":"12.00","rationale":"tool meter"}' \
  http://127.0.0.1:7475/v1/proposals

メソッド

パス

内容

POST

/v1/mandates

オペレーターが残りセントのカバレッジを作成

POST

/v1/proposals

エージェントが提案。レーンはauto | approval | blocked

POST

/v1/countersign

人間のセカンドキー。エージェントは拒否される

POST

/v1/settle

{ "rail": "stripe" } または "x402"


3. Auditable CFO Agent Mesh

取締役会のクレームは、エージェントLOCKED状態のCHP、そして少なくとも1つのソースドキュメントハッシュを持つまで完了しません。エンジンは測定します(ASC 842リース繰延、ASC 606制約付きPOC、ASC 718 SBC)。彼らは法律の事実を決定しません。トークン支出は同じHMACチェーン台帳のソースとして添付されます。

ドキュメントなしの未封印クレーム

封印された証拠パック

ASC 842ファイナンスリースは0.00で終了

curl -sS -H "Authorization: Bearer cfo_agt_lease_demo" \
  -H "Content-Type: application/json" \
  -d '{"title":"AI spend is $12.00 this period","narrative":"Token ledger supports the board claim.","agentId":"agt_lease"}' \
  http://127.0.0.1:7476/v1/claims

メソッド

パス

内容

POST

/v1/claims

クレームを開く

POST

/v1/claims/:id/documents

名前付きソースを添付。SHA-256を保存

POST

/v1/claims/:id/lock

人間のロック → LOCKED

POST

/v1/engines/lease

ASC 842分類 + 繰延

GET

/v1/evidence/:id

封印。ドキュメントがないかロックされていない場合は400

仕様

OpenSpec変更: openspec/changes/ship-three-sku-platform/

ライセンス

MIT

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server that lets AI agents call APIs without ever seeing the credentials, using a local encrypted vault and per-secret allowlist policies for HTTP requests and subprocess environment variables.
    1
    AGPL 3.0
  • F
    license
    Not graded
    quality
    C
    maintenance
    A production-ready MCP server that authenticates agents via OAuth 2.1 Bearer tokens, validates JWTs with JWKS, enforces tool-level scopes and roles, and logs the full delegation chain.

View all related MCP servers

Related MCP Connectors

  • MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.

  • An MCP server for Arcjet - the runtime security platform that ships with your AI code.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Cubiczan/governed-mcp-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server