Commit 9977a064 authored by bzsurbhi's avatar bzsurbhi Committed by Christian Tzolov
Browse files

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: default avatarChristian Tzolov <christian.tzolov@broadcom.com>
Co-authored-by: default avatarChristian Tzolov <christian.tzolov@broadcom.com>
parent b5a1e3b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment