By default, HTTP requests timeout after 5 seconds. If you have API endpoints that take longer to respond, you can configure a custom timeout by injecting your own httpx client.For a working example, see Configure HTTP Timeout Example.
Can I add custom tools other than FastAPI endpoints?
Currently, FastApiMCP only supports tools that are derived from FastAPI endpoints. If you need to add custom tools that don’t correspond to API endpoints, you can:
Create a FastAPI endpoint that wraps your custom functionality
Contribute to the project by implementing custom tool support
Follow the discussion in issue #75 for updates on this feature request.
If you have specific use cases for custom tools, please share them in the issue to help guide the implementation.