Skip to content

Commit 4bee788

Browse files
azure-sdkbenbpscbedd
authored
Sync eng/common directory with azure-sdk-tools for PR 10969 (#2726)
* Fix vscode config auto-install in mcp script * Update eng/common/mcp/azure-sdk-mcp.ps1 Co-authored-by: Scott Beddall <[email protected]> --------- Co-authored-by: Ben Broderick Phillips <[email protected]> Co-authored-by: Scott Beddall <[email protected]>
1 parent 78bfe0c commit 4bee788

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ if ($Clean) {
2626
}
2727

2828
if ($UpdateVsCodeConfig) {
29-
$vscodeConfigPath = $PSScriptRoot + "../../../.vscode/mcp.json"
29+
$vscodeConfigPath = Join-Path $PSScriptRoot ".." ".." ".." ".vscode" "mcp.json"
3030
if (Test-Path $vscodeConfigPath) {
31-
$vscodeConfig = Get-Content -Raw $vscodeConfig | ConvertFrom-Json -AsHashtable
31+
$vscodeConfig = Get-Content -Raw $vscodeConfigPath | ConvertFrom-Json -AsHashtable
3232
}
3333
else {
3434
$vscodeConfig = @{}
3535
}
3636
$serverKey = "azure-sdk-mcp"
3737
$serverConfig = @{
3838
"type" = "stdio"
39-
"command" = "/home/ben/azs/azure-sdk-tools/eng/common/mcp/azure-sdk-mcp.ps1"
39+
"command" = "$PSCommandPath"
4040
}
4141
$orderedServers = [ordered]@{
4242
$serverKey = $serverConfig

0 commit comments

Comments
 (0)