McpServerFeatures.AsyncToolSpecification
.@Deprecated
public static class McpServerFeatures.AsyncToolRegistration
extends java.lang.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)));
}
)
构造器和说明 |
---|
AsyncToolRegistration()
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
McpServerFeatures.AsyncToolSpecification |
toSpecification()
已过时。
|
public McpServerFeatures.AsyncToolSpecification toSpecification()