Description
Is your feature request related to a problem? Please describe.
I have an MCP server with oAuth functional (a bearer / JWT token).
I don't see any point where to attach headers to all requests.
Is this a non-supported idea? I built it in the server for the official MCP Inspector but did not expect not to not find this option in the Swift SDK.
Describe the solution you'd like
A simple way to Auth my client after login.
I found how internally headers are set:
But not how to do that in a supported way from outside the SDK.
Describe alternatives you've considered
Tried to keep track of this in the sessions on the server but that seems like the wrong way to go around this.
Additional context
Open to both alternatives when I don't understand the concept. We do use the session id's that all works fine but we don't see on the server (TypeScript SDK) and easy way to handle that. While we do see an oAuth example in the TypeScript SDK: