albyhub-admin-mcp

v0.1.2
io.github.llmops-pro/albyhub-admin-mcp Checked 2 days ago Published 5 months ago

Admin an Alby Hub Lightning node from an agent: info, balances, channels; safety-gated writes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

albyhub_proxy_request

Generic HTTP proxy to your Alby Hub admin API. Use this when no typed convenience tool exists for the endpoint you need. Returns the response status, headers, and (JSON-parsed when possible) body. Non-GET methods are gated by ALBYHUB_READ_ONLY and ALBYHUB_REQUIRE_CONFIRM. Pair with the Hub's own docs to discover endpoints; the typed wrappers (get_node_info, list_apps, get_balances) are layered on top of this and good defaults to start with.

ParameterTypeDescription
method *stringHTTP method. GET/HEAD/OPTIONS are always allowed; others gated by READ_ONLY + REQUIRE_CONFIRM.
path *stringPath on the Hub, e.g. `/api/info` or `/api/channels`. Combined with ALBYHUB_URL.
bodyRequest body — passed as JSON if an object, raw if a string. Ignored for GET/HEAD/OPTIONS.
extra_headersobjectExtra HTTP headers to merge in. Useful if your Hub expects `X-API-Key` instead of `Authorization: Bearer`.
queryobjectQuery-string params (string → string).
timeout_msintegerRequest timeout in ms (default 15000, max 60000).

albyhub_confirm_request

Execute a previously-prepared non-GET request, identified by its one-time token. Only meaningful when ALBYHUB_REQUIRE_CONFIRM=true. The token is consumed (single use) and the safety pipeline (read-only, rate limit) re-runs before the HTTP call.

ParameterTypeDescription
token *stringConfirmation token from a previous non-GET proxy_request.

albyhub_get_node_info

Fetch Alby Hub node info (identity, network, version) from GET /api/info. Convenience wrapper. If your Hub returns 404 here, the endpoint path differs in your version — use albyhub_proxy_request to probe alternatives like /api/node or /info.

albyhub_get_balances

Fetch hub balances (on-chain + lightning) from GET /api/balances. Distinct from nwc_get_balance — that one is a single sub-wallet's view via NWC; this one is the hub-wide aggregate including on-chain. If your Hub returns 404, probe with albyhub_proxy_request.

albyhub_list_apps

List NWC connections / sub-wallets ('apps') currently provisioned on the Hub. Each entry typically includes name, pubkey, scope, daily budget, and creation timestamp. Hits GET /api/apps. Use this to inventory what's connected to your Hub and what each connection's budget cap is.

albyhub_list_channels

List Lightning channels — typically peer pubkey, capacity, local/remote balance, public/private flag, online status. Hits GET /api/channels. The hub-wide view (vs. nwc-mcp which has no channel concept). Useful for spotting offline channels, low inbound, etc.