| Package | Description |
|---|---|
| io.modelcontextprotocol.client | |
| io.modelcontextprotocol.server | |
| org.noear.solon.ai.mcp.client |
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
Function<List<McpSchema.Tool>,reactor.core.publisher.Mono<Void>> |
McpClientProperties.getToolsChangeConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
McpClientProperties.setToolsChangeConsumer(Function<List<McpSchema.Tool>,reactor.core.publisher.Mono<Void>> toolsChangeConsumer) |
McpClientProvider.Builder |
McpClientProvider.Builder.toolsChangeConsumer(Function<List<McpSchema.Tool>,reactor.core.publisher.Mono<Void>> toolsChangeConsumer)
工具变更消费者
|
Copyright © 2025. All rights reserved.