public static class McpServerFeatures.AsyncToolSpecification extends Object
McpAsyncServerExchange and a
McpSchema.CallToolRequest and returning
results. The function's first argument is an McpAsyncServerExchange upon
which the server can interact with the connected client. The second arguments is a
map of tool arguments.| Modifier and Type | Class and Description |
|---|---|
static class |
McpServerFeatures.AsyncToolSpecification.Builder
Builder for creating AsyncToolSpecification instances.
|
| 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. |
| Modifier and Type | Method and Description |
|---|---|
static McpServerFeatures.AsyncToolSpecification.Builder |
builder()
Creates a new builder instance.
|
@Deprecated public AsyncToolSpecification(McpSchema.Tool tool, BiFunction<McpAsyncServerExchange,Map<String,Object>,reactor.core.publisher.Mono<McpSchema.CallToolResult>> call)
AsyncToolSpecification(McpSchema.Tool, null,
BiFunction) instead.public static McpServerFeatures.AsyncToolSpecification.Builder builder()
Copyright © 2025. All rights reserved.