| Package | Description |
|---|---|
| org.tio.http.mcp.server |
| Modifier and Type | Method and Description |
|---|---|
BiFunction<McpServerSession,Map<String,Object>,McpCallToolResult> |
McpToolSpecification.getCall() |
BiFunction<McpServerSession,McpGetPromptRequest,McpGetPromptResult> |
McpPromptSpecification.getPromptHandler() |
BiFunction<McpServerSession,McpReadResourceRequest,McpReadResourceResult> |
McpResourceTemplateSpecification.getReadHandler() |
BiFunction<McpServerSession,McpReadResourceRequest,McpReadResourceResult> |
McpResourceSpecification.getReadHandler() |
| Modifier and Type | Method and Description |
|---|---|
T |
McpRequestHandler.handle(McpServerSession session,
Object params)
Handles a request from the client.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer |
McpServer.rootsChangeHandler(BiConsumer<McpServerSession,List<McpRoot>> handler)
Registers a consumer that will be notified when the list of roots changes.
|
McpServer |
McpServer.rootsChangeHandlers(List<BiConsumer<McpServerSession,List<McpRoot>>> handlers)
Registers multiple consumers that will be notified when the list of roots
changes.
|
void |
McpResourceSpecification.setReadHandler(BiFunction<McpServerSession,McpReadResourceRequest,McpReadResourceResult> readHandler) |
McpServer |
McpServer.tool(McpTool tool,
BiFunction<McpServerSession,Map<String,Object>,McpCallToolResult> handler)
Adds a single tool with its implementation handler to the server.
|
| Constructor and Description |
|---|
McpPromptSpecification(McpPrompt prompt,
BiFunction<McpServerSession,McpGetPromptRequest,McpGetPromptResult> promptHandler) |
McpResourceSpecification(McpResource resource,
BiFunction<McpServerSession,McpReadResourceRequest,McpReadResourceResult> readHandler) |
McpResourceTemplateSpecification(McpResourceTemplate resource,
BiFunction<McpServerSession,McpReadResourceRequest,McpReadResourceResult> readHandler) |
McpToolSpecification(McpTool tool,
BiFunction<McpServerSession,Map<String,Object>,McpCallToolResult> call) |
Copyright © 2025. All rights reserved.