Replies: 1 comment
-
|
One mental model that helps here is to separate three layers:
So even if the bearer token or API auth is correct, the request can still fail if the transport/session contract is incomplete. In practice, I think servers should make this easier to debug by being explicit about:
The most dangerous failure mode is when session state and auth state get mixed together implicitly. That tends to create brittle integrations and confusing authorization bugs later. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Discussion Topic
Hello,
I am attempting to use an AI tool (like ChatGPT or another Model Context Protocol client) to interact with a service running on an ngrok tunnel. However, the client is consistently failing to authenticate, and the server is rejecting the request.
The Error:
The server returns the following JSON response to the initial request:
{"error":{"code":-32000,"message":"Bad Request: Mcp-Session-Id header is required"},"id":"","jsonrpc":"2.0"}Beta Was this translation helpful? Give feedback.
All reactions