| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
McpAsyncServer.addPrompt(McpServerFeatures.AsyncPromptSpecification promptSpecification)
Add a new prompt handler at runtime.
|
McpServer.AsyncSpecification<S> |
McpServer.AsyncSpecification.prompts(McpServerFeatures.AsyncPromptSpecification... prompts)
Registers multiple prompts with their handlers using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.AsyncSpecification<S> |
McpServer.AsyncSpecification.prompts(List<McpServerFeatures.AsyncPromptSpecification> prompts)
Registers multiple prompts with their handlers using a List.
|
McpServer.AsyncSpecification<S> |
McpServer.AsyncSpecification.prompts(Map<String,McpServerFeatures.AsyncPromptSpecification> prompts)
Registers multiple prompts with their handlers using a Map.
|
| 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.