evolution-api-mcp
Version:
MCP Server for Evolution API v2 - Integrate WhatsApp functionality with Claude Desktop and other MCP clients
78 lines (76 loc) • 1.9 kB
TypeScript
/**
* Message Controller MCP Tools Implementation
* Implements all tools for sending messages through Evolution API
*/
import { ToolInfo } from '../types';
import { EvolutionHttpClient } from '../../clients/evolution-http-client';
/**
* Message Controller tool implementations
*/
export declare class MessageTools {
private httpClient;
constructor(httpClient: EvolutionHttpClient);
/**
* Send text message
*/
createSendTextTool(): ToolInfo;
private sendTextHandler;
/**
* Send media message (images, videos, documents)
*/
createSendMediaTool(): ToolInfo;
private sendMediaHandler;
/**
* Send audio/voice message
*/
createSendAudioTool(): ToolInfo;
private sendAudioHandler;
/**
* Send sticker
*/
createSendStickerTool(): ToolInfo;
private sendStickerHandler;
createSendLocationTool(): ToolInfo;
private sendLocationHandler;
/**
* Send contact
*/
createSendContactTool(): ToolInfo;
private sendContactHandler;
/**
* Send reaction to a message
*/
createSendReactionTool(): ToolInfo;
private sendReactionHandler;
/**
* Send poll
*/
createSendPollTool(): ToolInfo;
private sendPollHandler;
/**
* Send interactive list
*/
createSendListTool(): ToolInfo;
private sendListHandler;
/**
* Send interactive buttons
*/
createSendButtonTool(): ToolInfo;
private sendButtonHandler; /**
* Get all message controller tools
*/
getAllTools(): ToolInfo[];
/**
* Detect media type from URL or base64
*/
private detectMediaType;
/**
* Handle API errors with user-friendly messages
*/
private handleApiError;
/**
* Handle unexpected errors
*/
private handleUnexpectedError;
}
export declare const messageTools: MessageTools;