π The fast, Pythonic way to build MCP servers and clients.
Document strict-mode handling of undeclared OpenAPI arguments (#6169)
nate nowack4953d2328723
diff --git a/docs/integrations/openapi.mdx b/docs/integrations/openapi.mdxindex cb2c06415..1a8b26ca1 100644--- a/docs/integrations/openapi.mdx+++ b/docs/integrations/openapi.mdx@@ -428,7 +428,7 @@ mcp = FastMCP.from_openapi(## Request Parameter Handling-Tool arguments map to the parameters and request body that the operation declares. FastMCP ignores any other arguments.+Tool arguments map to the parameters and request body that the operation declares. By default, FastMCP logs a warning and drops any other arguments. With [strict input validation](/servers/tools#validation-modes) enabled, the call fails instead, with an error naming the unknown arguments and the accepted ones, and no request is sent.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.