π The fast, Pythonic way to build MCP servers and clients.
Clarify declared header parameters in the OpenAPI docs (#5437)
Jeremiah Lowin57ae4baf53d3
diff --git a/docs/integrations/openapi.mdx b/docs/integrations/openapi.mdxindex 7d5271b1b..1572dc4cd 100644--- a/docs/integrations/openapi.mdx+++ b/docs/integrations/openapi.mdx@@ -401,7 +401,7 @@ mcp = FastMCP.from_openapi(Tool arguments map to the parameters and request body that the operation declares. FastMCP ignores any other arguments.-Headers you configure on the HTTP client are sent with each request, except `Host`, which FastMCP takes from the request URL. When the MCP server runs over HTTP, FastMCP also forwards headers from the incoming MCP request, except credential and connection headers such as `Authorization`, `Cookie`, and `Host`. Forwarded headers only fill in headers that the outgoing request does not already set. This applies to tools, resources, and resource templates.+A header parameter that the operation declares takes the value the tool call supplies. Otherwise, headers you configure on the HTTP client are sent with each request, except `Host`, which FastMCP takes from the request URL. When the MCP server runs over HTTP, FastMCP also forwards headers from the incoming MCP request, except credential and connection headers such as `Authorization`, `Cookie`, and `Host`. Forwarded headers only fill in headers that the outgoing request does not already set. This applies to tools, resources, and resource templates.FastMCP intelligently handles different types of parameters in OpenAPI requests: