Skip to content

Add _meta support to registerPrompt#1629

Open
chughtapan wants to merge 4 commits intomodelcontextprotocol:mainfrom
chughtapan:groups/prompt-meta
Open

Add _meta support to registerPrompt#1629
chughtapan wants to merge 4 commits intomodelcontextprotocol:mainfrom
chughtapan:groups/prompt-meta

Conversation

@chughtapan
Copy link

Prompts were the only primitive missing _meta passthrough. This adds _meta to RegisteredPrompt, _createRegisteredPrompt, registerPrompt, and the prompts/list handler, mirroring the existing tool pattern.

Motivation and Context

This improves protocol conformance in the SDK.

How Has This Been Tested?

New and existing tests pass

Breaking Changes

None

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Prompts were the only primitive missing _meta passthrough. This adds
_meta to RegisteredPrompt, _createRegisteredPrompt, registerPrompt,
and the prompts/list handler, mirroring the existing tool pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chughtapan chughtapan requested a review from a team as a code owner March 5, 2026 06:38
@changeset-bot
Copy link

changeset-bot bot commented Mar 5, 2026

⚠️ No Changeset found

Latest commit: 01a51f6

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 5, 2026

Open in StackBlitz

@modelcontextprotocol/client

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

@modelcontextprotocol/server

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

@modelcontextprotocol/express

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

@modelcontextprotocol/hono

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

@modelcontextprotocol/node

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

commit: d98796f

chughtapan and others added 3 commits March 4, 2026 22:41
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant