Skip to content

Commit 4c6843c

Browse files
committed
fix: force uvx refresh in install scripts to ensure latest version
1 parent e67fa2b commit 4c6843c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

scripts/install-macos.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ if 'mcpServers' not in config:
121121
# Add/update Home Assistant config (using full path for Claude Desktop compatibility)
122122
config['mcpServers']['Home Assistant'] = {
123123
"command": uvx_path,
124-
"args": ["ha-mcp@latest"],
124+
"args": ["--refresh", "ha-mcp@latest"],
125125
"env": {
126126
"HOMEASSISTANT_URL": demo_url,
127127
"HOMEASSISTANT_TOKEN": demo_token
@@ -140,7 +140,7 @@ else
140140
"mcpServers": {
141141
"Home Assistant": {
142142
"command": "$UVX_PATH",
143-
"args": ["ha-mcp@latest"],
143+
"args": ["--refresh", "ha-mcp@latest"],
144144
"env": {
145145
"HOMEASSISTANT_URL": "$DEMO_URL",
146146
"HOMEASSISTANT_TOKEN": "$DEMO_TOKEN"
@@ -157,7 +157,7 @@ printf "\n"
157157
# Step 3: Pre-download dependencies
158158
printf "${YELLOW}Step 3: Pre-downloading ha-mcp...${NC}\n"
159159
printf " This speeds up Claude Desktop startup...\n"
160-
"$UVX_PATH" ha-mcp@latest --version > /dev/null 2>&1 || true
160+
"$UVX_PATH" --refresh ha-mcp@latest --version > /dev/null 2>&1 || true
161161
printf "${GREEN} Dependencies cached${NC}\n"
162162
printf "\n"
163163

scripts/install-windows.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ $JsonConfig = @"
7171
"mcpServers": {
7272
"Home Assistant": {
7373
"command": "uvx",
74-
"args": ["ha-mcp@latest"],
74+
"args": ["--refresh", "ha-mcp@latest"],
7575
"env": {
7676
"HOMEASSISTANT_URL": "$DemoUrl",
7777
"HOMEASSISTANT_TOKEN": "$DemoToken"
@@ -114,7 +114,7 @@ Write-Host ""
114114
Write-Host "Step 3: Pre-downloading ha-mcp..." -ForegroundColor Yellow
115115
Write-Host " This speeds up Claude Desktop startup..."
116116
try {
117-
& uvx ha-mcp@latest --version 2>&1 | Out-Null
117+
& uvx --refresh ha-mcp@latest --version 2>&1 | Out-Null
118118
Write-Host " Dependencies cached" -ForegroundColor Green
119119
} catch {
120120
Write-Host " Pre-download skipped (will download on first use)" -ForegroundColor Yellow

0 commit comments

Comments
 (0)