@agent-signal/mcp 1.5.0 → 1.5.2

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.
Files changed (3) hide show
  1. package/README.md +26 -12
  2. package/dist/index.js +1 -1
  3. package/package.json +1 -6
package/README.md CHANGED
@@ -2,17 +2,23 @@
2
2
 
3
3
  MCP server for [AgentSignal](https://agentsignal.app) — live LONG/FLAT/SHORT trading signals, COMPASS macro score, RADAR calendar risk, and backtests for AI agents. Paid tools settle automatically via [x402](https://github.com/coinbase/x402) micropayments in USDC on Base — no API key, no subscription.
4
4
 
5
- Source: [github.com/hoolibear/agentsignal](https://github.com/hoolibear/agentsignal/tree/main/packages/mcp) (this package lives at `packages/mcp` in the AgentSignal monorepo). For the standalone desktop app that executes trades against an exchange, see [github.com/ToknWrks/trader](https://github.com/ToknWrks/trader) — a separate project.
5
+ Docs and setup guide: [agentsignal.app/ai-trading-plugin](https://agentsignal.app/ai-trading-plugin). For the standalone desktop app that executes trades against an exchange, see [github.com/hoolibear/trader](https://github.com/hoolibear/trader) — a separate project.
6
6
 
7
7
  ## Install
8
8
 
9
+ Claude Code, free tools only:
10
+
11
+ ```bash
12
+ claude mcp add agentsignal -- npx -y @agent-signal/mcp@latest
13
+ ```
14
+
15
+ Claude Code, with a wallet for paid tools:
16
+
9
17
  ```bash
10
- claude mcp add agentsignal \
11
- --command npx \
12
- --args "-y @agent-signal/mcp@latest"
18
+ claude mcp add agentsignal -e AGENT_PRIVATE_KEY=0x... -- npx -y @agent-signal/mcp@latest
13
19
  ```
14
20
 
15
- Or add it directly to your MCP client config:
21
+ Any other MCP client (Claude Desktop, Cursor, Windsurf) — add it to the client's MCP config. Leave out `env` if you only want the free tools:
16
22
 
17
23
  ```json
18
24
  {
@@ -32,10 +38,12 @@ Or add it directly to your MCP client config:
32
38
 
33
39
  | Variable | Required | Description |
34
40
  |---|---|---|
35
- | `AGENT_PRIVATE_KEY` | Only for paid tools | 0x-prefixed EVM private key, funded with USDC on Base. Used to sign x402 payments locally — never sent to AgentSignal. Free tools (`list_strategies`, `get_compass`, `get_radar`, `get_crypto_radar`, `get_signal_history`, `get_latest_report`) work without it. |
41
+ | `AGENT_PRIVATE_KEY` | Only for paid and wallet tools | 0x-prefixed EVM private key. Signs x402 payments (needs USDC on Base) and wallet-ownership proofs locally — never sent to AgentSignal. The seven free read tools (`list_strategies`, `get_compass`, `get_radar`, `get_oracle_snapshot`, `get_crypto_radar`, `get_signal_history`, `get_latest_report`) work without it. |
36
42
  | `AGENTSIGNAL_URL` | No | Override the API base URL. Defaults to `https://agentsignal.app`. |
37
43
 
38
- Without `AGENT_PRIVATE_KEY`, calling a paid tool returns an HTTP 402 error from AgentSignal rather than failing locally — you'll see the price in the error message.
44
+ Without `AGENT_PRIVATE_KEY`, a paid tool does not fail silently: it returns the exact price of the call and tells you to set the key.
45
+
46
+ Use a dedicated wallet holding a small USDC balance. The key sits in plain text in your MCP client's config file.
39
47
 
40
48
  ## Tools
41
49
 
@@ -54,23 +62,29 @@ Without `AGENT_PRIVATE_KEY`, calling a paid tool returns an HTTP 402 error from
54
62
  | `get_premium_fade_signals` | $0.10 via x402 | Premium fade options signals for a ticker. |
55
63
  | `update_premium_fade_pos` | Free (requires alpha) | Close/update a premium fade position. Wallet must hold an `alpha` subscription, proven with a signed message. |
56
64
  | `create_strategy` | Free (requires subscription) | Save a custom strategy under your wallet, proven with a signed message (not just the address). Requires an active `trader`/`alpha` subscription for that wallet — a `dabbler` wallet gets a 403 pointing at `subscribe_tier`. |
57
- | `subscribe_tier` | $9–$290 via x402 | Subscribe your wallet to `trader` ($9/mo, $90/yr — 10 saved strategies) or `alpha` ($29/mo, $290/yr — unlimited) so it can call `create_strategy`. |
65
+ | `subscribe_tier` | $9–$290 via x402 | Subscribe your wallet to `trader` ($9/mo, $90/yr — 10 saved strategies) or `alpha` ($29/mo, $290/yr — unlimited, plus `update_premium_fade_pos`) so it can call `create_strategy`. |
58
66
 
59
67
  Full parameter schemas are exposed via MCP `tools/list` — any MCP client will show them directly.
60
68
 
61
69
  ## How x402 payment works here
62
70
 
63
71
  1. A paid tool call hits an AgentSignal endpoint that requires payment.
64
- 2. This server catches the HTTP 402 response, signs an EIP-3009 USDC authorization with `AGENT_PRIVATE_KEY` via `viem`, and retries the request using `@x402/core` + `@x402/evm`.
72
+ 2. This server reads the price from the HTTP 402 response, signs an EIP-3009 USDC authorization with `AGENT_PRIVATE_KEY` via `viem`, and retries the request using `@x402/core` + `@x402/evm`.
65
73
  3. Coinbase's CDP facilitator settles the transfer on Base mainnet (`eip155:8453`). The tool call returns once payment clears — typically 1–3 seconds.
66
74
 
67
- Each tool has a hard price cap equal to its listed cost. If the server ever asks for more, the tool refuses to sign instead of paying. Free tools never sign anything. Without `AGENT_PRIVATE_KEY`, a paid tool returns the price and what to set.
75
+ Each tool has a hard price cap equal to its listed cost. If the server ever asks for more, the tool refuses to sign instead of paying. Free tools never sign anything.
68
76
 
69
77
  Your agent's model never sees or reasons about the private key or the payment flow — it just calls a tool and gets data back.
70
78
 
71
- ## How wallet ownership is proven (`create_strategy`)
79
+ ## How wallet ownership is proven (`create_strategy`, `update_premium_fade_pos`)
80
+
81
+ These two tools don't move money, but they do need to prove you actually control the wallet you're claiming — a bare address is public and proves nothing. Before the call, this server signs a short message (`AgentSignal API request|wallet:<address>|ts:<now>`) with `AGENT_PRIVATE_KEY` via `viem`'s local-account `signMessage`, and sends it as `X-Wallet-Address`/`X-Wallet-Message`/`X-Wallet-Signature` headers. AgentSignal verifies the EIP-191 signature and that the timestamp is within 5 minutes before trusting the wallet identity.
82
+
83
+ ## Changelog
72
84
 
73
- `create_strategy` doesn't move money, but it does need to prove you actually control the wallet you're claiming — a bare address is public and provable by no one. Before the call, this server signs a short message (`AgentSignal API request|wallet:<address>|ts:<now>`) with `AGENT_PRIVATE_KEY` via `viem`'s local-account `signMessage`, and sends it as `X-Wallet-Address`/`X-Wallet-Message`/`X-Wallet-Signature` headers. AgentSignal verifies the EIP-191 signature and that the timestamp is within 5 minutes before trusting the wallet identity.
85
+ - **1.5.2** — README: trader repo link now points at hoolibear/trader; removed links to the private source repo.
86
+ - **1.5.1** — README: corrected Claude Code install command.
87
+ - **1.5.0** — Paid tools work again (x402 payment flow rewritten; earlier versions failed on every call once a key was set). Per-tool price caps. `get_radar` returns RADAR instead of COMPASS. `get_compass` honours `limit`. New: `get_oracle_snapshot`, `get_growth_score`, `create_strategy`, `subscribe_tier`. `update_premium_fade_pos` now needs an alpha wallet.
74
88
 
75
89
  ## License
76
90
 
package/dist/index.js CHANGED
@@ -344,7 +344,7 @@ const tools = [
344
344
  },
345
345
  ];
346
346
  // ── Server ────────────────────────────────────────────────────────────────────
347
- const server = new Server({ name: "agentsignal", version: "1.5.0" }, { capabilities: { tools: {} } });
347
+ const server = new Server({ name: "agentsignal", version: "1.5.2" }, { capabilities: { tools: {} } });
348
348
  server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools }));
349
349
  server.setRequestHandler(CallToolRequestSchema, async (request) => {
350
350
  const { name, arguments: args } = request.params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-signal/mcp",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "MCP server for AgentSignal — live LONG/FLAT/SHORT trading signals for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -42,10 +42,5 @@
42
42
  "engines": {
43
43
  "node": ">=18"
44
44
  },
45
- "repository": {
46
- "type": "git",
47
- "url": "https://github.com/hoolibear/agentsignal.git",
48
- "directory": "packages/mcp"
49
- },
50
45
  "homepage": "https://agentsignal.app/ai-trading-plugin"
51
46
  }