| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
void |
McpSyncServer.addPrompt(McpServerFeatures.SyncPromptSpecification promptSpecification)
Add a new prompt handler.
|
McpServer.SyncSpecification<S> |
McpServer.SyncSpecification.prompts(McpServerFeatures.SyncPromptSpecification... prompts)
Registers multiple prompts with their handlers using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.SyncSpecification<S> |
McpServer.SyncSpecification.prompts(List<McpServerFeatures.SyncPromptSpecification> prompts)
Registers multiple prompts with their handlers using a List.
|
McpServer.SyncSpecification<S> |
McpServer.SyncSpecification.prompts(Map<String,McpServerFeatures.SyncPromptSpecification> prompts)
Registers multiple prompts with their handlers using a Map.
|
| 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.