/** * MAMA Tool Executor for MAMA Standalone * * Executes MAMA gateway tools (mama_search, mama_save, mama_update, mama_load_checkpoint, Read, discord_send). * NOT MCP - uses Claude Messages API tool definitions. * Supports both direct API integration and mock API for testing. */ import type { GatewayToolName, MAMAApiInterface } from './types.js'; /** * Discord gateway interface for sending messages */ export interface DiscordGatewayInterface { sendMessage(channelId: string, message: string): Promise; sendFile(channelId: string, filePath: string, caption?: string): Promise; sendImage(channelId: string, imagePath: string, caption?: string): Promise; } export declare class MCPExecutor { private mamaApi; private readonly dbPath?; private discordGateway; constructor(options?: { dbPath?: string; mamaApi?: MAMAApiInterface; }); /** * Set Discord gateway for discord_send tool */ setDiscordGateway(gateway: DiscordGatewayInterface): void; /** * Initialize the MAMA API by importing from mcp-server package * Called lazily on first tool execution if not provided in constructor */ private initializeMAMAApi; /** * Execute an MCP tool * * @param toolName - Name of the tool to execute * @param input - Tool input parameters * @returns Tool execution result * @throws AgentError on tool errors */ execute(toolName: string, input: unknown): Promise; /** * Execute read tool - Read file from filesystem */ private executeRead; /** * Execute discord_send tool - Send message/image to Discord channel */ private executeDiscordSend; /** * Get the list of valid tool names */ static getValidTools(): GatewayToolName[]; /** * Check if a tool name is valid */ static isValidTool(toolName: string): toolName is GatewayToolName; } //# sourceMappingURL=mcp-executor.d.ts.map