Package io.meeds.mcp.server.util
Class McpServerUtils.ToolSpecification
java.lang.Object
io.meeds.mcp.server.util.McpServerUtils.ToolSpecification
- Enclosing class:
McpServerUtils
-
Constructor Summary
ConstructorsConstructorDescriptionToolSpecification(org.springframework.ai.tool.ToolCallback toolCallback, org.springframework.util.MimeType mimeType) -
Method Summary
Modifier and TypeMethodDescriptionio.modelcontextprotocol.spec.McpSchema.CallToolResultio.modelcontextprotocol.spec.McpSchema.ToolgetTool()
-
Constructor Details
-
ToolSpecification
public ToolSpecification(org.springframework.ai.tool.ToolCallback toolCallback, org.springframework.util.MimeType mimeType)
-
-
Method Details
-
getTool
public io.modelcontextprotocol.spec.McpSchema.Tool getTool() -
getToolName
-
callTool
public io.modelcontextprotocol.spec.McpSchema.CallToolResult callTool(Object exchangeOrContext, io.modelcontextprotocol.spec.McpSchema.CallToolRequest request)
-