public static class McpStatelessServerFeatures.Sync extends Object
| Constructor and Description |
|---|
Sync(McpSchema.Implementation serverInfo,
McpSchema.ServerCapabilities serverCapabilities,
List<McpStatelessServerFeatures.SyncToolSpecification> tools,
Map<String,McpStatelessServerFeatures.SyncResourceSpecification> resources,
List<McpSchema.ResourceTemplate> resourceTemplates,
Map<String,McpStatelessServerFeatures.SyncPromptSpecification> prompts,
Map<McpSchema.CompleteReference,McpStatelessServerFeatures.SyncCompletionSpecification> completions,
String instructions)
Create an instance and validate the arguments.
|
public Sync(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities, List<McpStatelessServerFeatures.SyncToolSpecification> tools, Map<String,McpStatelessServerFeatures.SyncResourceSpecification> resources, List<McpSchema.ResourceTemplate> resourceTemplates, Map<String,McpStatelessServerFeatures.SyncPromptSpecification> prompts, Map<McpSchema.CompleteReference,McpStatelessServerFeatures.SyncCompletionSpecification> completions, String instructions)
serverInfo - The server implementation detailsserverCapabilities - The server capabilitiestools - The list of tool specificationsresources - The map of resource specificationsresourceTemplates - The list of resource templatesprompts - The map of prompt specificationsinstructions - The server instructions textCopyright © 2025. All rights reserved.