Skip to content

Commit 8fd64d7

Browse files
Add debug logging
1 parent 6ff668e commit 8fd64d7

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/ModelContextProtocol.AspNetCore.Tests/ServerConformanceTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,18 @@ private static string GetConformanceVersion()
128128
{
129129
// Version is configured in Directory.Packages.props for central management
130130
var version = GetConformanceVersion();
131+
_output.WriteLine($"=== Requested conformance package version: {version} ===");
132+
133+
// First, check the actual version that will be used
134+
var versionCheckInfo = NodeHelpers.NpxStartInfo($"-y @modelcontextprotocol/conformance@{version} --version");
135+
var versionProcess = Process.Start(versionCheckInfo);
136+
if (versionProcess != null)
137+
{
138+
var actualVersion = await versionProcess.StandardOutput.ReadToEndAsync();
139+
await versionProcess.WaitForExitAsync();
140+
_output.WriteLine($"=== Actual conformance package version: {actualVersion.Trim()} ===");
141+
}
142+
131143
var startInfo = NodeHelpers.NpxStartInfo($"-y @modelcontextprotocol/conformance@{version} server --url {_serverUrl}");
132144

133145
var outputBuilder = new StringBuilder();

0 commit comments

Comments
 (0)