UNPKG

@mondaydotcomorg/atp-mcp-adapter

Version:

MCP compatibility adapter for Agent Tool Protocol

21 lines 733 B
import type { CustomFunctionDef } from '@mondaydotcomorg/atp-protocol'; export interface MCPToolSchema { type?: string; properties?: Record<string, unknown>; required?: string[]; description?: string; [key: string]: unknown; } export interface MCPToolDefinition { name: string; description?: string; inputSchema?: MCPToolSchema; } export declare function convertMCPInputSchema(inputSchema: unknown): { type: string; properties?: Record<string, unknown>; required?: string[]; [key: string]: unknown; }; export declare function convertMCPToolToFunction(tool: MCPToolDefinition, handler: (input: unknown) => Promise<unknown>): CustomFunctionDef; //# sourceMappingURL=schema-utils.d.ts.map