8000 fix(server): serve /mcp statelessly so ChatGPT discovers the tools by kvaps · Pull Request #300 · aenix-io/aeman · GitHub
[go: up one dir, main page]

Skip to content

fix(server): serve /mcp statelessly so ChatGPT discovers the tools - #300

Merged
kvaps merged 2 commits into
mainfrom
fix/mcp-chatgpt-discovery
Nov 7, 2026
Merged

kvaps merged 2 commits into
mainfrom
fix/mcp-chatgpt-discovery

Conversation

@kvaps
@kvaps kvaps commented Nov 7, 2026
Copy link
Copy Markdown
Member

ChatGPT could sign in to the /mcp connector but then failed with "Authentication succeeded, action discovery failed".

Its connector speaks MCP 2026-07-28: it sends server/discover and then tools/list, without a session. The /mcp transport kept sessions, and the SDK only offers 2026-07-28 on a stateless transport, so server/discover came back as "method not found" or "protocol version not supported" and no tools were listed.

/mcp now runs statelessly. Clients of the 2026-07-28 protocol discover and list the tools, and clients of the 2025 initialize handshake (Claude and others) connect as before, each request answered on its own. No session id is issued any more, and a GET stream 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.md updated.

kvaps added 2 commits November 7, 2026 08:05
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>
@kvaps
kvaps merged commit c96383a into main Nov 7, 2026
2 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.

1 participant

0