fix: Update Claude CLI commands to new mcp syntax
The Claude CLI recently changed its configuration commands from 'claude config add-server' to 'claude mcp add -s user' and from 'claude config list' to 'claude mcp list'. This updates the PowerShell setup script to detect and configure the zen server using the new command syntax, fixing configuration detection for Windows users. Changes: - Updated Test-ClaudeCliIntegration to use 'claude mcp list' - Updated instructions to use 'claude mcp add -s user' syntax
This commit is contained in:
@@ -1489,18 +1489,18 @@ function Test-ClaudeCliIntegration {
|
||||
Write-Info "Claude CLI detected - checking configuration..."
|
||||
|
||||
try {
|
||||
$claudeConfig = claude config list 2>$null
|
||||
$claudeConfig = claude mcp list 2>$null
|
||||
if ($claudeConfig -match "zen") {
|
||||
Write-Success "Claude CLI already configured for zen server"
|
||||
}
|
||||
else {
|
||||
Write-Info "To add zen server to Claude CLI, run:"
|
||||
Write-Host " claude config add-server zen $PythonPath $ServerPath" -ForegroundColor Cyan
|
||||
Write-Host " claude mcp add -s user zen $PythonPath $ServerPath" -ForegroundColor Cyan
|
||||
}
|
||||
}
|
||||
catch {
|
||||
Write-Info "To configure Claude CLI manually, run:"
|
||||
Write-Host " claude config add-server zen $PythonPath $ServerPath" -ForegroundColor Cyan
|
||||
Write-Host " claude mcp add -s user zen $PythonPath $ServerPath" -ForegroundColor Cyan
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user