Sync eng/common directory with azure-sdk-tools for PR 10969 (#6639)

* Fix vscode config auto-install in mcp script

* Update eng/common/mcp/azure-sdk-mcp.ps1

Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com>

---------

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com>
This commit is contained in:
Azure SDK Bot 2025-06-24 13:59:06 -07:00 committed by GitHub
parent 2626f12add
commit 22251970c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,9 +26,9 @@ if ($Clean) {
}
if ($UpdateVsCodeConfig) {
$vscodeConfigPath = $PSScriptRoot + "../../../.vscode/mcp.json"
$vscodeConfigPath = Join-Path $PSScriptRoot ".." ".." ".." ".vscode" "mcp.json"
if (Test-Path $vscodeConfigPath) {
$vscodeConfig = Get-Content -Raw $vscodeConfig | ConvertFrom-Json -AsHashtable
$vscodeConfig = Get-Content -Raw $vscodeConfigPath | ConvertFrom-Json -AsHashtable
}
else {
$vscodeConfig = @{}
@ -36,7 +36,7 @@ if ($UpdateVsCodeConfig) {
$serverKey = "azure-sdk-mcp"
$serverConfig = @{
"type" = "stdio"
"command" = "/home/ben/azs/azure-sdk-tools/eng/common/mcp/azure-sdk-mcp.ps1"
"command" = "$PSCommandPath"
}
$orderedServers = [ordered]@{
$serverKey = $serverConfig