| Package | Description |
|---|---|
| io.modelcontextprotocol.client | |
| io.modelcontextprotocol.server | |
| org.noear.solon.ai.mcp.client |
| Modifier and Type | Method and Description |
|---|---|
McpSchema.CallToolResult |
McpSyncClient.callTool(McpSchema.CallToolRequest callToolRequest)
Calls a tool provided by the server.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<McpSchema.CallToolResult> |
McpAsyncClient.callTool(McpSchema.CallToolRequest callToolRequest)
Calls a tool provided by the server.
|
| 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.
|
McpServer.SyncSpec |
McpServer.SyncSpec.tool(McpSchema.Tool tool,
Function<Map<String,Object>,McpSchema.CallToolResult> handler)
Deprecated.
Adds a single tool with its implementation handler to the server.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.tool(McpSchema.Tool tool,
Function<Map<String,Object>,reactor.core.publisher.Mono<McpSchema.CallToolResult>> handler)
Deprecated.
Adds a single tool with its implementation handler to the server.
|
| Modifier and Type | Method and Description |
|---|---|
protected McpSchema.CallToolResult |
McpClientToolProvider.callTool(String name,
Map<String,Object> args)
调用工具
|
Copyright © 2025. All rights reserved.