Skip to content

Plan: push webhook events to connected agents - #1649

Open
helpcodeai wants to merge 2 commits into
mainfrom
docs/webhook-wake-up-plan
Open

helpcodeai wants to merge 2 commits into
mainfrom
docs/webhook-wake-up-plan

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

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 the llms.txt generator, like the other file in docs/plans/.

Type

  • Documentation

Testing

  • No tests needed (documentation only). Code references checked against main (ingest controller, WebhookEventsService, McpSessionManager, release.sh, docker-compose.cloud.yml).

Checklist

  • This PR has a descriptive title

Related Issues

Follow-up to #1372.

@Coding-Professional Coding-Professional added the documentation Improvements or additions to documentation label Nov 17, 2026

@Coding-Professional Coding-Professional left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@helpcodeai helpcodeai closed this Dec 5, 2026
@helpcodeai helpcodeai reopened this Dec 5, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 5, 2026

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants