MCP Events Lets AI Agents React to External Triggers Without User Prompts

The Model Context Protocol adds a standardized event subscription system with three delivery modes — poll, push, and webhook — so agents can act on GitHub PRs, CI results, or any server-side change au

cpaua2 min8
MCP Events Lets AI Agents React to External Triggers Without User Prompts

The Model Context Protocol (MCP) has published the MCP Events extension, giving AI agents a standardized way to subscribe to external events and react without waiting for a user request. The specification, hosted at modelcontextprotocol/ext-eventsgithub.com/modelcontextprotocol/ext-events, is the first output of the Tasks and Events Working Group and sits at Beta stage under SEP-3415.

Agents can now watch GitHub repos and trigger reviews automatically

Instead of polling a server on every user turn, an agent registers a subscription — for example, "new pull request in repository X." When the event occurs, the event payload is delivered straight into the agent's runtime, which can immediately start a code review, run tests, or post a summary comment. The same mechanism works for CI pipeline completions, database changes, or any state change the MCP server chooses to expose.

Three delivery modes cover different infrastructure constraints

The spec defines three transport-agnostic delivery methods:

  • Poll — the client periodically asks the server for new events, waits, then repeats. A sequence diagram in the repo shows the discover → request → wait → request loop.
  • Push — the server streams events to the client over an existing connection (SSE, WebSocket, or future transports).
  • Webhook — the server POSTs the event to a callback URL registered by the client, enabling serverless or firewalled deployments.

All three share the same subscription lifecycle and ordering guarantees, so agent code stays unchanged when the underlying transport shifts.

Working group charter keeps scope tight

The Tasks and Events WG explicitly limits itself to the callback mechanism, subscription lifecycle, delivery semantics, and ordering guarantees. Transport wire-format changes remain with the Transports WG, while general-purpose pub/sub infrastructure is out of scope. Coordination with the Agents WG ensures that task-completion notifications (SEP-1686) reuse the same webhook primitive rather than inventing a parallel system.

Reference implementation and contribution path

The repository contains the Beta specification at specification/beta/events/events.mdx and SDK components demonstrating server-initiated notifications and client-side callback handling. Leads from Amazon Web Services and Microsoft (Clare Liguori, Peter Alexander, Luca Chang, Caitie McCaffrey) manage the incubation process; CONTRIBUTING.md describes how to submit proposals or experimental findings.

Related reading

Sources

modelcontextprotocol/ext-eventsgithub.com/modelcontextprotocol/ext-events
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.