evolution-api-mcp
Version:
MCP Server for Evolution API v2 - Integrate WhatsApp functionality with Claude Desktop and other MCP clients
79 lines (77 loc) • 1.99 kB
TypeScript
/**
* Group Controller MCP Tools Implementation
* Implements all tools for group management through Evolution API
*/
import { ToolInfo } from '../types';
import { EvolutionHttpClient } from '../../clients/evolution-http-client';
/**
* Group Controller tool implementations
*/
export declare class GroupTools {
private httpClient;
constructor(httpClient: EvolutionHttpClient);
/**
* Create a new group
*/
createCreateGroupTool(): ToolInfo;
private createGroupHandler;
/**
* Update group picture
*/
createUpdateGroupPictureTool(): ToolInfo;
private updateGroupPictureHandler;
/**
* Update group subject (name)
*/
createUpdateGroupSubjectTool(): ToolInfo;
private updateGroupSubjectHandler;
/**
* Update group description
*/
createUpdateGroupDescriptionTool(): ToolInfo;
private updateGroupDescriptionHandler; /**
* Fetch group invite code
*/
createFetchInviteCodeTool(): ToolInfo;
private fetchInviteCodeHandler;
/**
* Revoke group invite code
*/
createRevokeInviteCodeTool(): ToolInfo;
private revokeInviteCodeHandler;
/**
* Update group participants (add, remove, promote, demote)
*/
createUpdateParticipantTool(): ToolInfo;
private updateParticipantHandler;
/**
* Leave group
*/
createLeaveGroupTool(): ToolInfo;
private leaveGroupHandler;
/**
* Fetch group information
*/
createFetchGroupInfoTool(): ToolInfo;
private fetchGroupInfoHandler;
/**
* Get all group tools
*/
getAllTools(): ToolInfo[];
/**
* Detect image type from URL or base64
*/
private detectImageType;
/**
* Handle API errors with user-friendly messages
*/
private handleApiError;
/**
* Handle unexpected errors
*/
private handleUnexpectedError;
/**
* Map HTTP status codes to error types
*/
private mapStatusToErrorType;
}