Fix Docker containerization for MCP server #67
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The Heroku MCP Server fails to run properly in Docker containers due to several configuration issues:
dist/index.jsinstead of the properbin/heroku-mcp-server.mjsentry pointbin/directory which contains the actual server entry pointSolution
This PR includes essential fixes for Docker containerization:
Dockerfile Improvements
node bin/heroku-mcp-server.mjsas the entrypointchmod +xdist/andbin/directories to maintain the proper server structureDocker Usage Documentation
Testing
The fixed Docker container now properly:
Test Command
Configuration Examples
Claude Desktop
{ "mcpServers": { "heroku": { "command": "docker", "args": ["run", "--rm", "-i", "--env-file", "/path/to/.env", "heroku-mcp-server:latest"] } } }Cursor
{ "heroku": { "command": "docker", "args": ["run", "--rm", "-i", "--env-file", "/path/to/.env", "heroku-mcp-server:latest"] } }This enables the Heroku MCP Server to be easily deployed and used in containerized environments for AI coding assistants that support the Model Context Protocol.