Skip to content

Conversation

pja-ant
Copy link
Contributor

@pja-ant pja-ant commented Sep 29, 2025

Motivation and Context

Impl for modelcontextprotocol/modelcontextprotocol#1565

How Has This Been Tested?

Tests updated

Breaking Changes

Feature is still in draft

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

This change adds icons metadata support to ResourceTemplate, bringing
it in line with Resource, Tool, and Prompt types. The MCP specification
was updated to include icons for ResourceTemplate, and this implements
that feature in the Python SDK.

Changes:
- Add icons field to ResourceTemplate type definition
- Update ResourceTemplate class to store and pass icons
- Update resource_manager to accept icons parameter
- Update FastMCP server to expose icons in list_resource_templates
- Add test coverage for resource template icons

All primitives (tools, resources, prompts, resource templates) now
consistently support icons metadata.
@pja-ant pja-ant marked this pull request as ready for review September 30, 2025 14:49
@felixweinberger felixweinberger added needs more work Not ready to be merged yet, needs additional changes. feature request Request for a new feature that's not currently supported enhancement New feature or request and removed feature request Request for a new feature that's not currently supported labels Sep 30, 2025
@felixweinberger felixweinberger removed the needs more work Not ready to be merged yet, needs additional changes. label Oct 1, 2025
@felixweinberger felixweinberger merged commit 3e798bf into main Oct 1, 2025
21 checks passed
@felixweinberger felixweinberger deleted the feature/resource-template-icons branch October 1, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants