π The fast, Pythonic way to build MCP servers and clients.
Improve language for route_map_fn tip (#1788) (#1792)
Jeremiah Lowin8eadaaa958b8
diff --git a/docs/integrations/openapi.mdx b/docs/integrations/openapi.mdxindex 056cea1bb..e023535a8 100644--- a/docs/integrations/openapi.mdx+++ b/docs/integrations/openapi.mdx@@ -217,7 +217,7 @@ For advanced use cases that require more complex logic, you can provide a `routeIn addition to more precise targeting of methods, patterns, and tags, this function can access any additional OpenAPI metadata about the route.<Tip>-The `route_map_fn` **is** called on routes that matched `MCPType.EXCLUDE` in your custom maps, giving you an opportunity to override the exclusion.+The `route_map_fn` is called on all routes, even those that matched `MCPType.EXCLUDE` in your custom maps. This gives you an opportunity to customize the mapping or even override an exclusion.</Tip>```python