Skip to content

Conversation

Bernardoow
Copy link

Describe your changes

Add documentation explaining how to forward HTTP headers from incoming MCP requests to the underlying FastAPI endpoints by passing the headers parameter to FastApiMCP. The new section "Forwarding HTTP headers" shows a minimal example that forwards Authorization and a custom X-API-Key header, explains case-insensitive matching, and warns about forwarding sensitive headers.

@Bernardoow
Copy link
Author

Hi @shahar4499 !!

Add information on how to include additional headers to be forwarded.

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