public static class McpServerFeatures.SyncPromptSpecification extends Object
Example prompt specification:
new McpServerFeatures.SyncPromptSpecification(
new Prompt("analyze", "Code analysis template"),
(exchange, request) -> {
String code = request.getArguments().get("code");
return new GetPromptResult(
"Analyze this code:\n\n" + code + "\n\nProvide feedback on:"
);
}
)
Copyright © 2025. All rights reserved.