MCP events
Subscribe to events from an external MCP server and act on them with Automations.
An external MCP server that offers the MCP Events extension can tell Eden when something happens, such as a new comment on a document. Each event becomes an MCP Event record. An Automation on New of MCP Event then does the work. Eden takes events by webhook only.
The extension is experimental in MCP, so only some servers offer it.
Subscribe
Add the server to Eden Settings' MCP Servers table. See External MCP servers.
In the Eden workspace, open MCP Event Subscription and add one.
| Field | What to enter |
|---|---|
| Server | The server's name from the MCP Servers table, such as docs |
| Event | The event's name as the server lists it, such as comment.created |
| Arguments | A JSON object the event asks for, such as {"document": "Q4 plan"} |
| Enabled | On |
Save. Eden generates a Signing Secret and shows the Webhook URL, https://<site>/api/eden/mcp-events?s=<subscription>. After the save, Eden subscribes as you, so an OAuth server uses your own connection.
Status turns Active. If the server refused, Status is Failed and Last Error says why. Save again to retry.
Changing the server, event or arguments unsubscribes and subscribes again. Turning Enabled off unsubscribes and sets Status to Stopped. Deleting the subscription also unsubscribes, and keeps the events already received.
An hourly job renews each Active subscription two hours before its Refresh Before time.
Act on an event
Build an Automation with trigger New on MCP Event, a condition on its fields, then the steps.
Trigger: New, MCP Event
Condition: doc.event_name == "comment.created"
Step: Create a ToDo that quotes doc.payload| MCP Event field | Holds |
|---|---|
| Subscription, Server, Event | Where it came from |
| Event ID | The server's id, so a repeat delivery adds nothing |
| Received At, Cursor | When it arrived, and the server's position |
| Payload | The event's data as JSON |
System Manager reads MCP Event records. Eden deletes them after 30 days.
What the webhook checks
The webhook takes posts without a login, so it checks each one:
| Check | Answer when it fails |
|---|---|
| Standard Webhooks signature with the Signing Secret, timestamp within 5 minutes | 401 |
| The subscription id the server sends matches the stored one | 401 |
| The subscription exists, is enabled and not Stopped | 404 |
| Body at most 256 KB | 413 |
| The subscription has finished subscribing | 503, so the server retries |
| The subscription has not passed Refresh Before | 410, so the server subscribes again |
A good event gets 204. A server message that ends the subscription sets Stopped with the server's reason. A failed subscribe writes an Error Log titled "Eden: an MCP event subscription failed".