Skip to content

Commit 44df3e8

Browse files
committed
Build proxy path directly to avoid importing module in Named Pipe test
1 parent 4ff8c2e commit 44df3e8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/cross-platform-test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,16 @@ jobs:
324324
throw "Named Pipe server did not start within 15 seconds"
325325
}
326326
327-
# Start Proxy
327+
# Start Proxy (build path directly to avoid importing PowerShell.MCP in test script)
328328
Write-Host "Starting Proxy..."
329-
$proxyPath = Get-MCPProxyPath
329+
if ($IsWindows) {
330+
$proxyPath = "$env:USERPROFILE\Documents\PowerShell\Modules\PowerShell.MCP\bin\win-x64\PowerShell.MCP.Proxy.exe"
331+
} elseif ($IsMacOS) {
332+
$proxyPath = "$HOME/.local/share/powershell/Modules/PowerShell.MCP/bin/osx-arm64/PowerShell.MCP.Proxy"
333+
} else {
334+
$proxyPath = "$HOME/.local/share/powershell/Modules/PowerShell.MCP/bin/linux-x64/PowerShell.MCP.Proxy"
335+
}
336+
Write-Host "Proxy path: $proxyPath"
330337
$psi = [System.Diagnostics.ProcessStartInfo]::new()
331338
$psi.FileName = $proxyPath
332339
$psi.RedirectStandardInput = $true

0 commit comments

Comments
 (0)