Skip to content

feat: Add ResourceLink content type (MCP 2025-11-25)#89

Merged
simonx1 merged 2 commits intomainfrom
feature/resource-link
Feb 15, 2026
Merged

feat: Add ResourceLink content type (MCP 2025-11-25)#89
simonx1 merged 2 commits intomainfrom
feature/resource-link

Conversation

@simonx1
Copy link
Owner

@simonx1 simonx1 commented Feb 14, 2026

Adds ResourceLink content type allowing tool results to reference server resources.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 55a03ff79e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 38 to 43
new(
uri: data['uri'],
name: data['name'],
description: data['description'],
mime_type: data['mimeType'],
annotations: data['annotations']

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve title/size fields when parsing resource links

ResourceLink.from_json only maps uri, name, description, mimeType, and annotations, so any title or size metadata present in a resource_link item is dropped during parsing and cannot be recovered from the resulting object. This causes user-visible data loss whenever servers include richer resource metadata (for example, display titles or byte size) in tool results.

Useful? React with 👍 / 👎.

@simonx1 simonx1 force-pushed the feature/resource-link branch from b49d487 to 153b4e9 Compare February 14, 2026 23:32
@simonx1 simonx1 force-pushed the feature/resource-link branch 3 times, most recently from f1c5eac to 0a57807 Compare February 15, 2026 00:44
@simonx1 simonx1 force-pushed the feature/resource-link branch from 0a57807 to 17ad376 Compare February 15, 2026 00:48
@simonx1 simonx1 force-pushed the feature/resource-link branch from 17ad376 to 8077400 Compare February 15, 2026 00:51
@simonx1 simonx1 merged commit 3a56bdd into main Feb 15, 2026
3 checks passed
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