UNPKG

@shopana/novaposhta-mcp-server

Version:

MCP Server for Nova Poshta API integration with AI assistants

11 lines 555 B
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; export declare function formatError(error: unknown): string; /** * Safely formats response errors array * @param errors - Errors from Nova Poshta response * @param fallback - Fallback message if errors is not an array * @returns Formatted error message */ export declare function formatResponseErrors(errors: unknown, fallback: string): string; export declare function toErrorResult(error: unknown, prefix?: string): CallToolResult; //# sourceMappingURL=error-handler.d.ts.map