get_info
Retrieve service details such as version, operational status, usage limits, and available features for the Lightning Wallet MCP server.
Instructions
Get service information including version, status, limits, and supported features.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/lightning-faucet.ts:866-893 (handler)The getInfo implementation in the LightningFaucetClient class.
async getInfo(): Promise<{ version: string; apiVersion: string; status: string; maxPaymentSats: number; minPaymentSats: number; supportedFeatures: string[]; rawResponse: ApiResponse; }> { const result = await this.request<ApiResponse & { version?: string; api_version?: string; status?: string; max_payment_sats?: number; min_payment_sats?: number; supported_features?: string[]; }>('get_info'); return { version: result.version || '2.0.0', apiVersion: result.api_version || '1.0', status: result.status || 'operational', maxPaymentSats: result.max_payment_sats || 1000000, minPaymentSats: result.min_payment_sats || 1, supportedFeatures: result.supported_features || ['l402', 'webhooks', 'lightning_address'], rawResponse: result, }; } - src/index.ts:610-617 (registration)The get_info tool registration.
name: 'get_info', description: 'Get service information including version, status, limits, and supported features.', inputSchema: { type: 'object', properties: {}, required: [], }, }, - src/index.ts:1355-1374 (handler)The MCP tool call handler for get_info.
case 'get_info': { GetInfoSchema.parse(args); const result = await session.requireClient().getInfo(); return { content: [ { type: 'text', text: JSON.stringify({ success: true, version: result.version, api_version: result.apiVersion, status: result.status, max_payment_sats: result.maxPaymentSats, min_payment_sats: result.minPaymentSats, supported_features: result.supportedFeatures, }, null, 2), }, ], }; }