@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.
- package/README.md +22 -7
- package/README.npm.md +22 -7
- package/README.repo.md +44 -19
- package/dist/batch-prefs.d.ts +67 -0
- package/dist/batch-prefs.d.ts.map +1 -0
- package/dist/batch-prefs.js +181 -0
- package/dist/batch-prefs.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +42 -4
- package/dist/cli.js.map +1 -1
- package/dist/create-server.d.ts +3 -2
- package/dist/create-server.d.ts.map +1 -1
- package/dist/create-server.js +3 -2
- package/dist/create-server.js.map +1 -1
- package/dist/register-bug-report-tool.js +2 -2
- package/dist/register-bug-report-tool.js.map +1 -1
- package/dist/register-docs-tools.d.ts.map +1 -1
- package/dist/register-docs-tools.js +182 -3
- package/dist/register-docs-tools.js.map +1 -1
- package/package.json +3 -3
- package/skills/onesource-batch-config/SKILL.md +76 -0
- package/skills/onesource-mcp-setup/SKILL.md +11 -1
- package/skills/onesource-report-bug/SKILL.md +57 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @one-source/mcp
|
|
2
2
|
|
|
3
|
-
Unified MCP server for [OneSource](https://docs.onesource.io) —
|
|
3
|
+
Unified MCP server for [OneSource](https://docs.onesource.io) — 30 tools for blockchain data and live chain queries in a single server.
|
|
4
4
|
|
|
5
5
|
> **What is MCP?** The [Model Context Protocol](https://modelcontextprotocol.io) lets AI assistants call tools and access data sources. This server exposes both the OneSource blockchain API and its documentation as tools.
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ Then connect your MCP client to `http://localhost:3000/`.
|
|
|
44
44
|
|
|
45
45
|
Health check: `GET http://localhost:3000/health`
|
|
46
46
|
|
|
47
|
-
## Tools (
|
|
47
|
+
## Tools (30)
|
|
48
48
|
|
|
49
49
|
### Blockchain API — Live Chain (12 tools)
|
|
50
50
|
|
|
@@ -90,13 +90,14 @@ RPC only.
|
|
|
90
90
|
| `1s_payment_mode` | View or switch the x402 payment scheme — `exact` (per-call) vs `batch` (payment channel: one deposit funds many off-chain calls, settled with a single claim) |
|
|
91
91
|
| `1s_refund` | Refund unused `batch` channel balance back to your wallet on demand |
|
|
92
92
|
|
|
93
|
-
### Setup & Ops (
|
|
93
|
+
### Setup & Ops (3 tools)
|
|
94
94
|
|
|
95
95
|
No authentication required.
|
|
96
96
|
|
|
97
97
|
| Tool | Purpose | When to use |
|
|
98
98
|
|------|---------|-------------|
|
|
99
|
-
| `1s_setup_check` | Server health, version, auth status, setup instructions | First thing to call — checks if everything is configured |
|
|
99
|
+
| `1s_setup_check` | Server health, version, auth status, batch-settlement status, and setup instructions | First thing to call — checks if everything is configured |
|
|
100
|
+
| `1s_batch_config` | View or change x402 batch-settlement preferences (autonomy, threshold, deposit multiplier, default mode) and persist them across restarts — no config editing required | Configure batch behaviour from the session |
|
|
100
101
|
| `1s_report_bug` | Report bugs to Slack (or GitHub Issues fallback) | When a tool errors or user wants to report an issue |
|
|
101
102
|
|
|
102
103
|
## Networks
|
|
@@ -107,7 +108,6 @@ All blockchain API tools accept an optional `network` parameter:
|
|
|
107
108
|
|---------|-------------|
|
|
108
109
|
| `ethereum` | Ethereum mainnet (default) |
|
|
109
110
|
| `sepolia` | Ethereum Sepolia testnet |
|
|
110
|
-
| `avax` | Avalanche C-Chain |
|
|
111
111
|
|
|
112
112
|
## Authentication
|
|
113
113
|
|
|
@@ -198,6 +198,8 @@ X402_PRIVATE_KEY=<key> npx -y @one-source/mcp@latest
|
|
|
198
198
|
|
|
199
199
|
By default each paid call signs one USDC payment (`exact`). For a burst of calls, switch to a **batch** payment channel — one on-chain deposit funds many off-chain calls, settled with a single claim — by calling `1s_payment_mode` with `{ "mode": "batch" }` (or setting `X402_PAYMENT_MODE=batch`). The first batch call deposits `price × X402_DEPOSIT_MULTIPLIER` (default 10), so a session usually over-funds the channel. Reclaim the unused balance any time with the `1s_refund` tool; idle channels are also auto-refunded after a few hours. The residual is always recoverable.
|
|
200
200
|
|
|
201
|
+
When paying via x402, the agent is also given batch guidance at startup so it can manage this for you: when it anticipates a burst of calls it offers to switch to batch mode and reminds you to `1s_refund` when done. Tune that behavior with the `1s_batch_config` tool — set whether the agent asks first / switches automatically / only on request (`prompt`), how many calls count as "a burst" (`threshold`), the deposit multiplier, and the default mode, all from your session. Changes are saved to a server-managed config file and persist across restarts, so you never have to edit the MCP config or set env vars by hand. (The matching `X402_BATCH_PROMPT` / `X402_BATCH_THRESHOLD` / `X402_PAYMENT_MODE` / `X402_DEPOSIT_MULTIPLIER` env vars still work as install-time defaults.) Run `1s_setup_check` to see your current mode, whether batch is available, and these settings.
|
|
202
|
+
|
|
201
203
|
### Security
|
|
202
204
|
|
|
203
205
|
Never commit keys to source control. Use environment variables, a `.env` file (excluded from git), or a secrets manager.
|
|
@@ -206,14 +208,27 @@ Never commit keys to source control. Use environment variables, a `.env` file (e
|
|
|
206
208
|
|
|
207
209
|
## Environment Variables
|
|
208
210
|
|
|
211
|
+
### Required
|
|
212
|
+
|
|
213
|
+
Set one to access the blockchain API tools. Without either, only the no-auth Setup & Ops tools work. API key takes priority when both are set.
|
|
214
|
+
|
|
209
215
|
| Variable | Default | Description |
|
|
210
216
|
|----------|---------|-------------|
|
|
211
217
|
| `ONESOURCE_API_KEY` | — | OneSource API key for Bearer token auth. Takes priority over x402. |
|
|
212
|
-
| `X402_PRIVATE_KEY` | — | EVM private key (64-char hex, `0x` prefix optional) for automatic x402 USDC payments on Base |
|
|
218
|
+
| `X402_PRIVATE_KEY` | — | EVM private key (64-char hex, `0x` prefix optional) for automatic x402 USDC payments on Base. |
|
|
219
|
+
|
|
220
|
+
### Optional / Advanced
|
|
221
|
+
|
|
222
|
+
All have sensible defaults — batch mode runs out of the box. Set these only to tune how `batch` mode behaves or how proactively the agent reaches for it. Payment modes can also be switched at runtime with the `1s_payment_mode` tool.
|
|
223
|
+
|
|
224
|
+
| Variable | Default | Description |
|
|
225
|
+
|----------|---------|-------------|
|
|
213
226
|
| `X402_PAYMENT_MODE` | `exact` | Initial x402 scheme: `exact` (per-call) or `batch` (payment channel). Switch in-session with `1s_payment_mode`. |
|
|
214
227
|
| `X402_DEPOSIT_MULTIPLIER` | `10` | Batch mode: deposit = price × this multiplier, funding that many calls per channel. Unused balance is reclaimable via `1s_refund`. |
|
|
215
|
-
| `X402_RPC_URL` | Base default | Base RPC endpoint used to submit channel deposits in batch mode |
|
|
228
|
+
| `X402_RPC_URL` | Base default | Base RPC endpoint used to submit channel deposits in batch mode. |
|
|
216
229
|
| `X402_CHANNEL_DIR` | — | Directory to persist batch channel state across restarts. Unset = in-memory (channel lost on restart). |
|
|
230
|
+
| `X402_BATCH_PROMPT` | `ask` | How the agent handles switching to batch mode: `ask` (confirm first), `auto` (switch on its own), or `off` (only when explicitly asked). |
|
|
231
|
+
| `X402_BATCH_THRESHOLD` | `5` | Number of anticipated calls in a session at/above which the agent considers batch mode. Advisory — the agent estimates the count; not a hard runtime counter. |
|
|
217
232
|
|
|
218
233
|
## Troubleshooting
|
|
219
234
|
|
package/README.npm.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @one-source/mcp
|
|
2
2
|
|
|
3
|
-
Unified MCP server for [OneSource](https://docs.onesource.io) —
|
|
3
|
+
Unified MCP server for [OneSource](https://docs.onesource.io) — 30 tools for blockchain data and live chain queries in a single server.
|
|
4
4
|
|
|
5
5
|
> **What is MCP?** The [Model Context Protocol](https://modelcontextprotocol.io) lets AI assistants call tools and access data sources. This server exposes both the OneSource blockchain API and its documentation as tools.
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ Then connect your MCP client to `http://localhost:3000/`.
|
|
|
44
44
|
|
|
45
45
|
Health check: `GET http://localhost:3000/health`
|
|
46
46
|
|
|
47
|
-
## Tools (
|
|
47
|
+
## Tools (30)
|
|
48
48
|
|
|
49
49
|
### Blockchain API — Live Chain (12 tools)
|
|
50
50
|
|
|
@@ -90,13 +90,14 @@ RPC only.
|
|
|
90
90
|
| `1s_payment_mode` | View or switch the x402 payment scheme — `exact` (per-call) vs `batch` (payment channel: one deposit funds many off-chain calls, settled with a single claim) |
|
|
91
91
|
| `1s_refund` | Refund unused `batch` channel balance back to your wallet on demand |
|
|
92
92
|
|
|
93
|
-
### Setup & Ops (
|
|
93
|
+
### Setup & Ops (3 tools)
|
|
94
94
|
|
|
95
95
|
No authentication required.
|
|
96
96
|
|
|
97
97
|
| Tool | Purpose | When to use |
|
|
98
98
|
|------|---------|-------------|
|
|
99
|
-
| `1s_setup_check` | Server health, version, auth status, setup instructions | First thing to call — checks if everything is configured |
|
|
99
|
+
| `1s_setup_check` | Server health, version, auth status, batch-settlement status, and setup instructions | First thing to call — checks if everything is configured |
|
|
100
|
+
| `1s_batch_config` | View or change x402 batch-settlement preferences (autonomy, threshold, deposit multiplier, default mode) and persist them across restarts — no config editing required | Configure batch behaviour from the session |
|
|
100
101
|
| `1s_report_bug` | Report bugs to Slack (or GitHub Issues fallback) | When a tool errors or user wants to report an issue |
|
|
101
102
|
|
|
102
103
|
## Networks
|
|
@@ -107,7 +108,6 @@ All blockchain API tools accept an optional `network` parameter:
|
|
|
107
108
|
|---------|-------------|
|
|
108
109
|
| `ethereum` | Ethereum mainnet (default) |
|
|
109
110
|
| `sepolia` | Ethereum Sepolia testnet |
|
|
110
|
-
| `avax` | Avalanche C-Chain |
|
|
111
111
|
|
|
112
112
|
## Authentication
|
|
113
113
|
|
|
@@ -198,6 +198,8 @@ X402_PRIVATE_KEY=<key> npx -y @one-source/mcp@latest
|
|
|
198
198
|
|
|
199
199
|
By default each paid call signs one USDC payment (`exact`). For a burst of calls, switch to a **batch** payment channel — one on-chain deposit funds many off-chain calls, settled with a single claim — by calling `1s_payment_mode` with `{ "mode": "batch" }` (or setting `X402_PAYMENT_MODE=batch`). The first batch call deposits `price × X402_DEPOSIT_MULTIPLIER` (default 10), so a session usually over-funds the channel. Reclaim the unused balance any time with the `1s_refund` tool; idle channels are also auto-refunded after a few hours. The residual is always recoverable.
|
|
200
200
|
|
|
201
|
+
When paying via x402, the agent is also given batch guidance at startup so it can manage this for you: when it anticipates a burst of calls it offers to switch to batch mode and reminds you to `1s_refund` when done. Tune that behavior with the `1s_batch_config` tool — set whether the agent asks first / switches automatically / only on request (`prompt`), how many calls count as "a burst" (`threshold`), the deposit multiplier, and the default mode, all from your session. Changes are saved to a server-managed config file and persist across restarts, so you never have to edit the MCP config or set env vars by hand. (The matching `X402_BATCH_PROMPT` / `X402_BATCH_THRESHOLD` / `X402_PAYMENT_MODE` / `X402_DEPOSIT_MULTIPLIER` env vars still work as install-time defaults.) Run `1s_setup_check` to see your current mode, whether batch is available, and these settings.
|
|
202
|
+
|
|
201
203
|
### Security
|
|
202
204
|
|
|
203
205
|
Never commit keys to source control. Use environment variables, a `.env` file (excluded from git), or a secrets manager.
|
|
@@ -206,14 +208,27 @@ Never commit keys to source control. Use environment variables, a `.env` file (e
|
|
|
206
208
|
|
|
207
209
|
## Environment Variables
|
|
208
210
|
|
|
211
|
+
### Required
|
|
212
|
+
|
|
213
|
+
Set one to access the blockchain API tools. Without either, only the no-auth Setup & Ops tools work. API key takes priority when both are set.
|
|
214
|
+
|
|
209
215
|
| Variable | Default | Description |
|
|
210
216
|
|----------|---------|-------------|
|
|
211
217
|
| `ONESOURCE_API_KEY` | — | OneSource API key for Bearer token auth. Takes priority over x402. |
|
|
212
|
-
| `X402_PRIVATE_KEY` | — | EVM private key (64-char hex, `0x` prefix optional) for automatic x402 USDC payments on Base |
|
|
218
|
+
| `X402_PRIVATE_KEY` | — | EVM private key (64-char hex, `0x` prefix optional) for automatic x402 USDC payments on Base. |
|
|
219
|
+
|
|
220
|
+
### Optional / Advanced
|
|
221
|
+
|
|
222
|
+
All have sensible defaults — batch mode runs out of the box. Set these only to tune how `batch` mode behaves or how proactively the agent reaches for it. Payment modes can also be switched at runtime with the `1s_payment_mode` tool.
|
|
223
|
+
|
|
224
|
+
| Variable | Default | Description |
|
|
225
|
+
|----------|---------|-------------|
|
|
213
226
|
| `X402_PAYMENT_MODE` | `exact` | Initial x402 scheme: `exact` (per-call) or `batch` (payment channel). Switch in-session with `1s_payment_mode`. |
|
|
214
227
|
| `X402_DEPOSIT_MULTIPLIER` | `10` | Batch mode: deposit = price × this multiplier, funding that many calls per channel. Unused balance is reclaimable via `1s_refund`. |
|
|
215
|
-
| `X402_RPC_URL` | Base default | Base RPC endpoint used to submit channel deposits in batch mode |
|
|
228
|
+
| `X402_RPC_URL` | Base default | Base RPC endpoint used to submit channel deposits in batch mode. |
|
|
216
229
|
| `X402_CHANNEL_DIR` | — | Directory to persist batch channel state across restarts. Unset = in-memory (channel lost on restart). |
|
|
230
|
+
| `X402_BATCH_PROMPT` | `ask` | How the agent handles switching to batch mode: `ask` (confirm first), `auto` (switch on its own), or `off` (only when explicitly asked). |
|
|
231
|
+
| `X402_BATCH_THRESHOLD` | `5` | Number of anticipated calls in a session at/above which the agent considers batch mode. Advisory — the agent estimates the count; not a hard runtime counter. |
|
|
217
232
|
|
|
218
233
|
## Troubleshooting
|
|
219
234
|
|
package/README.repo.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @one-source/mcp
|
|
2
2
|
|
|
3
|
-
Unified MCP server for [OneSource](https://docs.onesource.io) —
|
|
3
|
+
Unified MCP server for [OneSource](https://docs.onesource.io) — 30 tools for blockchain data and live chain queries in a single server.
|
|
4
4
|
|
|
5
5
|
> **What is MCP?** The [Model Context Protocol](https://modelcontextprotocol.io) lets AI assistants call tools and access data sources. This server exposes both the OneSource blockchain API and its documentation as tools.
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ Then connect your MCP client to `http://localhost:8080/`.
|
|
|
44
44
|
|
|
45
45
|
Health check: `GET http://localhost:8080/health`
|
|
46
46
|
|
|
47
|
-
## Tools (
|
|
47
|
+
## Tools (30)
|
|
48
48
|
|
|
49
49
|
### Blockchain API — Live Chain (12 tools)
|
|
50
50
|
|
|
@@ -96,15 +96,16 @@ RPC only.
|
|
|
96
96
|
| `1s_refund` | Refund unused `batch` channel balance back to your wallet on demand |
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
### Setup & Ops (
|
|
99
|
+
### Setup & Ops (3 tools)
|
|
100
100
|
|
|
101
101
|
No authentication required.
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
| Tool
|
|
105
|
-
|
|
|
106
|
-
| `1s_setup_check`
|
|
107
|
-
| `
|
|
104
|
+
| Tool | Purpose | When to use |
|
|
105
|
+
| ----------------- | ------------------------------------------------------- | -------------------------------------------------------- |
|
|
106
|
+
| `1s_setup_check` | Server health, version, auth status, batch-settlement status, and setup instructions | First thing to call — checks if everything is configured |
|
|
107
|
+
| `1s_batch_config` | View or change x402 batch-settlement preferences (autonomy, threshold, deposit multiplier, default mode) and persist them across restarts — no config editing required | Configure batch behaviour from the session |
|
|
108
|
+
| `1s_report_bug` | Report bugs to Slack (or GitHub Issues fallback) | When a tool errors or user wants to report an issue |
|
|
108
109
|
|
|
109
110
|
|
|
110
111
|
## Networks
|
|
@@ -116,7 +117,6 @@ All blockchain API tools accept an optional `network` parameter:
|
|
|
116
117
|
| ---------- | -------------------------- |
|
|
117
118
|
| `ethereum` | Ethereum mainnet (default) |
|
|
118
119
|
| `sepolia` | Ethereum Sepolia testnet |
|
|
119
|
-
| `avax` | Avalanche C-Chain |
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
## Authentication
|
|
@@ -233,6 +233,8 @@ Instead of the `env` config block, you can set either variable as a shell or sys
|
|
|
233
233
|
|
|
234
234
|
By default each paid call signs one USDC payment (`exact`). For a burst of calls, switch to a **batch** payment channel — one on-chain deposit funds many off-chain calls, settled with a single claim — by calling `1s_payment_mode` with `{ "mode": "batch" }` (or setting `X402_PAYMENT_MODE=batch`). The first batch call deposits `price × X402_DEPOSIT_MULTIPLIER` (default 10), so a session usually over-funds the channel. Reclaim the unused balance any time with the `1s_refund` tool; idle channels are also auto-refunded after a few hours. The residual is always recoverable.
|
|
235
235
|
|
|
236
|
+
When paying via x402, the agent receives batch guidance in its system prompt at startup, so it can manage this for you rather than leaving batching as a manual step: when it anticipates a burst of calls it offers to switch to batch mode and reminds you to `1s_refund` when finished. Control how proactive it is with `X402_BATCH_PROMPT` (`ask` / `auto` / `off`) and `X402_BATCH_THRESHOLD` (how many anticipated calls count as a burst) — see [Environment Variables](#optional--advanced). `1s_setup_check` reports your current mode, whether batch is available, and both settings.
|
|
237
|
+
|
|
236
238
|
### Security
|
|
237
239
|
|
|
238
240
|
Never commit keys to source control. Use environment variables, a `.env` file (excluded from git), or a secrets manager.
|
|
@@ -241,18 +243,33 @@ Never commit keys to source control. Use environment variables, a `.env` file (e
|
|
|
241
243
|
|
|
242
244
|
## Environment Variables
|
|
243
245
|
|
|
246
|
+
### Required
|
|
247
|
+
|
|
248
|
+
Set one to access the blockchain API tools. Without either, only the no-auth Setup & Ops tools work. API key takes priority when both are set.
|
|
249
|
+
|
|
250
|
+
| Variable | Default | Description |
|
|
251
|
+
| --- | --- | --- |
|
|
252
|
+
| `ONESOURCE_API_KEY` | — | OneSource API key for Bearer token auth. Takes priority over x402. |
|
|
253
|
+
| `X402_PRIVATE_KEY` | — | EVM private key (64-char hex, `0x` prefix optional) for automatic x402 USDC payments on Base. |
|
|
244
254
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
|
250
|
-
|
|
|
251
|
-
| `
|
|
252
|
-
| `
|
|
253
|
-
| `
|
|
254
|
-
| `
|
|
255
|
-
| `
|
|
255
|
+
### Optional / Advanced
|
|
256
|
+
|
|
257
|
+
All have sensible defaults — batch mode runs out of the box. Set these only to override an endpoint, tune how `batch` mode behaves, or adjust analytics. Payment modes can also be switched at runtime with the `1s_payment_mode` tool. The batch knobs below (`X402_PAYMENT_MODE`, `X402_DEPOSIT_MULTIPLIER`, `X402_BATCH_PROMPT`, `X402_BATCH_THRESHOLD`) can be set and persisted from a session with the `1s_batch_config` tool — no config editing or restart required; a saved config takes priority over these env vars.
|
|
258
|
+
|
|
259
|
+
| Variable | Default | Description |
|
|
260
|
+
| --- | --- | --- |
|
|
261
|
+
| `ONESOURCE_BASE_URL` | `https://skills.onesource.io` | API base URL. |
|
|
262
|
+
| `X402_PAYMENT_MODE` | `exact` | Initial x402 scheme: `exact` (per-call) or `batch` (payment channel). Switch in-session with `1s_payment_mode`. |
|
|
263
|
+
| `X402_RPC_URL` | Base default | Base RPC endpoint used to submit channel deposits in batch mode. |
|
|
264
|
+
| `X402_DEPOSIT_MULTIPLIER` | `10` | Batch mode: deposit = price × this multiplier, funding that many calls per channel. Unused balance is reclaimable via `1s_refund`. |
|
|
265
|
+
| `X402_CHANNEL_DIR` | — | Directory to persist batch channel state across restarts. Unset = in-memory (channel lost on restart). |
|
|
266
|
+
| `X402_CHANNEL_SALT` | zero | Batch mode: 32-byte hex salt to derive the starting channel id. The client auto-rotates to the next salt when a channel is exhausted or refunded. |
|
|
267
|
+
| `X402_BATCH_PROMPT` | `ask` | How the agent handles switching to batch mode: `ask` (confirm before switching), `auto` (switch on its own), or `off` (only switch when explicitly asked). |
|
|
268
|
+
| `X402_BATCH_THRESHOLD` | `5` | Number of anticipated calls in a session at/above which the agent considers batch mode. Advisory — the agent estimates the call count; it is not a hard runtime counter. |
|
|
269
|
+
| `ONESOURCE_CONFIG_DIR` | `~/.onesource` | Directory holding the server-managed batch config (`batch-config.json`) written by `1s_batch_config`. |
|
|
270
|
+
| `ONESOURCE_ANALYTICS` | `true` | Set to `false` to disable analytics. |
|
|
271
|
+
| `ONESOURCE_ANALYTICS_URL` | `https://1s-analytics.vercel.app` | Dashboard endpoint for analytics. |
|
|
272
|
+
| `X402_ANALYTICS_KEY` | `onesource-mcp` | API key for dashboard analytics. |
|
|
256
273
|
|
|
257
274
|
|
|
258
275
|
## Troubleshooting
|
|
@@ -353,6 +370,14 @@ If you need to regenerate the keypair (this invalidates the current DNS record a
|
|
|
353
370
|
|
|
354
371
|
#### Publishing a New Version
|
|
355
372
|
|
|
373
|
+
> **Use the release script.** Releases are normally run via the coordinated release
|
|
374
|
+
> script in the sre-services repo (`scripts/release-mcp.mjs` — see `sre-services/RELEASING.md`),
|
|
375
|
+
> which performs all of the steps below across both `@one-source/api-mcp` and
|
|
376
|
+
> `@one-source/mcp` in the correct order, including the `server.json` bump and
|
|
377
|
+
> `mcp-publisher publish`. The First-Time Setup above is still the prerequisite for
|
|
378
|
+
> the registry step. The manual steps below are the fallback for registry-only fixes
|
|
379
|
+
> or when the script can't run.
|
|
380
|
+
|
|
356
381
|
Every time you release a new npm version, update the MCP Registry:
|
|
357
382
|
|
|
358
383
|
1. **Publish to npm** (the registry validates the package exists, so this must happen first):
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Batch-settlement preferences — server-managed and runtime-configurable.
|
|
3
|
+
*
|
|
4
|
+
* The x402 batch knobs (autonomy prompt, "many" threshold, deposit multiplier,
|
|
5
|
+
* and default payment mode) were previously settable only via env vars, which
|
|
6
|
+
* meant editing the MCP client config and restarting. This module lets them be
|
|
7
|
+
* set from within a session (via the `1s_batch_config` tool) and persists them
|
|
8
|
+
* to a server-owned file so they survive restarts without touching the client
|
|
9
|
+
* config.
|
|
10
|
+
*
|
|
11
|
+
* Resolution priority per field: persisted file > env var > built-in default.
|
|
12
|
+
*
|
|
13
|
+
* Resolved values are mirrored back into process.env (X402_PAYMENT_MODE,
|
|
14
|
+
* X402_DEPOSIT_MULTIPLIER) so the downstream @one-source/api-mcp x402 code —
|
|
15
|
+
* which reads those env vars directly — transparently honours them. This module
|
|
16
|
+
* intentionally has no dependency on api-mcp: applying the live payment scheme
|
|
17
|
+
* (setPaymentMode) is left to the caller.
|
|
18
|
+
*/
|
|
19
|
+
export type BatchPromptPref = 'ask' | 'auto' | 'off';
|
|
20
|
+
export type PaymentMode = 'exact' | 'batch';
|
|
21
|
+
export interface BatchPrefs {
|
|
22
|
+
/** Agent autonomy when deciding to switch to batch mode. */
|
|
23
|
+
prompt: BatchPromptPref;
|
|
24
|
+
/** Anticipated call count at/above which batching is worth considering. */
|
|
25
|
+
threshold: number;
|
|
26
|
+
/** Channel deposit = call price × this multiplier. */
|
|
27
|
+
depositMultiplier: number;
|
|
28
|
+
/** Payment scheme the session starts in. */
|
|
29
|
+
mode: PaymentMode;
|
|
30
|
+
}
|
|
31
|
+
export declare const DEFAULT_BATCH_PREFS: BatchPrefs;
|
|
32
|
+
/** Lowest deposit multiplier the batch-settlement SDK accepts. */
|
|
33
|
+
export declare const MIN_DEPOSIT_MULTIPLIER = 3;
|
|
34
|
+
export declare function coercePrompt(v: unknown): BatchPromptPref | undefined;
|
|
35
|
+
export declare function coerceThreshold(v: unknown): number | undefined;
|
|
36
|
+
export declare function coerceMultiplier(v: unknown): number | undefined;
|
|
37
|
+
export declare function coerceMode(v: unknown): PaymentMode | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Resolve preferences (file > env > default), cache them, and mirror the
|
|
40
|
+
* api-mcp-consumed values into process.env. Call once at startup BEFORE
|
|
41
|
+
* setupX402() so the deposit multiplier and initial mode are in place before
|
|
42
|
+
* the batch channel is built.
|
|
43
|
+
*/
|
|
44
|
+
export declare function loadBatchPrefs(): BatchPrefs;
|
|
45
|
+
/** Current preferences (lazily resolved on first access). */
|
|
46
|
+
export declare function getBatchPrefs(): BatchPrefs;
|
|
47
|
+
export interface SetBatchResult {
|
|
48
|
+
prefs: BatchPrefs;
|
|
49
|
+
/** True when the change was written to the config file. */
|
|
50
|
+
persisted: boolean;
|
|
51
|
+
/** Set when persistence failed — the in-memory update still took effect. */
|
|
52
|
+
persistError?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Merge a (pre-validated) patch into the current preferences, persist to the
|
|
56
|
+
* config file, and mirror to process.env. Caller is responsible for validating
|
|
57
|
+
* raw user input (use the coerce* helpers) and for applying any mode change to
|
|
58
|
+
* the live payment scheme via setPaymentMode().
|
|
59
|
+
*/
|
|
60
|
+
export declare function setBatchPrefs(patch: Partial<BatchPrefs>): SetBatchResult;
|
|
61
|
+
/** Clear persisted overrides — delete the file and re-resolve from env/defaults. */
|
|
62
|
+
export declare function resetBatchPrefs(): SetBatchResult;
|
|
63
|
+
/** Absolute path to the config file (for display in setup output). */
|
|
64
|
+
export declare function batchConfigPath(): string;
|
|
65
|
+
/** Whether a persisted config file currently exists. */
|
|
66
|
+
export declare function hasPersistedConfig(): boolean;
|
|
67
|
+
//# sourceMappingURL=batch-prefs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batch-prefs.d.ts","sourceRoot":"","sources":["../src/batch-prefs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;AACrD,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,OAAO,CAAC;AAE5C,MAAM,WAAW,UAAU;IACzB,4DAA4D;IAC5D,MAAM,EAAE,eAAe,CAAC;IACxB,2EAA2E;IAC3E,SAAS,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,4CAA4C;IAC5C,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,eAAO,MAAM,mBAAmB,EAAE,UAKjC,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAaxC,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,CAGpE;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAG9D;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAG/D;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAG9D;AA+DD;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,UAAU,CAI3C;AAED,6DAA6D;AAC7D,wBAAgB,aAAa,IAAI,UAAU,CAG1C;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,UAAU,CAAC;IAClB,2DAA2D;IAC3D,SAAS,EAAE,OAAO,CAAC;IACnB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,cAAc,CAgBxE;AAED,oFAAoF;AACpF,wBAAgB,eAAe,IAAI,cAAc,CAQhD;AAED,sEAAsE;AACtE,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED,wDAAwD;AACxD,wBAAgB,kBAAkB,IAAI,OAAO,CAM5C"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Batch-settlement preferences — server-managed and runtime-configurable.
|
|
3
|
+
*
|
|
4
|
+
* The x402 batch knobs (autonomy prompt, "many" threshold, deposit multiplier,
|
|
5
|
+
* and default payment mode) were previously settable only via env vars, which
|
|
6
|
+
* meant editing the MCP client config and restarting. This module lets them be
|
|
7
|
+
* set from within a session (via the `1s_batch_config` tool) and persists them
|
|
8
|
+
* to a server-owned file so they survive restarts without touching the client
|
|
9
|
+
* config.
|
|
10
|
+
*
|
|
11
|
+
* Resolution priority per field: persisted file > env var > built-in default.
|
|
12
|
+
*
|
|
13
|
+
* Resolved values are mirrored back into process.env (X402_PAYMENT_MODE,
|
|
14
|
+
* X402_DEPOSIT_MULTIPLIER) so the downstream @one-source/api-mcp x402 code —
|
|
15
|
+
* which reads those env vars directly — transparently honours them. This module
|
|
16
|
+
* intentionally has no dependency on api-mcp: applying the live payment scheme
|
|
17
|
+
* (setPaymentMode) is left to the caller.
|
|
18
|
+
*/
|
|
19
|
+
import { homedir } from 'node:os';
|
|
20
|
+
import { join } from 'node:path';
|
|
21
|
+
import { readFileSync, writeFileSync, mkdirSync, rmSync, existsSync } from 'node:fs';
|
|
22
|
+
export const DEFAULT_BATCH_PREFS = {
|
|
23
|
+
prompt: 'ask',
|
|
24
|
+
threshold: 5,
|
|
25
|
+
depositMultiplier: 10,
|
|
26
|
+
mode: 'exact',
|
|
27
|
+
};
|
|
28
|
+
/** Lowest deposit multiplier the batch-settlement SDK accepts. */
|
|
29
|
+
export const MIN_DEPOSIT_MULTIPLIER = 3;
|
|
30
|
+
function configDir() {
|
|
31
|
+
const override = process.env.ONESOURCE_CONFIG_DIR?.trim();
|
|
32
|
+
return override && override.length > 0 ? override : join(homedir(), '.onesource');
|
|
33
|
+
}
|
|
34
|
+
function configFile() {
|
|
35
|
+
return join(configDir(), 'batch-config.json');
|
|
36
|
+
}
|
|
37
|
+
// --- field coercers: return undefined when the raw value is absent/invalid ---
|
|
38
|
+
export function coercePrompt(v) {
|
|
39
|
+
const s = typeof v === 'string' ? v.trim().toLowerCase() : '';
|
|
40
|
+
return s === 'ask' || s === 'auto' || s === 'off' ? s : undefined;
|
|
41
|
+
}
|
|
42
|
+
export function coerceThreshold(v) {
|
|
43
|
+
const n = typeof v === 'number' ? v : parseInt(String(v ?? ''), 10);
|
|
44
|
+
return Number.isInteger(n) && n > 0 ? n : undefined;
|
|
45
|
+
}
|
|
46
|
+
export function coerceMultiplier(v) {
|
|
47
|
+
const n = typeof v === 'number' ? v : Number(v);
|
|
48
|
+
return Number.isFinite(n) && n >= MIN_DEPOSIT_MULTIPLIER ? n : undefined;
|
|
49
|
+
}
|
|
50
|
+
export function coerceMode(v) {
|
|
51
|
+
const s = typeof v === 'string' ? v.trim().toLowerCase() : '';
|
|
52
|
+
return s === 'exact' || s === 'batch' ? s : undefined;
|
|
53
|
+
}
|
|
54
|
+
// Snapshot the launch-time env vars ONCE at module load. We mirror resolved
|
|
55
|
+
// values back into process.env (so api-mcp's x402 layer honours them), which
|
|
56
|
+
// would otherwise corrupt the env baseline — a later reset() would read our own
|
|
57
|
+
// mirror instead of the original env. Reading the snapshot keeps env precedence
|
|
58
|
+
// stable across set/reset cycles.
|
|
59
|
+
const ENV_SNAPSHOT = {
|
|
60
|
+
prompt: process.env.X402_BATCH_PROMPT,
|
|
61
|
+
threshold: process.env.X402_BATCH_THRESHOLD,
|
|
62
|
+
depositMultiplier: process.env.X402_DEPOSIT_MULTIPLIER,
|
|
63
|
+
mode: process.env.X402_PAYMENT_MODE,
|
|
64
|
+
};
|
|
65
|
+
let _cache;
|
|
66
|
+
/** Read + validate the persisted file, ignoring any invalid/missing fields. */
|
|
67
|
+
function readPersisted() {
|
|
68
|
+
try {
|
|
69
|
+
const data = JSON.parse(readFileSync(configFile(), 'utf8'));
|
|
70
|
+
const out = {};
|
|
71
|
+
const prompt = coercePrompt(data.prompt);
|
|
72
|
+
if (prompt)
|
|
73
|
+
out.prompt = prompt;
|
|
74
|
+
const threshold = coerceThreshold(data.threshold);
|
|
75
|
+
if (threshold)
|
|
76
|
+
out.threshold = threshold;
|
|
77
|
+
const depositMultiplier = coerceMultiplier(data.depositMultiplier);
|
|
78
|
+
if (depositMultiplier)
|
|
79
|
+
out.depositMultiplier = depositMultiplier;
|
|
80
|
+
const mode = coerceMode(data.mode);
|
|
81
|
+
if (mode)
|
|
82
|
+
out.mode = mode;
|
|
83
|
+
return out;
|
|
84
|
+
}
|
|
85
|
+
catch {
|
|
86
|
+
// No file, unreadable, or malformed JSON — fall back to env/defaults.
|
|
87
|
+
return {};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function fromEnv() {
|
|
91
|
+
const out = {};
|
|
92
|
+
const prompt = coercePrompt(ENV_SNAPSHOT.prompt);
|
|
93
|
+
if (prompt)
|
|
94
|
+
out.prompt = prompt;
|
|
95
|
+
const threshold = coerceThreshold(ENV_SNAPSHOT.threshold);
|
|
96
|
+
if (threshold)
|
|
97
|
+
out.threshold = threshold;
|
|
98
|
+
const depositMultiplier = coerceMultiplier(ENV_SNAPSHOT.depositMultiplier);
|
|
99
|
+
if (depositMultiplier)
|
|
100
|
+
out.depositMultiplier = depositMultiplier;
|
|
101
|
+
const mode = coerceMode(ENV_SNAPSHOT.mode);
|
|
102
|
+
if (mode)
|
|
103
|
+
out.mode = mode;
|
|
104
|
+
return out;
|
|
105
|
+
}
|
|
106
|
+
/** Mirror api-mcp-consumed values into process.env so its x402 layer honours them. */
|
|
107
|
+
function mirrorToEnv(prefs) {
|
|
108
|
+
process.env.X402_PAYMENT_MODE = prefs.mode;
|
|
109
|
+
process.env.X402_DEPOSIT_MULTIPLIER = String(prefs.depositMultiplier);
|
|
110
|
+
}
|
|
111
|
+
function resolve() {
|
|
112
|
+
return {
|
|
113
|
+
...DEFAULT_BATCH_PREFS,
|
|
114
|
+
...fromEnv(), // env over default
|
|
115
|
+
...readPersisted(), // file over env
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Resolve preferences (file > env > default), cache them, and mirror the
|
|
120
|
+
* api-mcp-consumed values into process.env. Call once at startup BEFORE
|
|
121
|
+
* setupX402() so the deposit multiplier and initial mode are in place before
|
|
122
|
+
* the batch channel is built.
|
|
123
|
+
*/
|
|
124
|
+
export function loadBatchPrefs() {
|
|
125
|
+
_cache = resolve();
|
|
126
|
+
mirrorToEnv(_cache);
|
|
127
|
+
return _cache;
|
|
128
|
+
}
|
|
129
|
+
/** Current preferences (lazily resolved on first access). */
|
|
130
|
+
export function getBatchPrefs() {
|
|
131
|
+
if (!_cache)
|
|
132
|
+
loadBatchPrefs();
|
|
133
|
+
return _cache;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Merge a (pre-validated) patch into the current preferences, persist to the
|
|
137
|
+
* config file, and mirror to process.env. Caller is responsible for validating
|
|
138
|
+
* raw user input (use the coerce* helpers) and for applying any mode change to
|
|
139
|
+
* the live payment scheme via setPaymentMode().
|
|
140
|
+
*/
|
|
141
|
+
export function setBatchPrefs(patch) {
|
|
142
|
+
const next = { ...getBatchPrefs(), ...patch };
|
|
143
|
+
let persisted = false;
|
|
144
|
+
let persistError;
|
|
145
|
+
try {
|
|
146
|
+
mkdirSync(configDir(), { recursive: true });
|
|
147
|
+
writeFileSync(configFile(), JSON.stringify(next, null, 2) + '\n', 'utf8');
|
|
148
|
+
persisted = true;
|
|
149
|
+
}
|
|
150
|
+
catch (err) {
|
|
151
|
+
persistError = err instanceof Error ? err.message : String(err);
|
|
152
|
+
}
|
|
153
|
+
_cache = next;
|
|
154
|
+
mirrorToEnv(next);
|
|
155
|
+
return { prefs: next, persisted, persistError };
|
|
156
|
+
}
|
|
157
|
+
/** Clear persisted overrides — delete the file and re-resolve from env/defaults. */
|
|
158
|
+
export function resetBatchPrefs() {
|
|
159
|
+
let persistError;
|
|
160
|
+
try {
|
|
161
|
+
rmSync(configFile(), { force: true });
|
|
162
|
+
}
|
|
163
|
+
catch (err) {
|
|
164
|
+
persistError = err instanceof Error ? err.message : String(err);
|
|
165
|
+
}
|
|
166
|
+
return { prefs: loadBatchPrefs(), persisted: persistError === undefined, persistError };
|
|
167
|
+
}
|
|
168
|
+
/** Absolute path to the config file (for display in setup output). */
|
|
169
|
+
export function batchConfigPath() {
|
|
170
|
+
return configFile();
|
|
171
|
+
}
|
|
172
|
+
/** Whether a persisted config file currently exists. */
|
|
173
|
+
export function hasPersistedConfig() {
|
|
174
|
+
try {
|
|
175
|
+
return existsSync(configFile());
|
|
176
|
+
}
|
|
177
|
+
catch {
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=batch-prefs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batch-prefs.js","sourceRoot":"","sources":["../src/batch-prefs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MA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AAM,GAAG,IAAI,CAAC;IACd,WAAW,CAAC,IAAI,CAAC,CAAC;IAClB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAClD,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,eAAe;IAC7B,IAAI,YAAgC,CAAC;IACrC,IAAI,CAAC;QACH,MAAM,CAAC,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACxC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,YAAY,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,YAAY,KAAK,SAAS,EAAE,YAAY,EAAE,CAAC;AAC1F,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,eAAe;IAC7B,OAAO,UAAU,EAAE,CAAC;AACtB,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,kBAAkB;IAChC,IAAI,CAAC;QACH,OAAO,UAAU,CAAC,UAAU,EAAE,CAAC,CAAC;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG;AAgZH,OAAO,EAAE,CAAC"}
|