Uses of Interface
org.apache.juneau.rest.server.mcp.McpToolHandler
Packages that use McpToolHandler
Package
Description
Revision-neutral core for MCP endpoints built on
juneau-rest-server.-
Uses of McpToolHandler in org.apache.juneau.rest.server.mcp
Methods in org.apache.juneau.rest.server.mcp that return McpToolHandlerModifier and TypeMethodDescriptionstatic <A,R> McpToolHandler McpTypedHandlers.adaptTool(McpTypedToolHandler<A, R> typed) Adapts a typed tool handler into a rawMcpToolHandler.static McpToolHandlerMcpToolHandler.of(McpToolSpec descriptor, BiFunction<Map<String, Object>, BeanStore, McpToolOutcome> call) Builds a handler from a fixed descriptor and acalllambda.static <A,R> McpToolHandler McpTypedHandlers.tool(String name, String description, Class<A> argumentType, Class<R> resultType, BiFunction<A, BeanStore, R> call) Builds a typed tool from a name, description, argument/result types, and acalllambda, then adapts it into a rawMcpToolHandlerviaMcpTypedHandlers.adaptTool(McpTypedToolHandler).Methods in org.apache.juneau.rest.server.mcp that return types with arguments of type McpToolHandlerMethods in org.apache.juneau.rest.server.mcp with parameters of type McpToolHandlerModifier and TypeMethodDescriptionMcpServerConfig.addTool(McpToolHandler... handlers) Convenience: append one or more tool handlers.Method parameters in org.apache.juneau.rest.server.mcp with type arguments of type McpToolHandlerModifier and TypeMethodDescriptionMcpServerConfig.setTools(List<McpToolHandler> tools) Sets the tool handler list.