跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Protect Mcp

插件 已验证 活跃

Cedar policy enforcement + Ed25519 signed receipts for every Claude Code tool call. First cryptographic governance plugin — receipts independently verifiable offline.

1 个 Skill 0 个 MCP
目的

To provide cryptographic governance and verifiable audit trails for AI agent actions, ensuring compliance and security by enforcing policies and signing every tool call.

功能

  • Cedar policy enforcement before tool execution
  • Ed25519 signed receipts for allow/deny decisions
  • Hash-chained audit trail for integrity
  • Offline verification of receipts
  • Command-line tools for verification and auditing

使用场景

  • Securing AI agent actions in production environments
  • Providing auditable evidence for compliance requirements
  • Detecting and preventing unauthorized tool usage
  • Establishing tamper-evident logs of AI agent activity

非目标

  • Acting as a general-purpose logging system
  • Storing sensitive data beyond cryptographic receipts
  • Replacing the Claude Code session log entirely

工作流

  1. User installs plugin and configures hooks.
  2. User creates a Cedar policy file.
  3. User starts the signing server or relies on environment variables.
  4. Claude Code agent makes a tool call.
  5. PreToolUse hook evaluates call against Cedar policy.
  6. If denied, tool call is blocked; if allowed, tool executes.
  7. PostToolUse hook signs a receipt with decision, input, and output.
  8. Receipt is saved locally and linked to the previous receipt.
  9. User can verify individual receipts or audit the chain offline.

实践

  • Policy Enforcement
  • Cryptographic Auditing
  • Access Control

先决条件

  • Node.js installed
  • Claude Code environment
  • Policy file (e.g., ./protect.cedar)
  • Signing key file (e.g., ./protect-mcp.key)

Invocation

  • info:Hook matcher tightnessThe `PreToolUse` and `PostToolUse` hooks use a broad `.*` matcher, which could be tightened if specific tool categories were to be excluded from policy evaluation or receipt signing.

安装

请先添加 Marketplace

/plugin marketplace add wshobson/agents
/plugin install protect-mcp@claude-code-workflows

质量评分

已验证
98 /100
3 days ago 分析

信任信号

最近提交5 days ago
星标35.3k
许可证MIT
状态
查看源代码