autonomo-mcp 0.1.3 → 0.1.5
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/LICENSE +21 -21
- package/README.md +19 -6
- package/index.mjs +4 -4
- package/package.json +4 -4
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Autonomo
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Autonomo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -37,9 +37,18 @@ On Windows, start `npx` through `cmd /c`. In PowerShell, quote the `--`:
|
|
|
37
37
|
claude mcp add autonomo -e AUTONOMO_WALLET_KEY=0xYOUR_AGENT_WALLET_KEY '--' cmd /c npx -y autonomo-mcp
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
###
|
|
40
|
+
### Cursor
|
|
41
41
|
|
|
42
|
-
Add
|
|
42
|
+
**[Add to Cursor](https://cursor.com/install-mcp?name=autonomo&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImF1dG9ub21vLW1jcCJdfQ==)**
|
|
43
|
+
|
|
44
|
+
The link opens Cursor, which asks before it installs anything. It carries no wallet key, so `find_apis` and
|
|
45
|
+
`get_price` work right away. To pay for calls, add the key to the server's entry in `~/.cursor/mcp.json`, as in the
|
|
46
|
+
block below. Keep the key in that file in your home folder, not in a project's `.cursor/mcp.json`, so it can't end
|
|
47
|
+
up in git.
|
|
48
|
+
|
|
49
|
+
### Cursor by hand, Claude Desktop and others
|
|
50
|
+
|
|
51
|
+
Add this to the client's MCP config (`~/.cursor/mcp.json`, `claude_desktop_config.json`, …):
|
|
43
52
|
|
|
44
53
|
```json
|
|
45
54
|
{
|
|
@@ -57,7 +66,11 @@ If the client can't find `npx` on Windows, use `"command": "cmd"` and `"args": [
|
|
|
57
66
|
|
|
58
67
|
### Codex
|
|
59
68
|
|
|
60
|
-
|
|
69
|
+
```bash
|
|
70
|
+
codex mcp add autonomo --env AUTONOMO_WALLET_KEY=0xYOUR_AGENT_WALLET_KEY -- npx -y autonomo-mcp
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Or by hand, in `~/.codex/config.toml`:
|
|
61
74
|
|
|
62
75
|
```toml
|
|
63
76
|
[mcp_servers.autonomo]
|
|
@@ -72,9 +85,9 @@ env = { AUTONOMO_WALLET_KEY = "0xYOUR_AGENT_WALLET_KEY" }
|
|
|
72
85
|
| --- | --- | --- |
|
|
73
86
|
| `AUTONOMO_WALLET_KEY` | none | Private key of the agent's wallet. Needed only for `call_api`. |
|
|
74
87
|
| `AUTONOMO_PAY_WITH` | `auto` | The token used when the agent doesn't say. `auto` pays with the first the wallet can afford: USDG, then $AUTONOMO, then USDC on Base. Or name one: `usdg`, `autonomo`, or `usdc` for Base. |
|
|
75
|
-
| `AUTONOMO_MAX_USDG_PER_CALL` | `0.
|
|
88
|
+
| `AUTONOMO_MAX_USDG_PER_CALL` | `0.5` | Most one call may cost in USDG or USDC. |
|
|
76
89
|
| `AUTONOMO_MAX_AUTONOMO_PER_CALL` | `5000` | Most one call may cost in $AUTONOMO. |
|
|
77
|
-
| `AUTONOMO_DAILY_USDG` | `
|
|
90
|
+
| `AUTONOMO_DAILY_USDG` | `5` | Most dollars the server will spend per UTC day, in USDG and USDC on Base together. |
|
|
78
91
|
| `AUTONOMO_DAILY_AUTONOMO` | `10000` | Most $AUTONOMO the server will spend per UTC day. |
|
|
79
92
|
| `AUTONOMO_RPC_URL` | Robinhood Chain's public RPC | Another Robinhood Chain RPC. |
|
|
80
93
|
| `AUTONOMO_BASE_RPC_URL` | `https://mainnet.base.org` | Another Base RPC, for USDC balances. |
|
|
@@ -83,7 +96,7 @@ env = { AUTONOMO_WALLET_KEY = "0xYOUR_AGENT_WALLET_KEY" }
|
|
|
83
96
|
## Safety
|
|
84
97
|
|
|
85
98
|
- It only pays Autonomo gateways (`autonomo.fun/x/...`), and only in USDG or $AUTONOMO on Robinhood Chain, or USDC on Base.
|
|
86
|
-
- Each call is capped at 0.
|
|
99
|
+
- Each call is capped at 0.5 USDG or USDC, or 5,000 $AUTONOMO, whatever the API asks, unless you change the caps
|
|
87
100
|
above. USDG and USDC share one daily dollar budget.
|
|
88
101
|
- It signs only what it checked: the same token, amount and payee as in the price it read. If the API's price or
|
|
89
102
|
payee changes in between, nothing is signed.
|
package/index.mjs
CHANGED
|
@@ -20,7 +20,7 @@ import { ExactEvmScheme } from "@x402/evm/exact/client";
|
|
|
20
20
|
import { wrapFetchWithPayment } from "@x402/fetch";
|
|
21
21
|
import { z } from "zod";
|
|
22
22
|
|
|
23
|
-
const VERSION = "0.1.
|
|
23
|
+
const VERSION = "0.1.5";
|
|
24
24
|
const BASE = (process.env.AUTONOMO_BASE_URL || "https://autonomo.fun").replace(/\/+$/, "");
|
|
25
25
|
const NETWORK = "eip155:4663";
|
|
26
26
|
const RPC = process.env.AUTONOMO_RPC_URL || "https://rpc.mainnet.chain.robinhood.com";
|
|
@@ -39,8 +39,8 @@ function amountEnv(name, fallback, decimals) {
|
|
|
39
39
|
console.error(`${name} should be a number such as ${fallback}; using ${fallback}.`);
|
|
40
40
|
return parseUnits(fallback, decimals);
|
|
41
41
|
}
|
|
42
|
-
const USD_DAILY = amountEnv("AUTONOMO_DAILY_USDG", "
|
|
43
|
-
const USD_CAP = amountEnv("AUTONOMO_MAX_USDG_PER_CALL", "0.
|
|
42
|
+
const USD_DAILY = amountEnv("AUTONOMO_DAILY_USDG", "5", 6);
|
|
43
|
+
const USD_CAP = amountEnv("AUTONOMO_MAX_USDG_PER_CALL", "0.5", 6);
|
|
44
44
|
const TOKENS = {
|
|
45
45
|
usdg: {
|
|
46
46
|
symbol: "USDG",
|
|
@@ -349,7 +349,7 @@ server.registerTool(
|
|
|
349
349
|
title: "Find Autonomo APIs",
|
|
350
350
|
description:
|
|
351
351
|
"Search the paid APIs on Autonomo (token prices, new launches, rug-risk checks, wallet portfolios, transaction explainers, " +
|
|
352
|
-
"page reader and more on Robinhood Chain). Returns each API's slug, price and the path to call. verified means the
|
|
352
|
+
"page reader and more on Robinhood Chain). Returns each API's slug, price and the path to call. verified means the wallet the API pays holds the Verified minimum of " +
|
|
353
353
|
"$AUTONOMO; it isn't a review of the API. Free. " +
|
|
354
354
|
"Set include_directory to also search Autonomo's directory of 4K+ x402 projects on other networks (listed for reference; " +
|
|
355
355
|
"call_api only pays Autonomo gateways).",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autonomo-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"mcpName": "io.github.autonomodotfun/autonomo",
|
|
5
5
|
"description": "MCP server for Autonomo: AI agents find x402 APIs, check prices and pay per call in USDG or $AUTONOMO on Robinhood Chain, or USDC on Base.",
|
|
6
6
|
"homepage": "https://autonomo.fun",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
40
|
-
"@x402/core": "2.
|
|
41
|
-
"@x402/evm": "2.
|
|
42
|
-
"@x402/fetch": "2.
|
|
40
|
+
"@x402/core": "2.32.0",
|
|
41
|
+
"@x402/evm": "2.32.0",
|
|
42
|
+
"@x402/fetch": "2.32.0",
|
|
43
43
|
"viem": "2.57.12",
|
|
44
44
|
"zod": "4.6.7"
|
|
45
45
|
}
|