| Package | Description |
|---|---|
| io.modelcontextprotocol.client | |
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
McpClient.SyncSpec |
McpClient.SyncSpec.toolsChangeConsumer(Consumer<List<McpSchema.Tool>> toolsChangeConsumer)
Adds a consumer to be notified when the available tools change.
|
McpClient.AsyncSpec |
McpClient.AsyncSpec.toolsChangeConsumer(Function<List<McpSchema.Tool>,reactor.core.publisher.Mono<Void>> toolsChangeConsumer)
Adds a consumer to be notified when the available tools change.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.AsyncSpecification |
McpServer.AsyncSpecification.tool(McpSchema.Tool tool,
BiFunction<McpAsyncServerExchange,Map<String,Object>,reactor.core.publisher.Mono<McpSchema.CallToolResult>> handler)
Adds a single tool with its implementation handler to the server.
|
McpServer.SyncSpecification |
McpServer.SyncSpecification.tool(McpSchema.Tool tool,
BiFunction<McpSyncServerExchange,Map<String,Object>,McpSchema.CallToolResult> handler)
Adds a single tool with its implementation handler to the server.
|
Copyright © 2025. All rights reserved.