Uses of Interface
org.springframework.ai.mcp.modern.client.SyncModernMcpConnection
Packages that use SyncModernMcpConnection
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 SyncModernMcpConnection in org.springframework.ai.mcp.client.common.autoconfigure
Methods in org.springframework.ai.mcp.client.common.autoconfigure that return types with arguments of type SyncModernMcpConnectionModifier and TypeMethodDescriptionMcpClientModernAutoConfiguration.modernMcpSyncConnections(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.SyncBuilder>> clientCustomizers, org.springframework.beans.factory.ObjectProvider<ClientMcpSyncHandlersRegistry> handlersRegistry, org.springframework.beans.factory.ObjectProvider<SyncModernMcpClientScope> clientScopeProvider) Creates a connection for each named transport.Method parameters in org.springframework.ai.mcp.client.common.autoconfigure with type arguments of type SyncModernMcpConnectionModifier and TypeMethodDescriptionMcpClientModernAutoConfiguration.modernMcpChangeSubscriber(org.springframework.beans.factory.ObjectProvider<List<SyncModernMcpConnection>> connectionsProvider, McpStreamableHttpClientProperties streamableProperties, McpClientModernProperties modernProperties, org.springframework.beans.factory.ObjectProvider<SyncModernMcpChangeListener> changeListeners, org.springframework.beans.factory.ObjectProvider<ClientMcpSyncHandlersRegistry> handlersRegistry) Creates the subscriber that keeps a listen stream open to the server of each modern connection that setslisten=true. -
Uses of SyncModernMcpConnection in org.springframework.ai.mcp.modern.client
Methods in org.springframework.ai.mcp.modern.client that return SyncModernMcpConnectionModifier and TypeMethodDescriptionstatic SyncModernMcpConnectionSyncModernMcpConnection.perRequest(McpModernConnectionInfo info, Supplier<io.modelcontextprotocol.modern.client.McpSyncClient> clientFactory) A connection that asks the given factory for a client each timeclient()is called, to give each request its own client.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 SyncModernMcpConnectionSyncModernMcpConnection.shared(McpModernConnectionInfo info, io.modelcontextprotocol.modern.client.McpSyncClient client) A connection that serves every request with the given client.Methods in org.springframework.ai.mcp.modern.client with parameters of type SyncModernMcpConnectionModifier and TypeMethodDescriptionSyncModernMcpChangeSubscriber.Builder.connection(SyncModernMcpConnection connection) Adds a connection to keep a listen stream open to, for the changes of the tools of its server.SyncModernMcpChangeSubscriber.Builder.connection(SyncModernMcpConnection 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.SyncModernMcpToolCallbackProvider.Builder.connection(SyncModernMcpConnection connection) Adds a connection whose tools are exposed.Method parameters in org.springframework.ai.mcp.modern.client with type arguments of type SyncModernMcpConnectionModifier and TypeMethodDescriptionSyncModernMcpToolCallbackProvider.Builder.connections(List<SyncModernMcpConnection> connections) Sets the connections whose tools are exposed, replacing those set before.