Skip to content

Default uvx isolation image is -slim and has no git, so every git+https:// MCP server fails under isolation #1143

Closed

Description

@Dumbris

Summary

The default Docker image for uvx / python / pip / pipx is a -slim variant that ships no git. Any MCP server installed from a git URL therefore can never start under Docker isolation.

Evidence

internal/config/config.go:1535-1539 defaults these runtimes to ghcr.io/astral-sh/uv:python3.13-bookworm-slim.

$ docker run --rm --entrypoint sh ghcr.io/astral-sh/uv:python3.13-bookworm-slim -c "command -v git || echo NO GIT"
NO GIT

$ docker run --rm --entrypoint sh ghcr.io/astral-sh/uv:python3.13-bookworm -c "git --version"
git version 2.39.5

Real-world failure

gcore-mcp-server, configured as the vendor documents it:

{ "command": "uvx",
  "args": ["--from", "gcore-mcp-server@git+https://github.com/G-Core/gcore-mcp-server.git", "gcore-mcp-server"] }

Container stderr:

Updating https://github.com/G-Core/gcore-mcp-server.git (HEAD)
× Failed to download and build `gcore-mcp-server @ git+https://github.com/G-Core/gcore-mcp-server.git@394e9ca`
├─▶ Git operation failed
╰─▶ Git executable not found. Ensure that Git is installed and available.

This is not a niche shape. A large share of MCP servers ship only as a git URL with no PyPI release (gcore-mcp-server is a 404 on PyPI), so for those servers Docker isolation is unusable out of the box. The user's only escape is to discover the cause from container stderr and hand-write a per-server image override.

Suggested fix

Don't bump the global default to non-slim — that costs every user ~700MB for a case most don't hit.

GetDockerImage already receives the full *config.ServerConfig, so it can inspect args:

  • if no per-server isolation.image override is set, and the runtime is a Python package runner, and any arg contains git+ → resolve to a git-capable image (e.g. a new default_images["uvx-git"] key, defaulting to ghcr.io/astral-sh/uv:python3.13-bookworm).

Keeping it a named default_images key rather than a hardcoded string means users can still retarget it.

Related: #1144 (the resulting error is unclassified and tells the user to file a bug).

Activity

  1. added
    kind/bug
    area/docker
    priority/high
    on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/dockerkind/bugpriority/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions