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