mcp-l402-gate
L402 Lightning paywall + Depth-of-Identity score gate for MCP.
От сообщества: Добавлен пользователем или импортирован; проверьте владельца перед подключениемРаботаетБез входаГлобальныйБесплатноТолько чтение
Что умеет
- L402 Gate Challenge: Request a fresh PoW challenge from the PowForge L402 gate. Returns {nonce, difficulty}. Find a `solution` such that SHA-256(nonce+solution) starts with `difficulty` leading hex ze
- L402 Gate Verify: Verify a gate access attempt. Three shapes: (a) {nonce, solution} verifies a PoW solve and returns a 5-min token; (b) {request_invoice: true} mints a fresh L402 bolt11 invoice for th
- L402 Gate Score: Look up the Depth-of-Identity (DoI) score for a Nostr pubkey via the public PowForge oracle. Returns {composite, rank, depth, score_version}. Use the composite scalar against your own
Какие данные видит
Нужен ли аккаунт
Не нужен: сервер работает без входа
L402 Lightning paywall + Depth-of-Identity score gate for MCP. Three tools — l402_gate_challenge, l402_gate_verify, l402_gate_score — let agents pay per-call without accounts: solve a PoW challenge for the free tier, or pay a Lightning invoice (L402) for the paid tier. The bundled l402_gate_score tool looks up the Depth-of-Identity composite for any Nostr pubkey from the public PowForge oracle, so server operators can compose price + identity gating with one call. Stdlib only — no MCP SDK dependency. Speaks to live gate.powforge.dev and identity.powforge.dev.
Список инструментов сервера (3)
Технические названия из tools/list. Нужны только разработчикам.
| l402_gate_challenge | Request a fresh PoW challenge from the PowForge L402 gate. Returns {nonce, difficulty}. Find a `solution` such that SHA-256(nonce+solution) starts with `difficulty` leading hex zeros, then call l402_gate_verify with {nonce, solution}. Free tier — no payment required. |
| l402_gate_verify | Verify a gate access attempt. Three shapes: (a) {nonce, solution} verifies a PoW solve and returns a 5-min token; (b) {request_invoice: true} mints a fresh L402 bolt11 invoice for the Lightning-skip tier; (c) {payment_hash} polls for L402 payment and returns the token once paid. Returns {token, method, content} on success. |
| l402_gate_score | Look up the Depth-of-Identity (DoI) score for a Nostr pubkey via the public PowForge oracle. Returns {composite, rank, depth, score_version}. Use the composite scalar against your own minScore policy. Pairs with l402_gate_verify for compose-able L402 + identity gating. |