| Package | Description |
|---|---|
| org.tio.http.mcp.server |
| Modifier and Type | Method and Description |
|---|---|
McpServer |
McpServer.capabilities(McpServerCapabilities serverCapabilities)
Sets the server capabilities that will be advertised to clients during
connection initialization.
|
McpServer |
McpServer.prompts(List<McpPromptSpecification> prompts)
Registers multiple prompts with their handlers using a List.
|
McpServer |
McpServer.prompts(Map<String,McpPromptSpecification> prompts)
Registers multiple prompts with their handlers using a Map.
|
McpServer |
McpServer.prompts(McpPromptSpecification... prompts)
Registers multiple prompts with their handlers using varargs.
|
McpServer |
McpServer.resources(List<McpResourceSpecification> resourceSpecifications)
Registers multiple resources with their handlers using a List.
|
McpServer |
McpServer.resources(Map<String,McpResourceSpecification> resourceSpecifications)
Registers multiple resources with their handlers using a Map.
|
McpServer |
McpServer.resources(McpResourceSpecification... resourceSpecifications)
Registers multiple resources with their handlers using varargs.
|
McpServer |
McpServer.resourceTemplates(List<McpResourceTemplateSpecification> resourceTemplates)
Sets the resource templates that define patterns for dynamic resource access.
|
McpServer |
McpServer.resourceTemplates(McpResourceTemplateSpecification... resourceTemplates)
Sets the resource templates using varargs for convenience.
|
McpServer |
McpServer.rootsChangeHandler(BiConsumer<McpServerSession,List<McpRoot>> handler)
Registers a consumer that will be notified when the list of roots changes.
|
McpServer |
McpServer.rootsChangeHandlers(BiConsumer<McpServerSession,List<McpRoot>>... handlers)
Registers multiple consumers that will be notified when the list of roots
changes using varargs.
|
McpServer |
McpServer.rootsChangeHandlers(List<BiConsumer<McpServerSession,List<McpRoot>>> handlers)
Registers multiple consumers that will be notified when the list of roots
changes.
|
McpServer |
McpServer.serverInfo(McpImplementation serverInfo)
Sets the server implementation information that will be shared with clients
during connection initialization.
|
McpServer |
McpServer.serverInfo(String name,
String version)
Sets the server implementation information using name and version strings.
|
McpServer |
McpServer.tool(McpTool tool,
BiFunction<McpServerSession,Map<String,Object>,McpCallToolResult> handler)
Adds a single tool with its implementation handler to the server.
|
McpServer |
McpServer.tools(List<McpToolSpecification> toolSpecifications)
Adds multiple tools with their handlers to the server using a List.
|
McpServer |
McpServer.tools(McpToolSpecification... toolSpecifications)
Adds multiple tools with their handlers to the server using varargs.
|
Copyright © 2025. All rights reserved.