Fixes to auto-download/start azsdk mcp (#6578)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-05-15 16:44:59 -07:00 committed by GitHub
parent 5d4324dd7d
commit 126452efd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
#!/bin/env pwsh
param(
[string]$FileName = 'azsdk',
[string]$FileName = 'Azure.Sdk.Tools.Cli',
[string]$Package = 'azsdk',
[string]$Version, # Default to latest
[string]$InstallDirectory = (Join-Path $HOME ".azure-sdk-mcp" "azsdk"),
@ -56,5 +56,5 @@ $exe = Install-Standalone-Tool `
-Repository $Repository
if ($Run) {
Start-Process -FilePath $exe -NoNewWindow -Wait
}
Start-Process -FilePath $exe -ArgumentList 'start' -NoNewWindow -Wait
}