Skip to content

Git MCP Server Docker Image Build Failure #997

@Henry-Steele

Description

@Henry-Steele

Version inconsistency in uv.lock causing Docker build failure

Description

When attempting to build the Docker image for the Git MCP server using the provided Dockerfile, the build fails due to a version inconsistency in the uv.lock file. The error specifically indicates a mismatch between the declared version and the actual wheel file version.

Error message:

error: Failed to parse `uv.lock`
Caused by: The entry for package `mcp` v1.1.0 has wheel `mcp-1.0.0-py3-none-any.whl` with inconsistent version: v1.0.0

Issue Details

The uv.lock file contains an inconsistent version reference:

  • The package entry for mcp declares version = "1.1.0"
  • However, both the sdist and wheel references point to mcp-1.0.0 files:
    • sdist: mcp-1.0.0.tar.gz
    • wheel: mcp-1.0.0-py3-none-any.whl

Reproduction Steps

  1. Clone the repository
  2. Navigate to the git server directory: cd src/git
  3. Run docker build -t mcp/git:latest -f Dockerfile .
  4. Observe the build failure

Workaround

The issue can be resolved by regenerating the lockfile:

cd src/git
rm uv.lock
uv lock

Suggested Fix

Regenerate and commit a corrected uv.lock file to the repository to ensure consistent version references. This will prevent build failures for users who are trying to build the Docker image directly from the repository.

Environment Information

  • Docker version: 4.39.0
  • Operating System: Win 11 24h2
  • Python version: 3.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions