Uses of Enum Class
org.springframework.ai.mcp.annotation.McpClientCapability
Packages that use McpClientCapability
Package
Description
Annotations for declaring MCP capabilities (tools, prompts, resources, completion,
logging, progress, sampling, elicitation) and list-changed handlers.
Common utilities for working with MCP annotation metadata.
-
Uses of McpClientCapability in org.springframework.ai.mcp.annotation
Methods in org.springframework.ai.mcp.annotation that return McpClientCapabilityModifier and TypeMethodDescriptionstatic McpClientCapabilityReturns the enum constant of this class with the specified name.static McpClientCapability[]McpClientCapability.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of McpClientCapability in org.springframework.ai.mcp.annotation.common
Methods in org.springframework.ai.mcp.annotation.common with parameters of type McpClientCapabilityModifier and TypeMethodDescriptionstatic io.modelcontextprotocol.modern.McpSchema.ClientCapabilitiesModernMethodSupport.requiredCapabilities(Method method, McpClientCapability[] required) Converts therequiredCapabilitiesattribute of a primitive annotation into the SDK form that the server checks before the method runs.static voidMcpRequiredCapabilities.warnIfIgnored(Method method, String annotation, McpClientCapability[] required) Logs a warning when a method served by a legacy (pre 2026-07-28) server declares required client capabilities, because the legacy servers check the capabilities the client sent at initialization and the attribute is silently dropped.