Skip to content

Use package-lock.json to pin conformance test dependencies#1247

Merged
halter73 merged 7 commits intomainfrom
halter73/pin-client
Feb 6, 2026
Merged

Use package-lock.json to pin conformance test dependencies#1247
halter73 merged 7 commits intomainfrom
halter73/pin-client

Conversation

@halter73
Copy link
Contributor

@halter73 halter73 commented Feb 5, 2026

  • Adds package-lock.json
  • Removes npx usage in conformance tests so we don't get overly up-to-date dependencies which is causing failures like the ones we've seen in PRs today because @modelcontextprotocol/[email protected] added a new guard in Protocol.connect() that throws "Already connected to a transport" which older versions of the client conformance tests don't account for.

Example failure: https://github.com/modelcontextprotocol/csharp-sdk/actions/runs/21724253697/job/62680470772?pr=1245

@halter73 halter73 force-pushed the halter73/pin-client branch from 92a1909 to 2ad7489 Compare February 6, 2026 00:21
@halter73
Copy link
Contributor Author

halter73 commented Feb 6, 2026

I updated the repo to include a package-lock.json and updated the conformance tests to call npm install if necessary and avoid npx so we always use what's in the lock file. That should keep things reliable on the CI and for local development.

@halter73 halter73 changed the title Pin version in client conformance tests Use package-lock.json to pin conformance test dependencies Feb 6, 2026
jeffhandley
jeffhandley previously approved these changes Feb 6, 2026
Copy link
Contributor

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

…Info

- Revert accidental change to non-Windows NpmStartInfo logic
@halter73 halter73 merged commit e55ae7b into main Feb 6, 2026
10 checks passed
@halter73 halter73 deleted the halter73/pin-client branch February 6, 2026 01:42
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.

3 participants