| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
void |
McpStatelessSyncServer.addPrompt(McpStatelessServerFeatures.SyncPromptSpecification promptSpecification)
Add a new prompt handler at runtime.
|
McpServer.StatelessSyncSpecification |
McpServer.StatelessSyncSpecification.prompts(McpStatelessServerFeatures.SyncPromptSpecification... prompts)
Registers multiple prompts with their handlers using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.StatelessSyncSpecification |
McpServer.StatelessSyncSpecification.prompts(List<McpStatelessServerFeatures.SyncPromptSpecification> prompts)
Registers multiple prompts with their handlers using a List.
|
McpServer.StatelessSyncSpecification |
McpServer.StatelessSyncSpecification.prompts(Map<String,McpStatelessServerFeatures.SyncPromptSpecification> prompts)
Registers multiple prompts with their handlers using a Map.
|
| Constructor and Description |
|---|
Sync(McpSchema.Implementation serverInfo,
McpSchema.ServerCapabilities serverCapabilities,
List<McpStatelessServerFeatures.SyncToolSpecification> tools,
Map<String,McpStatelessServerFeatures.SyncResourceSpecification> resources,
List<McpSchema.ResourceTemplate> resourceTemplates,
Map<String,McpStatelessServerFeatures.SyncPromptSpecification> prompts,
Map<McpSchema.CompleteReference,McpStatelessServerFeatures.SyncCompletionSpecification> completions,
String instructions)
Create an instance and validate the arguments.
|
Copyright © 2025. All rights reserved.