Skip to content

fix: hide validator provider types from root declarations#2428

Open
chaochaoweb3 wants to merge 1 commit into
modelcontextprotocol:mainfrom
chaochaoweb3:fix-validator-root-declarations
Open

fix: hide validator provider types from root declarations#2428
chaochaoweb3 wants to merge 1 commit into
modelcontextprotocol:mainfrom
chaochaoweb3:fix-validator-root-declarations

Conversation

@chaochaoweb3

Copy link
Copy Markdown

Summary

  • remove validator provider class/draft type re-exports from the shared public root barrel
  • keep validator provider types available from the explicit validators/ajv and validators/cf-worker subpaths
  • add client/server barrel-clean regression coverage for both ESM and CJS root declarations

Fixes #2391.

Validation

  • corepack pnpm install --frozen-lockfile
  • corepack pnpm --filter @modelcontextprotocol/client build
  • corepack pnpm --filter @modelcontextprotocol/server build
  • corepack pnpm --dir packages/client exec vitest run test/client/barrelClean.test.ts
  • corepack pnpm --dir packages/server exec vitest run test/server/barrelClean.test.ts
  • corepack pnpm --filter @modelcontextprotocol/client typecheck
  • corepack pnpm --filter @modelcontextprotocol/server typecheck
  • git diff --check

@chaochaoweb3 chaochaoweb3 requested a review from a team as a code owner July 3, 2026 00:35
@changeset-bot

changeset-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b2978a0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@modelcontextprotocol/client Patch
@modelcontextprotocol/server Patch

Not sure what this means? Click here to learn what changesets are.

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

@pkg-pr-new

pkg-pr-new Bot commented Jul 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/@modelcontextprotocol/client@2428

@modelcontextprotocol/codemod

npm i https://pkg.pr.new/@modelcontextprotocol/codemod@2428

@modelcontextprotocol/core

npm i https://pkg.pr.new/@modelcontextprotocol/core@2428

@modelcontextprotocol/server

npm i https://pkg.pr.new/@modelcontextprotocol/server@2428

@modelcontextprotocol/server-legacy

npm i https://pkg.pr.new/@modelcontextprotocol/server-legacy@2428

@modelcontextprotocol/express

npm i https://pkg.pr.new/@modelcontextprotocol/express@2428

@modelcontextprotocol/fastify

npm i https://pkg.pr.new/@modelcontextprotocol/fastify@2428

@modelcontextprotocol/hono

npm i https://pkg.pr.new/@modelcontextprotocol/hono@2428

@modelcontextprotocol/node

npm i https://pkg.pr.new/@modelcontextprotocol/node@2428

commit: b2978a0

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.

alpha.3: CfWorkerJsonSchemaValidator and AjvJsonSchemaValidator declared in types but missing from runtime index.mjs export

1 participant