UNPKG

@rockship/apollo-io-mcp

Version:

A powerful Model Context Protocol (MCP) server implementation for seamless Apollo.io API integration, enabling AI assistants to interact with Apollo.io data

24 lines 647 B
export class ErrorHandlerService { static handleToolError(error) { const errorMessage = error instanceof Error ? error.message : String(error); return { content: [ { type: "text", text: `ToolError: ${errorMessage}`, }, ], }; } static createSuccessResponse(data) { return { content: [ { type: "text", text: JSON.stringify(data, null, 2), }, ], }; } } //# sourceMappingURL=error-handler.service.js.map