java-sdk/mcp-spring
Repository files (latest commit first)
Filename Latest commit message Latest commit date
bzsurbhi 9977a064d5 feat: Add title field support to MCP schema classes (#372)
- Add BaseMetadata interface with name() and title() methods for consistent metadata handling
- The Prompt, PromptArgument, Resource, ResourceTemplate, ResuorceLink, PromptReference, Tool,
  and Implementation classes implement the BaseMetadata interface, adding a new, optional title field
- Update constructors to support backward compatibility while allowing title specification
- Modify ResourceContent interface to extend BaseMetadata
- Update all test cases to accommodate new title parameter

The title field provides human-readable display names optimized for UI contexts,
while name remains for programmatic/logical use. This change maintains backward compatibility.

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
Co-authored-by: Christian Tzolov <christian.tzolov@broadcom.com>
2025-07-09 16:57:14 +02:00
..
mcp-spring-webflux feat: Add title field support to MCP schema classes (#372) 2025-07-09 16:57:14 +02:00
mcp-spring-webmvc feat: implement Streamable HTTP HttpClient transport and improve error handling (#337) 2025-07-03 21:55:02 +02:00