get_info
Retrieve wallet capabilities and node information for Bitcoin Lightning payments through Nostr Wallet Connect.
Instructions
Get NWC capabilities of the connected lightning wallet, and general information about the wallet and underlying lightning node
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/get_info.ts:8-18 (handler)The handler function that executes the 'get_info' tool logic: calls client.getInfo() and returns the wallet/node information as formatted JSON text.async () => { const info = await client.getInfo(); return { content: [ { type: "text", text: JSON.stringify(info, null, 2), }, ], }; }
- src/tools/get_info.ts:4-20 (registration)The registration function for the 'get_info' tool, which calls server.tool() to register the tool name, description, and handler on the MCP server.export function registerGetInfoTool(server: McpServer, client: nwc.NWCClient) { server.tool( "get_info", "Get NWC capabilities of the connected lightning wallet, and general information about the wallet and underlying lightning node", async () => { const info = await client.getInfo(); return { content: [ { type: "text", text: JSON.stringify(info, null, 2), }, ], }; } ); }
- src/mcp_server.ts:20-20 (registration)Calls the registerGetInfoTool function to register the 'get_info' tool during MCP server creation.registerGetInfoTool(server, client);