| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
McpStatelessServerFeatures.SyncToolSpecification |
McpStatelessServerFeatures.SyncToolSpecification.Builder.build()
Builds the SyncToolSpecification instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
McpStatelessSyncServer.addTool(McpStatelessServerFeatures.SyncToolSpecification toolSpecification)
Add a new tool specification at runtime.
|
McpServer.StatelessSyncSpecification |
McpServer.StatelessSyncSpecification.tools(McpStatelessServerFeatures.SyncToolSpecification... toolSpecifications)
Adds multiple tools with their handlers to the server using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.StatelessSyncSpecification |
McpServer.StatelessSyncSpecification.tools(List<McpStatelessServerFeatures.SyncToolSpecification> toolSpecifications)
Adds multiple tools with their handlers to the server using a List.
|
| 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.