fastapi_mcp icon indicating copy to clipboard operation
fastapi_mcp copied to clipboard

[BUG] Endpoints with Form Params not handled correctly

Open davidschwab98 opened this issue 9 months ago • 1 comments

Describe the bug

Currently fastapi_mcp doesn't correctly handles endpoints with form paramers. The reason for this is that in the _request method of the FastApiMCP class, all parameters are passed as the json argument, wich leads to a 422 return (should be the body param instead).

To Reproduce Create an enpoint with form parameters.

System Info Python 3.13, latest versions of FastAPI and fastapi_mcp

davidschwab98 avatar Apr 27 '25 00:04 davidschwab98

Can we please get this merged soon?

s3ts avatar Sep 30 '25 02:09 s3ts