@scriptmasterlabs/mcp-x402 2.1.0 → 2.1.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/.well-known/agentcard.json +34 -34
- package/.well-known/ai.txt +32 -32
- package/CONTRIBUTING.md +76 -76
- package/LICENSE +21 -21
- package/README.md +304 -304
- package/agents.json +81 -81
- package/ai/faq.json +74 -74
- package/ai/summary.json +157 -157
- package/dist/server/apm/capabilities.d.ts +31 -0
- package/dist/server/apm/capabilities.d.ts.map +1 -0
- package/dist/server/apm/capabilities.js +157 -0
- package/dist/server/apm/capabilities.js.map +1 -0
- package/dist/server/apm/execute.d.ts +18 -0
- package/dist/server/apm/execute.d.ts.map +1 -0
- package/dist/server/apm/execute.js +37 -0
- package/dist/server/apm/execute.js.map +1 -0
- package/dist/server/apm/matcher.d.ts +17 -0
- package/dist/server/apm/matcher.d.ts.map +1 -0
- package/dist/server/apm/matcher.js +71 -0
- package/dist/server/apm/matcher.js.map +1 -0
- package/dist/server/apm/quote.d.ts +53 -0
- package/dist/server/apm/quote.d.ts.map +1 -0
- package/dist/server/apm/quote.js +82 -0
- package/dist/server/apm/quote.js.map +1 -0
- package/dist/server/apm/schema.d.ts +109 -0
- package/dist/server/apm/schema.d.ts.map +1 -0
- package/dist/server/apm/schema.js +31 -0
- package/dist/server/apm/schema.js.map +1 -0
- package/dist/server/payments/agent-payment.d.ts +71 -0
- package/dist/server/payments/agent-payment.d.ts.map +1 -0
- package/dist/server/payments/agent-payment.js +112 -0
- package/dist/server/payments/agent-payment.js.map +1 -0
- package/dist/server/payments/x402.d.ts +26 -0
- package/dist/server/payments/x402.d.ts.map +1 -1
- package/dist/server/payments/x402.js +112 -3
- package/dist/server/payments/x402.js.map +1 -1
- package/dist/server/registry/backends.d.ts +29 -0
- package/dist/server/registry/backends.d.ts.map +1 -0
- package/dist/server/registry/backends.js +61 -0
- package/dist/server/registry/backends.js.map +1 -0
- package/dist/server/registry/pricing.d.ts.map +1 -1
- package/dist/server/registry/pricing.js +25 -24
- package/dist/server/registry/pricing.js.map +1 -1
- package/dist/server/tools/apm-execute.d.ts +3 -0
- package/dist/server/tools/apm-execute.d.ts.map +1 -0
- package/dist/server/tools/apm-execute.js +94 -0
- package/dist/server/tools/apm-execute.js.map +1 -0
- package/dist/server/tools/apm.d.ts +3 -0
- package/dist/server/tools/apm.d.ts.map +1 -0
- package/dist/server/tools/apm.js +135 -0
- package/dist/server/tools/apm.js.map +1 -0
- package/dist/server/tools/discovery.d.ts.map +1 -1
- package/dist/server/tools/discovery.js +20 -27
- package/dist/server/tools/discovery.js.map +1 -1
- package/dist/server/tools/index.d.ts.map +1 -1
- package/dist/server/tools/index.js +4 -0
- package/dist/server/tools/index.js.map +1 -1
- package/dist/server/tools/squeezeos.d.ts.map +1 -1
- package/dist/server/tools/squeezeos.js +25 -7
- package/dist/server/tools/squeezeos.js.map +1 -1
- package/eslint.config.mjs +28 -0
- package/llms.txt +170 -170
- package/package.json +78 -78
- package/server.json +24 -52
package/llms.txt
CHANGED
|
@@ -1,170 +1,170 @@
|
|
|
1
|
-
# mcp-x402 — ScriptMasterLabs Autonomous Payment MCP Server
|
|
2
|
-
# The x402 Amazon: 51 tools, pay-per-call, no API keys
|
|
3
|
-
|
|
4
|
-
> The first MCP server that pays for itself.
|
|
5
|
-
|
|
6
|
-
## What this is
|
|
7
|
-
|
|
8
|
-
mcp-x402 is the front door to ScriptMasterLabs financial intelligence products. AI agents (Claude, Cursor, GPT, etc.) connect once and get access to 51 tools covering market intelligence, SEC data, XRPL payments, copy-trading, web scraping, and more. Agents pay with stablecoins autonomously — no human billing, no API keys.
|
|
9
|
-
|
|
10
|
-
## Quick Start (30 seconds)
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
npx @scriptmasterlabs/mcp-x402 init
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Add to Claude Code / Cursor config:
|
|
17
|
-
|
|
18
|
-
```json
|
|
19
|
-
{
|
|
20
|
-
"mcpServers": {
|
|
21
|
-
"sml": {
|
|
22
|
-
"command": "npx",
|
|
23
|
-
"args": ["@scriptmasterlabs/mcp-x402"]
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Or connect to the live remote:
|
|
30
|
-
|
|
31
|
-
```json
|
|
32
|
-
{
|
|
33
|
-
"mcpServers": {
|
|
34
|
-
"sml": {
|
|
35
|
-
"url": "https://mcp-x402.onrender.com/mcp",
|
|
36
|
-
"transport": "streamable-http"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Chains & Currencies
|
|
43
|
-
|
|
44
|
-
- Base (USDC) — preferred for speed (<3s)
|
|
45
|
-
- XRPL (RLUSD) — preferred for XRPL ecosystem agents
|
|
46
|
-
- Solana (USDC-SPL) — fallback
|
|
47
|
-
- Xahau (RLUSD) — XAH holders
|
|
48
|
-
|
|
49
|
-
Auto-selects the cheapest/fastest chain. No configuration needed.
|
|
50
|
-
|
|
51
|
-
## Tools
|
|
52
|
-
|
|
53
|
-
### Discovery (free)
|
|
54
|
-
- sml_discover — Full SML product catalog: all tools, prices, chains. Start here.
|
|
55
|
-
- sml_status — Health of all SML services in one call.
|
|
56
|
-
|
|
57
|
-
### Market Intelligence — SqueezeOS (squeezeos-api.onrender.com)
|
|
58
|
-
- squeezeos_preview — FREE. Bias + regime preview for any ticker. 15-min cache.
|
|
59
|
-
- squeezeos_demo — FREE. IWM council demo verdict. 5-min cache.
|
|
60
|
-
- squeezeos_history — FREE. Recent signal ring buffer (200/symbol).
|
|
61
|
-
- squeezeos_oracle — FREE. Aggregated oracle directive for any ticker.
|
|
62
|
-
- squeezeos_ftd — FREE. SEC Reg SHO FTD registry (GME/AMC).
|
|
63
|
-
- squeezeos_status — FREE. SqueezeOS system health.
|
|
64
|
-
- squeezeos_marketplace_browse — FREE. Browse peer signal listings.
|
|
65
|
-
- squeezeos_futures_leaderboard — FREE. Top signal predictors.
|
|
66
|
-
- squeezeos_council — 0.10 USDC. Multi-engine AI verdict for any ticker.
|
|
67
|
-
- squeezeos_scan — 0.05 USDC. Full $1–$50 institutional squeeze scanner.
|
|
68
|
-
- squeezeos_options — 0.05 USDC. Institutional options flow scanner.
|
|
69
|
-
- squeezeos_iwm — 0.03 USDC. IWM zero-day-to-expiry contract scorer.
|
|
70
|
-
- squeezeos_marketplace_read — 0.02 USDC. Full signal thesis from marketplace.
|
|
71
|
-
|
|
72
|
-
### SEC Filings — XMIT (free preview / 0.02 USDC paid)
|
|
73
|
-
- xmit_edgar_decode — 0.02 USDC. Parse SEC DEF 14A / 13F / 13D filings.
|
|
74
|
-
|
|
75
|
-
### FTD Data (free / 0.05 USDC)
|
|
76
|
-
- ftd_threshold_scan — Alerts free; full SEC Reg SHO FTD scan 0.05 USDC.
|
|
77
|
-
|
|
78
|
-
### Earnings Intelligence — XDEO (0.02 USDC)
|
|
79
|
-
- xdeo_earnings_estimate — 0.02 USDC. Decentralized earnings oracle. +2 bureau score.
|
|
80
|
-
|
|
81
|
-
### Leviathan Squeeze Signal (0.05 USDC)
|
|
82
|
-
- leviathan_signal — 0.05 USDC. Institutional squeeze signals, multi-engine verdict.
|
|
83
|
-
|
|
84
|
-
### Echo Pattern Matching (free preview)
|
|
85
|
-
- echo_pattern_match — Historical pattern similarity scan (Polygon + ML cosine similarity).
|
|
86
|
-
|
|
87
|
-
### XRPL Payments — Ghost Layer (ghost-layer.onrender.com)
|
|
88
|
-
- ghost_route — Route private XRPL payments via Ghost Layer toll gateway.
|
|
89
|
-
- ghost_status — Ghost Layer service health.
|
|
90
|
-
|
|
91
|
-
### XRPL Rails (sml-rails.onrender.com)
|
|
92
|
-
- rails_transfer — RLUSD/XRP remittance on XRPL/Xahau.
|
|
93
|
-
- rails_status — Rails service health.
|
|
94
|
-
|
|
95
|
-
### XRPL Copy-Trader (sml-copytrader.onrender.com)
|
|
96
|
-
- copytrader_subscribe — Subscribe to whale wallet copy-trading.
|
|
97
|
-
- copytrader_whales — Browse top whale wallets.
|
|
98
|
-
- copytrader_status — Copy-trader service health.
|
|
99
|
-
|
|
100
|
-
### Memecoin Launchpad (sml-launchpad.onrender.com)
|
|
101
|
-
- launchpad_create — Deploy a bonding-curve memecoin on XRPL.
|
|
102
|
-
- launchpad_buy — Buy a memecoin from the bonding curve.
|
|
103
|
-
- launchpad_list — Browse active memecoins.
|
|
104
|
-
- launchpad_status — Launchpad service health.
|
|
105
|
-
|
|
106
|
-
### Shadow Desk Signal Server (shadow-desk.onrender.com)
|
|
107
|
-
- shadow_ingest — Ingest proprietary signal data.
|
|
108
|
-
- shadow_query — Query shadow desk signal store.
|
|
109
|
-
|
|
110
|
-
### LLM Forge (forge-gateway-a822.onrender.com)
|
|
111
|
-
- forge_llm — BYOK LLM proxy. Pay with USDC; use any model.
|
|
112
|
-
- forge_status — Forge gateway health.
|
|
113
|
-
|
|
114
|
-
### Web Scraping — Aetheris (aetheris-mcp.onrender.com)
|
|
115
|
-
- crawl_paid_fetch — 0.005 USDC per page. Clean Markdown via JSDOM.
|
|
116
|
-
|
|
117
|
-
### Agent Credit Bureau — 402Proof (four02proof.onrender.com)
|
|
118
|
-
- proof_invoice — Get a payment invoice for any SML endpoint.
|
|
119
|
-
- proof_verify — Submit payment tx_hash → receive JWT access token.
|
|
120
|
-
- proof_credit_score — FICO-style 300–850 score for any wallet. Free.
|
|
121
|
-
|
|
122
|
-
### Agent Marketplace — Nexus (free / commission)
|
|
123
|
-
- nexus_agent_hire — Browse + hire agents. Query free; hire 5% commission.
|
|
124
|
-
|
|
125
|
-
### Agent Identity — AgentCard
|
|
126
|
-
- agentcard_lookup — Look up an agent's card by DID or wallet.
|
|
127
|
-
- agentcard_mint — Mint a new agent card (identity on XRPL).
|
|
128
|
-
- agentcard_verify — Verify an agent card signature.
|
|
129
|
-
|
|
130
|
-
### Broker Integrations
|
|
131
|
-
- tradier_quote — Real-time Tradier quote.
|
|
132
|
-
- tradier_order — Place a Tradier order.
|
|
133
|
-
- tradier_positions — Tradier positions.
|
|
134
|
-
- robinhood_quote — Robinhood quote.
|
|
135
|
-
- robinhood_order — Place a Robinhood order.
|
|
136
|
-
- robinhood_portfolio — Robinhood portfolio.
|
|
137
|
-
|
|
138
|
-
### Backtesting
|
|
139
|
-
- backtest_run — Run a strategy backtest.
|
|
140
|
-
- backtest_validate — Validate backtest parameters.
|
|
141
|
-
|
|
142
|
-
## Payment Architecture
|
|
143
|
-
|
|
144
|
-
1. Agent calls `sml_discover` → sees full catalog with prices
|
|
145
|
-
2. Agent calls a tool → AP2 mandate checked (Credit Bureau score ≥ 300 auto-approves)
|
|
146
|
-
3. x402 payment fires autonomously on cheapest/fastest available chain
|
|
147
|
-
4. 402Proof receipt returned in every paid response
|
|
148
|
-
5. Credit Bureau score updates (+5 per paid call)
|
|
149
|
-
|
|
150
|
-
## Spend Controls
|
|
151
|
-
|
|
152
|
-
- Auto-approve: all sessions (AP2 mandate)
|
|
153
|
-
- Daily cap: $50.00 per wallet
|
|
154
|
-
- Per-session soft limit: $1.00 (prompt before exceeding)
|
|
155
|
-
|
|
156
|
-
## Security
|
|
157
|
-
|
|
158
|
-
- Private keys: OS keychain ONLY — never env vars or files
|
|
159
|
-
- Append-only SHA-256 chained audit log
|
|
160
|
-
- Rate limit: 100 req/min per tool, 1000 req/day per wallet
|
|
161
|
-
- Zod validation on all inputs
|
|
162
|
-
|
|
163
|
-
## Links
|
|
164
|
-
|
|
165
|
-
- npm: https://www.npmjs.com/package/@scriptmasterlabs/mcp-x402
|
|
166
|
-
- Remote MCP: https://mcp-x402.onrender.com/mcp
|
|
167
|
-
- GitHub: https://github.com/timwal78/SML_Portfolio/tree/main/mcp-x402
|
|
168
|
-
- ScriptMasterLabs: https://scriptmasterlabs.com
|
|
169
|
-
- 402Proof: https://four02proof.onrender.com
|
|
170
|
-
- SqueezeOS API: https://squeezeos-api.onrender.com
|
|
1
|
+
# mcp-x402 — ScriptMasterLabs Autonomous Payment MCP Server
|
|
2
|
+
# The x402 Amazon: 51 tools, pay-per-call, no API keys
|
|
3
|
+
|
|
4
|
+
> The first MCP server that pays for itself.
|
|
5
|
+
|
|
6
|
+
## What this is
|
|
7
|
+
|
|
8
|
+
mcp-x402 is the front door to ScriptMasterLabs financial intelligence products. AI agents (Claude, Cursor, GPT, etc.) connect once and get access to 51 tools covering market intelligence, SEC data, XRPL payments, copy-trading, web scraping, and more. Agents pay with stablecoins autonomously — no human billing, no API keys.
|
|
9
|
+
|
|
10
|
+
## Quick Start (30 seconds)
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npx @scriptmasterlabs/mcp-x402 init
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Add to Claude Code / Cursor config:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"mcpServers": {
|
|
21
|
+
"sml": {
|
|
22
|
+
"command": "npx",
|
|
23
|
+
"args": ["@scriptmasterlabs/mcp-x402"]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Or connect to the live remote:
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"mcpServers": {
|
|
34
|
+
"sml": {
|
|
35
|
+
"url": "https://mcp-x402.onrender.com/mcp",
|
|
36
|
+
"transport": "streamable-http"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Chains & Currencies
|
|
43
|
+
|
|
44
|
+
- Base (USDC) — preferred for speed (<3s)
|
|
45
|
+
- XRPL (RLUSD) — preferred for XRPL ecosystem agents
|
|
46
|
+
- Solana (USDC-SPL) — fallback
|
|
47
|
+
- Xahau (RLUSD) — XAH holders
|
|
48
|
+
|
|
49
|
+
Auto-selects the cheapest/fastest chain. No configuration needed.
|
|
50
|
+
|
|
51
|
+
## Tools
|
|
52
|
+
|
|
53
|
+
### Discovery (free)
|
|
54
|
+
- sml_discover — Full SML product catalog: all tools, prices, chains. Start here.
|
|
55
|
+
- sml_status — Health of all SML services in one call.
|
|
56
|
+
|
|
57
|
+
### Market Intelligence — SqueezeOS (squeezeos-api.onrender.com)
|
|
58
|
+
- squeezeos_preview — FREE. Bias + regime preview for any ticker. 15-min cache.
|
|
59
|
+
- squeezeos_demo — FREE. IWM council demo verdict. 5-min cache.
|
|
60
|
+
- squeezeos_history — FREE. Recent signal ring buffer (200/symbol).
|
|
61
|
+
- squeezeos_oracle — FREE. Aggregated oracle directive for any ticker.
|
|
62
|
+
- squeezeos_ftd — FREE. SEC Reg SHO FTD registry (GME/AMC).
|
|
63
|
+
- squeezeos_status — FREE. SqueezeOS system health.
|
|
64
|
+
- squeezeos_marketplace_browse — FREE. Browse peer signal listings.
|
|
65
|
+
- squeezeos_futures_leaderboard — FREE. Top signal predictors.
|
|
66
|
+
- squeezeos_council — 0.10 USDC. Multi-engine AI verdict for any ticker.
|
|
67
|
+
- squeezeos_scan — 0.05 USDC. Full $1–$50 institutional squeeze scanner.
|
|
68
|
+
- squeezeos_options — 0.05 USDC. Institutional options flow scanner.
|
|
69
|
+
- squeezeos_iwm — 0.03 USDC. IWM zero-day-to-expiry contract scorer.
|
|
70
|
+
- squeezeos_marketplace_read — 0.02 USDC. Full signal thesis from marketplace.
|
|
71
|
+
|
|
72
|
+
### SEC Filings — XMIT (free preview / 0.02 USDC paid)
|
|
73
|
+
- xmit_edgar_decode — 0.02 USDC. Parse SEC DEF 14A / 13F / 13D filings.
|
|
74
|
+
|
|
75
|
+
### FTD Data (free / 0.05 USDC)
|
|
76
|
+
- ftd_threshold_scan — Alerts free; full SEC Reg SHO FTD scan 0.05 USDC.
|
|
77
|
+
|
|
78
|
+
### Earnings Intelligence — XDEO (0.02 USDC)
|
|
79
|
+
- xdeo_earnings_estimate — 0.02 USDC. Decentralized earnings oracle. +2 bureau score.
|
|
80
|
+
|
|
81
|
+
### Leviathan Squeeze Signal (0.05 USDC)
|
|
82
|
+
- leviathan_signal — 0.05 USDC. Institutional squeeze signals, multi-engine verdict.
|
|
83
|
+
|
|
84
|
+
### Echo Pattern Matching (free preview)
|
|
85
|
+
- echo_pattern_match — Historical pattern similarity scan (Polygon + ML cosine similarity).
|
|
86
|
+
|
|
87
|
+
### XRPL Payments — Ghost Layer (ghost-layer.onrender.com)
|
|
88
|
+
- ghost_route — Route private XRPL payments via Ghost Layer toll gateway.
|
|
89
|
+
- ghost_status — Ghost Layer service health.
|
|
90
|
+
|
|
91
|
+
### XRPL Rails (sml-rails.onrender.com)
|
|
92
|
+
- rails_transfer — RLUSD/XRP remittance on XRPL/Xahau.
|
|
93
|
+
- rails_status — Rails service health.
|
|
94
|
+
|
|
95
|
+
### XRPL Copy-Trader (sml-copytrader.onrender.com)
|
|
96
|
+
- copytrader_subscribe — Subscribe to whale wallet copy-trading.
|
|
97
|
+
- copytrader_whales — Browse top whale wallets.
|
|
98
|
+
- copytrader_status — Copy-trader service health.
|
|
99
|
+
|
|
100
|
+
### Memecoin Launchpad (sml-launchpad.onrender.com)
|
|
101
|
+
- launchpad_create — Deploy a bonding-curve memecoin on XRPL.
|
|
102
|
+
- launchpad_buy — Buy a memecoin from the bonding curve.
|
|
103
|
+
- launchpad_list — Browse active memecoins.
|
|
104
|
+
- launchpad_status — Launchpad service health.
|
|
105
|
+
|
|
106
|
+
### Shadow Desk Signal Server (shadow-desk.onrender.com)
|
|
107
|
+
- shadow_ingest — Ingest proprietary signal data.
|
|
108
|
+
- shadow_query — Query shadow desk signal store.
|
|
109
|
+
|
|
110
|
+
### LLM Forge (forge-gateway-a822.onrender.com)
|
|
111
|
+
- forge_llm — BYOK LLM proxy. Pay with USDC; use any model.
|
|
112
|
+
- forge_status — Forge gateway health.
|
|
113
|
+
|
|
114
|
+
### Web Scraping — Aetheris (aetheris-mcp.onrender.com)
|
|
115
|
+
- crawl_paid_fetch — 0.005 USDC per page. Clean Markdown via JSDOM.
|
|
116
|
+
|
|
117
|
+
### Agent Credit Bureau — 402Proof (four02proof.onrender.com)
|
|
118
|
+
- proof_invoice — Get a payment invoice for any SML endpoint.
|
|
119
|
+
- proof_verify — Submit payment tx_hash → receive JWT access token.
|
|
120
|
+
- proof_credit_score — FICO-style 300–850 score for any wallet. Free.
|
|
121
|
+
|
|
122
|
+
### Agent Marketplace — Nexus (free / commission)
|
|
123
|
+
- nexus_agent_hire — Browse + hire agents. Query free; hire 5% commission.
|
|
124
|
+
|
|
125
|
+
### Agent Identity — AgentCard
|
|
126
|
+
- agentcard_lookup — Look up an agent's card by DID or wallet.
|
|
127
|
+
- agentcard_mint — Mint a new agent card (identity on XRPL).
|
|
128
|
+
- agentcard_verify — Verify an agent card signature.
|
|
129
|
+
|
|
130
|
+
### Broker Integrations
|
|
131
|
+
- tradier_quote — Real-time Tradier quote.
|
|
132
|
+
- tradier_order — Place a Tradier order.
|
|
133
|
+
- tradier_positions — Tradier positions.
|
|
134
|
+
- robinhood_quote — Robinhood quote.
|
|
135
|
+
- robinhood_order — Place a Robinhood order.
|
|
136
|
+
- robinhood_portfolio — Robinhood portfolio.
|
|
137
|
+
|
|
138
|
+
### Backtesting
|
|
139
|
+
- backtest_run — Run a strategy backtest.
|
|
140
|
+
- backtest_validate — Validate backtest parameters.
|
|
141
|
+
|
|
142
|
+
## Payment Architecture
|
|
143
|
+
|
|
144
|
+
1. Agent calls `sml_discover` → sees full catalog with prices
|
|
145
|
+
2. Agent calls a tool → AP2 mandate checked (Credit Bureau score ≥ 300 auto-approves)
|
|
146
|
+
3. x402 payment fires autonomously on cheapest/fastest available chain
|
|
147
|
+
4. 402Proof receipt returned in every paid response
|
|
148
|
+
5. Credit Bureau score updates (+5 per paid call)
|
|
149
|
+
|
|
150
|
+
## Spend Controls
|
|
151
|
+
|
|
152
|
+
- Auto-approve: all sessions (AP2 mandate)
|
|
153
|
+
- Daily cap: $50.00 per wallet
|
|
154
|
+
- Per-session soft limit: $1.00 (prompt before exceeding)
|
|
155
|
+
|
|
156
|
+
## Security
|
|
157
|
+
|
|
158
|
+
- Private keys: OS keychain ONLY — never env vars or files
|
|
159
|
+
- Append-only SHA-256 chained audit log
|
|
160
|
+
- Rate limit: 100 req/min per tool, 1000 req/day per wallet
|
|
161
|
+
- Zod validation on all inputs
|
|
162
|
+
|
|
163
|
+
## Links
|
|
164
|
+
|
|
165
|
+
- npm: https://www.npmjs.com/package/@scriptmasterlabs/mcp-x402
|
|
166
|
+
- Remote MCP: https://mcp-x402.onrender.com/mcp
|
|
167
|
+
- GitHub: https://github.com/timwal78/SML_Portfolio/tree/main/mcp-x402
|
|
168
|
+
- ScriptMasterLabs: https://scriptmasterlabs.com
|
|
169
|
+
- 402Proof: https://four02proof.onrender.com
|
|
170
|
+
- SqueezeOS API: https://squeezeos-api.onrender.com
|
package/package.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@scriptmasterlabs/mcp-x402",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"mcpName": "io.github.Timwal78/mcp-x402",
|
|
5
|
-
"description": "The first MCP server that pays for itself. AI agents pay for ScriptMasterLabs data autonomously via x402.",
|
|
6
|
-
"main": "dist/server/index.js",
|
|
7
|
-
"types": "dist/server/index.d.ts",
|
|
8
|
-
"bin": {
|
|
9
|
-
"mcp-x402": "dist/server/index.js"
|
|
10
|
-
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "tsc",
|
|
13
|
-
"dev": "tsx watch src/server/index.ts",
|
|
14
|
-
"start": "node dist/server/index.js",
|
|
15
|
-
"start:sse": "MCP_TRANSPORT=sse node dist/server/index.js",
|
|
16
|
-
"test": "vitest run",
|
|
17
|
-
"test:unit": "vitest run tests/unit",
|
|
18
|
-
"test:integration": "vitest run tests/integration",
|
|
19
|
-
"test:coverage": "vitest run --coverage",
|
|
20
|
-
"lint": "eslint src
|
|
21
|
-
"typecheck": "tsc --noEmit",
|
|
22
|
-
"prepublishOnly": "npm run build && npm run typecheck"
|
|
23
|
-
},
|
|
24
|
-
"keywords": [
|
|
25
|
-
"mcp",
|
|
26
|
-
"model-context-protocol",
|
|
27
|
-
"x402",
|
|
28
|
-
"ai-agents",
|
|
29
|
-
"autonomous-payments",
|
|
30
|
-
"scriptmasterlabs",
|
|
31
|
-
"xrpl",
|
|
32
|
-
"base",
|
|
33
|
-
"solana",
|
|
34
|
-
"stablecoins",
|
|
35
|
-
"rlusd",
|
|
36
|
-
"usdc"
|
|
37
|
-
],
|
|
38
|
-
"author": "ScriptMasterLabs <timothy.walton45@gmail.com>",
|
|
39
|
-
"license": "MIT",
|
|
40
|
-
"repository": {
|
|
41
|
-
"type": "git",
|
|
42
|
-
"url": "https://github.com/timwal78/sml_portfolio.git"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
46
|
-
"zod": "^3.23.8",
|
|
47
|
-
"viem": "^2.21.0",
|
|
48
|
-
"xrpl": "^4.1.0",
|
|
49
|
-
"@solana/web3.js": "^1.95.5",
|
|
50
|
-
"@solana/spl-token": "^0.4.9",
|
|
51
|
-
"keytar": "^7.9.0",
|
|
52
|
-
"node-forge": "^1.3.1",
|
|
53
|
-
"express": "^4.21.0",
|
|
54
|
-
"cors": "^2.8.5",
|
|
55
|
-
"bip39": "^3.1.0",
|
|
56
|
-
"hdkey": "^2.1.0"
|
|
57
|
-
},
|
|
58
|
-
"devDependencies": {
|
|
59
|
-
"@types/node": "^22.0.0",
|
|
60
|
-
"@types/express": "^5.0.0",
|
|
61
|
-
"@types/cors": "^2.8.17",
|
|
62
|
-
"@types/node-forge": "^1.3.11",
|
|
63
|
-
"@types/hdkey": "^2.0.5",
|
|
64
|
-
"typescript": "^5.6.0",
|
|
65
|
-
"tsx": "^4.19.0",
|
|
66
|
-
"vitest": "^2.1.0",
|
|
67
|
-
"@vitest/coverage-v8": "^2.1.0",
|
|
68
|
-
"eslint": "^9.11.0",
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
70
|
-
"@typescript-eslint/parser": "^8.0.0"
|
|
71
|
-
},
|
|
72
|
-
"engines": {
|
|
73
|
-
"node": ">=20.0.0"
|
|
74
|
-
},
|
|
75
|
-
"workspaces": [
|
|
76
|
-
"sdk/mcp-x402-sdk"
|
|
77
|
-
]
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@scriptmasterlabs/mcp-x402",
|
|
3
|
+
"version": "2.1.2",
|
|
4
|
+
"mcpName": "io.github.Timwal78/mcp-x402",
|
|
5
|
+
"description": "The first MCP server that pays for itself. AI agents pay for ScriptMasterLabs data autonomously via x402.",
|
|
6
|
+
"main": "dist/server/index.js",
|
|
7
|
+
"types": "dist/server/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"mcp-x402": "dist/server/index.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"dev": "tsx watch src/server/index.ts",
|
|
14
|
+
"start": "node dist/server/index.js",
|
|
15
|
+
"start:sse": "MCP_TRANSPORT=sse node dist/server/index.js",
|
|
16
|
+
"test": "vitest run",
|
|
17
|
+
"test:unit": "vitest run tests/unit",
|
|
18
|
+
"test:integration": "vitest run tests/integration",
|
|
19
|
+
"test:coverage": "vitest run --coverage",
|
|
20
|
+
"lint": "eslint src tests",
|
|
21
|
+
"typecheck": "tsc --noEmit",
|
|
22
|
+
"prepublishOnly": "npm run build && npm run typecheck"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"mcp",
|
|
26
|
+
"model-context-protocol",
|
|
27
|
+
"x402",
|
|
28
|
+
"ai-agents",
|
|
29
|
+
"autonomous-payments",
|
|
30
|
+
"scriptmasterlabs",
|
|
31
|
+
"xrpl",
|
|
32
|
+
"base",
|
|
33
|
+
"solana",
|
|
34
|
+
"stablecoins",
|
|
35
|
+
"rlusd",
|
|
36
|
+
"usdc"
|
|
37
|
+
],
|
|
38
|
+
"author": "ScriptMasterLabs <timothy.walton45@gmail.com>",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "https://github.com/timwal78/sml_portfolio.git"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
46
|
+
"zod": "^3.23.8",
|
|
47
|
+
"viem": "^2.21.0",
|
|
48
|
+
"xrpl": "^4.1.0",
|
|
49
|
+
"@solana/web3.js": "^1.95.5",
|
|
50
|
+
"@solana/spl-token": "^0.4.9",
|
|
51
|
+
"keytar": "^7.9.0",
|
|
52
|
+
"node-forge": "^1.3.1",
|
|
53
|
+
"express": "^4.21.0",
|
|
54
|
+
"cors": "^2.8.5",
|
|
55
|
+
"bip39": "^3.1.0",
|
|
56
|
+
"hdkey": "^2.1.0"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@types/node": "^22.0.0",
|
|
60
|
+
"@types/express": "^5.0.0",
|
|
61
|
+
"@types/cors": "^2.8.17",
|
|
62
|
+
"@types/node-forge": "^1.3.11",
|
|
63
|
+
"@types/hdkey": "^2.0.5",
|
|
64
|
+
"typescript": "^5.6.0",
|
|
65
|
+
"tsx": "^4.19.0",
|
|
66
|
+
"vitest": "^2.1.0",
|
|
67
|
+
"@vitest/coverage-v8": "^2.1.0",
|
|
68
|
+
"eslint": "^9.11.0",
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
70
|
+
"@typescript-eslint/parser": "^8.0.0"
|
|
71
|
+
},
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": ">=20.0.0"
|
|
74
|
+
},
|
|
75
|
+
"workspaces": [
|
|
76
|
+
"sdk/mcp-x402-sdk"
|
|
77
|
+
]
|
|
78
|
+
}
|
package/server.json
CHANGED
|
@@ -1,52 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
-
"name": "io.github.Timwal78/mcp-x402",
|
|
4
|
-
"title": "mcp-x402 — The x402 Amazon for AI Agents",
|
|
5
|
-
"description": "51 pay-per-call MCP tools: market intel, SEC, XRPL payments, copy-trading. USDC/RLUSD. No keys.",
|
|
6
|
-
"version": "2.1.0",
|
|
7
|
-
"repository": {
|
|
8
|
-
"url": "https://github.com/timwal78/SML_Portfolio",
|
|
9
|
-
"source": "github"
|
|
10
|
-
},
|
|
11
|
-
"homepage": "https://scriptmasterlabs.com",
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"
|
|
14
|
-
{
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"description": "Transport mode. Omit for stdio (default). Set to 'sse' for HTTP server mode.",
|
|
26
|
-
"isRequired": false
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "SML_PAYMENT_RECEIVER",
|
|
30
|
-
"description": "Optional USDC Base address to receive payments from agent tool calls.",
|
|
31
|
-
"isRequired": false
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "WALLET_SEED",
|
|
35
|
-
"description": "BIP-39 mnemonic for the server wallet. Auto-generated if not set.",
|
|
36
|
-
"isRequired": false
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"remotes": [
|
|
42
|
-
{
|
|
43
|
-
"type": "streamable-http",
|
|
44
|
-
"url": "https://mcp-x402.onrender.com/mcp"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"type": "sse",
|
|
48
|
-
"url": "https://mcp-x402.onrender.com/sse"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"keywords": ["x402", "micropayments", "usdc", "rlusd", "xrpl", "solana", "base", "squeeze", "options", "sec-filings", "ftd", "market-intelligence", "pay-per-call", "autonomous-agents"]
|
|
52
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "io.github.Timwal78/mcp-x402",
|
|
4
|
+
"title": "mcp-x402 — The x402 Amazon for AI Agents",
|
|
5
|
+
"description": "51 pay-per-call MCP tools: market intel, SEC, XRPL payments, copy-trading. USDC/RLUSD. No keys.",
|
|
6
|
+
"version": "2.1.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"url": "https://github.com/timwal78/SML_Portfolio",
|
|
9
|
+
"source": "github"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://scriptmasterlabs.com",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"remotes": [
|
|
14
|
+
{
|
|
15
|
+
"type": "streamable-http",
|
|
16
|
+
"url": "https://mcp-x402.onrender.com/mcp"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "sse",
|
|
20
|
+
"url": "https://mcp-x402.onrender.com/sse"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"keywords": ["x402", "micropayments", "usdc", "rlusd", "xrpl", "solana", "base", "squeeze", "options", "sec-filings", "ftd", "market-intelligence", "pay-per-call", "autonomous-agents"]
|
|
24
|
+
}
|