Uses of Class
io.modelcontextprotocol.client.McpClient.AsyncSpec
Packages that use McpClient.AsyncSpec
-
Uses of McpClient.AsyncSpec in io.modelcontextprotocol.client
Methods in io.modelcontextprotocol.client that return McpClient.AsyncSpecModifier and TypeMethodDescriptionstatic McpClient.AsyncSpecMcpClient.async(McpClientTransport transport) Start building an asynchronous MCP client with the specified transport layer.McpClient.AsyncSpec.capabilities(McpSchema.ClientCapabilities capabilities) Sets the client capabilities that will be advertised to the server during connection initialization.McpClient.AsyncSpec.clientInfo(McpSchema.Implementation clientInfo) Sets the client implementation information that will be shared with the server during connection initialization.McpClient.AsyncSpec.elicitation(Function<McpSchema.ElicitRequest, reactor.core.publisher.Mono<McpSchema.ElicitResult>> elicitationHandler) Sets a custom elicitation handler for processing elicitation message requests.McpClient.AsyncSpec.initializationTimeout(Duration initializationTimeout) McpClient.AsyncSpec.loggingConsumer(Function<McpSchema.LoggingMessageNotification, reactor.core.publisher.Mono<Void>> loggingConsumer) Adds a consumer to be notified when logging messages are received from the server.McpClient.AsyncSpec.loggingConsumers(List<Function<McpSchema.LoggingMessageNotification, reactor.core.publisher.Mono<Void>>> loggingConsumers) Adds multiple consumers to be notified when logging messages are received from the server.McpClient.AsyncSpec.progressConsumer(Function<McpSchema.ProgressNotification, reactor.core.publisher.Mono<Void>> progressConsumer) Adds a consumer to be notified of progress notifications from the server.McpClient.AsyncSpec.progressConsumers(List<Function<McpSchema.ProgressNotification, reactor.core.publisher.Mono<Void>>> progressConsumers) Adds a multiple consumers to be notified of progress notifications from the server.McpClient.AsyncSpec.promptsChangeConsumer(Function<List<McpSchema.Prompt>, reactor.core.publisher.Mono<Void>> promptsChangeConsumer) Adds a consumer to be notified when the available prompts change.McpClient.AsyncSpec.requestTimeout(Duration requestTimeout) Sets the duration to wait for server responses before timing out requests.McpClient.AsyncSpec.resourcesChangeConsumer(Function<List<McpSchema.Resource>, reactor.core.publisher.Mono<Void>> resourcesChangeConsumer) Adds a consumer to be notified when the available resources change.McpClient.AsyncSpec.resourcesUpdateConsumer(Function<List<McpSchema.ResourceContents>, reactor.core.publisher.Mono<Void>> resourcesUpdateConsumer) Adds a consumer to be notified when a specific resource is updated.McpClient.AsyncSpec.roots(McpSchema.Root... roots) Sets the root URIs that this client can access, using a varargs parameter for convenience.McpClient.AsyncSpec.roots(List<McpSchema.Root> roots) Sets the root URIs that this client can access.McpClient.AsyncSpec.sampling(Function<McpSchema.CreateMessageRequest, reactor.core.publisher.Mono<McpSchema.CreateMessageResult>> samplingHandler) Sets a custom sampling handler for processing message creation requests.McpClient.AsyncSpec.toolsChangeConsumer(Function<List<McpSchema.Tool>, reactor.core.publisher.Mono<Void>> toolsChangeConsumer) Adds a consumer to be notified when the available tools change.