| 1 | initial version |
I asked Claude about this and it suggested:
This is almost certainly one of two things:
docker run --rm -i ... (stdio transport), the container exits the moment there's no active stdio session, and some MCP clients don't reliably restart it. Check docker ps -a right after the disconnect — if the container shows Exited, that's your issue. Try switching the client config to keep the container running persistently (docker run -d + docker exec wrapper, or a restart: unless-stopped policy if you're using docker-compose) instead of relying on --rm -i per-call.max_tokens or response-truncation setting you can lower.Also worth checking: run the server manually outside the MCP client (docker run -it ... uv run python -m energyplus_mcp_server.server or the local Python equivalent) and watch stdout/stderr directly — that'll tell you immediately whether it's a server-side crash vs. a client giving up on the connection.