modelcontextprotocol / modelcontextprotocol/typescript-sdk
Prompts - Metadata attributes in prompt registration, similar to resource metadata or tool annotations
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.4k
- Forks
- 2.2k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 4
Description
Is your feature request related to a problem? Please describe.
Tools currently support annotations (which can be predefined, but additional annotations can be added), and resources support metadata.
However, Prompts do not have any way to send additional data, for example "tag" them somehow.
An example use case is when you want to send a list of Prompts to the MCP client, and the client will then use the data to render them to the end user in the UI, for example prompts can be categorized via metadata, otherwise it's just a big list that the UI would receive.
Describe the solution you'd like
Add metadata/annotations to prompts similar to tools/resources.
Describe alternatives you've considered
Sending a json-encoded string in the prompt description is a bad workaround and not a real solution. With the current prompt arguments, there is no way to send extra metadata from the server to the client.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by locating prompt registration and prompt type definitions, then compare how resource metadata and tool annotations are represented. Trace the related serialization and listing tests; done means prompts can carry the additional data from server registration through to the client, with coverage for the new behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100