public static class McpStatelessServerFeatures.Sync
extends java.lang.Object
构造器和说明 |
---|
Sync(McpSchema.Implementation serverInfo,
McpSchema.ServerCapabilities serverCapabilities,
java.util.List<McpStatelessServerFeatures.SyncToolSpecification> tools,
java.util.Map<java.lang.String,McpStatelessServerFeatures.SyncResourceSpecification> resources,
java.util.List<McpSchema.ResourceTemplate> resourceTemplates,
java.util.Map<java.lang.String,McpStatelessServerFeatures.SyncPromptSpecification> prompts,
java.util.Map<McpSchema.CompleteReference,McpStatelessServerFeatures.SyncCompletionSpecification> completions,
java.lang.String instructions)
Create an instance and validate the arguments.
|
public Sync(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities, java.util.List<McpStatelessServerFeatures.SyncToolSpecification> tools, java.util.Map<java.lang.String,McpStatelessServerFeatures.SyncResourceSpecification> resources, java.util.List<McpSchema.ResourceTemplate> resourceTemplates, java.util.Map<java.lang.String,McpStatelessServerFeatures.SyncPromptSpecification> prompts, java.util.Map<McpSchema.CompleteReference,McpStatelessServerFeatures.SyncCompletionSpecification> completions, java.lang.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 text