UNPKG

@the_cfdude/productboard-mcp

Version:

Model Context Protocol server for Productboard REST API with dynamic tool loading

19 lines (18 loc) 753 B
/** * Parameter adapter to handle the mismatch between dynamic tool schemas and implementations * * The dynamic tool registry generates schemas with a 'body' parameter containing all fields, * but our implementations expect individual parameters. This adapter bridges that gap. */ /** * Adapt parameters from dynamic tool schema format to implementation format */ export declare function adaptParameters(toolName: string, args: any): any; /** * Get the correct API format for a tool's request body */ export declare function formatApiBody(toolName: string, body: any): any; /** * Generate helpful error messages for parameter validation failures */ export declare function generateParameterErrorMessage(toolName: string, error: any): string;