Skip to content

Commit bdaea71

Browse files
benbpazure-sdk
authored andcommitted
Fix vscode config auto-install in mcp script
1 parent 55a58b9 commit bdaea71

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)