Package io.modelcontextprotocol.spec
Interface McpSchema.BaseMetadata
- All Known Subinterfaces:
McpSchema.ResourceContent
- All Known Implementing Classes:
McpSchema.Implementation,McpSchema.Prompt,McpSchema.PromptArgument,McpSchema.PromptReference,McpSchema.Resource,McpSchema.ResourceLink,McpSchema.ResourceTemplate
- Enclosing class:
- McpSchema
public static interface McpSchema.BaseMetadata
Base interface for metadata with name (identifier) and title (display name)
properties.
-
Method Summary
Modifier and TypeMethodDescriptionname()Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present).title()Intended for UI and end-user contexts — optimized to be human-readable and easily understood, even by those unfamiliar with domain-specific terminology.
-
Method Details
-
name
String name()Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn't present). -
title
String title()Intended for UI and end-user contexts — optimized to be human-readable and easily understood, even by those unfamiliar with domain-specific terminology. If not provided, the name should be used for display.
-