@bitpal/mcp 0.1.2 → 0.1.4
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 +120 -116
- package/dist/stdio.js +4394 -1895
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,116 +1,120 @@
|
|
|
1
|
-
# @bitpal/mcp
|
|
2
|
-
|
|
3
|
-
MCP server for [BitPal](https://bitpal.io) — non-custodial stablecoin checkout.
|
|
4
|
-
|
|
5
|
-
It gives your AI coding tool BitPal's developer docs, the OpenAPI spec, webhook event schemas and error codes, so it writes integrations against the real API instead of guessing. With a **test** API key it can also run a full test payment.
|
|
6
|
-
|
|
7
|
-
- **Remote:** `https://mcp.bitpal.io/mcp` (Streamable HTTP). Nothing to install.
|
|
8
|
-
- **Local:** `npx -y @bitpal/mcp` (stdio).
|
|
9
|
-
|
|
10
|
-
## Tools
|
|
11
|
-
|
|
12
|
-
| Tool | What it does |
|
|
13
|
-
|---|---|
|
|
14
|
-
| `get_integration_guide` | The rules every integration must follow, plus the docs for one flow: `hosted`, `popup`, `headless`, `payment_link`, `x402`, `webhooks`. |
|
|
15
|
-
| `search_docs` | Search the docs and return the best-matching sections. |
|
|
16
|
-
| `get_doc` | One docs page as Markdown. |
|
|
17
|
-
| `list_api_operations` / `get_api_operation` | REST operations from the OpenAPI spec, with request/response schemas. |
|
|
18
|
-
| `get_webhook_event` | A webhook event's payload schema. |
|
|
19
|
-
| `get_error_code` | What an API error code means and how to fix it. |
|
|
20
|
-
| `create_test_session` *(test key)* | Create a test-mode session and issue its deposit address. |
|
|
21
|
-
| `simulate_payment` *(test key)* | Send the buyer's deposit on the testnet: `exact`, `underpay`, `overpay`, `wrong_token`. |
|
|
22
|
-
| `get_session_status` *(test key)* | Session status. |
|
|
23
|
-
| `list_test_events` *(test key)* | Webhook events exactly as your endpoint receives them. |
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
##
|
|
115
|
-
|
|
116
|
-
|
|
1
|
+
# @bitpal/mcp
|
|
2
|
+
|
|
3
|
+
MCP server for [BitPal](https://bitpal.io) — non-custodial stablecoin checkout.
|
|
4
|
+
|
|
5
|
+
It gives your AI coding tool BitPal's developer docs, the OpenAPI spec, webhook event schemas and error codes, so it writes integrations against the real API instead of guessing. With a **test** API key it can also run a full test payment.
|
|
6
|
+
|
|
7
|
+
- **Remote:** `https://mcp.bitpal.io/mcp` (Streamable HTTP). Nothing to install.
|
|
8
|
+
- **Local:** `npx -y @bitpal/mcp` (stdio).
|
|
9
|
+
|
|
10
|
+
## Tools
|
|
11
|
+
|
|
12
|
+
| Tool | What it does |
|
|
13
|
+
|---|---|
|
|
14
|
+
| `get_integration_guide` | The rules every integration must follow, plus the docs for one flow: `hosted`, `popup`, `headless`, `payment_link`, `x402`, `webhooks`. |
|
|
15
|
+
| `search_docs` | Search the docs and return the best-matching sections. |
|
|
16
|
+
| `get_doc` | One docs page as Markdown. |
|
|
17
|
+
| `list_api_operations` / `get_api_operation` | REST operations from the OpenAPI spec, with request/response schemas. |
|
|
18
|
+
| `get_webhook_event` | A webhook event's payload schema. |
|
|
19
|
+
| `get_error_code` | What an API error code means and how to fix it. |
|
|
20
|
+
| `create_test_session` *(test key)* | Create a test-mode session and issue its deposit address. |
|
|
21
|
+
| `simulate_payment` *(test key)* | Send the buyer's deposit on the testnet: `exact`, `underpay`, `overpay`, `wrong_token`. |
|
|
22
|
+
| `get_session_status` *(test key)* | Session status. |
|
|
23
|
+
| `list_test_events` *(test key)* | Webhook events exactly as your endpoint receives them. |
|
|
24
|
+
| `register_test_webhook` *(test key)* | Register a test-mode webhook endpoint (e.g. your tunnel URL). Returns its signing secret once. |
|
|
25
|
+
| `list_test_webhooks` *(test key)* | Your test-mode webhook endpoints. |
|
|
26
|
+
| `rotate_test_webhook_secret` *(test key)* | Rotate a test-mode endpoint's signing secret (old one stops working at once). |
|
|
27
|
+
| `replay_test_event` *(test key)* | Resend a past test-mode event to an endpoint — also events from before it was registered. |
|
|
28
|
+
|
|
29
|
+
The test-key tools appear only when you provide a `bp_test_…` key. Live keys (`bp_live_…`) are rejected — this server never touches real funds, and live webhook endpoints are managed only in the console.
|
|
30
|
+
|
|
31
|
+
## Setup
|
|
32
|
+
|
|
33
|
+
Replace `bp_test_…` with your test key from Console → Developers → API Keys, or leave the key out to use only the docs tools.
|
|
34
|
+
|
|
35
|
+
### Claude Code
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# remote
|
|
39
|
+
claude mcp add --transport http bitpal https://mcp.bitpal.io/mcp --header "Authorization: Bearer bp_test_…"
|
|
40
|
+
# local
|
|
41
|
+
claude mcp add bitpal -e BITPAL_API_KEY=bp_test_… -- npx -y @bitpal/mcp
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Cursor — `~/.cursor/mcp.json` (or `.cursor/mcp.json` in the project)
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"mcpServers": {
|
|
49
|
+
"bitpal": {
|
|
50
|
+
"url": "https://mcp.bitpal.io/mcp",
|
|
51
|
+
"headers": { "Authorization": "Bearer bp_test_…" }
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### VS Code — `.vscode/mcp.json`
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
{
|
|
61
|
+
"servers": {
|
|
62
|
+
"bitpal": {
|
|
63
|
+
"type": "http",
|
|
64
|
+
"url": "https://mcp.bitpal.io/mcp",
|
|
65
|
+
"headers": { "Authorization": "Bearer bp_test_…" }
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Windsurf — `~/.codeium/windsurf/mcp_config.json`
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"mcpServers": {
|
|
76
|
+
"bitpal": {
|
|
77
|
+
"serverUrl": "https://mcp.bitpal.io/mcp",
|
|
78
|
+
"headers": { "Authorization": "Bearer bp_test_…" }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Claude Desktop — `claude_desktop_config.json`
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"mcpServers": {
|
|
89
|
+
"bitpal": {
|
|
90
|
+
"command": "npx",
|
|
91
|
+
"args": ["-y", "@bitpal/mcp"],
|
|
92
|
+
"env": { "BITPAL_API_KEY": "bp_test_…" }
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Codex CLI — `~/.codex/config.toml`
|
|
99
|
+
|
|
100
|
+
```toml
|
|
101
|
+
[mcp_servers.bitpal]
|
|
102
|
+
command = "npx"
|
|
103
|
+
args = ["-y", "@bitpal/mcp"]
|
|
104
|
+
env = { BITPAL_API_KEY = "bp_test_…" }
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Environment variables (local)
|
|
108
|
+
|
|
109
|
+
| Variable | Default | |
|
|
110
|
+
|---|---|---|
|
|
111
|
+
| `BITPAL_API_KEY` | — | `bp_test_…` enables the test-mode tools. Live keys are ignored. |
|
|
112
|
+
| `BITPAL_API_BASE` | `https://api.bitpal.io` | API base URL. |
|
|
113
|
+
|
|
114
|
+
## Try it
|
|
115
|
+
|
|
116
|
+
> Integrate BitPal hosted checkout into my Express app and verify webhooks. Then create a test session, simulate the payment and show me the webhook events.
|
|
117
|
+
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
MIT
|