SuperAPIAI Directory

scopeblind-gateway

github.com · AI developer platforms

Security gateway that wraps MCP servers with per-tool policies, approval gates and optional signed receipts, in shadow (log-only) or enforce mode.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

ScopeBlind Gateway (command-line tool name protect-mcp) is a security gateway for MCP (Model Context Protocol) servers. It runs as a stdio proxy between the MCP client and the MCP server, intercepting JSON-RPC requests such as tools/call, thereby recording, policy-controlling, and verifiably auditing the agent's tool invocation behavior.

Purpose The goal of this tool is to provide a layer of security and evidence capability for MCP tool calls: without replacing the existing authentication system, first observe which tools the agent actually calls, then gradually impose policy restrictions, and generate independently verifiable signed receipts.

Main capabilities

  • Per-tool policies: can block destructive tools, rate_limit high-cost tools, and attach minimum tier requirements such as min_tier. Tool names are matched exactly, with "*" supported as a wildcard fallback.
  • Structured decision logs: each decision is output to stderr with the [PROTECT_MCP] prefix, in structured JSON format.
  • Optional local signed receipts: when signing.key_path is included in the policy, Ed25519 signed receipts are generated in addition to the structured logs, persisted to .protect-mcp-receipts.jsonl, and exposed in http://127.0.0.1:9876/receipts。
  • Offline verification: receipts or audit bundles can be verified with npx @veritasacta/verify, or in the browser via scopeblind.com/verify.
  • No account required: local keys, local policies, local process.
  • Incident-anchored policy packs: provided with protect-mcp, each policy pack targets a real attack scenario; the complete OWASP Agentic Top 10 mapping is at scopeblind.com/docs/owasp.
  • External policy engines (BYOPE): supports OPA, Cerbos, Cedar (AWS AgentCore), and generic HTTP endpoints.
  • Programmatic hooks: the library exports some primitives not yet wired into the default CLI path, which can be used for manifest admission before session start, external PDPs, custom credential broker integration, audit bundle export around your own receipt storage, and more.

Usage The current CLI path can wrap any stdio MCP server as a transparent proxy. The default shadow mode records every tools/call request and allows all of them through. After adding a policy file, it enters enforcement mode and executes rules per tool. Running npx protect-mcp init generates a local signing key and configuration, enabling the gateway to issue signed receipts.

MCP client configuration: add the configuration in claude_desktop_config.json; Cursor / VS Code use the same pattern, that is, wrapping the original server command with protect-mcp.

Decision logs and receipts: each tool call outputs structured JSON to stderr; after signing is configured, a signed receipt follows. The verification command is npx @veritasacta/verify receipt.json.

Applicable scenarios

  • Before formally enforcing policies, first use shadow mode to observe which tools the agent actually calls.
  • Implement per-tool blocking, rate limiting, and tier requirements for MCP tool calls.
  • Need independently verifiable signed audit evidence, rather than relying only on dashboard logs.
  • Layer control and evidence on top of the existing authentication system without replacing the original stack.

Limitations and current capability boundaries

  • Signing is not automatically enabled on the bare npx protect-mcp -- ... path; that path records decisions in shadow mode. Local signing requires first running npx protect-mcp init, then start the gateway with the generated policy file.
  • Hierarchy-aware policy checks are already available, but manifest admission is not yet wired into the default CLI/stdio path; unless the host integration calls the admission API programmatically, the CLI will mark the session as unknown by default.
  • Credential configuration currently validates environment-variable-based credential references and records credential labels in logs/receipts; generic per-call injection for arbitrary stdio tools is an adapter-specific feature and is not performed by the default proxy path.
  • External PDP adapters and audit package helper tools exist as exported tools, but are not yet fully wired into the default CLI path.
  • Tool names are matched exactly, with a "*" wildcard fallback supported.

Additional information The project is MIT licensed and free to use, modify, distribute, and build. Related standards work includes the IETF Internet-Draft: draft-farley-acta-signed-receipts-00 (Signed Decision Receipts for Machine-to-Machine Access Control). Patent status: 4 Australian provisional patent applications in progress (2025-2026), covering configurable-disclosure decision receipts, tool-call gateways, agent manifests, and portable identity. The verification tool is MIT licensed and can run a self-check with npx @veritasacta/verify --self-test. The repository has moved, and active development continues at ScopeBlind/scopeblind-gateway; the current personal fork may lag behind the canonical repository, so please use the organization repository for issues, pull requests, and the latest code.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools