cardinal

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.

FieldWhat to enter
ServerThe server's name from the MCP Servers table, such as docs
EventThe event's name as the server lists it, such as comment.created
ArgumentsA JSON object the event asks for, such as {"document": "Q4 plan"}
EnabledOn

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 fieldHolds
Subscription, Server, EventWhere it came from
Event IDThe server's id, so a repeat delivery adds nothing
Received At, CursorWhen it arrived, and the server's position
PayloadThe 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:

CheckAnswer when it fails
Standard Webhooks signature with the Signing Secret, timestamp within 5 minutes401
The subscription id the server sends matches the stored one401
The subscription exists, is enabled and not Stopped404
Body at most 256 KB413
The subscription has finished subscribing503, so the server retries
The subscription has not passed Refresh Before410, 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".

On this page