-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I tried your package with a schema that has recursivity, but I get a max recursion reached error. By looking into the code, I think there is a statement missing in the ´convert_type_to_json_schema´ function. It calls itself, but never actually increases the recursion current_depth parameter. Which makes it loop forever in case of recursion, and ends up exhausting the call stack max depth.
Adding ´current_depth += 1´ to the beginning of the function should solve the issue.
mcp_graphql/mcp_graphql/server.py
Line 157 in c6f854f
| if current_depth > max_depth: |
Metadata
Metadata
Assignees
Labels
No labels