UNPKG

@utaba/ucm-mcp-server

Version:

Universal Context Manager MCP Server - AI Productivity Platform

34 lines 1.02 kB
/** * SharePointErrorHandler * Centralized error handling for SharePoint MCP tools */ import { ILogger } from '../interfaces/ILogger.js'; /** * Standard MCP tool result with content array */ interface ToolResult { content: Array<{ type: string; text?: string; uri?: string; mimeType?: string; resource?: { uri: string; text?: string; blob?: string; mimeType?: string; }; }>; } export declare class SharePointErrorHandler { /** * Handle SharePoint API errors and return appropriate MCP responses * @param error - The error from axios/API call * @param logger - Logger instance for error tracking * @param toolName - Name of the tool for logging context * @returns ToolResult for authentication errors, throws McpError for others */ static handle(error: any, logger: ILogger, toolName: string): ToolResult | never; } export {}; //# sourceMappingURL=SharePointErrorHandler.d.ts.map