public static class McpServerFeatures.Async extends Object
| Constructor and Description |
|---|
Async(McpSchema.Implementation serverInfo,
McpSchema.ServerCapabilities serverCapabilities,
List<McpServerFeatures.AsyncToolSpecification> tools,
Map<String,McpServerFeatures.AsyncResourceSpecification> resources,
List<McpSchema.ResourceTemplate> resourceTemplates,
Map<String,McpServerFeatures.AsyncPromptSpecification> prompts,
Map<McpSchema.CompleteReference,McpServerFeatures.AsyncCompletionSpecification> completions,
List<BiFunction<McpAsyncServerExchange,List<McpSchema.Root>,reactor.core.publisher.Mono<Void>>> rootsChangeConsumers,
String instructions)
Create an instance and validate the arguments.
|
public Async(McpSchema.Implementation serverInfo, McpSchema.ServerCapabilities serverCapabilities, List<McpServerFeatures.AsyncToolSpecification> tools, Map<String,McpServerFeatures.AsyncResourceSpecification> resources, List<McpSchema.ResourceTemplate> resourceTemplates, Map<String,McpServerFeatures.AsyncPromptSpecification> prompts, Map<McpSchema.CompleteReference,McpServerFeatures.AsyncCompletionSpecification> completions, List<BiFunction<McpAsyncServerExchange,List<McpSchema.Root>,reactor.core.publisher.Mono<Void>>> rootsChangeConsumers, 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 specificationsrootsChangeConsumers - The list of consumers that will be notified when
the roots list changesinstructions - The server instructions textCopyright © 2025. All rights reserved.