WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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