| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.completions(McpStatelessServerFeatures.AsyncCompletionSpecification... completions)
Registers multiple completions with their handlers using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.completions(List<McpStatelessServerFeatures.AsyncCompletionSpecification> completions)
Registers multiple completions with their handlers using a List.
|
| Constructor and Description |
|---|
Async(McpSchema.Implementation serverInfo,
McpSchema.ServerCapabilities serverCapabilities,
List<McpStatelessServerFeatures.AsyncToolSpecification> tools,
Map<String,McpStatelessServerFeatures.AsyncResourceSpecification> resources,
List<McpSchema.ResourceTemplate> resourceTemplates,
Map<String,McpStatelessServerFeatures.AsyncPromptSpecification> prompts,
Map<McpSchema.CompleteReference,McpStatelessServerFeatures.AsyncCompletionSpecification> completions,
String instructions)
Create an instance and validate the arguments.
|
Copyright © 2025. All rights reserved.