MCP's Python and TypeScript SDKs fail to run persistently in Docker. Despite setting a lifespan in the Python SDK, mcp.run() exits immediately, shutting down the container. This issue affects all tested MCP projects, making real-world deployment impossible.
- Create an MCP server using the Python SDK with a lifespan function to manage resources.
- Build and run the Docker container.
- The MCP server connects to ArangoDB, logs success, and then exits immediately.
- The same behavior is observed with the TypeScript SDK.