Skip to content

Commit 512f82e

Browse files
benbpazure-sdk
authored andcommitted
Specify run directory as repo root for mcp runner
1 parent 6817e5d commit 512f82e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ param(
66
[string]$Version, # Default to latest
77
[string]$InstallDirectory = (Join-Path $HOME ".azure-sdk-mcp" "azsdk"),
88
[string]$Repository = 'Azure/azure-sdk-tools',
9+
[string]$RunDirectory = (Resolve-Path (Join-Path $PSScriptRoot .. .. ..)),
910
[switch]$Run,
1011
[switch]$UpdateVsCodeConfig,
1112
[switch]$Clean
@@ -56,5 +57,5 @@ $exe = Install-Standalone-Tool `
5657
-Repository $Repository
5758

5859
if ($Run) {
59-
Start-Process -FilePath $exe -ArgumentList 'start' -NoNewWindow -Wait
60+
Start-Process -WorkingDirectory $RunDirectory -FilePath $exe -ArgumentList 'start' -NoNewWindow -Wait
6061
}

0 commit comments

Comments
 (0)