How to Secure MCP Event-Driven Agents

An AI agent can wake up when a repository changes or an incident opens. A notification can arrive over a verified connection and still carry text written by someone outside the team. In a November 28 guide for Cyrus, Connor Turland explains how that text can reach an unattended agent and influence its next tool call.

Keep event payloads small. Send enough information to identify and triage the event. Retrieve additional details through an authorized tool when needed. Treat free text as untrusted input before passing it to the model. Check the subscriber’s access when creating the subscription and recheck it during delivery. Every follow-up tool call should pass its own authorization check. Give the agent only the tools it needs and require approval for sensitive changes.

For webhook delivery, require HTTPS, verify the callback endpoint before activating the subscription and check destinations at delivery time to reduce the risk of server-side request forgery (SSRF). Receivers should verify signatures before processing events and discard duplicate deliveries.

The official MCP Events overview lists SEP-3415 as Final and the extension as Beta. The extension requires protocol revision 2026-07-28 or later and explicit opt-in on both sides. Check the client support matrix for available delivery modes.

Latest articles

Related articles