Skip to main content
Glama
khandrew1

mcp-use-evc-example

by khandrew1

mcp-use + EVC 授权示例

这个独立示例将 Bolyra External Verifier Contract v1 主机边界放在现有 mcp-use TypeScript 中间件接缝之后。网关代理 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 上的一个请求、stdout 上的一个有界判定、超时和进程失败处理、严格的判定形状、先预留后分发的 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