| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Hi @mekkiamiri, thank you for your contribution! We appreciate you taking the time to submit this pull request. Currently this PR is under review by our team, we will keep you posted if any additional information is required. thank you. |
Sorry, something went wrong.
Support a Supplier<Map> headersProvider on SseServerParameters and StreamableHttpServerParameters, evaluated on every HTTP request instead of frozen at construction time. When set, headersProvider takes precedence over the static headers map. This enables multi-tenant scenarios where each user's JWT must be forwarded to MCP servers requiring authentication.
|
Adding a +1 to this! This is an incredibly helpful improvement. @mekkiamiri Thanks for the hard work on the PR. Looking forward to a review whenever the maintainers have a moment to take a look. Hope this code will be available in next release |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Motivation
In multi-tenant applications (e.g. Spring Boot serving multiple authenticated users), each user has their own JWT token that must be forwarded to MCP servers requiring authentication. Currently, headers are frozen at McpToolset construction time, making per-user auth impossible without creating a new toolset per request.
Related: #1382
Changed files
Test plan