| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
McpServerFeatures.SyncPromptSpecification |
McpServerFeatures.SyncPromptRegistration.toSpecification()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
McpSyncServer.addPrompt(McpServerFeatures.SyncPromptSpecification promptSpecification)
Add a new prompt handler.
|
McpServer.SyncSpecification |
McpServer.SyncSpecification.prompts(McpServerFeatures.SyncPromptSpecification... prompts)
Registers multiple prompts with their handlers using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.SyncSpecification |
McpServer.SyncSpecification.prompts(List<McpServerFeatures.SyncPromptSpecification> prompts)
Registers multiple prompts with their handlers using a List.
|
McpServer.SyncSpecification |
McpServer.SyncSpecification.prompts(Map<String,McpServerFeatures.SyncPromptSpecification> prompts)
Registers multiple prompts with their handlers using a Map.
|
Copyright © 2025. All rights reserved.