| Package | Description |
|---|---|
| io.modelcontextprotocol.client | |
| io.modelcontextprotocol.server | |
| io.modelcontextprotocol.spec | |
| 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 |
|---|---|
McpServerFeatures.AsyncToolSpecification.Builder |
McpServerFeatures.AsyncToolSpecification.Builder.tool(McpSchema.Tool tool)
Sets the tool definition.
|
McpServerFeatures.SyncToolSpecification.Builder |
McpServerFeatures.SyncToolSpecification.Builder.tool(McpSchema.Tool tool)
Sets the tool definition.
|
McpStatelessServerFeatures.AsyncToolSpecification.Builder |
McpStatelessServerFeatures.AsyncToolSpecification.Builder.tool(McpSchema.Tool tool)
Sets the tool definition.
|
McpStatelessServerFeatures.SyncToolSpecification.Builder |
McpStatelessServerFeatures.SyncToolSpecification.Builder.tool(McpSchema.Tool tool)
Sets the tool definition.
|
McpServer.AsyncSpecification<S> |
McpServer.AsyncSpecification.tool(McpSchema.Tool tool,
BiFunction<McpAsyncServerExchange,Map<String,Object>,reactor.core.publisher.Mono<McpSchema.CallToolResult>> handler)
Deprecated.
Use
McpServer.AsyncSpecification.toolCall(McpSchema.Tool, BiFunction) instead for tool
calls that require a request object. |
McpServer.SyncSpecification<S> |
McpServer.SyncSpecification.tool(McpSchema.Tool tool,
BiFunction<McpSyncServerExchange,Map<String,Object>,McpSchema.CallToolResult> handler)
Deprecated.
Use
McpServer.SyncSpecification.toolCall(McpSchema.Tool, BiFunction) instead for tool
calls that require a request object. |
McpServer.AsyncSpecification<S> |
McpServer.AsyncSpecification.toolCall(McpSchema.Tool tool,
BiFunction<McpAsyncServerExchange,McpSchema.CallToolRequest,reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler)
Adds a single tool with its implementation handler to the server.
|
McpServer.SyncSpecification<S> |
McpServer.SyncSpecification.toolCall(McpSchema.Tool tool,
BiFunction<McpSyncServerExchange,McpSchema.CallToolRequest,McpSchema.CallToolResult> handler)
Adds a single tool with its implementation handler to the server.
|
McpServer.StatelessSyncSpecification |
McpServer.StatelessSyncSpecification.toolCall(McpSchema.Tool tool,
BiFunction<McpTransportContext,McpSchema.CallToolRequest,McpSchema.CallToolResult> callHandler)
Adds a single tool with its implementation handler to the server.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.toolCall(McpSchema.Tool tool,
BiFunction<McpTransportContext,McpSchema.CallToolRequest,reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler)
Adds a single tool with its implementation handler to the server.
|
| Constructor and Description |
|---|
AsyncToolSpecification(McpSchema.Tool tool,
BiFunction<McpAsyncServerExchange,Map<String,Object>,reactor.core.publisher.Mono<McpSchema.CallToolResult>> call)
Deprecated.
Use
AsyncToolSpecification(McpSchema.Tool, null,
BiFunction) instead. |
SyncToolSpecification(McpSchema.Tool tool,
BiFunction<McpSyncServerExchange,Map<String,Object>,McpSchema.CallToolResult> call)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
McpSchema.Tool |
McpSchema.Tool.Builder.build() |
| Constructor and Description |
|---|
ListToolsResult(List<McpSchema.Tool> tools,
String nextCursor) |
| 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.