McpServerFeatures.SyncPromptSpecification.@Deprecated public static class McpServerFeatures.SyncPromptRegistration extends Object
Example prompt registration:
new McpServerFeatures.SyncPromptRegistration(
new Prompt("analyze", "Code analysis template"),
request -> {
String code = request.getArguments().get("code");
return new GetPromptResult(
"Analyze this code:\n\n" + code + "\n\nProvide feedback on:"
);
}
)
| Constructor and Description |
|---|
SyncPromptRegistration()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
McpServerFeatures.SyncPromptSpecification |
toSpecification()
Deprecated.
|
public McpServerFeatures.SyncPromptSpecification toSpecification()
Copyright © 2025. All rights reserved.