Skip to content

chore(deps): bump conformance to 0.1.15, port auth/pre-registration from v1.x#1650

Open
felixweinberger wants to merge 4 commits intomainfrom
chore/hono-lockfile-refresh
Open

chore(deps): bump conformance to 0.1.15, port auth/pre-registration from v1.x#1650
felixweinberger wants to merge 4 commits intomainfrom
chore/hono-lockfile-refresh

Conversation

@felixweinberger
Copy link
Contributor

@felixweinberger felixweinberger commented Mar 9, 2026

Bumps conformance 0.1.100.1.15. Pulls sdk@^1.26.0 (resolves to 1.27.1), clearing Dependabot alert #44 (GHSA-345p-7cg4-v4c7).

Forward-ports #1545 from v1.x so auth/pre-registration passes (adapter-only, no SDK changes). Adds expected-failures.yaml baseline for cross-app-access-complete-flow (SEP-990, blocked on #1531).

Also drops stale minimumReleaseAgeExclude entries.

@changeset-bot
Copy link

changeset-bot bot commented Mar 9, 2026

⚠️ No Changeset found

Latest commit: 6ff84da

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 9, 2026

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/client@1650

@modelcontextprotocol/server

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/server@1650

@modelcontextprotocol/express

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/express@1650

@modelcontextprotocol/hono

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/hono@1650

@modelcontextprotocol/node

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/node@1650

commit: 2970dc9

Pulls sdk@^1.26.0 (resolves to 1.27.1), clearing the Dependabot alert
for GHSA-345p-7cg4-v4c7 (cross-client data leak, fixed in 1.26.0).

Also removes stale minimumReleaseAgeExclude entries for
hono@4.11.4 and @hono/node-server@1.19.9 (both well past 7 days).
@felixweinberger felixweinberger force-pushed the chore/hono-lockfile-refresh branch from 5c7fbed to 113caa2 Compare March 9, 2026 17:48
@felixweinberger felixweinberger changed the title chore: bump hono + @hono/node-server in lockfile chore(deps): bump @modelcontextprotocol/conformance to 0.1.15 Mar 9, 2026
…cenarios

Conformance 0.1.15 added three scenarios the v2 SDK doesn't implement yet:
- client: auth/pre-registration (OAuth without DCR)
- client: auth/cross-app-access-complete-flow (SEP-990)
- server: dns-rebinding-protection

Baseline them via --expected-failures so CI exits 0 on expected failures,
1 on regressions or stale entries (scenario starts passing → must update file).
@felixweinberger felixweinberger marked this pull request as ready for review March 9, 2026 18:00
@felixweinberger felixweinberger requested a review from a team as a code owner March 9, 2026 18:00
The SDK has localhostHostValidation() middleware; the conformance test
server just wasn't using it. Add it so the dns-rebinding-protection
scenario passes instead of baselining it as an expected failure.
Forward-ports PR #1545 from v1.x. The SDK already skips DCR when
clientInformation() returns pre-populated credentials; only the
conformance adapter wiring was missing.

- withOAuthRetry: accept optional existingProvider
- everythingClient: register auth/pre-registration handler
- expected-failures: drop now-passing scenario
@felixweinberger felixweinberger changed the title chore(deps): bump @modelcontextprotocol/conformance to 0.1.15 chore(deps): bump conformance to 0.1.15, port auth/pre-registration from v1.x Mar 11, 2026
Copy link

@claude claude bot left a comment

Choose a reason for hiding this comment

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

LGTM — test-harness dependency bump with corresponding fixture updates, no production code touched.

Extended reasoning...

Overview

This PR bumps the @modelcontextprotocol/conformance dev dependency from 0.1.10 to 0.1.15 and makes the test harness changes needed to pass the new conformance suite version. All code changes are confined to test/conformance/ (a private test-only package):

  • pnpm-lock.yaml / package.json — the version bump itself, pulling sdk@1.27.1 transitively (clears a Dependabot alert for express-rate-limit)
  • pnpm-workspace.yaml — drops stale minimumReleaseAgeExclude entries for hono/@hono/node-server now that the fix versions are past the 7-day window
  • expected-failures.yaml — new baseline listing auth/cross-app-access-complete-flow as not-yet-implemented, wired into the test scripts via --expected-failures
  • everythingClient.ts — adds the auth/pre-registration scenario, following the same pattern as existing auth scenarios; uses a pre-populated ConformanceOAuthProvider to skip dynamic client registration
  • everythingServer.ts — enables localhostHostValidation() middleware so the DNS-rebinding-protection scenario passes
  • withOAuthRetry.ts — adds an optional existingProvider parameter with ?? fallback, fully backwards-compatible

Security risks

None. No production or published code is modified. The lockfile changes are transitive deps of a dev-only test package. The localhostHostValidation() addition improves the security posture of the test server (though it's only ever bound to localhost anyway).

Level of scrutiny

Low. This is test infrastructure maintenance — a dependency bump with the minimal fixture changes needed to keep CI green on the new suite version. No package exports, no API changes, no logic in shipped code. The shell script at scripts/run-server-conformance.sh already forwards "$@", so the new --expected-failures flag is correctly plumbed through.

Other factors

Verified that localhostHostValidation is exported from @modelcontextprotocol/express (packages/middleware/express/src/middleware/hostHeaderValidation.ts:50) and that ConformanceOAuthProvider.saveClientInformation exists (test/conformance/src/helpers/conformanceOAuthProvider.ts:38). The PR description mentions three new scenarios but only one is in expected-failures.yaml — this is consistent, since the other two (pre-registration and dns-rebinding) are implemented by this PR rather than marked as expected failures. No changeset is needed since @modelcontextprotocol/test-conformance is private.

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