Repository navigation
fix(server): serve /mcp statelessly so ChatGPT discovers the tools - #300
Merged
Merged
Conversation
ChatGPT's connector speaks MCP 2026-07-28: server/discover, then tools/list, with no session. A session-keeping transport does not offer that version, so the connector signed in and then reported "action discovery failed". The stateless transport answers that protocol and the 2025 initialize handshake alike. Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
ChatGPT adds the board as a custom connector from the endpoint URL with OAuth, so the dialog gives that URL beside the Claude Code command. Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ChatGPT could sign in to the
/mcpconnector but then failed with "Authentication succeeded, action discovery failed".Its connector speaks MCP 2026-07-28: it sends
server/discoverand thentools/list, without a session. The/mcptransport kept sessions, and the SDK only offers 2026-07-28 on a stateless transport, soserver/discovercame back as "method not found" or "protocol version not supported" and no tools were listed./mcpnow runs statelessly. Clients of the 2026-07-28 protocol discover and list the tools, and clients of the 2025initializehandshake (Claude and others) connect as before, each request answered on its own. No session id is issued any more, and aGETstream gets 405; nothing on this endpoint pushes to a client.Tests drive both paths over HTTP with a real bearer token. Matrix row G86,
docs/api.mdupdated.