fix: repair Docker stdio entrypoint#21
Conversation
Update the Docker image to run the existing stdio entrypoint, openproject-mcp-fastmcp.py. Add the FastMCP runtime dependencies required by that entrypoint, and add the MIT LICENSE file that matches the project metadata. Validation: - docker build -t local/openproject-mcp-contrib:test /tmp/openproject-mcp-server-contrib - timeout 5 docker run --rm -i -e OPENPROJECT_URL=http://example.invalid -e OPENPROJECT_API_KEY=dummy local/openproject-mcp-contrib:test
b904bdc to
d898347
Compare
|
Thanks for this, @thedyps — the entrypoint had drifted from the renamed stdio module and the image couldn't start; your fix is on point. For transparency on where it has landed: LS Instruments maintains an actively developed downstream fork of this project (https://github.com/LS-Instruments/openproject-mcp-server) that we're advancing for day-to-day agentic project management on OpenProject. Given the current upstream review cadence we're maintaining that fork independently for now. As part of that we've integrated the entrypoint fix and the Integrated into our We'd gladly contribute this back upstream if review capacity returns, and you're welcome to draw from our fork in the meantime. Thanks again. |
The Docker image could not run the server: - CMD pointed at openproject-mcp.py, which was renamed to openproject-mcp.legacy.py; the current stdio entry point is openproject-mcp-fastmcp.py. - requirements.txt was missing fastmcp and pydantic, so the image failed at import even with the right entry point. Point CMD at openproject-mcp-fastmcp.py and refresh requirements.txt to mirror the runtime dependencies declared in pyproject.toml. fastmcp is pinned <3 because the code targets the fastmcp 2.x tool API (3.x drops the attributes it relies on); pyproject.toml carries the same uncapped declaration and should be capped too (separate change). Based on upstream PR AndyEverything#21 by @thedyps (entry point + requirements); its LICENSE addition is handled separately. Verified: docker build succeeds, the image imports src.server (fastmcp 2.14.7, 62 tools), and `python openproject-mcp-fastmcp.py` starts the MCP server over stdio. Closes #15 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Co-Authored-By: thedyps <thedyps@users.noreply.github.com>
Summary
Validation