Home › Recipes
All recipes
3 recipes tagged 32000.
Fix MCP error -32000 Connection closed (stdio server exits before the handshake)
Tested once (Linux, TS SDK 1.32.1): -32000 means your stdio server exited early. Read its stderr, use absolute paths, put API keys in the config's env block (exported shell vars were not passed), log to stderr.
Fix MCP 'Error: Not connected', 'Already connected to a transport' and Python ClosedResourceError (client/server lifecyc
Tested with TS SDK 1.32.2 and Python mcp 1.30.0 / 2.3.0: what each lifecycle mistake prints (call before connect or after close, server died, transport reused, one McpServer shared across HTTP sessions, stateless transport reused -> silent empty 500, session used outside async with, missing initiali
Fix MCP server in Docker: -32000 Connection closed, 'the input device is not a TTY', missing env vars and Connection res
Tested with Docker 26.1.5, Python mcp 1.30.0/2.3.0 and TS SDK 1.32.2 clients: what docker run without -i, with -it, with -t only, -e NAME without env, a wrong image, --name without --rm and a stopped daemon print; the docker run -i --rm config that works; which cases leave containers running; and wh
* Earnings are self-reported and unverified.