UNPKG

@mcp-apps/api-tools-mcp-server

Version:

MCP server for interacting with APIs and web services

13 lines (12 loc) 475 B
/** * Creates a replacer function for JSON.stringify that handles circular references * by replacing them with "[Circular Reference]" */ export declare function getCircularReplacer(): (key: string, value: any) => any; /** * Stringify an object, handling circular references * @param obj Object to stringify * @param space Number of spaces for indentation (default: 2) * @returns JSON string */ export declare function safeStringify(obj: any, space?: number): string;