Skip to content

Conversation

@sarang-pratham
Copy link

Describe your changes

This PR adds a new subsection to docs/advanced/auth.mdx documenting the headers allowlist parameter available on the FastApiMCP class.

While reading the existing Auth documentation, I noticed that the default behavior (forwarding the authorization header) is described, but the mechanism for forwarding additional custom headers was not documented. This made it non-obvious that multi-tenant IDs, request IDs, or other metadata could be passed through to tool invocations.

This addition improves discoverability for users implementing custom authentication, tracing, or metadata propagation.

Issue ticket number and link (if applicable)

N/A - documentation improvement surfaced during use of the library.

Screenshots of the feature / bugfix

N/A - documentation improvement surfaced during use of the library.

Checklist before requesting a review

  • Added relevant tests
  • Run ruff & mypy
  • All tests pass

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