Skip to content

Conversation

@tzolov
Copy link
Contributor

@tzolov tzolov commented Mar 1, 2025

Add capability to specify MIME types for MCP tool responses, with special handling for image content.

This enhancement allows tools to return different content types, particularly images, by:

  • Adding a new toolResponseMimeType map property to configure response MIME types per tool
  • Extending tool registration methods to accept and use MIME type information
  • Adding special handling for image content in tool responses
  • Updating documentation with the new configuration options

Add capability to specify MIME types for MCP tool responses, with special handling for image content.

This enhancement allows tools to return different content types, particularly images, by:
- Adding a new toolResponseMimeType map property to configure response MIME types per tool
- Extending tool registration methods to accept and use MIME type information
- Adding special handling for image content in tool responses
- Updating documentation with the new configuration options

Signed-off-by: Christian Tzolov <[email protected]>
@tzolov tzolov added this to the 1.0.0-M7 milestone Mar 1, 2025
@tzolov tzolov self-assigned this Mar 1, 2025
@tzolov tzolov added the MCP label Mar 1, 2025
@tzolov tzolov merged commit 53bb6a5 into spring-projects:main Mar 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant