Index

A B C D E F G H I J L M N O P R S T U V W 
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 annotations record component.
annotations() - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
Returns the value of the annotations record component.
Annotations(List<McpSchema.Role>, Double) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.Annotations
Creates an instance of a Annotations record 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 argument record component.
arguments() - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolRequest
Returns the value of the arguments record component.
arguments() - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptRequest
Returns the value of the arguments record component.
arguments() - Method in record class io.modelcontextprotocol.spec.McpSchema.Prompt
Returns the value of the arguments record 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 AsyncPromptRegistration record class.
AsyncResourceRegistration(McpSchema.Resource, Function<McpSchema.ReadResourceRequest, Mono<McpSchema.ReadResourceResult>>) - Constructor for record class io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceRegistration
Creates an instance of a AsyncResourceRegistration record 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 AsyncToolRegistration record class.
audience() - Method in record class io.modelcontextprotocol.spec.McpSchema.Annotations
Returns the value of the audience record component.
audience() - Method in record class io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
Returns the value of the audience record component.
audience() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
Returns the value of the audience record component.
audience() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextContent
Returns the value of the audience record 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 blob record component.
BlobResourceContents(String, String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.BlobResourceContents
Creates an instance of a BlobResourceContents record class.
build() - Method in class io.modelcontextprotocol.client.McpClient.AsyncSpec
Create an instance of McpAsyncClient with the provided configurations or sensible defaults.
build() - Method in class io.modelcontextprotocol.client.McpClient.SyncSpec
Create an instance of McpSyncClient with 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 call record component.
call() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration
Returns the value of the call record 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 CallToolRequest record class.
CallToolResult(List<McpSchema.Content>, Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CallToolResult
Creates an instance of a CallToolResult record class.
capabilities() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeRequest
Returns the value of the capabilities record component.
capabilities() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
Returns the value of the capabilities record 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 ClientCapabilities record class.
clientInfo() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeRequest
Returns the value of the clientInfo record 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 code record component.
CompleteArgument(String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.CompleteArgument
Creates an instance of a CompleteArgument record class.
CompleteCompletion(List<String>, Integer, Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteResult.CompleteCompletion
Creates an instance of a CompleteCompletion record class.
CompleteRequest(McpSchema.CompleteRequest.PromptOrResourceReference, McpSchema.CompleteRequest.CompleteArgument) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest
Creates an instance of a CompleteRequest record class.
CompleteResult(McpSchema.CompleteResult.CompleteCompletion) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteResult
Creates an instance of a CompleteResult record class.
completion() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteResult
Returns the value of the completion record 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 content record component.
content() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
Returns the value of the content record component.
content() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptMessage
Returns the value of the content record component.
content() - Method in record class io.modelcontextprotocol.spec.McpSchema.SamplingMessage
Returns the value of the content record 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 contents record component.
costPriority() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
Returns the value of the costPriority record 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 CreateMessageRequest record class.
CreateMessageResult(McpSchema.Role, McpSchema.Content, String, McpSchema.CreateMessageResult.StopReason) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
Creates an instance of a CreateMessageResult record 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 cursor record component.

D

data() - Method in record class io.modelcontextprotocol.client.transport.FlowSseClient.SseEvent
Returns the value of the data record component.
data() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
Returns the value of the data record component.
data() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse.JSONRPCError
Returns the value of the data record component.
data() - Method in record class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification
Returns the value of the data record 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 description record component.
description() - Method in record class io.modelcontextprotocol.spec.McpSchema.Prompt
Returns the value of the description record component.
description() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptArgument
Returns the value of the description record component.
description() - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
Returns the value of the description record component.
description() - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
Returns the value of the description record component.
description() - Method in record class io.modelcontextprotocol.spec.McpSchema.Tool
Returns the value of the description record 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 EmbeddedResource record 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 error record 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 experimental record component.
experimental() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
Returns the value of the experimental record 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 GetPromptRequest record class.
GetPromptResult(String, List<McpSchema.PromptMessage>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.GetPromptResult
Creates an instance of a GetPromptResult record 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 hasMore record component.
hasText(String) - Static method in class io.modelcontextprotocol.util.Assert
Check whether the given String contains actual text.
hasText(String) - Static method in class io.modelcontextprotocol.util.Utils
Check whether the given String contains 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 null and must contain at least one non-whitespace character.
hints() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
Returns the value of the hints record component.
HttpClientSseClientTransport - Class in io.modelcontextprotocol.client.transport
Server-Sent Events (SSE) implementation of the McpTransport that 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 id record component.
id() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
Returns the value of the id record component.
id() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse
Returns the value of the id record component.
ImageContent(List<McpSchema.Role>, Double, String, String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ImageContent
Creates an instance of a ImageContent record class.
Implementation(String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.Implementation
Creates an instance of a Implementation record class.
includeContext() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
Returns the value of the includeContext record 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 InitializeRequest record class.
InitializeResult(String, McpSchema.ServerCapabilities, McpSchema.Implementation, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
Creates an instance of a InitializeResult record class.
inputSchema() - Method in record class io.modelcontextprotocol.spec.McpSchema.Tool
Returns the value of the inputSchema record component.
instructions() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
Returns the value of the instructions record component.
intelligencePriority() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
Returns the value of the intelligencePriority record 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 true if the supplied Collection is null or empty.
isEmpty(Map<?, ?>) - Static method in class io.modelcontextprotocol.util.Utils
Return true if the supplied Map is null or empty.
isError() - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolResult
Returns the value of the isError record 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 jsonrpc record component.
jsonrpc() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
Returns the value of the jsonrpc record component.
jsonrpc() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse
Returns the value of the jsonrpc record 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 JSONRPCError record class.
JSONRPCNotification(String, String, Map<String, Object>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.JSONRPCNotification
Creates an instance of a JSONRPCNotification record class.
JSONRPCRequest(String, String, Object, Object) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
Creates an instance of a JSONRPCRequest record class.
JSONRPCResponse(String, Object, Object, McpSchema.JSONRPCResponse.JSONRPCError) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.JSONRPCResponse
Creates an instance of a JSONRPCResponse record 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 level record 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 listChanged record component.
listChanged() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.PromptCapabilities
Returns the value of the listChanged record component.
listChanged() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ResourceCapabilities
Returns the value of the listChanged record component.
listChanged() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ToolCapabilities
Returns the value of the listChanged record 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 ListPromptsResult record 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 ListResourcesResult record 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 ListResourceTemplatesResult record 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 ListRootsResult record 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 ListToolsResult record class.
logger() - Method in record class io.modelcontextprotocol.spec.McpSchema.LoggingMessageNotification
Returns the value of the logger record 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 logging record component.
LoggingCapabilities() - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.LoggingCapabilities
Creates an instance of a LoggingCapabilities record 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 LoggingMessageNotification record 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 maxTokens record 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
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 McpAsyncClient to provide blocking operations.
McpSyncClient(McpAsyncClient) - Constructor for class io.modelcontextprotocol.client.McpSyncClient
Deprecated.
Use McpClient.sync(ClientMcpTransport) to obtain an instance.
McpSyncServer - Class in io.modelcontextprotocol.server
A synchronous implementation of the Model Context Protocol (MCP) server that wraps McpAsyncServer to 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 message record 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 messages record component.
messages() - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptResult
Returns the value of the messages record component.
metadata() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
Returns the value of the metadata record component.
method() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCNotification
Returns the value of the method record component.
method() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
Returns the value of the method record 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 mimeType record component.
mimeType() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
Returns the value of the mimeType record component.
mimeType() - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
Returns the value of the mimeType record 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 mimeType record component.
mimeType() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextResourceContents
Returns the value of the mimeType record component.
model() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
Returns the value of the model record 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 ModelHint record class.
modelPreferences() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
Returns the value of the modelPreferences record component.
ModelPreferences(List<McpSchema.ModelHint>, Double, Double, Double) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ModelPreferences
Creates an instance of a ModelPreferences record class.

N

name() - Method in record class io.modelcontextprotocol.spec.McpSchema.CallToolRequest
Returns the value of the name record component.
name() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.CompleteArgument
Returns the value of the name record component.
name() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.PromptReference
Returns the value of the name record component.
name() - Method in record class io.modelcontextprotocol.spec.McpSchema.GetPromptRequest
Returns the value of the name record component.
name() - Method in record class io.modelcontextprotocol.spec.McpSchema.Implementation
Returns the value of the name record component.
name() - Method in record class io.modelcontextprotocol.spec.McpSchema.ModelHint
Returns the value of the name record component.
name() - Method in record class io.modelcontextprotocol.spec.McpSchema.Prompt
Returns the value of the name record component.
name() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptArgument
Returns the value of the name record component.
name() - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
Returns the value of the name record component.
name() - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
Returns the value of the name record component.
name() - Method in record class io.modelcontextprotocol.spec.McpSchema.Root
Returns the value of the name record component.
name() - Method in record class io.modelcontextprotocol.spec.McpSchema.Tool
Returns the value of the name record component.
nextCursor() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListPromptsResult
Returns the value of the nextCursor record component.
nextCursor() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourcesResult
Returns the value of the nextCursor record component.
nextCursor() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourceTemplatesResult
Returns the value of the nextCursor record component.
nextCursor() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListToolsResult
Returns the value of the nextCursor record component.
nextCursor() - Method in record class io.modelcontextprotocol.spec.McpSchema.PaginatedResult
Returns the value of the nextCursor record 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 null and 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 PaginatedRequest record class.
PaginatedResult(String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.PaginatedResult
Creates an instance of a PaginatedResult record class.
params() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCNotification
Returns the value of the params record component.
params() - Method in record class io.modelcontextprotocol.spec.McpSchema.JSONRPCRequest
Returns the value of the params record 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 priority record component.
priority() - Method in record class io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
Returns the value of the priority record component.
priority() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
Returns the value of the priority record component.
priority() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextContent
Returns the value of the priority record component.
progress() - Method in record class io.modelcontextprotocol.spec.McpSchema.ProgressNotification
Returns the value of the progress record component.
ProgressNotification(String, double, Double) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ProgressNotification
Creates an instance of a ProgressNotification record class.
progressToken() - Method in record class io.modelcontextprotocol.spec.McpSchema.ProgressNotification
Returns the value of the progressToken record component.
prompt() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptRegistration
Returns the value of the prompt record component.
prompt() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncPromptRegistration
Returns the value of the prompt record component.
Prompt(String, String, List<McpSchema.PromptArgument>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.Prompt
Creates an instance of a Prompt record class.
PromptArgument(String, String, Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.PromptArgument
Creates an instance of a PromptArgument record class.
PromptCapabilities(Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.PromptCapabilities
Creates an instance of a PromptCapabilities record class.
promptHandler() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptRegistration
Returns the value of the promptHandler record component.
promptHandler() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncPromptRegistration
Returns the value of the promptHandler record 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 PromptMessage record class.
PromptReference(String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.PromptReference
Creates an instance of a PromptReference record class.
prompts() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListPromptsResult
Returns the value of the prompts record component.
prompts() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
Returns the value of the prompts record 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 protocolVersion record component.
protocolVersion() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
Returns the value of the protocolVersion record component.

R

readHandler() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceRegistration
Returns the value of the readHandler record component.
readHandler() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncResourceRegistration
Returns the value of the readHandler record 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 ReadResourceRequest record class.
ReadResourceResult(List<McpSchema.ResourceContents>) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ReadResourceResult
Creates an instance of a ReadResourceResult record class.
ref() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest
Returns the value of the ref record 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 required record component.
resource() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceRegistration
Returns the value of the resource record component.
resource() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncResourceRegistration
Returns the value of the resource record component.
resource() - Method in record class io.modelcontextprotocol.spec.McpSchema.EmbeddedResource
Returns the value of the resource record component.
Resource(String, String, String, String, McpSchema.Annotations) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.Resource
Creates an instance of a Resource record class.
ResourceCapabilities(Boolean, Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ResourceCapabilities
Creates an instance of a ResourceCapabilities record class.
ResourceReference(String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.ResourceReference
Creates an instance of a ResourceReference record class.
resources() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourcesResult
Returns the value of the resources record component.
resources() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
Returns the value of the resources record 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 ResourceTemplate record class.
resourceTemplates() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListResourceTemplatesResult
Returns the value of the resourceTemplates record 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 result record component.
role() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageResult
Returns the value of the role record component.
role() - Method in record class io.modelcontextprotocol.spec.McpSchema.PromptMessage
Returns the value of the role record component.
role() - Method in record class io.modelcontextprotocol.spec.McpSchema.SamplingMessage
Returns the value of the role record 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 Root record class.
RootCapabilities(Boolean) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities.RootCapabilities
Creates an instance of a RootCapabilities record class.
roots() - Method in record class io.modelcontextprotocol.spec.McpSchema.ClientCapabilities
Returns the value of the roots record component.
roots() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListRootsResult
Returns the value of the roots record 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 sampling record 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 Sampling record class.
SamplingMessage(McpSchema.Role, McpSchema.Content) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.SamplingMessage
Creates an instance of a SamplingMessage record 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 ServerCapabilities record class.
serverInfo() - Method in record class io.modelcontextprotocol.spec.McpSchema.InitializeResult
Returns the value of the serverInfo record 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 speedPriority record component.
SseEvent(String, String, String) - Constructor for record class io.modelcontextprotocol.client.transport.FlowSseClient.SseEvent
Creates an instance of a SseEvent record 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 stopReason record 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 stopSequences record component.
subscribe() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities.ResourceCapabilities
Returns the value of the subscribe record 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 SubscribeRequest record 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 SyncPromptRegistration record class.
SyncResourceRegistration(McpSchema.Resource, Function<McpSchema.ReadResourceRequest, McpSchema.ReadResourceResult>) - Constructor for record class io.modelcontextprotocol.server.McpServerFeatures.SyncResourceRegistration
Creates an instance of a SyncResourceRegistration record class.
SyncToolRegistration(McpSchema.Tool, Function<Map<String, Object>, McpSchema.CallToolResult>) - Constructor for record class io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration
Creates an instance of a SyncToolRegistration record class.
systemPrompt() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
Returns the value of the systemPrompt record component.

T

temperature() - Method in record class io.modelcontextprotocol.spec.McpSchema.CreateMessageRequest
Returns the value of the temperature record component.
text() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextContent
Returns the value of the text record component.
text() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextResourceContents
Returns the value of the text record 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 TextContent record class.
TextResourceContents(String, String, String) - Constructor for record class io.modelcontextprotocol.spec.McpSchema.TextResourceContents
Creates an instance of a TextResourceContents record 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 tool record component.
tool() - Method in record class io.modelcontextprotocol.server.McpServerFeatures.SyncToolRegistration
Returns the value of the tool record 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 Tool record 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 ToolCapabilities record class.
tools() - Method in record class io.modelcontextprotocol.spec.McpSchema.ListToolsResult
Returns the value of the tools record component.
tools() - Method in record class io.modelcontextprotocol.spec.McpSchema.ServerCapabilities
Returns the value of the tools record 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 total record component.
total() - Method in record class io.modelcontextprotocol.spec.McpSchema.ProgressNotification
Returns the value of the total record component.
type() - Method in record class io.modelcontextprotocol.client.transport.FlowSseClient.SseEvent
Returns the value of the type record 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 type record component.
type() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.ResourceReference
Returns the value of the type record 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 type record component.
type() - Method in record class io.modelcontextprotocol.spec.McpSchema.ImageContent
Returns the value of the type record component.
type() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextContent
Returns the value of the type record 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 UnsubscribeRequest record 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 uri record component.
uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.CompleteRequest.ResourceReference
Returns the value of the uri record component.
uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.ReadResourceRequest
Returns the value of the uri record component.
uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.Resource
Returns the value of the uri record 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 uri record component.
uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.SubscribeRequest
Returns the value of the uri record component.
uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.TextResourceContents
Returns the value of the uri record component.
uri() - Method in record class io.modelcontextprotocol.spec.McpSchema.UnsubscribeRequest
Returns the value of the uri record component.
uriTemplate() - Method in record class io.modelcontextprotocol.spec.McpSchema.ResourceTemplate
Returns the value of the uriTemplate record 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 value record 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 values record 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 version record component.

W

WARNING - Enum constant in enum class io.modelcontextprotocol.spec.McpSchema.LoggingLevel
 
A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form