wshobson avatar

Protect Mcp Setup

This hooks into Claude Code's PreToolUse and PostToolUse events to gate every tool call behind Cedar policies and generate Ed25519-signed receipts that anyone can verify offline. It's designed for situations where you need a cryptographic audit trail, like letting an agent run unattended in a regulated environment or proving to an auditor exactly what decisions were made without them trusting your logs. The receipts are hash-chained and follow RFC 8032, so tampering breaks the chain. If you're just experimenting or working solo, this is overkill. If you're building agent workflows that touch money, PII, or compliance-sensitive operations, the signed evidence and policy enforcement close real gaps that session logs don't.

skills.sh installs
6.3K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill protect-mcp-setup --agent claude-code

Installs into .claude/skills of the current project.

Files

protect-mcp — Policy Enforcement + Signed Receipts

Cryptographic governance for every Claude Code tool call. Each invocation is evaluated against a Cedar policy and produces an Ed25519-signed receipt that anyone can verify offline.

Overview

Claude Code runs powerful tools: Bash, Edit, Write, WebFetch. By default there is no audit trail, no policy enforcement, and no way to prove what was decided after the fact. protect-mcp closes all three gaps:

  • Cedar policies (AWS's open authorization engine) evaluate every tool call before execution. Cedar deny is authoritative.
  • Ed25519 receipts record the name of each tool that ran, signed with your key.
  • Offline verification via npx @veritasacta/verify. No server, no account, no trust in the operator.

Problem

AI agents make decisions that affect money, safety, and rights. The Claude Code session log records what happened, but the log is:

  • Mutable — anyone with access can edit it
  • Unsigned — there is no way to prove integrity
  • Operator-bound — verification requires trusting whoever holds the log

Sponsors

Details

Repository
github.com/wshobson/agents
Category
AI & Agent Building
First seen
May 16, 2026

More from wshobson/agents

All 174
1thedotmack avatarknowledge-agentthedotmack/claude-memBuild and query AI-powered knowledge bases from claude-mem observations. Use when users want to create focused "brains" from their observation history, ask ques6Kskills.sh installs
2affaan-m avatarcost-aware-llm-pipelineaffaan-m/eccCost optimization patterns for LLM API usage — model routing by task complexity, budget tracking, retry logic, and prompt caching.5.6Kskills.sh installs
3affaan-m avatarfal-ai-mediaaffaan-m/eccUnified media generation via fal.ai MCP — image, video, and audio. Covers text-to-image (Nano Banana), text/image-to-video (Seedance, Kling, Veo 3), text-to-spe5.6Kskills.sh installs
4claude-office-skills avatarmcp-hubclaude-office-skills/skillsAccess 1200+ AI Agent tools via Model Context Protocol (MCP)4.7Kskills.sh installs
5giuseppe-trisciuoglio avatarprompt-engineeringgiuseppe-trisciuoglio/developer-kitProvides workflows to write, debug, and optimize prompts for LLMs, including few-shot example selection, chain-of-thought structuring, system prompt design, and4.1Kskills.sh installs
6giuseppe-trisciuoglio avatarlangchain4j-tool-function-calling-patternsgiuseppe-trisciuoglio/developer-kitProvides and generates LangChain4j tool and function calling patterns: annotates methods as tools with @Tool, configures tool executors, registers tools with Ai3.9Kskills.sh installs