Skip to content

Commit e19a627

Browse files
committed
Add --frozen flag to uv run commands in Claude config
When generating Claude Desktop configuration files, the uv run commands now include the --frozen flag. This prevents uv from updating lock files when Claude Desktop launches MCP servers. Without this flag, running MCP servers could inadvertently update uv.lock, potentially causing issues in development environments and CI pipelines. The --frozen flag ensures dependency resolution uses the existing lock file without modifications. This also fixes test_command_execution which was executing uv run without --frozen, causing spurious lock file updates during test runs.
1 parent 3390e49 commit e19a627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/cli/claude.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def update_claude_config(
9999
env_vars = existing_env
100100

101101
# Build uv run command
102-
args = ["run"]
102+
args = ["run", "--frozen"]
103103

104104
# Collect all packages in a set to deduplicate
105105
packages = {MCP_PACKAGE}

0 commit comments

Comments
 (0)