π The fast, Pythonic way to build MCP servers and clients.
fix ruff
Juergen Eger2591836d86bc
diff --git a/src/fastmcp/server/openapi.py b/src/fastmcp/server/openapi.pyindex b53dae111..931edd00b 100644--- a/src/fastmcp/server/openapi.py+++ b/src/fastmcp/server/openapi.py@@ -296,7 +296,7 @@ class OpenAPIResource(Resource):# Ensure we don't use resource identifier as parameterif i < expected_param_count:# Get values from the end of parts- param_value = parts[-1 -i]+ param_value = parts[-1 - i]path_params[param_name] = param_value# Replace path parameters with their values