Uses of Class
io.modelcontextprotocol.client.McpClient.SyncSpec
Packages that use McpClient.SyncSpec
-
Uses of McpClient.SyncSpec in io.modelcontextprotocol.client
Methods in io.modelcontextprotocol.client that return McpClient.SyncSpecModifier and TypeMethodDescriptionMcpClient.SyncSpec.capabilities(McpSchema.ClientCapabilities capabilities) Sets the client capabilities that will be advertised to the server during connection initialization.McpClient.SyncSpec.clientInfo(McpSchema.Implementation clientInfo) Sets the client implementation information that will be shared with the server during connection initialization.McpClient.SyncSpec.initializationTimeout(Duration initializationTimeout) McpClient.SyncSpec.loggingConsumer(Consumer<McpSchema.LoggingMessageNotification> loggingConsumer) Adds a consumer to be notified when logging messages are received from the server.McpClient.SyncSpec.loggingConsumers(List<Consumer<McpSchema.LoggingMessageNotification>> loggingConsumers) Adds multiple consumers to be notified when logging messages are received from the server.McpClient.SyncSpec.promptsChangeConsumer(Consumer<List<McpSchema.Prompt>> promptsChangeConsumer) Adds a consumer to be notified when the available prompts change.McpClient.SyncSpec.requestTimeout(Duration requestTimeout) Sets the duration to wait for server responses before timing out requests.McpClient.SyncSpec.resourcesChangeConsumer(Consumer<List<McpSchema.Resource>> resourcesChangeConsumer) Adds a consumer to be notified when the available resources change.McpClient.SyncSpec.roots(McpSchema.Root... roots) Sets the root URIs that this client can access, using a varargs parameter for convenience.McpClient.SyncSpec.roots(List<McpSchema.Root> roots) Sets the root URIs that this client can access.McpClient.SyncSpec.sampling(Function<McpSchema.CreateMessageRequest, McpSchema.CreateMessageResult> samplingHandler) Sets a custom sampling handler for processing message creation requests.static McpClient.SyncSpecMcpClient.sync(ClientMcpTransport transport) Deprecated.This method will be removed in 0.9.0.static McpClient.SyncSpecMcpClient.sync(McpClientTransport transport) Start building a synchronous MCP client with the specified transport layer.McpClient.SyncSpec.toolsChangeConsumer(Consumer<List<McpSchema.Tool>> toolsChangeConsumer) Adds a consumer to be notified when the available tools change.