UNPKG

@venly/wallet-mcp

Version:

Production-ready MCP server enabling AI agents to perform Web3 wallet operations through Venly's blockchain infrastructure. Supports 14+ networks including Ethereum, Polygon, Arbitrum, and stablecoin operations.

180 lines 4.22 kB
/** * Venly MCP Server * * Main MCP server implementation that provides blockchain wallet operations * through the Model Context Protocol */ /** * Main Venly MCP Server class */ export declare class VenlyMCPServer { private readonly server; private readonly venlyClient; private readonly logger; private readonly tools; private readonly environment; constructor(environment: 'sandbox' | 'production'); /** * Register all available MCP tools */ private registerTools; /** * Register a single MCP tool */ private registerTool; /** * Setup MCP request handlers */ private setupHandlers; /** * Handle individual tool calls */ handleToolCall(toolName: string, args: Record<string, unknown>): Promise<{ content: Array<{ type: 'text'; text: string; }>; }>; /** * Handle create_wallet tool */ private handleCreateWallet; /** * Handle list_wallets tool */ private handleListWallets; /** * Handle get_wallet_info tool with auto wallet ID detection */ private handleGetWalletInfo; /** * Handle get_wallet_balance tool with auto wallet ID detection */ private handleGetWalletBalance; /** * Handle get_token_balances tool with auto wallet ID detection */ private handleGetTokenBalances; /** * Handle get_token_portfolio tool with auto wallet ID detection */ private handleGetTokenPortfolio; /** * Handle create_user tool */ private handleCreateUser; /** * Handle get_user tool */ private handleGetUser; /** * Handle update_user tool */ private handleUpdateUser; /** * Handle delete_user tool */ private handleDeleteUser; /** * Handle list_users tool */ private handleListUsers; /** * Handle manage_signing_methods tool */ private handleManageSigningMethods; /** * Handle send_transaction tool */ private handleSendTransaction; /** * Handle send_token tool */ private handleSendToken; /** * Handle get_transaction tool */ private handleGetTransaction; /** * Handle get_exchange_rates tool */ private handleGetExchangeRates; /** * Handle create_fiat_onramp tool */ private handleCreateFiatOnramp; /** * Handle create_fiat_offramp tool */ private handleCreateFiatOfframp; /** * Handle track_fiat_transaction tool */ private handleTrackFiatTransaction; /** * Handle setup_transaction_webhooks tool */ private handleSetupTransactionWebhooks; /** * Handle setup_balance_webhooks tool */ private handleSetupBalanceWebhooks; /** * Handle setup_portfolio_webhooks tool */ private handleSetupPortfolioWebhooks; /** * Handle process_webhook_events tool */ private handleProcessWebhookEvents; /** * Handle get_webhook_status tool */ private handleGetWebhookStatus; /** * Handle create_workflow_template tool */ private handleCreateWorkflowTemplate; /** * Handle execute_workflow tool */ private handleExecuteWorkflow; /** * Handle monitor_workflow_status tool */ private handleMonitorWorkflowStatus; /** * Handle export_financial_data tool */ private handleExportFinancialData; /** * Handle optimize_transaction_routing tool */ private handleOptimizeTransactionRouting; /** * Create Winston logger instance */ private createLogger; /** * Start the MCP server */ start(): Promise<void>; /** * Stop the MCP server and cleanup resources */ stop(): Promise<void>; /** * Call a tool directly (for HTTP API) */ callTool(toolName: string, args: Record<string, unknown>): Promise<any>; /** * Get server status information */ getStatus(): { server: string; version: string; environment: string; toolsCount: number; }; } //# sourceMappingURL=VenlyMCPServer.d.ts.map