402-mcp 3.13.0 → 3.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +5 -5
- package/llms-full.txt +4 -4
- package/llms.txt +3 -3
- package/package.json +8 -8
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -138,10 +138,10 @@ Browse live L402 services at [402.pub](https://402.pub) — the decentralised ma
|
|
|
138
138
|
|
|
139
139
|
| Project | Role |
|
|
140
140
|
|---------|------|
|
|
141
|
-
| [toll-booth](https://github.com/
|
|
142
|
-
| [satgate](https://github.com/
|
|
143
|
-
| **[402-mcp](https://github.com/
|
|
144
|
-
| [402-announce](https://github.com/
|
|
141
|
+
| [toll-booth](https://github.com/forgesworn/toll-booth) | Payment-rail agnostic HTTP 402 middleware |
|
|
142
|
+
| [satgate](https://github.com/forgesworn/satgate) | Pay-per-token AI inference proxy (built on toll-booth) |
|
|
143
|
+
| **[402-mcp](https://github.com/forgesworn/402-mcp)** | **MCP client — AI agents discover, pay, and consume L402 + x402 APIs** |
|
|
144
|
+
| [402-announce](https://github.com/forgesworn/402-announce) | Publish L402 services on Nostr for decentralised discovery |
|
|
145
145
|
|
|
146
146
|
402-mcp is the **payment-rail agnostic** alternative to Lightning Labs' [lightning-agent-tools](https://github.com/lightninglabs/lightning-agent-tools) and Coinbase's x402 — no Lightning node required, multiple wallets, encrypted credentials.
|
|
147
147
|
|
|
@@ -165,7 +165,7 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for development setup and guidelines.
|
|
|
165
165
|
|
|
166
166
|
---
|
|
167
167
|
|
|
168
|
-
Built by [@
|
|
168
|
+
Built by [@forgesworn](https://github.com/forgesworn).
|
|
169
169
|
|
|
170
170
|
- Lightning tips: `thedonkey@strike.me`
|
|
171
171
|
- Nostr: `npub1mgvlrnf5hm9yf0n5mf9nqmvarhvxkc6remu5ec3vf8r0txqkuk7su0e7q2`
|
package/llms-full.txt
CHANGED
|
@@ -390,10 +390,10 @@ Credentials are keyed by service **pubkey** (from the kind 31402 event), not by
|
|
|
390
390
|
|
|
391
391
|
| Project | Role | URL |
|
|
392
392
|
|---------|------|-----|
|
|
393
|
-
| **402-mcp** | MCP client — AI agents discover, pay, and consume L402 APIs | https://github.com/
|
|
394
|
-
| **toll-booth** | L402 payment middleware for any Node.js server | https://github.com/
|
|
395
|
-
| **satgate** | Pay-per-token AI inference proxy (built on toll-booth) | https://github.com/
|
|
396
|
-
| **402-announce** | Publish L402 services on Nostr for decentralised discovery | https://github.com/
|
|
393
|
+
| **402-mcp** | MCP client — AI agents discover, pay, and consume L402 APIs | https://github.com/forgesworn/402-mcp |
|
|
394
|
+
| **toll-booth** | L402 payment middleware for any Node.js server | https://github.com/forgesworn/toll-booth |
|
|
395
|
+
| **satgate** | Pay-per-token AI inference proxy (built on toll-booth) | https://github.com/forgesworn/satgate |
|
|
396
|
+
| **402-announce** | Publish L402 services on Nostr for decentralised discovery | https://github.com/forgesworn/402-announce |
|
|
397
397
|
|
|
398
398
|
## Integration Patterns
|
|
399
399
|
|
package/llms.txt
CHANGED
|
@@ -141,12 +141,12 @@ The human stays in control of three things: the safety caps, which payment metho
|
|
|
141
141
|
|
|
142
142
|
**toll-booth** is the server counterpart to 402-mcp. It is L402 payment middleware that embeds into any Node.js application (Express 5, Deno, Bun, Cloudflare Workers), gates endpoints behind Lightning or Cashu payments, and supports credit tiers and free tiers. Any server protected by toll-booth automatically gets the full set of 402-mcp tools including the extension tools.
|
|
143
143
|
|
|
144
|
-
https://github.com/
|
|
144
|
+
https://github.com/forgesworn/toll-booth
|
|
145
145
|
|
|
146
146
|
**satgate** demonstrates the AI inference use case: a proxy that gates access to AI model endpoints (Ollama, vLLM, llama.cpp) behind L402 payments. Agents use 402-mcp to discover pricing, pay per-request or buy credit tiers, and consume inference capacity without pre-provisioned API keys.
|
|
147
147
|
|
|
148
|
-
https://github.com/
|
|
148
|
+
https://github.com/forgesworn/satgate
|
|
149
149
|
|
|
150
150
|
**402-announce** publishes HTTP 402 services on Nostr as kind 31402 events, making them discoverable by `l402_search`. Operators run it alongside their L402 server to announce capabilities, pricing, and payment methods to the decentralised network.
|
|
151
151
|
|
|
152
|
-
https://github.com/
|
|
152
|
+
https://github.com/forgesworn/402-announce
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "402-mcp",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.2",
|
|
4
4
|
"description": "L402 + x402 client MCP - AI agents discover, pay for, and consume any payment-gated API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prepublishOnly": "npm run typecheck && npm run build && npm test -- --exclude 'tests/e2e/l402-flow.integration.test.ts'"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cashu/cashu-ts": "^3.
|
|
32
|
+
"@cashu/cashu-ts": "^3.6.1",
|
|
33
33
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
34
34
|
"bolt11": "^1.4.1",
|
|
35
35
|
"cors": "^2.8.5",
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@eslint/js": "^10.0.1",
|
|
46
|
+
"@forgesworn/toll-booth": "file:../toll-booth",
|
|
46
47
|
"@semantic-release/changelog": "^6.0.3",
|
|
47
48
|
"@semantic-release/git": "^10.0.1",
|
|
48
49
|
"@semantic-release/github": "^12.0.6",
|
|
49
|
-
"@thecryptodonkey/toll-booth": "file:../toll-booth",
|
|
50
50
|
"@types/cors": "^2.8.17",
|
|
51
51
|
"@types/express": "^5.0.0",
|
|
52
|
-
"@types/node": "^
|
|
52
|
+
"@types/node": "^24.12.0",
|
|
53
53
|
"@types/qrcode": "^1.5.5",
|
|
54
54
|
"@vitest/coverage-v8": "^4.1.0",
|
|
55
55
|
"eslint": "^10.0.3",
|
|
56
56
|
"semantic-release": "^25.0.3",
|
|
57
57
|
"typescript": "^5.7.0",
|
|
58
|
-
"typescript-eslint": "^8.57.
|
|
58
|
+
"typescript-eslint": "^8.57.1",
|
|
59
59
|
"vitest": "^4.0.18"
|
|
60
60
|
},
|
|
61
61
|
"keywords": [
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
"macaroon",
|
|
79
79
|
"stablecoin"
|
|
80
80
|
],
|
|
81
|
-
"author": "
|
|
82
|
-
"homepage": "https://github.com/
|
|
81
|
+
"author": "forgesworn",
|
|
82
|
+
"homepage": "https://github.com/forgesworn/402-mcp",
|
|
83
83
|
"repository": {
|
|
84
84
|
"type": "git",
|
|
85
|
-
"url": "https://github.com/
|
|
85
|
+
"url": "https://github.com/forgesworn/402-mcp.git"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=18"
|