diff --git a/src/fastmcp/server/openapi.py b/src/fastmcp/server/openapi.py index 931edd00b..ea8388ec0 100644 --- a/src/fastmcp/server/openapi.py +++ b/src/fastmcp/server/openapi.py @@ -278,7 +278,7 @@ class OpenAPIResource(Resource): if "{" in path and "}" in path: # Extract the resource ID from the URI (the last part after the last slash) parts = resource_uri.split("/") - + if len(parts) > 1: # Find all path parameters in the route path path_params = {}