/** * MCP Tool Conversion — converts MCP tool definitions to ONI ToolDefinitions. * * Bridges MCP protocol tools into the ONI framework so they can be used * by the Conductor, subagents, and swarm agents with the same interface * as native tools. */ import type { ToolDefinition } from "../tools/types.js"; import type { MCPToolDefinition, MCPCallToolResult } from "./types.js"; import type { MCPClient } from "./client.js"; /** * Convert a single MCP tool definition into an ONI ToolDefinition. * * The resulting tool, when executed, forwards the call to the MCP server * via the provided client. Results are serialized to a string. */ export declare function mcpToolToDefinition(tool: MCPToolDefinition, client: MCPClient, serverName: string): ToolDefinition, string>; /** * Convert all tools from an MCP client into ONI ToolDefinitions. */ export declare function convertMCPTools(client: MCPClient, serverName: string): ToolDefinition[]; /** * Format MCP tool result content into a string for the LLM. */ export declare function formatMCPResult(result: MCPCallToolResult): string; //# sourceMappingURL=convert.d.ts.map