Function: toMcpTool()
Makaio Framework / tools-core / toMcpTool
Function: toMcpTool()
Section titled “Function: toMcpTool()”toMcpTool(
tool):McpToolDefinition
Defined in: ../../../tools/core/src/export.ts:110
Converts a ToolDefinition to MCP tool format.
Parameters
Section titled “Parameters”Makaio tool definition
Returns
Section titled “Returns”MCP-compatible tool definition
Example
Section titled “Example”const mcpTool = toMcpTool(readFileTool);// Result:// {// name: 'readFile',// description: 'Reads a file from the filesystem',// inputSchema: { type: 'object', properties: { path: { type: 'string' } }, ... },// annotations: { readOnly: true }// }