Skip to content

Add optional name and title to ResourceContents - #870

Closed
YunKuiLu wants to merge 1 commit into
modelcontextprotocol:mainfrom
YunKuiLu:schema-title
Closed

Add optional name and title to ResourceContents#870
YunKuiLu wants to merge 1 commit into
modelcontextprotocol:mainfrom
YunKuiLu:schema-title

Conversation

@YunKuiLu

Copy link
Copy Markdown
Contributor

Motivation and Context

The resource definition has name and title, but those fields aren't included in ResourceContents in schema.ts

A resource definition includes:
- `uri`: Unique identifier for the resource
- `name`: The name of the resource.
- `title`: Optional human-readable name of the resource for display purposes.
- `description`: Optional description
- `mimeType`: Optional MIME type
- `size`: Optional size in bytes

How Has This Been Tested?

Breaking Changes

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

Signed-off-by: luyunkui <luyunkui@58.com>
@dsp-ant
dsp-ant requested a review from a team September 23, 2025 21:10
@dsp-ant

dsp-ant commented Nov 21, 2025

Copy link
Copy Markdown
Member

I am closing this out since we now follow the SEP process . If you feel this change should be made, please create a SEP https://modelcontextprotocol.io/community/sep-guidelines

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