Hoping someone can help me with this. When attempting to run this service inside a docker container, I get an error starting:
Comand run inside an entrypoint bash file:
exec /dist/apollo-mcp-server
–schema /dist/config/schema.graphql
–endpoint http://localhost:8080/
–introspection “$@”
Error:
2025-06-28T21:24:22.495693Z INFO Apollo MCP Server v0.4.2 // (c) Apollo Graph, Inc. // Licensed under MIT
2025-06-28T21:24:22.517791Z INFO Starting MCP server in stdio mode
2025-06-28T21:24:22.518235Z ERROR serving error: ConnectionClosed(“initialized request”)
Error: Failed to initialize MCP server
Caused by:
connection closed: initialized request
Hi @Matthew_Campbell, it appears that you’re running the MCP server in Stdio mode within a Docker container, but no MCP client is connected to manage the initialization handshake. When you run the server binary without specifying a transport mode, it defaults to stdio transport.
Instead of using stdio transport, consider using the Streamable HTTP transport mode. This mode is designed for network communication and can handle HTTP requests directly. Use the --http-port
option to enable Streamable HTTP transport, and ensure that you expose and map the port when running the container.
Alternatively, the Apollo MCP Server is available as a standalone Docker container. By default, it uses Streamable HTTP transport on container port 5000. Please refer to the following documentation:
Thank you very much!!! Apologies for missing that, I didn’t quite pick up on that the --http-port
would also change the transport mode.
1 Like