mcp-use-evc-example
mcp-use + EVC 認可の例
このスタンドアロン例は、既存の mcp-use TypeScript ミドルウェアのシームの背後に、Bolyra External Verifier Contract v1 のホスト境界を配置します。ゲートウェイは vault_echo をプロキシし、単発の外部ベリファイアを起動して、そのクローズドな判定エンベロープを検証し、allow が返された場合にのみ next() を呼び出します。
実行
npm install
npm test
npm run dev印刷された URL を開くと、組み込みの mcp-use Inspector を使用できます。vault_echo を次の内容で呼び出します:
{
"message": "hello",
"bundle": "demo-valid-bundle",
"agentName": "research-bot",
"model": "demo-model"
}bundle を他の任意の値に変更すると、アップストリームサーバーが実行される前に外部ベリファイアが呼び出しを拒否するのを確認できます。
ホストアダプターは、EVC の重要なメカニズム、すなわち、stdin 上の 1 リクエスト、stdout 上の 1 つの有界な判定、タイムアウトとプロセス障害の処理、厳密な判定形状、ディスパッチ前の nonce 予約処理、そしてフェイルクローズド動作を示しています。このベリファイアは、意図的に小さな外部クラスのデモであり、Bolyra の ZK ベリファイアではありません。
EVC は独立した第三者契約であり、MCP または mcp-use の一部ではありません。
This server cannot be deployed
Maintenance
Related MCP Connectors
Contract-change authorization for AI agents: preflight a change to an API or MCP contract, get a signed decision, and verify the receipt offline. Only a granted change can proceed.
Host any HTTP API as MCP tools with a tamper-evident cross-agent settlement ledger.
Pre-install canonical-identity verification for MCP servers and skills, with signed verdicts.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnforces identity-based access control and audit logging for MCP servers, letting you grant fine-grained tool permissions to users and systems while failing secure by default.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to govern downstream tool servers by enforcing default-deny authority and attestation on every tool call, with live monitoring, approval, and mid-session revocation.3Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables MCP servers to enforce their own Proof of Delegation by refusing tool calls when authorization is revoked, suspended, or expired, with optional self-check and verification tools.8 npmMIT
- AlicenseAqualityBmaintenanceEnables action-bound authorization and verifiable evidence contracts for MCP tool execution, offering deterministic action planning, policy decisions, and one-use capability tokens tied to exact action envelopes.31Apache 2.0