Hermes WebMCP Guard
I built a Hermes Agent plugin that can use website-provided WebMCP tools without treating a web page as trusted infrastructure.
The problem
A website can change its tools, schemas, origin, or document state between discovery and execution. Agent approval has to remain bound to the exact action the user reviewed.
What I built
I wrapped Chrome's native WebMCP CDP transport with fixed connection, discovery, execution, and disconnect operations plus audit logging, redaction, and bypass detection.
Engineering decisions
The model can select only configured endpoints. Origin or schema changes fail closed. Approvals bind to owner, call, capability, and canonical arguments, then are consumed once.
Technical approach
Configured endpoints and allowed origins constrain discovery. Strict schemas, document-bound capability IDs, bounded execution, safe revocation, and one-call approvals constrain use.
What changed
The repository documents verified Python and Raspberry Pi 5 live-browser flows with Hermes 0.23.1 and Chromium Shell 156.
Technical details
Python, WebMCP, Chrome CDP, JSON Schema, pytest, WebSocket
