@one-source/mcp 5.3.3 → 5.4.0

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.
@@ -9,7 +9,7 @@ description: >-
9
9
 
10
10
  # OneSource MCP Setup Guide
11
11
 
12
- OneSource MCP provides 29 tools for blockchain data and live chain queries. Blockchain API tools require authentication — either an API key (`ONESOURCE_API_KEY`) or x402 micropayments in USDC on the Base network (`X402_PRIVATE_KEY`). If both are set, API key takes priority.
12
+ OneSource MCP provides 30 tools for blockchain data and live chain queries. Blockchain API tools require authentication — either an API key (`ONESOURCE_API_KEY`) or x402 micropayments in USDC on the Base network (`X402_PRIVATE_KEY`). If both are set, API key takes priority.
13
13
 
14
14
  ## Before You Start
15
15
 
@@ -294,6 +294,16 @@ After setting your auth (either option) and reloading:
294
294
 
295
295
  > **Tip:** If you edited the config file manually (instead of using `claude mcp add`), you must run `/reload-plugins` for changes to take effect. Restarting Claude Code also works.
296
296
 
297
+ ## Step 8: Configure Batch Payments (x402, optional)
298
+
299
+ If you authenticate with x402, you can pay per call (`exact`, default) or open a USDC payment channel (`batch`) that funds many calls from one deposit — cheaper for a burst of calls. You don't need to edit any config for this:
300
+
301
+ - **`1s_batch_config`** — view or change batch preferences (autonomy, "many calls" threshold, deposit multiplier, default mode) from the session. Changes persist across restarts. See the `onesource-batch-config` skill.
302
+ - **`1s_payment_mode`** — switch the live scheme (`exact`/`batch`) for the current session only.
303
+ - **`1s_refund`** — reclaim any unspent channel deposit when you're done.
304
+
305
+ `1s_setup_check` shows your current mode and batch settings, and will prompt you for your preferred batch behavior.
306
+
297
307
  ## Troubleshooting
298
308
 
299
309
  | Problem | Solution |
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: onesource-report-bug
3
+ description: >-
4
+ Report a bug or unexpected error in OneSource MCP to the OneSource team using
5
+ the 1s_report_bug tool. Use when a 1s_* blockchain tool returns an unexpected
6
+ error, or when the user explicitly asks to report a problem. Free, no payment
7
+ required. Do NOT report 402 (payment/auth) or 403 (plan) responses — those are
8
+ billing/auth issues, not bugs.
9
+ ---
10
+
11
+ # OneSource Report Bug (`1s_report_bug`)
12
+
13
+ `1s_report_bug` sends a structured bug report to the OneSource team (forwarded to Slack). It works out of the box — free, no authentication or payment required.
14
+
15
+ ## When to Use
16
+
17
+ - A blockchain API tool (`1s_*` prefix) returns an **unexpected error** (server crash, malformed response, broken feature). Report it automatically, once per conversation per distinct error.
18
+ - The user explicitly asks to report a bug or issue.
19
+
20
+ **Do NOT report:**
21
+ - **402** responses — payment required or API key rejected (an auth/billing issue, not a bug).
22
+ - **403** responses — the account needs a developer plan (a billing issue, not a bug).
23
+ - The same error more than once per conversation.
24
+
25
+ ## Parameters
26
+
27
+ | Param | Type | Required | Description |
28
+ |-------|------|----------|-------------|
29
+ | `description` | string | yes | What went wrong — describe the bug, what you expected, and what actually happened. |
30
+ | `tool_name` | string | no | The MCP tool that produced the error (e.g. `1s_network_info`, `1s_erc20_balance_live`). |
31
+ | `error_message` | string | no | The error message or relevant output from the failed call. |
32
+ | `severity` | `low` \| `medium` \| `high` \| `critical` | no | `low` (cosmetic), `medium` (degraded function), `high` (feature broken), `critical` (server crash or data loss). |
33
+ | `network` | string | no | The blockchain network involved, if applicable (e.g. `ethereum`, `sepolia`). |
34
+ | `steps_to_reproduce` | string | no | Steps to reproduce the issue, if known. |
35
+
36
+ ## Example
37
+
38
+ ```
39
+ 1s_report_bug {
40
+ "tool_name": "1s_events_live",
41
+ "description": "Requested last 5 Transfer events for USDC but the tool returned a 500 with an empty body.",
42
+ "error_message": "Tool error: HTTP 500",
43
+ "severity": "high",
44
+ "network": "ethereum"
45
+ }
46
+ ```
47
+
48
+ ## Choosing Severity
49
+
50
+ - **critical** — server crash or data loss.
51
+ - **high** — a feature is broken / consistently errors.
52
+ - **medium** — degraded functionality, partial results.
53
+ - **low** — cosmetic or minor wording issues.
54
+
55
+ ## Related Tools
56
+
57
+ - `1s_setup_check` — diagnose version, auth, and connectivity before reporting (rules out config issues).