Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addEnvVar(String, String) - Method in class io.modelcontextprotocol.client.transport.ServerParameters.Builder
- addPrompt(McpServerFeatures.AsyncPromptRegistration) - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Add a new prompt handler at runtime.
- addPrompt(McpServerFeatures.SyncPromptRegistration) - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Add a new prompt handler.
- addResource(McpServerFeatures.AsyncResourceRegistration) - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Add a new resource handler at runtime.
- addResource(McpServerFeatures.SyncResourceRegistration) - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Add a new resource handler.
- addRoot(McpSchema.Root) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Adds a new root to the client's root list.
- addRoot(McpSchema.Root) - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Add a roots dynamically.
- addTool(McpServerFeatures.AsyncToolRegistration) - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Add a new tool registration at runtime.
- addTool(McpServerFeatures.SyncToolRegistration) - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Add a new tool handler.
- ALERT - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
- ALL_SERVERS - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest.ContextInclusionStrategy
- annotations() - Method in interface io.modelcontextprotocol.spec.McpSchema.Annotated
- annotations() - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
-
Returns the value of the
annotationsrecord component. - annotations() - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
-
Returns the value of the
annotationsrecord component. - Annotations(List<McpSchema.Role>, Double) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.Annotations
-
Creates an instance of a
Annotationsrecord class. - APPLICATION_JSON - Static variable in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
- arg(String) - Method in class io.modelcontextprotocol.client.transport.ServerParameters.Builder
- args(String...) - Method in class io.modelcontextprotocol.client.transport.ServerParameters.Builder
- args(List<String>) - Method in class io.modelcontextprotocol.client.transport.ServerParameters.Builder
- argument() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest
-
Returns the value of the
argumentrecord component. - arguments() - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolRequest
-
Returns the value of the
argumentsrecord component. - arguments() - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptRequest
-
Returns the value of the
argumentsrecord component. - arguments() - Method in record class io.modelcontextprotocol.spec.McpSchema.Prompt
-
Returns the value of the
argumentsrecord component. - Assert - Class in io.modelcontextprotocol.util
-
Utility class providing assertion methods for parameter validation.
- Assert() - Constructor for class io.modelcontextprotocol.util.Assert
- ASSISTANT - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.Role
- async(ClientMcpTransport) - Static method in interface io.modelcontextprotocol.client.McpClient
-
Start building an asynchronous MCP client with the specified transport layer.
- async(ServerMcpTransport) - Static method in interface io.modelcontextprotocol.server.McpServer
-
Starts building an asynchronous MCP server that provides blocking operations.
- AsyncPromptRegistration(McpSchema.Prompt, Function<McpSchema.GetPromptRequest, Mono<McpSchema.GetPromptResult>>) - Constructor for record class io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptRegistration
-
Creates an instance of a
AsyncPromptRegistrationrecord class. - AsyncResourceRegistration(McpSchema.Resource, Function<McpSchema.ReadResourceRequest, Mono<McpSchema.ReadResourceResult>>) - Constructor for record class io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceRegistration
-
Creates an instance of a
AsyncResourceRegistrationrecord class. - AsyncToolRegistration(McpSchema.Tool, Function<Map<String, Object>, Mono<McpSchema.CallToolResult>>) - Constructor for record class io.modelcontextprotocol.server.McpServerFeatures.AsyncToolRegistration
-
Creates an instance of a
AsyncToolRegistrationrecord class. - audience() - Method in record class io.modelcontextprotocol.spec.McpSchema.Annotations
-
Returns the value of the
audiencerecord component. - audience() - Method in record class io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
-
Returns the value of the
audiencerecord component. - audience() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
-
Returns the value of the
audiencerecord component. - audience() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextContent
-
Returns the value of the
audiencerecord component. - awaitForExit() - Method in class io.modelcontextprotocol.client.transport.StdioClientTransport
-
Waits for the server process to exit.
B
- blob() - Method in record class io.modelcontextprotocol.spec.McpSchema.BlobResourceContents
-
Returns the value of the
blobrecord component. - BlobResourceContents(String, String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.BlobResourceContents
-
Creates an instance of a
BlobResourceContentsrecord class. - build() - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Create an instance of
McpAsyncClientwith the provided configurations or sensible defaults. - build() - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Create an instance of
McpSyncClientwith the provided configurations or sensible defaults. - build() - Method in class io.modelcontextprotocol.client.transport.ServerParameters.Builder
- build() - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Builds an asynchronous MCP server that provides non-blocking operations.
- build() - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Builds a synchronous MCP server that provides blocking operations.
- build() - Method in class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.Builder
- build() - Method in class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.Builder
- build() - Method in class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification.Builder
- build() - Method in class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.Builder
- builder() - Static method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities
- builder() - Static method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
- builder() - Static method in record class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification
- builder() - Static method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
- builder(String) - Static method in class io.modelcontextprotocol.client.transport.ServerParameters
- Builder() - Constructor for class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.Builder
- Builder() - Constructor for class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.Builder
- Builder() - Constructor for class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification.Builder
- Builder() - Constructor for class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.Builder
- Builder(String) - Constructor for class io.modelcontextprotocol.client.transport.ServerParameters.Builder
C
- call() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncToolRegistration
-
Returns the value of the
callrecord component. - call() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration
-
Returns the value of the
callrecord component. - callTool(McpSchema.CallToolRequest) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Calls a tool provided by the server.
- callTool(McpSchema.CallToolRequest) - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Calls a tool provided by the server.
- CallToolRequest(String, Map<String, Object>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CallToolRequest
-
Creates an instance of a
CallToolRequestrecord class. - CallToolResult(List<McpSchema.Content>, Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CallToolResult
-
Creates an instance of a
CallToolResultrecord class. - capabilities() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeRequest
-
Returns the value of the
capabilitiesrecord component. - capabilities() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
-
Returns the value of the
capabilitiesrecord component. - capabilities(McpSchema.ClientCapabilities) - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Sets the client capabilities that will be advertised to the server during connection initialization.
- capabilities(McpSchema.ClientCapabilities) - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Sets the client capabilities that will be advertised to the server during connection initialization.
- capabilities(McpSchema.ServerCapabilities) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Sets the server capabilities that will be advertised to clients during connection initialization.
- capabilities(McpSchema.ServerCapabilities) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Sets the server capabilities that will be advertised to clients during connection initialization.
- ClientCapabilities(Map<String, Object>, McpSchema.ClientCapabilities.RootCapabilities, McpSchema.ClientCapabilities.Sampling) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities
-
Creates an instance of a
ClientCapabilitiesrecord class. - clientInfo() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeRequest
-
Returns the value of the
clientInforecord component. - clientInfo(McpSchema.Implementation) - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Sets the client implementation information that will be shared with the server during connection initialization.
- clientInfo(McpSchema.Implementation) - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Sets the client implementation information that will be shared with the server during connection initialization.
- ClientMcpTransport - Interface in io.modelcontextprotocol.spec
-
Marker interface for the client-side MCP transport.
- close() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Closes the client connection immediately.
- close() - Method in class io.modelcontextprotocol.client.McpSyncClient
- close() - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Close the server immediately.
- close() - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Close the server immediately.
- close() - Method in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Closes the transport.
- close() - Method in class io.modelcontextprotocol.spec.DefaultMcpSession
-
Closes the session immediately, potentially interrupting pending operations.
- close() - Method in interface io.modelcontextprotocol.spec.McpSession
-
Closes the session and releases any associated resources.
- close() - Method in interface io.modelcontextprotocol.spec.McpTransport
-
Closes the transport connection and releases any associated resources.
- closeGracefully() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Gracefully closes the client connection.
- closeGracefully() - Method in class io.modelcontextprotocol.client.McpSyncClient
- closeGracefully() - Method in class io.modelcontextprotocol.client.transport.HttpClientSseClientTransport
-
Gracefully closes the transport connection.
- closeGracefully() - Method in class io.modelcontextprotocol.client.transport.StdioClientTransport
-
Gracefully closes the transport by destroying the process and disposing of the schedulers.
- closeGracefully() - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Gracefully closes the server, allowing any in-progress operations to complete.
- closeGracefully() - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Close the server gracefully.
- closeGracefully() - Method in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Initiates a graceful shutdown of the transport.
- closeGracefully() - Method in class io.modelcontextprotocol.server.transport.StdioServerTransport
- closeGracefully() - Method in class io.modelcontextprotocol.spec.DefaultMcpSession
-
Closes the session gracefully, allowing pending operations to complete.
- closeGracefully() - Method in interface io.modelcontextprotocol.spec.McpSession
-
Closes the session and releases any associated resources asynchronously.
- closeGracefully() - Method in interface io.modelcontextprotocol.spec.McpTransport
-
Closes the transport connection and releases any associated resources asynchronously.
- code() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse.JSONRPCError
-
Returns the value of the
coderecord component. - CompleteArgument(String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.CompleteArgument
-
Creates an instance of a
CompleteArgumentrecord class. - CompleteCompletion(List<String>, Integer, Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteResult.CompleteCompletion
-
Creates an instance of a
CompleteCompletionrecord class. - CompleteRequest(McpSchema.CompleteRequest.PromptOrResourceReference, McpSchema.CompleteRequest.CompleteArgument) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest
-
Creates an instance of a
CompleteRequestrecord class. - CompleteResult(McpSchema.CompleteResult.CompleteCompletion) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteResult
-
Creates an instance of a
CompleteResultrecord class. - completion() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteResult
-
Returns the value of the
completionrecord component. - connect(Function<Mono<McpSchema.JSONRPCMessage>, Mono<McpSchema.JSONRPCMessage>>) - Method in class io.modelcontextprotocol.client.transport.HttpClientSseClientTransport
-
Establishes the SSE connection with the server and sets up message handling.
- connect(Function<Mono<McpSchema.JSONRPCMessage>, Mono<McpSchema.JSONRPCMessage>>) - Method in class io.modelcontextprotocol.client.transport.StdioClientTransport
-
Starts the server process and initializes the message processing streams.
- connect(Function<Mono<McpSchema.JSONRPCMessage>, Mono<McpSchema.JSONRPCMessage>>) - Method in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Sets up the message handler for processing client requests.
- connect(Function<Mono<McpSchema.JSONRPCMessage>, Mono<McpSchema.JSONRPCMessage>>) - Method in class io.modelcontextprotocol.server.transport.StdioServerTransport
- connect(Function<Mono<McpSchema.JSONRPCMessage>, Mono<McpSchema.JSONRPCMessage>>) - Method in interface io.modelcontextprotocol.spec.McpTransport
-
Initializes and starts the transport connection.
- content() - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolResult
-
Returns the value of the
contentrecord component. - content() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
-
Returns the value of the
contentrecord component. - content() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptMessage
-
Returns the value of the
contentrecord component. - content() - Method in record class io.modelcontextprotocol.spec.McpSchema.SamplingMessage
-
Returns the value of the
contentrecord component. - content(McpSchema.Content) - Method in class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.Builder
- contents() - Method in record class io.modelcontextprotocol.spec.McpSchema.ReadResourceResult
-
Returns the value of the
contentsrecord component. - costPriority() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
-
Returns the value of the
costPriorityrecord component. - createMessage(McpSchema.CreateMessageRequest) - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Create a new message using the sampling capabilities of the client.
- createMessage(McpSchema.CreateMessageRequest) - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Create a new message using the sampling capabilities of the client.
- CreateMessageRequest(List<McpSchema.SamplingMessage>, McpSchema.ModelPreferences, String, McpSchema.CreateMessageRequest.ContextInclusionStrategy, Double, int, List<String>, Map<String, Object>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Creates an instance of a
CreateMessageRequestrecord class. - CreateMessageResult(McpSchema.Role, McpSchema.Content, String, McpSchema.CreateMessageResult.StopReason) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
-
Creates an instance of a
CreateMessageResultrecord class. - CRITICAL - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
- cursor() - Method in record class io.modelcontextprotocol.spec.McpSchema.PaginatedRequest
-
Returns the value of the
cursorrecord component.
D
- data() - Method in record class io.modelcontextprotocol.client.transport.FlowSseClient.SseEvent
-
Returns the value of the
datarecord component. - data() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
-
Returns the value of the
datarecord component. - data() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse.JSONRPCError
-
Returns the value of the
datarecord component. - data() - Method in record class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification
-
Returns the value of the
datarecord component. - data(String) - Method in class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification.Builder
- DEBUG - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
- DEFAULT_SSE_ENDPOINT - Static variable in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Default endpoint path for SSE connections
- DefaultMcpSession - Class in io.modelcontextprotocol.spec
-
Default implementation of the MCP (Model Context Protocol) session that manages bidirectional JSON-RPC communication between clients and servers.
- DefaultMcpSession(Duration, McpTransport, Map<String, DefaultMcpSession.RequestHandler<?>>, Map<String, DefaultMcpSession.NotificationHandler>) - Constructor for class io.modelcontextprotocol.spec.DefaultMcpSession
-
Creates a new DefaultMcpSession with the specified configuration and handlers.
- DefaultMcpSession.NotificationHandler - Interface in io.modelcontextprotocol.spec
-
Functional interface for handling incoming JSON-RPC notifications.
- DefaultMcpSession.RequestHandler<T> - Interface in io.modelcontextprotocol.spec
-
Functional interface for handling incoming JSON-RPC requests.
- description() - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptResult
-
Returns the value of the
descriptionrecord component. - description() - Method in record class io.modelcontextprotocol.spec.McpSchema.Prompt
-
Returns the value of the
descriptionrecord component. - description() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptArgument
-
Returns the value of the
descriptionrecord component. - description() - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
-
Returns the value of the
descriptionrecord component. - description() - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
-
Returns the value of the
descriptionrecord component. - description() - Method in record class io.modelcontextprotocol.spec.McpSchema.Tool
-
Returns the value of the
descriptionrecord component. - deserializeJsonRpcMessage(ObjectMapper, String) - Static method in class io.modelcontextprotocol.spec.McpSchema
-
Deserializes a JSON string into a JSONRPCMessage object.
- destroy() - Method in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Cleans up resources when the servlet is being destroyed.
- doGet(HttpServletRequest, HttpServletResponse) - Method in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Handles GET requests to establish SSE connections.
- doPost(HttpServletRequest, HttpServletResponse) - Method in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Handles POST requests for client messages.
E
- EmbeddedResource(List<McpSchema.Role>, Double, String, McpSchema.ResourceContents) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
-
Creates an instance of a
EmbeddedResourcerecord class. - EMERGENCY - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
- END_TURN - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.StopReason
- ENDPOINT_EVENT_TYPE - Static variable in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Event type for endpoint information
- env(Map<String, String>) - Method in class io.modelcontextprotocol.client.transport.ServerParameters.Builder
- equals(Object) - Method in record class io.modelcontextprotocol.client.transport.FlowSseClient.SseEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptRegistration
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceRegistration
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncToolRegistration
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncPromptRegistration
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncResourceRegistration
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.Annotations
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.BlobResourceContents
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.RootCapabilities
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.Sampling
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.CompleteArgument
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.PromptReference
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.ResourceReference
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteResult.CompleteCompletion
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.Implementation
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCNotification
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse.JSONRPCError
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ListPromptsResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourcesResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourceTemplatesResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ListRootsResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ListToolsResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelHint
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.PaginatedRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.PaginatedResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ProgressNotification
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.Prompt
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptArgument
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptMessage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ReadResourceRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ReadResourceResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.Root
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.SamplingMessage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.LoggingCapabilities
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.PromptCapabilities
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ResourceCapabilities
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ToolCapabilities
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.SubscribeRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.TextContent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.TextResourceContents
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.Tool
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.modelcontextprotocol.spec.McpSchema.UnsubscribeRequest
-
Indicates whether some other object is "equal to" this one.
- error() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse
-
Returns the value of the
errorrecord component. - ERROR - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
- ErrorCodes() - Constructor for class io.modelcontextprotocol.spec.McpSchema.ErrorCodes
- experimental() - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities
-
Returns the value of the
experimentalrecord component. - experimental() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
-
Returns the value of the
experimentalrecord component. - experimental(Map<String, Object>) - Method in class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.Builder
- experimental(Map<String, Object>) - Method in class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.Builder
F
- FAILED_TO_SEND_ERROR_RESPONSE - Static variable in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
- FlowSseClient - Class in io.modelcontextprotocol.client.transport
-
A Server-Sent Events (SSE) client implementation using Java's Flow API for reactive stream processing.
- FlowSseClient(HttpClient) - Constructor for class io.modelcontextprotocol.client.transport.FlowSseClient
-
Creates a new FlowSseClient with the specified HTTP client.
- FlowSseClient.SseEvent - Record Class in io.modelcontextprotocol.client.transport
-
Record class representing a Server-Sent Event with its standard fields.
- FlowSseClient.SseEventHandler - Interface in io.modelcontextprotocol.client.transport
-
Interface for handling SSE events and errors.
G
- getArgs() - Method in class io.modelcontextprotocol.client.transport.ServerParameters
- getAsyncServer() - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Get the underlying async server instance.
- getClientCapabilities() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Get the client capabilities that define the supported features and functionality.
- getClientCapabilities() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Get the client capabilities that define the supported features and functionality.
- getClientCapabilities() - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Get the client capabilities that define the supported features and functionality.
- getClientCapabilities() - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Get the client capabilities that define the supported features and functionality.
- getClientInfo() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Get the client implementation information.
- getClientInfo() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Get the client implementation information.
- getClientInfo() - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Get the client implementation information.
- getClientInfo() - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Get the client implementation information.
- getCommand() - Method in class io.modelcontextprotocol.client.transport.ServerParameters
- getEnv() - Method in class io.modelcontextprotocol.client.transport.ServerParameters
- getErrorSink() - Method in class io.modelcontextprotocol.client.transport.StdioClientTransport
- getJsonRpcError() - Method in exception io.modelcontextprotocol.spec.McpError
- getMethodNotFoundError(String) - Static method in class io.modelcontextprotocol.spec.DefaultMcpSession
- getProcessBuilder() - Method in class io.modelcontextprotocol.client.transport.StdioClientTransport
-
Creates and returns a new ProcessBuilder instance.
- getPrompt(McpSchema.GetPromptRequest) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Get a prompt by its id.
- getPrompt(McpSchema.GetPromptRequest) - Method in class io.modelcontextprotocol.client.McpSyncClient
- GetPromptRequest(String, Map<String, Object>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.GetPromptRequest
-
Creates an instance of a
GetPromptRequestrecord class. - GetPromptResult(String, List<McpSchema.PromptMessage>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.GetPromptResult
-
Creates an instance of a
GetPromptResultrecord class. - getServerCapabilities() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Get the server capabilities that define the supported features and functionality.
- getServerCapabilities() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Get the server capabilities that define the supported features and functionality.
- getServerCapabilities() - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Get the server capabilities that define the supported features and functionality.
- getServerCapabilities() - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Get the server capabilities that define the supported features and functionality.
- getServerInfo() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Get the server implementation information.
- getServerInfo() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Get the server implementation information.
- getServerInfo() - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Get the server implementation information.
- getServerInfo() - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Get the server implementation information.
H
- handle(Object) - Method in interface io.modelcontextprotocol.spec.DefaultMcpSession.NotificationHandler
-
Handles an incoming notification with the given parameters.
- handle(Object) - Method in interface io.modelcontextprotocol.spec.DefaultMcpSession.RequestHandler
-
Handles an incoming request with the given parameters.
- handleOutbound(Function<Flux<McpSchema.JSONRPCMessage>, Flux<McpSchema.JSONRPCMessage>>) - Method in class io.modelcontextprotocol.client.transport.StdioClientTransport
- hashCode() - Method in record class io.modelcontextprotocol.client.transport.FlowSseClient.SseEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptRegistration
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceRegistration
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncToolRegistration
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncPromptRegistration
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncResourceRegistration
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.Annotations
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.BlobResourceContents
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.RootCapabilities
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.Sampling
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.CompleteArgument
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.PromptReference
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.ResourceReference
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteResult.CompleteCompletion
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.Implementation
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCNotification
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse.JSONRPCError
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListPromptsResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourcesResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourceTemplatesResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListRootsResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListToolsResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelHint
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.PaginatedRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.PaginatedResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ProgressNotification
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.Prompt
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptArgument
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptMessage
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ReadResourceRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ReadResourceResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.Root
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.SamplingMessage
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.LoggingCapabilities
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.PromptCapabilities
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ResourceCapabilities
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ToolCapabilities
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.SubscribeRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextContent
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextResourceContents
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.Tool
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.modelcontextprotocol.spec.McpSchema.UnsubscribeRequest
-
Returns a hash code value for this object.
- hasMore() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteResult.CompleteCompletion
-
Returns the value of the
hasMorerecord component. - hasText(String) - Static method in class io.modelcontextprotocol.util.Assert
-
Check whether the given
Stringcontains actual text. - hasText(String) - Static method in class io.modelcontextprotocol.util.Utils
-
Check whether the given
Stringcontains actual text. - hasText(String, String) - Static method in class io.modelcontextprotocol.util.Assert
-
Assert that the given String contains valid text content; that is, it must not be
nulland must contain at least one non-whitespace character. - hints() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
-
Returns the value of the
hintsrecord component. - HttpClientSseClientTransport - Class in io.modelcontextprotocol.client.transport
-
Server-Sent Events (SSE) implementation of the
McpTransportthat follows the MCP HTTP with SSE transport specification, using Java's HttpClient. - HttpClientSseClientTransport(String) - Constructor for class io.modelcontextprotocol.client.transport.HttpClientSseClientTransport
-
Creates a new transport instance with default HTTP client and object mapper.
- HttpClientSseClientTransport(HttpClient.Builder, String, ObjectMapper) - Constructor for class io.modelcontextprotocol.client.transport.HttpClientSseClientTransport
-
Creates a new transport instance with custom HTTP client builder and object mapper.
- HttpServletSseServerTransport - Class in io.modelcontextprotocol.server.transport
-
A Servlet-based implementation of the MCP HTTP with Server-Sent Events (SSE) transport specification.
- HttpServletSseServerTransport(ObjectMapper, String) - Constructor for class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Creates a new HttpServletSseServerTransport instance with the default SSE endpoint.
- HttpServletSseServerTransport(ObjectMapper, String, String) - Constructor for class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Creates a new HttpServletSseServerTransport instance with a custom SSE endpoint.
I
- id() - Method in record class io.modelcontextprotocol.client.transport.FlowSseClient.SseEvent
-
Returns the value of the
idrecord component. - id() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
-
Returns the value of the
idrecord component. - id() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse
-
Returns the value of the
idrecord component. - ImageContent(List<McpSchema.Role>, Double, String, String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ImageContent
-
Creates an instance of a
ImageContentrecord class. - Implementation(String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.Implementation
-
Creates an instance of a
Implementationrecord class. - includeContext() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Returns the value of the
includeContextrecord component. - INFO - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
- initialize() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
The initialization phase MUST be the first interaction between client and server.
- initialize() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
The initialization phase MUST be the first interaction between client and server.
- InitializeRequest(String, McpSchema.ClientCapabilities, McpSchema.Implementation) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.InitializeRequest
-
Creates an instance of a
InitializeRequestrecord class. - InitializeResult(String, McpSchema.ServerCapabilities, McpSchema.Implementation, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
-
Creates an instance of a
InitializeResultrecord class. - inputSchema() - Method in record class io.modelcontextprotocol.spec.McpSchema.Tool
-
Returns the value of the
inputSchemarecord component. - instructions() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
-
Returns the value of the
instructionsrecord component. - intelligencePriority() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
-
Returns the value of the
intelligencePriorityrecord component. - INTERNAL_ERROR - Static variable in class io.modelcontextprotocol.spec.McpSchema.ErrorCodes
-
Internal JSON-RPC error.
- INVALID_PARAMS - Static variable in class io.modelcontextprotocol.spec.McpSchema.ErrorCodes
-
Invalid method parameter(s).
- INVALID_REQUEST - Static variable in class io.modelcontextprotocol.spec.McpSchema.ErrorCodes
-
The JSON sent is not a valid Request object.
- io.modelcontextprotocol.client - package io.modelcontextprotocol.client
- io.modelcontextprotocol.client.transport - package io.modelcontextprotocol.client.transport
- io.modelcontextprotocol.server - package io.modelcontextprotocol.server
- io.modelcontextprotocol.server.transport - package io.modelcontextprotocol.server.transport
- io.modelcontextprotocol.spec - package io.modelcontextprotocol.spec
- io.modelcontextprotocol.util - package io.modelcontextprotocol.util
- isEmpty(Collection<?>) - Static method in class io.modelcontextprotocol.util.Utils
-
Return
trueif the supplied Collection isnullor empty. - isEmpty(Map<?, ?>) - Static method in class io.modelcontextprotocol.util.Utils
-
Return
trueif the supplied Map isnullor empty. - isError() - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolResult
-
Returns the value of the
isErrorrecord component.
J
- jsonrpc() - Method in interface io.modelcontextprotocol.spec.McpSchema.JSONRPCMessage
- jsonrpc() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCNotification
-
Returns the value of the
jsonrpcrecord component. - jsonrpc() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
-
Returns the value of the
jsonrpcrecord component. - jsonrpc() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse
-
Returns the value of the
jsonrpcrecord component. - JSONRPC_VERSION - Static variable in class io.modelcontextprotocol.spec.McpSchema
- JSONRPCError(int, String, Object) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse.JSONRPCError
-
Creates an instance of a
JSONRPCErrorrecord class. - JSONRPCNotification(String, String, Map<String, Object>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.JSONRPCNotification
-
Creates an instance of a
JSONRPCNotificationrecord class. - JSONRPCRequest(String, String, Object, Object) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
-
Creates an instance of a
JSONRPCRequestrecord class. - JSONRPCResponse(String, Object, Object, McpSchema.JSONRPCResponse.JSONRPCError) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse
-
Creates an instance of a
JSONRPCResponserecord class.
L
- LATEST_PROTOCOL_VERSION - Static variable in class io.modelcontextprotocol.spec.McpSchema
- level() - Method in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
- level() - Method in record class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification
-
Returns the value of the
levelrecord component. - level(McpSchema.LoggingLevel) - Method in class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification.Builder
- listChanged() - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.RootCapabilities
-
Returns the value of the
listChangedrecord component. - listChanged() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.PromptCapabilities
-
Returns the value of the
listChangedrecord component. - listChanged() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ResourceCapabilities
-
Returns the value of the
listChangedrecord component. - listChanged() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ToolCapabilities
-
Returns the value of the
listChangedrecord component. - listPrompts() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
List all available prompts.
- listPrompts() - Method in class io.modelcontextprotocol.client.McpSyncClient
- listPrompts(String) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
List all available prompts.
- listPrompts(String) - Method in class io.modelcontextprotocol.client.McpSyncClient
- ListPromptsResult(List<McpSchema.Prompt>, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ListPromptsResult
-
Creates an instance of a
ListPromptsResultrecord class. - listResources() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Send a resources/list request.
- listResources() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Send a resources/list request.
- listResources(String) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Send a resources/list request.
- listResources(String) - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Send a resources/list request.
- ListResourcesResult(List<McpSchema.Resource>, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ListResourcesResult
-
Creates an instance of a
ListResourcesResultrecord class. - listResourceTemplates() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Resource templates allow servers to expose parameterized resources using URI templates.
- listResourceTemplates() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Request a list of resource templates the server has.
- listResourceTemplates(String) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Resource templates allow servers to expose parameterized resources using URI templates.
- listResourceTemplates(String) - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Resource templates allow servers to expose parameterized resources using URI templates.
- ListResourceTemplatesResult(List<McpSchema.ResourceTemplate>, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ListResourceTemplatesResult
-
Creates an instance of a
ListResourceTemplatesResultrecord class. - listRoots() - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Retrieves the list of all roots provided by the client.
- listRoots() - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Retrieves the list of all roots provided by the client.
- listRoots(String) - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Retrieves a paginated list of roots provided by the server.
- listRoots(String) - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Retrieves a paginated list of roots provided by the server.
- ListRootsResult(List<McpSchema.Root>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ListRootsResult
-
Creates an instance of a
ListRootsResultrecord class. - listTools() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Retrieves the list of all tools provided by the server.
- listTools() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Retrieves the list of all tools provided by the server.
- listTools(String) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Retrieves a paginated list of tools provided by the server.
- listTools(String) - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Retrieves a paginated list of tools provided by the server.
- ListToolsResult(List<McpSchema.Tool>, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ListToolsResult
-
Creates an instance of a
ListToolsResultrecord class. - logger() - Method in record class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification
-
Returns the value of the
loggerrecord component. - logger(String) - Method in class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification.Builder
- logging() - Method in class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.Builder
- logging() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
-
Returns the value of the
loggingrecord component. - LoggingCapabilities() - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.LoggingCapabilities
-
Creates an instance of a
LoggingCapabilitiesrecord class. - loggingConsumer(Consumer<McpSchema.LoggingMessageNotification>) - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Adds a consumer to be notified when logging messages are received from the server.
- loggingConsumer(Function<McpSchema.LoggingMessageNotification, Mono<Void>>) - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Adds a consumer to be notified when logging messages are received from the server.
- loggingConsumers(List<Consumer<McpSchema.LoggingMessageNotification>>) - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Adds multiple consumers to be notified when logging messages are received from the server.
- loggingConsumers(List<Function<McpSchema.LoggingMessageNotification, Mono<Void>>>) - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Adds multiple consumers to be notified when logging messages are received from the server.
- LoggingMessageNotification(McpSchema.LoggingLevel, String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification
-
Creates an instance of a
LoggingMessageNotificationrecord class. - loggingNotification(McpSchema.LoggingMessageNotification) - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Send a logging message notification to all connected clients.
- loggingNotification(McpSchema.LoggingMessageNotification) - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Send a logging message notification to all clients.
M
- MAX_TOKENS - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.StopReason
- maxTokens() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Returns the value of the
maxTokensrecord component. - McpAsyncClient - Class in io.modelcontextprotocol.client
-
The Model Context Protocol (MCP) client implementation that provides asynchronous communication with MCP servers using Project Reactor's Mono and Flux types.
- McpAsyncServer - Class in io.modelcontextprotocol.server
-
The Model Context Protocol (MCP) server implementation that provides asynchronous communication using Project Reactor's Mono and Flux types.
- McpClient - Interface in io.modelcontextprotocol.client
-
Factory class for creating Model Context Protocol (MCP) clients.
- McpClient.AsyncSpec - Class in io.modelcontextprotocol.client
-
Asynchronous client specification.
- McpClient.SyncSpec - Class in io.modelcontextprotocol.client
-
Synchronous client specification.
- McpError - Exception in io.modelcontextprotocol.spec
- McpError(McpSchema.JSONRPCResponse.JSONRPCError) - Constructor for exception io.modelcontextprotocol.spec.McpError
- McpError(Object) - Constructor for exception io.modelcontextprotocol.spec.McpError
- McpSchema - Class in io.modelcontextprotocol.spec
-
Based on the JSON-RPC 2.0 specification and the Model Context Protocol Schema.
- McpSchema.Annotated - Interface in io.modelcontextprotocol.spec
-
Base for objects that include optional annotations for the client.
- McpSchema.Annotations - Record Class in io.modelcontextprotocol.spec
-
Optional annotations for the client.
- McpSchema.BlobResourceContents - Record Class in io.modelcontextprotocol.spec
-
Binary contents of a resource.
- McpSchema.CallToolRequest - Record Class in io.modelcontextprotocol.spec
-
Used by the client to call a tool provided by the server.
- McpSchema.CallToolResult - Record Class in io.modelcontextprotocol.spec
-
The server's response to a tools/call request from the client.
- McpSchema.ClientCapabilities - Record Class in io.modelcontextprotocol.spec
-
Clients can implement additional features to enrich connected MCP servers with additional capabilities.
- McpSchema.ClientCapabilities.Builder - Class in io.modelcontextprotocol.spec
- McpSchema.ClientCapabilities.RootCapabilities - Record Class in io.modelcontextprotocol.spec
-
Roots define the boundaries of where servers can operate within the filesystem, allowing them to understand which directories and files they have access to.
- McpSchema.ClientCapabilities.Sampling - Record Class in io.modelcontextprotocol.spec
-
Provides a standardized way for servers to request LLM sampling ("completions" or "generations") from language models via clients.
- McpSchema.CompleteRequest - Record Class in io.modelcontextprotocol.spec
- McpSchema.CompleteRequest.CompleteArgument - Record Class in io.modelcontextprotocol.spec
- McpSchema.CompleteRequest.PromptOrResourceReference - Interface in io.modelcontextprotocol.spec
- McpSchema.CompleteRequest.PromptReference - Record Class in io.modelcontextprotocol.spec
- McpSchema.CompleteRequest.ResourceReference - Record Class in io.modelcontextprotocol.spec
- McpSchema.CompleteResult - Record Class in io.modelcontextprotocol.spec
- McpSchema.CompleteResult.CompleteCompletion - Record Class in io.modelcontextprotocol.spec
- McpSchema.Content - Interface in io.modelcontextprotocol.spec
- McpSchema.CreateMessageRequest - Record Class in io.modelcontextprotocol.spec
- McpSchema.CreateMessageRequest.ContextInclusionStrategy - Enum Class in io.modelcontextprotocol.spec
- McpSchema.CreateMessageResult - Record Class in io.modelcontextprotocol.spec
- McpSchema.CreateMessageResult.Builder - Class in io.modelcontextprotocol.spec
- McpSchema.CreateMessageResult.StopReason - Enum Class in io.modelcontextprotocol.spec
- McpSchema.EmbeddedResource - Record Class in io.modelcontextprotocol.spec
- McpSchema.ErrorCodes - Class in io.modelcontextprotocol.spec
-
Standard error codes used in MCP JSON-RPC responses.
- McpSchema.GetPromptRequest - Record Class in io.modelcontextprotocol.spec
-
Used by the client to get a prompt provided by the server.
- McpSchema.GetPromptResult - Record Class in io.modelcontextprotocol.spec
-
The server's response to a prompts/get request from the client.
- McpSchema.ImageContent - Record Class in io.modelcontextprotocol.spec
- McpSchema.Implementation - Record Class in io.modelcontextprotocol.spec
- McpSchema.InitializeRequest - Record Class in io.modelcontextprotocol.spec
- McpSchema.InitializeResult - Record Class in io.modelcontextprotocol.spec
- McpSchema.JSONRPCMessage - Interface in io.modelcontextprotocol.spec
- McpSchema.JSONRPCNotification - Record Class in io.modelcontextprotocol.spec
- McpSchema.JSONRPCRequest - Record Class in io.modelcontextprotocol.spec
- McpSchema.JSONRPCResponse - Record Class in io.modelcontextprotocol.spec
- McpSchema.JSONRPCResponse.JSONRPCError - Record Class in io.modelcontextprotocol.spec
- McpSchema.ListPromptsResult - Record Class in io.modelcontextprotocol.spec
-
The server's response to a prompts/list request from the client.
- McpSchema.ListResourcesResult - Record Class in io.modelcontextprotocol.spec
- McpSchema.ListResourceTemplatesResult - Record Class in io.modelcontextprotocol.spec
- McpSchema.ListRootsResult - Record Class in io.modelcontextprotocol.spec
-
The client's response to a roots/list request from the server.
- McpSchema.ListToolsResult - Record Class in io.modelcontextprotocol.spec
-
The server's response to a tools/list request from the client.
- McpSchema.LoggingLevel - Enum Class in io.modelcontextprotocol.spec
- McpSchema.LoggingMessageNotification - Record Class in io.modelcontextprotocol.spec
-
The Model Context Protocol (MCP) provides a standardized way for servers to send structured log messages to clients.
- McpSchema.LoggingMessageNotification.Builder - Class in io.modelcontextprotocol.spec
- McpSchema.ModelHint - Record Class in io.modelcontextprotocol.spec
- McpSchema.ModelPreferences - Record Class in io.modelcontextprotocol.spec
- McpSchema.PaginatedRequest - Record Class in io.modelcontextprotocol.spec
- McpSchema.PaginatedResult - Record Class in io.modelcontextprotocol.spec
- McpSchema.ProgressNotification - Record Class in io.modelcontextprotocol.spec
- McpSchema.Prompt - Record Class in io.modelcontextprotocol.spec
-
A prompt or prompt template that the server offers.
- McpSchema.PromptArgument - Record Class in io.modelcontextprotocol.spec
-
Describes an argument that a prompt can accept.
- McpSchema.PromptMessage - Record Class in io.modelcontextprotocol.spec
-
Describes a message returned as part of a prompt.
- McpSchema.ReadResourceRequest - Record Class in io.modelcontextprotocol.spec
- McpSchema.ReadResourceResult - Record Class in io.modelcontextprotocol.spec
- McpSchema.Request - Interface in io.modelcontextprotocol.spec
- McpSchema.Resource - Record Class in io.modelcontextprotocol.spec
-
A known resource that the server is capable of reading.
- McpSchema.ResourceContents - Interface in io.modelcontextprotocol.spec
-
The contents of a specific resource or sub-resource.
- McpSchema.ResourceTemplate - Record Class in io.modelcontextprotocol.spec
-
Resource templates allow servers to expose parameterized resources using URI templates.
- McpSchema.Role - Enum Class in io.modelcontextprotocol.spec
- McpSchema.Root - Record Class in io.modelcontextprotocol.spec
-
Represents a root directory or file that the server can operate on.
- McpSchema.SamplingMessage - Record Class in io.modelcontextprotocol.spec
- McpSchema.ServerCapabilities - Record Class in io.modelcontextprotocol.spec
- McpSchema.ServerCapabilities.Builder - Class in io.modelcontextprotocol.spec
- McpSchema.ServerCapabilities.LoggingCapabilities - Record Class in io.modelcontextprotocol.spec
- McpSchema.ServerCapabilities.PromptCapabilities - Record Class in io.modelcontextprotocol.spec
- McpSchema.ServerCapabilities.ResourceCapabilities - Record Class in io.modelcontextprotocol.spec
- McpSchema.ServerCapabilities.ToolCapabilities - Record Class in io.modelcontextprotocol.spec
- McpSchema.SubscribeRequest - Record Class in io.modelcontextprotocol.spec
-
Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.
- McpSchema.TextContent - Record Class in io.modelcontextprotocol.spec
- McpSchema.TextResourceContents - Record Class in io.modelcontextprotocol.spec
-
Text contents of a resource.
- McpSchema.Tool - Record Class in io.modelcontextprotocol.spec
-
Represents a tool that the server provides.
- McpSchema.UnsubscribeRequest - Record Class in io.modelcontextprotocol.spec
- McpServer - Interface in io.modelcontextprotocol.server
-
Factory class for creating Model Context Protocol (MCP) servers.
- McpServer.AsyncSpec - Class in io.modelcontextprotocol.server
-
Asynchronous server specification.
- McpServer.SyncSpec - Class in io.modelcontextprotocol.server
-
Synchronous server specification.
- McpServerFeatures - Class in io.modelcontextprotocol.server
-
MCP server features specification that a particular server can choose to support.
- McpServerFeatures() - Constructor for class io.modelcontextprotocol.server.McpServerFeatures
- McpServerFeatures.AsyncPromptRegistration - Record Class in io.modelcontextprotocol.server
-
Registration of a prompt template with its asynchronous handler function.
- McpServerFeatures.AsyncResourceRegistration - Record Class in io.modelcontextprotocol.server
-
Registration of a resource with its asynchronous handler function.
- McpServerFeatures.AsyncToolRegistration - Record Class in io.modelcontextprotocol.server
-
Registration of a tool with its asynchronous handler function.
- McpServerFeatures.SyncPromptRegistration - Record Class in io.modelcontextprotocol.server
-
Registration of a prompt template with its synchronous handler function.
- McpServerFeatures.SyncResourceRegistration - Record Class in io.modelcontextprotocol.server
-
Registration of a resource with its synchronous handler function.
- McpServerFeatures.SyncToolRegistration - Record Class in io.modelcontextprotocol.server
-
Registration of a tool with its synchronous handler function.
- McpSession - Interface in io.modelcontextprotocol.spec
-
Represents a Model Control Protocol (MCP) session that handles communication between clients and the server.
- McpSyncClient - Class in io.modelcontextprotocol.client
-
A synchronous client implementation for the Model Context Protocol (MCP) that wraps an
McpAsyncClientto provide blocking operations. - McpSyncClient(McpAsyncClient) - Constructor for class io.modelcontextprotocol.client.McpSyncClient
-
Deprecated.
- McpSyncServer - Class in io.modelcontextprotocol.server
-
A synchronous implementation of the Model Context Protocol (MCP) server that wraps
McpAsyncServerto provide blocking operations. - McpSyncServer(McpAsyncServer) - Constructor for class io.modelcontextprotocol.server.McpSyncServer
-
Creates a new synchronous server that wraps the provided async server.
- McpTransport - Interface in io.modelcontextprotocol.spec
-
Defines the asynchronous transport layer for the Model Context Protocol (MCP).
- message() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse.JSONRPCError
-
Returns the value of the
messagerecord component. - message(String) - Method in class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.Builder
- MESSAGE_EVENT_TYPE - Static variable in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Event type for regular messages
- messages() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Returns the value of the
messagesrecord component. - messages() - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptResult
-
Returns the value of the
messagesrecord component. - metadata() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Returns the value of the
metadatarecord component. - method() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCNotification
-
Returns the value of the
methodrecord component. - method() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
-
Returns the value of the
methodrecord component. - METHOD_INITIALIZE - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_LOGGING_SET_LEVEL - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_NOT_FOUND - Static variable in class io.modelcontextprotocol.spec.McpSchema.ErrorCodes
-
The method does not exist / is not available.
- METHOD_NOTIFICATION_INITIALIZED - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_NOTIFICATION_MESSAGE - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_NOTIFICATION_PROMPTS_LIST_CHANGED - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_NOTIFICATION_RESOURCES_LIST_CHANGED - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_NOTIFICATION_ROOTS_LIST_CHANGED - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_NOTIFICATION_TOOLS_LIST_CHANGED - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_PING - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_PROMPT_GET - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_PROMPT_LIST - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_RESOURCES_LIST - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_RESOURCES_READ - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_RESOURCES_SUBSCRIBE - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_RESOURCES_TEMPLATES_LIST - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_RESOURCES_UNSUBSCRIBE - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_ROOTS_LIST - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_SAMPLING_CREATE_MESSAGE - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_TOOLS_CALL - Static variable in class io.modelcontextprotocol.spec.McpSchema
- METHOD_TOOLS_LIST - Static variable in class io.modelcontextprotocol.spec.McpSchema
- mimeType() - Method in record class io.modelcontextprotocol.spec.McpSchema.BlobResourceContents
-
Returns the value of the
mimeTyperecord component. - mimeType() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
-
Returns the value of the
mimeTyperecord component. - mimeType() - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
-
Returns the value of the
mimeTyperecord component. - mimeType() - Method in interface io.modelcontextprotocol.spec.McpSchema.ResourceContents
-
The MIME type of this resource.
- mimeType() - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
-
Returns the value of the
mimeTyperecord component. - mimeType() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextResourceContents
-
Returns the value of the
mimeTyperecord component. - model() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
-
Returns the value of the
modelrecord component. - model(String) - Method in class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.Builder
- ModelHint(String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ModelHint
-
Creates an instance of a
ModelHintrecord class. - modelPreferences() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Returns the value of the
modelPreferencesrecord component. - ModelPreferences(List<McpSchema.ModelHint>, Double, Double, Double) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
-
Creates an instance of a
ModelPreferencesrecord class.
N
- name() - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolRequest
-
Returns the value of the
namerecord component. - name() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.CompleteArgument
-
Returns the value of the
namerecord component. - name() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.PromptReference
-
Returns the value of the
namerecord component. - name() - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptRequest
-
Returns the value of the
namerecord component. - name() - Method in record class io.modelcontextprotocol.spec.McpSchema.Implementation
-
Returns the value of the
namerecord component. - name() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelHint
-
Returns the value of the
namerecord component. - name() - Method in record class io.modelcontextprotocol.spec.McpSchema.Prompt
-
Returns the value of the
namerecord component. - name() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptArgument
-
Returns the value of the
namerecord component. - name() - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
-
Returns the value of the
namerecord component. - name() - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
-
Returns the value of the
namerecord component. - name() - Method in record class io.modelcontextprotocol.spec.McpSchema.Root
-
Returns the value of the
namerecord component. - name() - Method in record class io.modelcontextprotocol.spec.McpSchema.Tool
-
Returns the value of the
namerecord component. - nextCursor() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListPromptsResult
-
Returns the value of the
nextCursorrecord component. - nextCursor() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourcesResult
-
Returns the value of the
nextCursorrecord component. - nextCursor() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourceTemplatesResult
-
Returns the value of the
nextCursorrecord component. - nextCursor() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListToolsResult
-
Returns the value of the
nextCursorrecord component. - nextCursor() - Method in record class io.modelcontextprotocol.spec.McpSchema.PaginatedResult
-
Returns the value of the
nextCursorrecord component. - NONE - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest.ContextInclusionStrategy
- notEmpty(Collection<?>, String) - Static method in class io.modelcontextprotocol.util.Assert
-
Assert that the collection is not
nulland not empty. - NOTICE - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
- notifyPromptsListChanged() - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Notifies clients that the list of available prompts has changed.
- notifyPromptsListChanged() - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Notify clients that the list of available prompts has changed.
- notifyResourcesListChanged() - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Notifies clients that the list of available resources has changed.
- notifyResourcesListChanged() - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Notify clients that the list of available resources has changed.
- notifyToolsListChanged() - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Notifies clients that the list of available tools has changed.
- notifyToolsListChanged() - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Notify clients that the list of available tools has changed.
- notNull(Object, String) - Static method in class io.modelcontextprotocol.util.Assert
-
Assert that an object is not
null.
O
- objectMapper - Variable in class io.modelcontextprotocol.client.transport.HttpClientSseClientTransport
-
JSON object mapper for message serialization/deserialization
- onError(Throwable) - Method in interface io.modelcontextprotocol.client.transport.FlowSseClient.SseEventHandler
-
Called when an error occurs during the SSE connection.
- onEvent(FlowSseClient.SseEvent) - Method in interface io.modelcontextprotocol.client.transport.FlowSseClient.SseEventHandler
-
Called when an SSE event is received.
P
- PaginatedRequest(String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.PaginatedRequest
-
Creates an instance of a
PaginatedRequestrecord class. - PaginatedResult(String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.PaginatedResult
-
Creates an instance of a
PaginatedResultrecord class. - params() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCNotification
-
Returns the value of the
paramsrecord component. - params() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
-
Returns the value of the
paramsrecord component. - PARSE_ERROR - Static variable in class io.modelcontextprotocol.spec.McpSchema.ErrorCodes
-
Invalid JSON was received by the server.
- ping() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Sends a ping request to the server.
- ping() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Send a synchronous ping request.
- priority() - Method in record class io.modelcontextprotocol.spec.McpSchema.Annotations
-
Returns the value of the
priorityrecord component. - priority() - Method in record class io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
-
Returns the value of the
priorityrecord component. - priority() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
-
Returns the value of the
priorityrecord component. - priority() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextContent
-
Returns the value of the
priorityrecord component. - progress() - Method in record class io.modelcontextprotocol.spec.McpSchema.ProgressNotification
-
Returns the value of the
progressrecord component. - ProgressNotification(String, double, Double) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ProgressNotification
-
Creates an instance of a
ProgressNotificationrecord class. - progressToken() - Method in record class io.modelcontextprotocol.spec.McpSchema.ProgressNotification
-
Returns the value of the
progressTokenrecord component. - prompt() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptRegistration
-
Returns the value of the
promptrecord component. - prompt() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncPromptRegistration
-
Returns the value of the
promptrecord component. - Prompt(String, String, List<McpSchema.PromptArgument>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.Prompt
-
Creates an instance of a
Promptrecord class. - PromptArgument(String, String, Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.PromptArgument
-
Creates an instance of a
PromptArgumentrecord class. - PromptCapabilities(Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.PromptCapabilities
-
Creates an instance of a
PromptCapabilitiesrecord class. - promptHandler() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptRegistration
-
Returns the value of the
promptHandlerrecord component. - promptHandler() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncPromptRegistration
-
Returns the value of the
promptHandlerrecord component. - promptListChangedNotification() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
(Server) An optional notification from the server to the client, informing it that the list of prompts it offers has changed.
- promptListChangedNotification() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
(Server) An optional notification from the server to the client, informing it that the list of prompts it offers has changed.
- PromptMessage(McpSchema.Role, McpSchema.Content) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.PromptMessage
-
Creates an instance of a
PromptMessagerecord class. - PromptReference(String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.PromptReference
-
Creates an instance of a
PromptReferencerecord class. - prompts() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListPromptsResult
-
Returns the value of the
promptsrecord component. - prompts() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
-
Returns the value of the
promptsrecord component. - prompts(McpServerFeatures.AsyncPromptRegistration...) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Registers multiple prompts with their handlers using varargs.
- prompts(McpServerFeatures.SyncPromptRegistration...) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Registers multiple prompts with their handlers using varargs.
- prompts(Boolean) - Method in class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.Builder
- prompts(List<McpServerFeatures.AsyncPromptRegistration>) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Registers multiple prompts with their handlers using a List.
- prompts(List<McpServerFeatures.SyncPromptRegistration>) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Registers multiple prompts with their handlers using a List.
- prompts(Map<String, McpServerFeatures.AsyncPromptRegistration>) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Registers multiple prompts with their handlers using a Map.
- prompts(Map<String, McpServerFeatures.SyncPromptRegistration>) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Registers multiple prompts with their handlers using a Map.
- promptsChangeConsumer(Consumer<List<McpSchema.Prompt>>) - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Adds a consumer to be notified when the available prompts change.
- promptsChangeConsumer(Function<List<McpSchema.Prompt>, Mono<Void>>) - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Adds a consumer to be notified when the available prompts change.
- protocolVersion() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeRequest
-
Returns the value of the
protocolVersionrecord component. - protocolVersion() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
-
Returns the value of the
protocolVersionrecord component.
R
- readHandler() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceRegistration
-
Returns the value of the
readHandlerrecord component. - readHandler() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncResourceRegistration
-
Returns the value of the
readHandlerrecord component. - readResource(McpSchema.ReadResourceRequest) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Send a resources/read request.
- readResource(McpSchema.ReadResourceRequest) - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Send a resources/read request.
- readResource(McpSchema.Resource) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Send a resources/read request.
- readResource(McpSchema.Resource) - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Send a resources/read request.
- ReadResourceRequest(String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ReadResourceRequest
-
Creates an instance of a
ReadResourceRequestrecord class. - ReadResourceResult(List<McpSchema.ResourceContents>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ReadResourceResult
-
Creates an instance of a
ReadResourceResultrecord class. - ref() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest
-
Returns the value of the
refrecord component. - removePrompt(String) - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Remove a prompt handler at runtime.
- removePrompt(String) - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Remove a prompt handler.
- removeResource(String) - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Remove a resource handler at runtime.
- removeResource(String) - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Remove a resource handler.
- removeRoot(String) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Removes a root from the client's root list.
- removeRoot(String) - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Remove a root dynamically.
- removeTool(String) - Method in class io.modelcontextprotocol.server.McpAsyncServer
-
Remove a tool handler at runtime.
- removeTool(String) - Method in class io.modelcontextprotocol.server.McpSyncServer
-
Remove a tool handler.
- requestTimeout(Duration) - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Sets the duration to wait for server responses before timing out requests.
- requestTimeout(Duration) - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Sets the duration to wait for server responses before timing out requests.
- required() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptArgument
-
Returns the value of the
requiredrecord component. - resource() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceRegistration
-
Returns the value of the
resourcerecord component. - resource() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncResourceRegistration
-
Returns the value of the
resourcerecord component. - resource() - Method in record class io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
-
Returns the value of the
resourcerecord component. - Resource(String, String, String, String, McpSchema.Annotations) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.Resource
-
Creates an instance of a
Resourcerecord class. - ResourceCapabilities(Boolean, Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ResourceCapabilities
-
Creates an instance of a
ResourceCapabilitiesrecord class. - ResourceReference(String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.ResourceReference
-
Creates an instance of a
ResourceReferencerecord class. - resources() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourcesResult
-
Returns the value of the
resourcesrecord component. - resources() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
-
Returns the value of the
resourcesrecord component. - resources(McpServerFeatures.AsyncResourceRegistration...) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Registers multiple resources with their handlers using varargs.
- resources(McpServerFeatures.SyncResourceRegistration...) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Registers multiple resources with their handlers using varargs.
- resources(Boolean, Boolean) - Method in class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.Builder
- resources(List<McpServerFeatures.AsyncResourceRegistration>) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Registers multiple resources with their handlers using a List.
- resources(List<McpServerFeatures.SyncResourceRegistration>) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Registers multiple resources with their handlers using a List.
- resources(Map<String, McpServerFeatures.AsyncResourceRegistration>) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Registers multiple resources with their handlers using a Map.
- resources(Map<String, McpServerFeatures.SyncResourceRegistration>) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Registers multiple resources with their handlers using a Map.
- resourcesChangeConsumer(Consumer<List<McpSchema.Resource>>) - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Adds a consumer to be notified when the available resources change.
- resourcesChangeConsumer(Function<List<McpSchema.Resource>, Mono<Void>>) - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Adds a consumer to be notified when the available resources change.
- ResourceTemplate(String, String, String, String, McpSchema.Annotations) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
-
Creates an instance of a
ResourceTemplaterecord class. - resourceTemplates() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourceTemplatesResult
-
Returns the value of the
resourceTemplatesrecord component. - resourceTemplates(McpSchema.ResourceTemplate...) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Sets the resource templates using varargs for convenience.
- resourceTemplates(McpSchema.ResourceTemplate...) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Sets the resource templates using varargs for convenience.
- resourceTemplates(List<McpSchema.ResourceTemplate>) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Sets the resource templates that define patterns for dynamic resource access.
- resourceTemplates(List<McpSchema.ResourceTemplate>) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Sets the resource templates that define patterns for dynamic resource access.
- result() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse
-
Returns the value of the
resultrecord component. - role() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
-
Returns the value of the
rolerecord component. - role() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptMessage
-
Returns the value of the
rolerecord component. - role() - Method in record class io.modelcontextprotocol.spec.McpSchema.SamplingMessage
-
Returns the value of the
rolerecord component. - role(McpSchema.Role) - Method in class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.Builder
- Root(String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.Root
-
Creates an instance of a
Rootrecord class. - RootCapabilities(Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.RootCapabilities
-
Creates an instance of a
RootCapabilitiesrecord class. - roots() - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities
-
Returns the value of the
rootsrecord component. - roots() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListRootsResult
-
Returns the value of the
rootsrecord component. - roots(McpSchema.Root...) - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Sets the root URIs that this client can access, using a varargs parameter for convenience.
- roots(McpSchema.Root...) - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Sets the root URIs that this client can access, using a varargs parameter for convenience.
- roots(Boolean) - Method in class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.Builder
- roots(List<McpSchema.Root>) - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Sets the root URIs that this client can access.
- roots(List<McpSchema.Root>) - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Sets the root URIs that this client can access.
- rootsChangeConsumer(Consumer<List<McpSchema.Root>>) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Registers a consumer that will be notified when the list of roots changes.
- rootsChangeConsumer(Function<List<McpSchema.Root>, Mono<Void>>) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Registers a consumer that will be notified when the list of roots changes.
- rootsChangeConsumers(Consumer<List<McpSchema.Root>>...) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Registers multiple consumers that will be notified when the list of roots changes using varargs.
- rootsChangeConsumers(Function<List<McpSchema.Root>, Mono<Void>>...) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Registers multiple consumers that will be notified when the list of roots changes using varargs.
- rootsChangeConsumers(List<Consumer<List<McpSchema.Root>>>) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Registers multiple consumers that will be notified when the list of roots changes.
- rootsChangeConsumers(List<Function<List<McpSchema.Root>, Mono<Void>>>) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Registers multiple consumers that will be notified when the list of roots changes.
- rootsListChangedNotification() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Manually sends a roots/list_changed notification.
- rootsListChangedNotification() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Send a roots/list_changed notification.
S
- sampling() - Method in class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.Builder
- sampling() - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities
-
Returns the value of the
samplingrecord component. - sampling(Function<McpSchema.CreateMessageRequest, McpSchema.CreateMessageResult>) - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Sets a custom sampling handler for processing message creation requests.
- sampling(Function<McpSchema.CreateMessageRequest, Mono<McpSchema.CreateMessageResult>>) - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Sets a custom sampling handler for processing message creation requests.
- Sampling() - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.Sampling
-
Creates an instance of a
Samplingrecord class. - SamplingMessage(McpSchema.Role, McpSchema.Content) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.SamplingMessage
-
Creates an instance of a
SamplingMessagerecord class. - sendMessage(McpSchema.JSONRPCMessage) - Method in class io.modelcontextprotocol.client.transport.HttpClientSseClientTransport
-
Sends a JSON-RPC message to the server.
- sendMessage(McpSchema.JSONRPCMessage) - Method in class io.modelcontextprotocol.client.transport.StdioClientTransport
- sendMessage(McpSchema.JSONRPCMessage) - Method in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Broadcasts a message to all connected clients.
- sendMessage(McpSchema.JSONRPCMessage) - Method in class io.modelcontextprotocol.server.transport.StdioServerTransport
- sendMessage(McpSchema.JSONRPCMessage) - Method in interface io.modelcontextprotocol.spec.McpTransport
-
Sends a message to the server asynchronously.
- sendNotification(String) - Method in interface io.modelcontextprotocol.spec.McpSession
-
Sends a notification to the model server without parameters.
- sendNotification(String, Map<String, Object>) - Method in class io.modelcontextprotocol.spec.DefaultMcpSession
-
Sends a JSON-RPC notification.
- sendNotification(String, Map<String, Object>) - Method in interface io.modelcontextprotocol.spec.McpSession
-
Sends a notification to the model server with parameters.
- sendRequest(String, Object, TypeReference<T>) - Method in class io.modelcontextprotocol.spec.DefaultMcpSession
-
Sends a JSON-RPC request and returns the response.
- sendRequest(String, Object, TypeReference<T>) - Method in interface io.modelcontextprotocol.spec.McpSession
-
Sends a request to the model server and expects a response of type T.
- sendResourcesListChanged() - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
List Changed Notification.
- sendResourcesListChanged() - Method in class io.modelcontextprotocol.client.McpSyncClient
-
List Changed Notification.
- ServerCapabilities(Map<String, Object>, McpSchema.ServerCapabilities.LoggingCapabilities, McpSchema.ServerCapabilities.PromptCapabilities, McpSchema.ServerCapabilities.ResourceCapabilities, McpSchema.ServerCapabilities.ToolCapabilities) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
-
Creates an instance of a
ServerCapabilitiesrecord class. - serverInfo() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
-
Returns the value of the
serverInforecord component. - serverInfo(McpSchema.Implementation) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Sets the server implementation information that will be shared with clients during connection initialization.
- serverInfo(McpSchema.Implementation) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Sets the server implementation information that will be shared with clients during connection initialization.
- serverInfo(String, String) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Sets the server implementation information using name and version strings.
- serverInfo(String, String) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Sets the server implementation information using name and version strings.
- ServerMcpTransport - Interface in io.modelcontextprotocol.spec
-
Marker interface for the server-side MCP transport.
- ServerParameters - Class in io.modelcontextprotocol.client.transport
-
Server parameters for stdio client.
- ServerParameters.Builder - Class in io.modelcontextprotocol.client.transport
- setLoggingLevel(McpSchema.LoggingLevel) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Client can set the minimum logging level it wants to receive from the server.
- setLoggingLevel(McpSchema.LoggingLevel) - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Client can set the minimum logging level it wants to receive from the server.
- setStdErrorHandler(Consumer<String>) - Method in class io.modelcontextprotocol.client.transport.StdioClientTransport
-
Sets the handler for processing transport-level errors.
- speedPriority() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
-
Returns the value of the
speedPriorityrecord component. - SseEvent(String, String, String) - Constructor for record class io.modelcontextprotocol.client.transport.FlowSseClient.SseEvent
-
Creates an instance of a
SseEventrecord class. - StdioClientTransport - Class in io.modelcontextprotocol.client.transport
-
Implementation of the MCP Stdio transport that communicates with a server process using standard input/output streams.
- StdioClientTransport(ServerParameters) - Constructor for class io.modelcontextprotocol.client.transport.StdioClientTransport
-
Creates a new StdioClientTransport with the specified parameters and default ObjectMapper.
- StdioClientTransport(ServerParameters, ObjectMapper) - Constructor for class io.modelcontextprotocol.client.transport.StdioClientTransport
-
Creates a new StdioClientTransport with the specified parameters and ObjectMapper.
- StdioServerTransport - Class in io.modelcontextprotocol.server.transport
-
Implementation of the MCP Stdio transport for servers that communicates using standard input/output streams.
- StdioServerTransport() - Constructor for class io.modelcontextprotocol.server.transport.StdioServerTransport
-
Creates a new StdioServerTransport with a default ObjectMapper and System streams.
- StdioServerTransport(ObjectMapper) - Constructor for class io.modelcontextprotocol.server.transport.StdioServerTransport
-
Creates a new StdioServerTransport with the specified ObjectMapper and System streams.
- STOP_SEQUENCE - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.StopReason
- stopReason() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
-
Returns the value of the
stopReasonrecord component. - stopReason(McpSchema.CreateMessageResult.StopReason) - Method in class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.Builder
- stopSequences() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Returns the value of the
stopSequencesrecord component. - subscribe() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ResourceCapabilities
-
Returns the value of the
subscriberecord component. - subscribe(String, FlowSseClient.SseEventHandler) - Method in class io.modelcontextprotocol.client.transport.FlowSseClient
-
Subscribes to an SSE endpoint and processes the event stream.
- SubscribeRequest(String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.SubscribeRequest
-
Creates an instance of a
SubscribeRequestrecord class. - subscribeResource(McpSchema.SubscribeRequest) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Subscriptions.
- subscribeResource(McpSchema.SubscribeRequest) - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Subscriptions.
- sync(ClientMcpTransport) - Static method in interface io.modelcontextprotocol.client.McpClient
-
Start building a synchronous MCP client with the specified transport layer.
- sync(ServerMcpTransport) - Static method in interface io.modelcontextprotocol.server.McpServer
-
Starts building a synchronous MCP server that provides blocking operations.
- SyncPromptRegistration(McpSchema.Prompt, Function<McpSchema.GetPromptRequest, McpSchema.GetPromptResult>) - Constructor for record class io.modelcontextprotocol.server.McpServerFeatures.SyncPromptRegistration
-
Creates an instance of a
SyncPromptRegistrationrecord class. - SyncResourceRegistration(McpSchema.Resource, Function<McpSchema.ReadResourceRequest, McpSchema.ReadResourceResult>) - Constructor for record class io.modelcontextprotocol.server.McpServerFeatures.SyncResourceRegistration
-
Creates an instance of a
SyncResourceRegistrationrecord class. - SyncToolRegistration(McpSchema.Tool, Function<Map<String, Object>, McpSchema.CallToolResult>) - Constructor for record class io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration
-
Creates an instance of a
SyncToolRegistrationrecord class. - systemPrompt() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Returns the value of the
systemPromptrecord component.
T
- temperature() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Returns the value of the
temperaturerecord component. - text() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextContent
-
Returns the value of the
textrecord component. - text() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextResourceContents
-
Returns the value of the
textrecord component. - TextContent(String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.TextContent
- TextContent(List<McpSchema.Role>, Double, String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.TextContent
-
Creates an instance of a
TextContentrecord class. - TextResourceContents(String, String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.TextResourceContents
-
Creates an instance of a
TextResourceContentsrecord class. - THIS_SERVER - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest.ContextInclusionStrategy
- tool() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncToolRegistration
-
Returns the value of the
toolrecord component. - tool() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration
-
Returns the value of the
toolrecord component. - tool(McpSchema.Tool, Function<Map<String, Object>, McpSchema.CallToolResult>) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Adds a single tool with its implementation handler to the server.
- tool(McpSchema.Tool, Function<Map<String, Object>, Mono<McpSchema.CallToolResult>>) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Adds a single tool with its implementation handler to the server.
- Tool(String, String, McpSchema.JsonSchema) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.Tool
-
Creates an instance of a
Toolrecord class. - Tool(String, String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.Tool
- ToolCapabilities(Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ToolCapabilities
-
Creates an instance of a
ToolCapabilitiesrecord class. - tools() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListToolsResult
-
Returns the value of the
toolsrecord component. - tools() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
-
Returns the value of the
toolsrecord component. - tools(McpServerFeatures.AsyncToolRegistration...) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Adds multiple tools with their handlers to the server using varargs.
- tools(McpServerFeatures.SyncToolRegistration...) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Adds multiple tools with their handlers to the server using varargs.
- tools(Boolean) - Method in class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.Builder
- tools(List<McpServerFeatures.AsyncToolRegistration>) - Method in class io.modelcontextprotocol.server.McpServer.AsyncSpec
-
Adds multiple tools with their handlers to the server using a List.
- tools(List<McpServerFeatures.SyncToolRegistration>) - Method in class io.modelcontextprotocol.server.McpServer.SyncSpec
-
Adds multiple tools with their handlers to the server using a List.
- toolsChangeConsumer(Consumer<List<McpSchema.Tool>>) - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
-
Adds a consumer to be notified when the available tools change.
- toolsChangeConsumer(Function<List<McpSchema.Tool>, Mono<Void>>) - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
-
Adds a consumer to be notified when the available tools change.
- toString() - Method in record class io.modelcontextprotocol.client.transport.FlowSseClient.SseEvent
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptRegistration
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceRegistration
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncToolRegistration
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncPromptRegistration
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncResourceRegistration
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.Annotations
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.BlobResourceContents
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolRequest
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.RootCapabilities
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.Sampling
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.CompleteArgument
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.PromptReference
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.ResourceReference
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteResult.CompleteCompletion
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptRequest
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.Implementation
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeRequest
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCNotification
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse.JSONRPCError
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListPromptsResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourcesResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourceTemplatesResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListRootsResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListToolsResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelHint
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.PaginatedRequest
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.PaginatedResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ProgressNotification
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.Prompt
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptArgument
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptMessage
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ReadResourceRequest
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ReadResourceResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.Root
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.SamplingMessage
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.LoggingCapabilities
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.PromptCapabilities
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ResourceCapabilities
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ToolCapabilities
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.SubscribeRequest
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextContent
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextResourceContents
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.Tool
-
Returns a string representation of this record class.
- toString() - Method in record class io.modelcontextprotocol.spec.McpSchema.UnsubscribeRequest
-
Returns a string representation of this record class.
- total() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteResult.CompleteCompletion
-
Returns the value of the
totalrecord component. - total() - Method in record class io.modelcontextprotocol.spec.McpSchema.ProgressNotification
-
Returns the value of the
totalrecord component. - type() - Method in record class io.modelcontextprotocol.client.transport.FlowSseClient.SseEvent
-
Returns the value of the
typerecord component. - type() - Method in interface io.modelcontextprotocol.spec.McpSchema.CompleteRequest.PromptOrResourceReference
- type() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.PromptReference
-
Returns the value of the
typerecord component. - type() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.ResourceReference
-
Returns the value of the
typerecord component. - type() - Method in interface io.modelcontextprotocol.spec.McpSchema.Content
- type() - Method in record class io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
-
Returns the value of the
typerecord component. - type() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
-
Returns the value of the
typerecord component. - type() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextContent
-
Returns the value of the
typerecord component.
U
- unmarshalFrom(Object, TypeReference<T>) - Method in class io.modelcontextprotocol.client.transport.HttpClientSseClientTransport
-
Unmarshals data to the specified type using the configured object mapper.
- unmarshalFrom(Object, TypeReference<T>) - Method in class io.modelcontextprotocol.client.transport.StdioClientTransport
- unmarshalFrom(Object, TypeReference<T>) - Method in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
-
Unmarshals data from one type to another using the object mapper.
- unmarshalFrom(Object, TypeReference<T>) - Method in class io.modelcontextprotocol.server.transport.StdioServerTransport
- unmarshalFrom(Object, TypeReference<T>) - Method in interface io.modelcontextprotocol.spec.McpTransport
-
Unmarshals the given data into an object of the specified type.
- UnsubscribeRequest(String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.UnsubscribeRequest
-
Creates an instance of a
UnsubscribeRequestrecord class. - unsubscribeResource(McpSchema.UnsubscribeRequest) - Method in class io.modelcontextprotocol.client.McpAsyncClient
-
Send a resources/unsubscribe request.
- unsubscribeResource(McpSchema.UnsubscribeRequest) - Method in class io.modelcontextprotocol.client.McpSyncClient
-
Send a resources/unsubscribe request.
- uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.BlobResourceContents
-
Returns the value of the
urirecord component. - uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.ResourceReference
-
Returns the value of the
urirecord component. - uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.ReadResourceRequest
-
Returns the value of the
urirecord component. - uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
-
Returns the value of the
urirecord component. - uri() - Method in interface io.modelcontextprotocol.spec.McpSchema.ResourceContents
-
The URI of this resource.
- uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.Root
-
Returns the value of the
urirecord component. - uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.SubscribeRequest
-
Returns the value of the
urirecord component. - uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextResourceContents
-
Returns the value of the
urirecord component. - uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.UnsubscribeRequest
-
Returns the value of the
urirecord component. - uriTemplate() - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
-
Returns the value of the
uriTemplaterecord component. - USER - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.Role
- UTF_8 - Static variable in class io.modelcontextprotocol.server.transport.HttpServletSseServerTransport
- Utils - Class in io.modelcontextprotocol.util
-
Miscellaneous utility methods.
- Utils() - Constructor for class io.modelcontextprotocol.util.Utils
V
- value() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.CompleteArgument
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest.ContextInclusionStrategy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.StopReason
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.modelcontextprotocol.spec.McpSchema.Role
-
Returns the enum constant of this class with the specified name.
- values() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteResult.CompleteCompletion
-
Returns the value of the
valuesrecord component. - values() - Static method in enum class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest.ContextInclusionStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult.StopReason
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.modelcontextprotocol.spec.McpSchema.Role
-
Returns an array containing the constants of this enum class, in the order they are declared.
- version() - Method in record class io.modelcontextprotocol.spec.McpSchema.Implementation
-
Returns the value of the
versionrecord component.
W
- WARNING - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
McpClient.sync(ClientMcpTransport)to obtain an instance.