komodo_api_call fails with JSON body/params - type validation error #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug Description
The
komodo_api_calltool fails when receiving JSON body or params parameters from MCP clients due to type validation issues.Error Message
Root Cause
The tool signature declares
bodyandparamsparameters asstrtype, but when MCP clients pass JSON objects, they are automatically parsed into Python dictionaries before reaching the tool. This causes a type mismatch and validation failure.Affected Code
The
komodo_api_callfunction likely has a signature similar to:Solution
Update the function signature to accept
Union[str, dict[str, Any]]for bothparamsandbodyparameters:Reference
This same issue was identified and fixed in the gitea-mcp-custom project:
f8eda211e6Impact
This bug prevents users from making API calls with JSON body or params, severely limiting the functionality of the komodo_api_call tool.