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
|
@@ -44,7 +44,7 @@ Internally, FastMCP uses a priority-ordered list of `RouteMap` objects to determ
|
|
| 44 |
|
| 45 |
- **Methods**: HTTP methods to match (e.g. `["GET", "POST"]` or `"*"` for all)
|
| 46 |
- **Pattern**: Regex pattern to match the route path (e.g. `r"^/users/.*"` or `r".*"` for all)
|
| 47 |
-
- **Tags**: A set of OpenAPI tags that must all be present (`{}` means
|
| 48 |
- **MCP type**: What MCP component type to create (the options are `TOOL`, `RESOURCE`, `RESOURCE_TEMPLATE`, `PROMPT`, or `EXCLUDE` to exclude the route from the MCP server)
|
| 49 |
|
| 50 |
Each OpenAPI route is matched against `RouteMap` objects in order, and the **first match wins** to determine the MCP component type. For example, here are the default route mappings, expressed as `RouteMap` objects in priority order:
|
|
|
|
| 44 |
|
| 45 |
- **Methods**: HTTP methods to match (e.g. `["GET", "POST"]` or `"*"` for all)
|
| 46 |
- **Pattern**: Regex pattern to match the route path (e.g. `r"^/users/.*"` or `r".*"` for all)
|
| 47 |
+
- **Tags**: A set of OpenAPI tags that must all be present. An empty set (`{}`) means no tag filtering, so the route matches regardless of its tags.
|
| 48 |
- **MCP type**: What MCP component type to create (the options are `TOOL`, `RESOURCE`, `RESOURCE_TEMPLATE`, `PROMPT`, or `EXCLUDE` to exclude the route from the MCP server)
|
| 49 |
|
| 50 |
Each OpenAPI route is matched against `RouteMap` objects in order, and the **first match wins** to determine the MCP component type. For example, here are the default route mappings, expressed as `RouteMap` objects in priority order:
|