Receive events through MCP
Subscribe an assistant to Askocto events over MCP notifications, choose which events to stream and read the notification format.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
Besides tools you call, the Askocto MCP server can push events to a connected assistant as MCP notifications. Use this when an assistant should react as things happen, for example to start a summary when a conversation is handed off or to review a new ticket. If you need delivery to your own server, use webhooks instead.
Before you start
Connect the assistant to the server first. See Connect an assistant with MCP. Events stream only while the connection is open, and they follow the access of the signed-in person.
Events
The events match the webhook events.
| Event | Sent when |
|---|---|
conversation.started |
A customer starts a conversation. |
conversation.resolved |
A conversation is resolved. |
conversation.handoff |
The agent hands a conversation to your team. |
lead.captured |
The agent collects a lead. |
ticket.created |
A ticket is created. |
ticket.updated |
A ticket changes. |
source.trained |
A source finishes training. |
Subscribe
Call the subscribe_events tool with the events you want. You can narrow it to one agent.
{
"name": "subscribe_events",
"arguments": {
"events": ["conversation.handoff", "ticket.created"],
"agentId": "agt_123"
}
}
Most assistants call the tool for you when you ask in plain language: "Tell me when a conversation of my support agent is handed off." To stop, call unsubscribe_events with the same list, or close the connection.
Notification format
Each event arrives as an MCP logging notification. The event name and its data are in params.data.
{
"jsonrpc": "2.0",
"method": "notifications/message",
"params": {
"level": "info",
"logger": "askocto",
"data": {
"id": "evt_8a1c",
"event": "conversation.handoff",
"createdAt": "2026-03-14T09:30:00Z",
"conversationId": "conv_8f2a",
"agentId": "agt_123"
}
}
}
The payload holds ids and a few key fields. To read the messages, the assistant calls get_conversation with the id.
What you should see
After you subscribe, the next matching event shows up in the assistant as a notification. If your assistant does not display notifications, check its MCP settings, because clients differ in how they handle server notifications.
Tips
- Subscribe only to the events you need. A busy workspace produces many
conversation.startedevents. - Treat events as hints. The assistant should read the current state with a tool before it acts.
- Events can repeat. Use the
idto skip ones you have already handled.
Note: Events are not queued while no assistant is connected. Use webhooks if you cannot miss an event.
Related pages
- Developer guides overview compares the ways to connect.