mcp-use-evc-example
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 的一部分。
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