Package net.thevpc.naru.ext.mcp.cli
Class McpBackedTool
java.lang.Object
net.thevpc.naru.ext.mcp.cli.McpBackedTool
- All Implemented Interfaces:
NaruTool
-
Constructor Summary
ConstructorsConstructorDescriptionMcpBackedTool(io.modelcontextprotocol.spec.McpSchema.Tool mcpTool, io.modelcontextprotocol.client.McpSyncClient client) -
Method Summary
Modifier and TypeMethodDescriptionexecute(NaruToolCallContext context) getDefinition(NaruSession session) getDescription(NaruSession session) name()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.thevpc.naru.api.registry.NaruTool
acceptMode
-
Constructor Details
-
McpBackedTool
public McpBackedTool(io.modelcontextprotocol.spec.McpSchema.Tool mcpTool, io.modelcontextprotocol.client.McpSyncClient client)
-
-
Method Details
-
name
-
getDescription
- Specified by:
getDescriptionin interfaceNaruTool
-
getDefinition
- Specified by:
getDefinitionin interfaceNaruTool
-
execute
-