From f933de16b307ca53a9a3594f6e317db5fcef0e59 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Tue, 10 Jun 2025 16:40:01 -0400 Subject: [PATCH] Update docs/servers/openapi.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/servers/openapi.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/servers/openapi.mdx b/docs/servers/openapi.mdx index 786aefdfd..ff7d6460c 100644 --- a/docs/servers/openapi.mdx +++ b/docs/servers/openapi.mdx @@ -43,7 +43,7 @@ That's it! Your entire API is now available as an MCP server. Clients can discov By default, FastMCP converts **every endpoint** in your OpenAPI specification into an MCP **Tool**. This provides a simple, predictable starting point that ensures all your API's functionality is immediately available to the vast majority of LLM clients which only support MCP tools. -While this is a pragmatic default for maximum compatibility, you can easily customize this behavior. Interally, FastMCP uses an ordered list of `RouteMap` objects to determine how to map OpenAPI routes to various MCP component types. +While this is a pragmatic default for maximum compatibility, you can easily customize this behavior. Internally, FastMCP uses an ordered list of `RouteMap` objects to determine how to map OpenAPI routes to various MCP component types. Each `RouteMap` specifies a combination of methods, patterns, and tags, as well as a corresponding MCP component type. Each OpenAPI route is checked against each `RouteMap` in order, and the first one that matches every criteria is used to determine its converted MCP type. A special type, `EXCLUDE`, can be used to exclude routes from the MCP server entirely.