Skip to content

refactor: Webhook delivery handlers#168

Merged
youbek merged 14 commits intoadcontextprotocol:mainfrom
youbek:feat/update-push-notification-implementation
Dec 19, 2025
Merged

refactor: Webhook delivery handlers#168
youbek merged 14 commits intoadcontextprotocol:mainfrom
youbek:feat/update-push-notification-implementation

Conversation

@youbek
Copy link
Collaborator

@youbek youbek commented Dec 10, 2025

This PR is the implementation of the recent protocol change regarding push notifications. More context here: adcontextprotocol/adcp#268

PR shouldn't affect functionality of the webhooks. Mostly adds stricter typing and provides utility functions/function signatures.

Demo Looms (MCP)

Demo Looms (A2A)

@youbek youbek force-pushed the feat/update-push-notification-implementation branch 2 times, most recently from 6e8a656 to 3988284 Compare December 10, 2025 19:06
@youbek youbek marked this pull request as ready for review December 10, 2025 19:07
@nastassiafulconis
Copy link

overall the architecture looks good and the type safety improvements are valuable. left some inline comments on specific areas that need attention before merging.

summary of inline feedback:

  • handleWebhook signature change is breaking tests (operation_id undefined errors)
  • type guards using any should add runtime validation
  • WebhookPayload export removal is a breaking change
  • consider adding timestamp validation for replay attack prevention
  • JSON.stringify in error handling could throw on circular refs

the normalization logic for mcp vs a2a is well done though.

@youbek youbek self-assigned this Dec 17, 2025
Copy link

@nastassiafulconis nastassiafulconis left a comment

Choose a reason for hiding this comment

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

this looks good! pending e2e tests but approving

@youbek youbek force-pushed the feat/update-push-notification-implementation branch from 81122c6 to edf4677 Compare December 19, 2025 12:18
@youbek youbek merged commit d816a04 into adcontextprotocol:main Dec 19, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants