-
Notifications
You must be signed in to change notification settings - Fork 932
example for adjusting server timeout incomplete #231
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
The docs example for adjusting the server timeout is both incomplete and not quite correct.
- The docs say the default timeout is 5s (also here), but the actual timeout is 10s
fastapi_mcp/fastapi_mcp/server.py
Lines 115 to 119 in e5cad13
| self._http_client = http_client or httpx.AsyncClient( | |
| transport=httpx.ASGITransport(app=self.fastapi, raise_app_exceptions=False), | |
| base_url=self._base_url, | |
| timeout=10.0, | |
| ) |
- Following the example results in a broken server (error
Request URL is missing an 'http://' or 'https://' protocol.) because the base url is not set. One needs to copy the default http client setup from above for a working adjustment of timeout
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation