UNPKG

evolution-api-mcp

Version:

MCP Server for Evolution API v2 - Integrate WhatsApp functionality with Claude Desktop and other MCP clients

81 lines (80 loc) 2.16 kB
/** * Profile and Webhook Management MCP Tools Implementation * Implements tools for profile management, privacy settings, webhook configuration, and API information */ import { ToolInfo } from '../types'; import { EvolutionHttpClient } from '../../clients/evolution-http-client'; /** * Profile and Webhook Management tool implementations */ export declare class ProfileWebhookTools { private httpClient; constructor(httpClient: EvolutionHttpClient); /** * Fetch profile information */ createFetchProfileTool(): ToolInfo; private fetchProfileHandler; /** * Update profile name */ createUpdateProfileNameTool(): ToolInfo; private updateProfileNameHandler; /** * Update profile status */ createUpdateProfileStatusTool(): ToolInfo; private updateProfileStatusHandler; /** * Update profile picture */ createUpdateProfilePictureTool(): ToolInfo; private updateProfilePictureHandler; /** * Fetch privacy settings */ createFetchPrivacySettingsTool(): ToolInfo; private fetchPrivacySettingsHandler; /** * Update privacy settings */ createUpdatePrivacySettingsTool(): ToolInfo; private updatePrivacySettingsHandler; /** * Fetch business profile */ createFetchBusinessProfileTool(): ToolInfo; private fetchBusinessProfileHandler; /** * Update business profile */ createUpdateBusinessProfileTool(): ToolInfo; private updateBusinessProfileHandler; /** * Set webhook configuration */ createSetWebhookTool(): ToolInfo; private setWebhookHandler; /** * Get webhook configuration */ createGetWebhookTool(): ToolInfo; private getWebhookHandler; /** * Get Evolution API information */ createGetInformationTool(): ToolInfo; private getInformationHandler; /** * Get all profile and webhook tools */ getAllTools(): ToolInfo[]; /** * Handle API errors with user-friendly messages */ private handleApiError; /** * Handle unexpected errors */ private handleUnexpectedError; }