File tree Expand file tree Collapse file tree
tests/ModelContextProtocol.AspNetCore.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments