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에 요청 하나, stdout에 제한된 평결 하나, 타임아웃 및 프로세스 실패 처리, 엄격한 평결 형태, 디스패치 전 예약(reserve-before-dispatch) 논스 처리, 그리고 실패 시 닫힘(fail-closed) 동작입니다. 검증기는 의도적으로 Bolyra의 ZK 검증기가 아닌 작은 외부 클래스 데모입니다.

EVC는 독립적인 제3자 계약이며 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