Uses of Record Class
org.springframework.ai.mcp.modern.client.McpModernConnectionInfo
Packages that use McpModernConnectionInfo
Package
Description
Client-side support for the MCP 2026-07-28 ("modern") protocol revision, built on the
MCP Java SDK's
io.modelcontextprotocol.modern.client package.-
Uses of McpModernConnectionInfo in org.springframework.ai.mcp.modern.client
Methods in org.springframework.ai.mcp.modern.client that return McpModernConnectionInfoModifier and TypeMethodDescriptionAsyncModernMcpConnection.info()Describes the connection.SyncModernMcpConnection.info()Describes the connection.Methods in org.springframework.ai.mcp.modern.client with parameters of type McpModernConnectionInfoModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>AsyncModernMcpChangeListener.changed(McpModernConnectionInfo connectionInfo, io.modelcontextprotocol.modern.client.SubscriptionEvent event) The server of a connection reported a change.reactor.core.publisher.Mono<Void>AsyncModernMcpToolCallbackProvider.changed(McpModernConnectionInfo connectionInfo, io.modelcontextprotocol.modern.client.SubscriptionEvent event) Drops the kept tool listing of the connection when its server reports that its tools changed.voidSyncModernMcpChangeListener.changed(McpModernConnectionInfo connectionInfo, io.modelcontextprotocol.modern.client.SubscriptionEvent event) The server of a connection reported a change.voidSyncModernMcpToolCallbackProvider.changed(McpModernConnectionInfo connectionInfo, io.modelcontextprotocol.modern.client.SubscriptionEvent event) Drops the kept tool listing of the connection when its server reports that its tools changed.default reactor.core.publisher.Mono<Void>AsyncModernMcpChangeListener.changesMayBeMissed(McpModernConnectionInfo connectionInfo) Changes of the server may have gone unreported: a listen stream was established, so that what happened before it is not known, or an established stream ended.reactor.core.publisher.Mono<Void>AsyncModernMcpToolCallbackProvider.changesMayBeMissed(McpModernConnectionInfo connectionInfo) Drops the kept tool listing of the connection, because a change of its tools may have gone unreported.default voidSyncModernMcpChangeListener.changesMayBeMissed(McpModernConnectionInfo connectionInfo) Changes of the server may have gone unreported: a listen stream was established, so that what happened before it is not known, or an established stream ended.voidSyncModernMcpToolCallbackProvider.changesMayBeMissed(McpModernConnectionInfo connectionInfo) Drops the kept tool listing of the connection, because a change of its tools may have gone unreported.io.modelcontextprotocol.modern.client.McpAsyncClientAsyncModernMcpClientScope.client(McpModernConnectionInfo connectionInfo, Supplier<io.modelcontextprotocol.modern.client.McpAsyncClient> clientFactory) Returns the client that serves the current request of the given connection.io.modelcontextprotocol.modern.client.McpSyncClientSyncModernMcpClientScope.client(McpModernConnectionInfo connectionInfo, Supplier<io.modelcontextprotocol.modern.client.McpSyncClient> clientFactory) Returns the client that serves the current request of the given connection.AsyncModernMcpToolCallback.Builder.connectionInfo(McpModernConnectionInfo connectionInfo) Sets the connection the tool belongs to.SyncModernMcpToolCallback.Builder.connectionInfo(McpModernConnectionInfo connectionInfo) Sets the connection the tool belongs to.io.modelcontextprotocol.modern.client.McpAsyncClient.ToolSpecAsyncModernMcpToolCallCustomizer.customize(McpModernConnectionInfo connectionInfo, io.modelcontextprotocol.modern.client.McpAsyncClient.ToolSpec toolSpec, @Nullable ToolContext toolContext) Customizes the request spec of a tool call.io.modelcontextprotocol.modern.client.McpSyncClient.ToolSpecSyncModernMcpToolCallCustomizer.customize(McpModernConnectionInfo connectionInfo, io.modelcontextprotocol.modern.client.McpSyncClient.ToolSpec toolSpec, @Nullable ToolContext toolContext) Customizes the request spec of a tool call.static AsyncModernMcpConnectionAsyncModernMcpConnection.perRequest(McpModernConnectionInfo info, Supplier<io.modelcontextprotocol.modern.client.McpAsyncClient> clientFactory) A connection that asks the given factory for a client each timeAsyncModernMcpConnection.client()is called, to give each request its own client.static SyncModernMcpConnectionSyncModernMcpConnection.perRequest(McpModernConnectionInfo info, Supplier<io.modelcontextprotocol.modern.client.McpSyncClient> clientFactory) A connection that asks the given factory for a client each timeSyncModernMcpConnection.client()is called, to give each request its own client.McpModernToolNamePrefixGenerator.prefixedToolName(McpModernConnectionInfo connectionInfo, io.modelcontextprotocol.modern.McpSchema.Tool tool) Generates the name the model sees for the given tool.static AsyncModernMcpConnectionAsyncModernMcpConnection.scoped(McpModernConnectionInfo info, Supplier<io.modelcontextprotocol.modern.client.McpAsyncClient> clientFactory, AsyncModernMcpClientScope clientScope) A connection that asks the given scope for the client of each request.static SyncModernMcpConnectionSyncModernMcpConnection.scoped(McpModernConnectionInfo info, Supplier<io.modelcontextprotocol.modern.client.McpSyncClient> clientFactory, SyncModernMcpClientScope clientScope) A connection that asks the given scope for the client of each request.static AsyncModernMcpConnectionAsyncModernMcpConnection.shared(McpModernConnectionInfo info, io.modelcontextprotocol.modern.client.McpAsyncClient client) A connection that serves every request with the given client.static SyncModernMcpConnectionSyncModernMcpConnection.shared(McpModernConnectionInfo info, io.modelcontextprotocol.modern.client.McpSyncClient client) A connection that serves every request with the given client.default reactor.core.publisher.Mono<Void>AsyncModernMcpChangeListener.streamEstablished(McpModernConnectionInfo connectionInfo) A listen stream to the server of a connection was established, which shows that the server can be reached.reactor.core.publisher.Mono<Void>AsyncModernMcpToolCallbackProvider.streamEstablished(McpModernConnectionInfo connectionInfo) Ends the cool-down of the connection, if its server could not be reached before: a listen stream that was established shows that it can be reached again.default voidSyncModernMcpChangeListener.streamEstablished(McpModernConnectionInfo connectionInfo) A listen stream to the server of a connection was established, which shows that the server can be reached.voidSyncModernMcpToolCallbackProvider.streamEstablished(McpModernConnectionInfo connectionInfo) Ends the cool-down of the connection, if its server could not be reached before: a listen stream that was established shows that it can be reached again.io.modelcontextprotocol.common.McpTransportContextAsyncModernMcpTransportContextProvider.transportContext(McpModernConnectionInfo connectionInfo) Returns the transport context of the caller that the current thread works for.