| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
McpServer.AsyncSpecification<S> |
McpServer.AsyncSpecification.completions(McpServerFeatures.AsyncCompletionSpecification... completions)
Registers multiple completions with their handlers using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.AsyncSpecification<S> |
McpServer.AsyncSpecification.completions(List<McpServerFeatures.AsyncCompletionSpecification> completions)
Registers multiple completions with their handlers using a List.
|
| 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.
|
Copyright © 2025. All rights reserved.