| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
McpServer.SyncSpecification<S> |
McpServer.SyncSpecification.completions(McpServerFeatures.SyncCompletionSpecification... completions)
Registers multiple completions with their handlers using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.SyncSpecification<S> |
McpServer.SyncSpecification.completions(List<McpServerFeatures.SyncCompletionSpecification> completions)
Registers multiple completions with their handlers using a List.
|
| Constructor and Description |
|---|
Sync(McpSchema.Implementation serverInfo,
McpSchema.ServerCapabilities serverCapabilities,
List<McpServerFeatures.SyncToolSpecification> tools,
Map<String,McpServerFeatures.SyncResourceSpecification> resources,
List<McpSchema.ResourceTemplate> resourceTemplates,
Map<String,McpServerFeatures.SyncPromptSpecification> prompts,
Map<McpSchema.CompleteReference,McpServerFeatures.SyncCompletionSpecification> completions,
List<BiConsumer<McpSyncServerExchange,List<McpSchema.Root>>> rootsChangeConsumers,
String instructions)
Create an instance and validate the arguments.
|
Copyright © 2025. All rights reserved.