McpServerFeatures.AsyncToolSpecification.@Deprecated public static class McpServerFeatures.AsyncToolRegistration extends Object
Example tool registration:
new McpServerFeatures.AsyncToolRegistration(
new Tool(
"calculator",
"Performs mathematical calculations",
new JsonSchemaObject()
.required("expression")
.property("expression", JsonSchemaType.STRING)
),
args -> {
String expr = (String) args.get("expression");
return Mono.just(new CallToolResult("Result: " + evaluate(expr)));
}
)
| Constructor and Description |
|---|
AsyncToolRegistration()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
McpServerFeatures.AsyncToolSpecification |
toSpecification()
Deprecated.
|
public McpServerFeatures.AsyncToolSpecification toSpecification()
Copyright © 2025. All rights reserved.