Uses of Interface
org.springframework.ai.mcp.modern.client.AsyncModernMcpConnection
Packages that use AsyncModernMcpConnection
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 AsyncModernMcpConnection in org.springframework.ai.mcp.client.common.autoconfigure
Methods in org.springframework.ai.mcp.client.common.autoconfigure that return types with arguments of type AsyncModernMcpConnectionModifier and TypeMethodDescriptionMcpClientModernAutoConfiguration.modernMcpAsyncConnections(org.springframework.beans.factory.ObjectProvider<List<NamedModernClientMcpTransport>> transportsProvider, McpStreamableHttpClientProperties streamableProperties, McpClientCommonProperties commonProperties, McpClientModernProperties modernProperties, org.springframework.beans.factory.ObjectProvider<McpClientCustomizer<io.modelcontextprotocol.modern.client.McpClient.AsyncBuilder>> clientCustomizers, org.springframework.beans.factory.ObjectProvider<AsyncModernMcpClientScope> clientScopeProvider, org.springframework.beans.factory.ObjectProvider<AsyncModernMcpTransportContextProvider> transportContextProvider, org.springframework.beans.factory.ObjectProvider<ClientMcpAsyncHandlersRegistry> handlersRegistry) Creates an asynchronous connection for each named transport, with theASYNCclient type.Method parameters in org.springframework.ai.mcp.client.common.autoconfigure with type arguments of type AsyncModernMcpConnectionModifier and TypeMethodDescriptionMcpClientModernAutoConfiguration.modernMcpAsyncChangeSubscriber(org.springframework.beans.factory.ObjectProvider<List<AsyncModernMcpConnection>> connectionsProvider, McpStreamableHttpClientProperties streamableProperties, McpClientModernProperties modernProperties, org.springframework.beans.factory.ObjectProvider<AsyncModernMcpChangeListener> changeListeners, org.springframework.beans.factory.ObjectProvider<ClientMcpAsyncHandlersRegistry> handlersRegistry) Creates the subscriber of the listen streams for the asynchronous client type, the counterpart ofMcpClientModernAutoConfiguration.modernMcpChangeSubscriber(org.springframework.beans.factory.ObjectProvider<java.util.List<org.springframework.ai.mcp.modern.client.SyncModernMcpConnection>>, org.springframework.ai.mcp.client.common.autoconfigure.properties.McpStreamableHttpClientProperties, org.springframework.ai.mcp.client.common.autoconfigure.properties.McpClientModernProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.mcp.modern.client.SyncModernMcpChangeListener>, org.springframework.beans.factory.ObjectProvider<org.springframework.ai.mcp.annotation.spring.ClientMcpSyncHandlersRegistry>). -
Uses of AsyncModernMcpConnection in org.springframework.ai.mcp.modern.client
Methods in org.springframework.ai.mcp.modern.client that return AsyncModernMcpConnectionModifier and TypeMethodDescriptionstatic AsyncModernMcpConnectionAsyncModernMcpConnection.perRequest(McpModernConnectionInfo info, Supplier<io.modelcontextprotocol.modern.client.McpAsyncClient> clientFactory) A connection that asks the given factory for a client each timeclient()is called, to give each request its own client.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 AsyncModernMcpConnectionAsyncModernMcpConnection.shared(McpModernConnectionInfo info, io.modelcontextprotocol.modern.client.McpAsyncClient client) A connection that serves every request with the given client.default AsyncModernMcpConnectionAsyncModernMcpConnection.withTransportContext(AsyncModernMcpTransportContextProvider transportContextProvider) Returns a connection that is this one, with the caller of each request supplied by the given provider.Methods in org.springframework.ai.mcp.modern.client with parameters of type AsyncModernMcpConnectionModifier and TypeMethodDescriptionAsyncModernMcpChangeSubscriber.Builder.connection(AsyncModernMcpConnection connection) Adds a connection to keep a listen stream open to, for the changes of the tools of its server.AsyncModernMcpChangeSubscriber.Builder.connection(AsyncModernMcpConnection connection, boolean promptsChanged, boolean resourcesChanged) Adds a connection to keep a listen stream open to, for the changes of the tools of its server and, if asked for, those of its prompts and of its list of resources.AsyncModernMcpToolCallbackProvider.Builder.connection(AsyncModernMcpConnection connection) Adds a connection whose tools are exposed.Method parameters in org.springframework.ai.mcp.modern.client with type arguments of type AsyncModernMcpConnectionModifier and TypeMethodDescriptionAsyncModernMcpToolCallbackProvider.Builder.connections(List<AsyncModernMcpConnection> connections) Sets the connections whose tools are exposed, replacing those set before.