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