Skip to content

Resolve test server paths deterministically - #1735

Merged
jeffhandley merged 2 commits into
modelcontextprotocol:mainfrom
PranavSenthilnathan:pranavsenthilnathan-resolve-testserver-paths
Jul 26, 2026
Merged

Resolve test server paths deterministically#1735
jeffhandley merged 2 commits into
modelcontextprotocol:mainfrom
PranavSenthilnathan:pranavsenthilnathan-resolve-testserver-paths

Conversation

@PranavSenthilnathan

Copy link
Copy Markdown
Contributor

Summary

  • resolve copied TestServer.exe and TestServer.dll from AppContext.BaseDirectory
  • preserve Windows direct execution, Mono invocation, and dotnet invocation behavior
  • make test server process resolution deterministic across CLI, IDE, CI, and Copilot sessions without depending on the working directory or PATH

Validation

  • dotnet test .\tests\ModelContextProtocol.Tests\ModelContextProtocol.Tests.csproj --framework net10.0 --filter "FullyQualifiedName~ModelContextProtocol.Tests.Transport.StdioClientTransportTests.EscapesCliArgumentsCorrectly|FullyQualifiedName~ModelContextProtocol.Tests.ClientIntegrationTests" (99 total: 97 passed, 2 skipped)
  • dotnet build (succeeded with 0 warnings and 0 errors)
  • dotnet test --no-build (rerun passed all projects/frameworks except one unrelated net9 cancellation race; the single failed test passed immediately in isolation)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ad8afb00-2809-4785-8781-014a90c8abf1
@jeffhandley
jeffhandley merged commit 5f5d5ea into modelcontextprotocol:main Jul 26, 2026
16 of 17 checks passed
@PranavSenthilnathan
PranavSenthilnathan deleted the pranavsenthilnathan-resolve-testserver-paths branch July 26, 2026 06:12
This was referenced Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants