Skip to content

Commit dc4a9d4

Browse files
authored
Merge pull request #101 from danlapid/dlapid/fix_unbound_local
Fix error in openapi conversion
2 parents a2dcfad + 1364715 commit dc4a9d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fastapi_mcp/openapi/convert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ def convert_openapi_to_mcp_tools(
236236
# Add body parameters to properties
237237
for param_name, param in body_params:
238238
param_schema = param.get("schema", {})
239+
param_desc = param.get("description", "")
239240
param_required = param.get("required", False)
240241

241242
properties[param_name] = param_schema.copy()

0 commit comments

Comments
 (0)