Skip to content

docs: validate input-required wipe-cache responses#2546

Open
mturac wants to merge 1 commit into
modelcontextprotocol:mainfrom
mturac:izon/typescript-sdk-2542-input-required-validation
Open

docs: validate input-required wipe-cache responses#2546
mturac wants to merge 1 commit into
modelcontextprotocol:mainfrom
mturac:izon/typescript-sdk-2542-input-required-validation

Conversation

@mturac

@mturac mturac commented Jul 24, 2026

Copy link
Copy Markdown

Fixes #2542.

Summary

  • validate the wipe-cache confirmation and scope responses with schema-aware acceptedContent
  • re-request the scope when client-provided scope content is missing or invalid
  • remove the unsafe all fallback from the destructive example

Testing

  • corepack pnpm sync:snippets --check
  • corepack pnpm --filter @modelcontextprotocol/examples typecheck
  • corepack pnpm --dir examples exec tsx guides/servers/input-required.examples.ts
  • corepack pnpm --filter @modelcontextprotocol/examples lint
  • git diff --check

@mturac
mturac requested a review from a team as a code owner July 24, 2026 14:17
@changeset-bot

changeset-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3ce3386

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

pkg-pr-new Bot commented Jul 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

@modelcontextprotocol/client

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

@modelcontextprotocol/codemod

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

@modelcontextprotocol/core

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

@modelcontextprotocol/server

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

@modelcontextprotocol/server-legacy

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

@modelcontextprotocol/express

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

@modelcontextprotocol/fastify

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

@modelcontextprotocol/hono

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

@modelcontextprotocol/node

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

commit: 3ce3386

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.

[v2] MRTR wipe-cache example reads unvalidated elicitation content and defaults malformed scope to all

1 participant