| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
void |
McpSyncServer.addTool(McpServerFeatures.SyncToolSpecification toolHandler)
Add a new tool handler.
|
static McpServerFeatures.AsyncToolSpecification |
McpServerFeatures.AsyncToolSpecification.fromSync(McpServerFeatures.SyncToolSpecification tool) |
McpServer.SyncSpecification |
McpServer.SyncSpecification.tools(McpServerFeatures.SyncToolSpecification... toolSpecifications)
Adds multiple tools with their handlers to the server using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.SyncSpecification |
McpServer.SyncSpecification.tools(List<McpServerFeatures.SyncToolSpecification> toolSpecifications)
Adds multiple tools with their handlers to the server using a List.
|
Copyright © 2025. All rights reserved.