Repository navigation
Plan: push webhook events to connected agents - #1649
helpcodeai wants to merge 2 commits into
Conversation
Coding-Professional
left a comment
There was a problem hiding this comment.
Design review only, for when this proposal is scheduled. Phase 1's goals include the read tool's role/tool permissions, but step 4 spells out only organization and server membership for fan-out. Please make permission revocation an explicit lifecycle/test case: subscribe while allowed, revoke the role/tool grant while SSE remains open, then record an event. That session should receive no resource URI/update signal, and resources/read should refuse access. A payload-free notification can still reveal that an event happened on a connector.
Rechecking the current principal's access when sending/reading, or invalidating affected subscriptions/sessions when grants change, would make the intended rule concrete. Include a disabled/removed connector case as well. This is a future acceptance-criteria suggestion; I have not tested a push implementation, and the proposal can remain unscheduled.
Summary
Plan only, no code. Since #1372 Stripe webhooks are stored and the model reads them with
webhook_recent_events, so an agent learns about an event only when it calls that tool. This plan describes how to push a notification to live MCP sessions when a verified event arrives, using the stateful session mode we already have, and what Cloud needs before it can be turned on there. Not scheduled: kept for later.Changes
docs/plans/webhook-wake-up.md: problem, what exists today, three options (MCP resource subscription, client-specific push, server-side reactions), a phased plan with estimates, security notes and open questions. Outside thellms.txtgenerator, like the other file indocs/plans/.Type
Testing
main(ingest controller,WebhookEventsService,McpSessionManager,release.sh,docker-compose.cloud.yml).Checklist
Related Issues
Follow-up to #1372.