-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Note: I've tested this dozens (hundreds?) of times and I've only seen it once so far.
When tsh was invoked by Claude Code calling the fetch server through the gateway, it generated an error in the tools/list call:
Error Code: -32602
Invalid request parameters
A resources/list call that immediately followed succeeded, as did later initialization of subsequent fetch servers via tsh in the same Claude Code session.
Log contained:
WARNING:root:Failed to validate request: Received request before initialization was complete
The above message comes from the python SDK (used by fetch)
Here's a bug that may be related:
modelcontextprotocol/python-sdk#423
It's not really clear what we can do about this. Maybe we have the session track to timestamp of the notifications/initialized
messages and if another message comes in within some small window, we induce a small delay in forwarding it?