Skip to content

Drop the MCP Events bridge for clients that predate SEP-3415 once they follow the spec #41158

Open

Description

@juliusmarminge

#41141 adds MCP Events webhook delivery per SEP-3415 (io.modelcontextprotocol/events, finalized in beta on 2026-11-20). Tested live against @ai-sdk/mcp 2.0.103, and checked against ChatGPT's MCP Events docs, the clients that use webhooks today follow earlier drafts instead of the final spec. So #41141 carries a small bridge that also works for clients following the spec. Each piece should come out once the clients have caught up:

Bridge in #41141 SEP-3415 says Why we bridge
Also advertise capabilities.events: {} next to capabilities.extensions["io.modelcontextprotocol/events"] only the extension entry ChatGPT's docs and @ai-sdk/mcp detect support only by capabilities.events
Event deliveries use webhook-id = eventId (a deterministic, charset-safe evt_… hash of the milestone id) webhook-id MUST NOT be derived from eventId ChatGPT's docs require them to be equal, and @ai-sdk/mcp and TanStack AI reject deliveries where they differ (400)
Accept events/subscribe/events/unsubscribe without an Mcp-Name header (a mismatched header is still rejected) Mcp-Name MUST equal params.name @ai-sdk/mcp 2.0.103 omits it on events/*

Check back on ChatGPT's MCP Events docs (https://developers.openai.com/plugins/build/mcp-events), @ai-sdk/mcp and @tanstack/ai-mcp releases, and Hookdeck's support table (https://hookdeck.com/webhooks/guides/what-are-mcp-events). When a client follows the final spec on a row, remove that part of the bridge (each place is marked with a comment linking this issue). Also report the AI SDK gaps upstream to Vercel if nobody has.

Still to find out: whether ChatGPT reaches T3 over the initialize protocol (2025-06-18) or 2026-07-28. Our events are only served on 2026-07-28, so a live ChatGPT test through T3 Connect should confirm this.

Activity

  1. juliusmarminge commented on Nov 23, 2026

    @juliusmarminge
    MemberAuthor

    The removal is ready as draft #41186. It drops all three bridge pieces plus the hashed evt_… occurrence id, and turns the bridge tests into spec tests. Mark it ready once the check here confirms ChatGPT, @ai-sdk/mcp and @tanstack/ai-mcp follow SEP-3415 on all three rows, then rerun the live client test from #41141 before merging.

  2. Eastonn commented on Nov 27, 2026

    @Eastonn

    I tested T3 Connect with ChatGPT Dot on macOS, running T3 0.1.14-nightly.20261127.5345. The Dot could see thread.run_settled and create a Scratch thread, but subscribing with threadIds: [<scratch-thread-id>] failed around 20:03 UTC on Nov 27. ChatGPT showed Unable to complete task request and no task was saved.

    The same filter worked at 20:05:24 UTC without a restart or an auth change. I ran the Scratch thread and the completion event reached the Dot in 464 ms. The local T3 traces show no explicit events/subscribe or callback result for either attempt.

    T3 caches failed callback checks for five minutes. That could explain the retries if they reused the same callback URL and principal, but I couldn't verify either. Where can I check whether events/subscribe reached T3 and what error it returned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions