Skip to main content
Glama
khandrew1

mcp-use-evc-example

by khandrew1

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 の一部ではありません。

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Enforces 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
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables 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.
    3
    Apache 2.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables 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 npm
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    3
    1
    Apache 2.0