Spaces:
Running
Running
Jeremiah Lowin Copilot commited on
Update docs/servers/openapi.mdx
Browse filesCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- docs/servers/openapi.mdx +1 -1
docs/servers/openapi.mdx
CHANGED
|
@@ -43,7 +43,7 @@ That's it! Your entire API is now available as an MCP server. Clients can discov
|
|
| 43 |
|
| 44 |
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.
|
| 45 |
|
| 46 |
-
While this is a pragmatic default for maximum compatibility, you can easily customize this behavior.
|
| 47 |
|
| 48 |
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.
|
| 49 |
|
|
|
|
| 43 |
|
| 44 |
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.
|
| 45 |
|
| 46 |
+
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.
|
| 47 |
|
| 48 |
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.
|
| 49 |
|