File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,10 +72,16 @@ jobs:
7272 if ($env:RUNNER_OS -eq 'Windows') { $mcpPath = "$mcpPath.exe" }
7373 if (-not (Test-Path $mcpPath)) { throw "Expected demo executable not found: $mcpPath" }
7474
75- $proc = Start-Process -FilePath $mcpPath -RedirectStandardError "$env:TEMP/mcp_stderr.txt" -PassThru -NoNewWindow
75+ $tempRoot = $env:RUNNER_TEMP
76+ if ([string]::IsNullOrWhiteSpace($tempRoot)) {
77+ $tempRoot = [System.IO.Path]::GetTempPath()
78+ }
79+ $stderrPath = Join-Path $tempRoot "mcp_stderr_$PID.txt"
80+
81+ $proc = Start-Process -FilePath $mcpPath -RedirectStandardError $stderrPath -PassThru -NoNewWindow
7682 Start-Sleep -Seconds 3
7783 $proc.Kill()
78- $stderr = Get-Content "$env:TEMP/mcp_stderr.txt" -Raw -ErrorAction SilentlyContinue
84+ $stderr = Get-Content $stderrPath -Raw -ErrorAction SilentlyContinue
7985 if ($stderr -notmatch 'mcp_filesystem ready') {
8086 throw "mcp_filesystem_demo did not emit readiness line. stderr: $stderr"
8187 }
You can’t perform that action at this time.
0 commit comments