| Package | Description |
|---|---|
| io.modelcontextprotocol.server | |
| org.noear.solon.ai.mcp.server |
| Modifier and Type | Method and Description |
|---|---|
McpServer.SyncSpecification |
McpServer.SyncSpecification.rootsChangeHandler(BiConsumer<McpSyncServerExchange,List<McpSchema.Root>> handler)
Registers a consumer that will be notified when the list of roots changes.
|
McpServer.SyncSpecification |
McpServer.SyncSpecification.rootsChangeHandlers(List<BiConsumer<McpSyncServerExchange,List<McpSchema.Root>>> handlers)
Registers multiple consumers that will be notified when the list of roots
changes.
|
McpServer.SyncSpecification |
McpServer.SyncSpecification.tool(McpSchema.Tool tool,
BiFunction<McpSyncServerExchange,Map<String,Object>,McpSchema.CallToolResult> handler)
Adds a single tool with its implementation handler to the server.
|
| Constructor and Description |
|---|
McpServerContext(McpSyncServerExchange serverExchange) |
Copyright © 2025. All rights reserved.