@x402scan/mcp 0.0.2 → 0.0.3
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/README.md +20 -17
- package/dist/{bundle/index.cjs → cjs/run-server.cjs} +52613 -69272
- package/dist/{index.js → esm/index.js} +14 -6
- package/dist/esm/index.js.map +1 -0
- package/package.json +3 -3
- package/dist/index.js.map +0 -1
- /package/dist/{index.d.ts → esm/index.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -7,18 +7,18 @@ MCP server for calling [x402](https://x402.org)-protected APIs with automatic pa
|
|
|
7
7
|
### Claude Code
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
claude mcp add x402scan --scope user -- npx -y x402scan
|
|
10
|
+
claude mcp add x402scan --scope user -- npx -y @x402scan/mcp@latest
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
### Codex
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
codex mcp add x402scan -- npx -y x402scan
|
|
16
|
+
codex mcp add x402scan -- npx -y @x402scan/mcp@latest
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
### Cursor
|
|
20
20
|
|
|
21
|
-
[](https://cursor.com/en/install-mcp?name=x402scan&config=
|
|
21
|
+
[](https://cursor.com/en/install-mcp?name=x402scan&config=eyJjb21tYW5kIjoiL2Jpbi9iYXNoIiwiYXJncyI6WyItYyIsInNvdXJjZSAkSE9NRS8ubnZtL252bS5zaCAyPi9kZXYvbnVsbDsgZXhlYyBucHggLXkgQHg0MDJzY2FuL21jcEBsYXRlc3QiXX0%3D)
|
|
22
22
|
|
|
23
23
|
### Claude Desktop
|
|
24
24
|
|
|
@@ -32,7 +32,7 @@ codex mcp add x402scan -- npx -y x402scan-mcp@latest
|
|
|
32
32
|
```toml
|
|
33
33
|
[mcp_servers.x402scan]
|
|
34
34
|
command = "npx"
|
|
35
|
-
args = ["-y", "x402scan
|
|
35
|
+
args = ["-y", "@x402scan/mcp@latest"]
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
**Cursor** - Add to `.cursor/mcp.json`:
|
|
@@ -44,7 +44,7 @@ args = ["-y", "x402scan-mcp@latest"]
|
|
|
44
44
|
"command": "/bin/bash",
|
|
45
45
|
"args": [
|
|
46
46
|
"-c",
|
|
47
|
-
"source $HOME/.nvm/nvm.sh 2>/dev/null; exec npx -y x402scan
|
|
47
|
+
"source $HOME/.nvm/nvm.sh 2>/dev/null; exec npx -y @x402scan/mcp@latest"
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -60,7 +60,7 @@ args = ["-y", "x402scan-mcp@latest"]
|
|
|
60
60
|
"command": "/bin/bash",
|
|
61
61
|
"args": [
|
|
62
62
|
"-c",
|
|
63
|
-
"source $HOME/.nvm/nvm.sh 2>/dev/null; exec npx -y x402scan
|
|
63
|
+
"source $HOME/.nvm/nvm.sh 2>/dev/null; exec npx -y @x402scan/mcp@latest"
|
|
64
64
|
]
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -76,17 +76,20 @@ On first run, a wallet is generated at `~/.x402scan-mcp/wallet.json`. Deposit US
|
|
|
76
76
|
**Workflow:**
|
|
77
77
|
|
|
78
78
|
1. `check_balance` - Check wallet and get deposit address
|
|
79
|
-
2. `
|
|
80
|
-
3. `
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
79
|
+
2. `discover_resources` - Find available x402 endpoints on an origin
|
|
80
|
+
3. `check_x402_endpoint` - Probe endpoint for pricing/schema (optional)
|
|
81
|
+
4. `fetch` - Make the paid request (or `authed_call` for SIWX auth)
|
|
82
|
+
|
|
83
|
+
## Tools (6)
|
|
84
|
+
|
|
85
|
+
| Tool | Description |
|
|
86
|
+
| -------------------- | ---------------------------------------------------------------- |
|
|
87
|
+
| `fetch` | Fetch x402-protected resource with automatic payment |
|
|
88
|
+
| `authed_call` | Make request to SIWX-protected endpoint with automatic auth |
|
|
89
|
+
| `check_balance` | Get wallet address and USDC balance |
|
|
90
|
+
| `get_wallet_address` | Get the wallet address |
|
|
91
|
+
| `check_x402_endpoint`| Check if endpoint is x402-protected, get pricing/schema/auth |
|
|
92
|
+
| `discover_resources` | Discover x402 resources from origin's .well-known/x402 |
|
|
90
93
|
|
|
91
94
|
## Environment
|
|
92
95
|
|