@0xinsider/mcp 1.0.2 → 1.2.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 +94 -9
- package/dist/catalog.generated.d.ts +136 -0
- package/dist/catalog.generated.d.ts.map +1 -0
- package/dist/catalog.generated.js +171 -0
- package/dist/catalog.generated.js.map +1 -0
- package/dist/cli-lib.d.ts +9 -0
- package/dist/cli-lib.d.ts.map +1 -1
- package/dist/cli-lib.js +213 -69
- package/dist/cli-lib.js.map +1 -1
- package/dist/client.d.ts +6 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +30 -4
- package/dist/client.js.map +1 -1
- package/dist/constants.d.ts +2 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +25 -1
- package/dist/constants.js.map +1 -1
- package/dist/prompts/index.js +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +53 -6
- package/dist/server.js.map +1 -1
- package/dist/tools/explore-markets.d.ts +51 -0
- package/dist/tools/explore-markets.d.ts.map +1 -0
- package/dist/tools/explore-markets.js +77 -0
- package/dist/tools/explore-markets.js.map +1 -0
- package/dist/tools/get-insider-radar.js +1 -1
- package/dist/tools/get-large-positions.d.ts +28 -0
- package/dist/tools/get-large-positions.d.ts.map +1 -0
- package/dist/tools/get-large-positions.js +68 -0
- package/dist/tools/get-large-positions.js.map +1 -0
- package/dist/tools/get-position-timeline.d.ts +24 -0
- package/dist/tools/get-position-timeline.d.ts.map +1 -0
- package/dist/tools/get-position-timeline.js +79 -0
- package/dist/tools/get-position-timeline.js.map +1 -0
- package/dist/tools/get-positions.d.ts +31 -0
- package/dist/tools/get-positions.d.ts.map +1 -0
- package/dist/tools/get-positions.js +68 -0
- package/dist/tools/get-positions.js.map +1 -0
- package/dist/tools/get-trader-pnl.d.ts +6 -0
- package/dist/tools/get-trader-pnl.d.ts.map +1 -0
- package/dist/tools/get-trader-pnl.js +39 -0
- package/dist/tools/get-trader-pnl.js.map +1 -0
- package/dist/tools/get-trader.d.ts.map +1 -1
- package/dist/tools/get-trader.js +4 -3
- package/dist/tools/get-trader.js.map +1 -1
- package/dist/tools/get-trending-wallets.d.ts +18 -0
- package/dist/tools/get-trending-wallets.d.ts.map +1 -0
- package/dist/tools/get-trending-wallets.js +56 -0
- package/dist/tools/get-trending-wallets.js.map +1 -0
- package/dist/tools/get-whale-trades.d.ts.map +1 -1
- package/dist/tools/get-whale-trades.js +6 -2
- package/dist/tools/get-whale-trades.js.map +1 -1
- package/dist/tools/pick-of-the-day.d.ts +5 -0
- package/dist/tools/pick-of-the-day.d.ts.map +1 -0
- package/dist/tools/pick-of-the-day.js +74 -0
- package/dist/tools/pick-of-the-day.js.map +1 -0
- package/dist/tools/read-parity.d.ts +22 -0
- package/dist/tools/read-parity.d.ts.map +1 -0
- package/dist/tools/read-parity.js +549 -0
- package/dist/tools/read-parity.js.map +1 -0
- package/package.json +15 -7
package/README.md
CHANGED
|
@@ -1,8 +1,63 @@
|
|
|
1
1
|
# @0xinsider/mcp
|
|
2
2
|
|
|
3
|
-
MCP server for [0xinsider](https://0xinsider.com) — prediction market intelligence for AI agents.
|
|
3
|
+
Official CLI and MCP server for [0xinsider](https://0xinsider.com) — prediction market intelligence for AI agents.
|
|
4
4
|
|
|
5
|
-
Gives your AI agent access to trader grades, whale trades, smart money signals, market intelligence, and insider
|
|
5
|
+
Gives your AI agent and terminal scripts access to trader grades, whale trades, smart money signals, market intelligence, and insider-radar flags across prediction markets.
|
|
6
|
+
|
|
7
|
+
## CLI and MCP entry points
|
|
8
|
+
|
|
9
|
+
Install the official CLI globally when you want a stable terminal command:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install --global @0xinsider/mcp
|
|
13
|
+
0xinsider --help
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The package also exposes `0xinsider-mcp` as an explicit alias. Both commands
|
|
17
|
+
run the same CLI, and `npx -y @0xinsider/mcp` remains the zero-install path.
|
|
18
|
+
|
|
19
|
+
## Two ways to connect
|
|
20
|
+
|
|
21
|
+
- **Remote HTTP (no install)** — `POST https://api.0xinsider.com/api/v1/mcp` with `Authorization: Bearer oxi_sk_live_...`. Implements the MCP Streamable HTTP transport (protocolVersion `2025-11-25`). Works with MCP clients that speak HTTP and can send headers. `?token=` remains a legacy URL-only compatibility path, but prefer headers because URL secrets can leak through shell history, browser history, proxy logs, and crash reports. Remote and stdio use the same read-only public V1 tool catalog, rate limits, and billing.
|
|
22
|
+
- **Stdio (this npm package)** — run `npx -y @0xinsider/mcp` locally for Claude Code / Cursor / Codex / Gemini CLI. Best when the client can launch a child process and you prefer to keep the API key out of URLs.
|
|
23
|
+
|
|
24
|
+
<!-- generated-mcp-catalog:start -->
|
|
25
|
+
Both remote HTTP and stdio expose 33 read-only tools from the Rust canonical registry.
|
|
26
|
+
|
|
27
|
+
- `get_leaderboard` — Get Trader Leaderboard (group: traders)
|
|
28
|
+
- `get_trader` — Get Trader Intelligence (group: traders)
|
|
29
|
+
- `batch_get_traders` — Batch Trader Intelligence (group: traders)
|
|
30
|
+
- `get_whale_trades` — List Whale Trades (group: whale_activity)
|
|
31
|
+
- `get_whale_trade` — Get Whale Trade (group: whale_activity)
|
|
32
|
+
- `get_whale_trades_history` — Replay Historical Whale Trades (group: whale_activity)
|
|
33
|
+
- `get_market_intel` — Get Market Intelligence (group: markets)
|
|
34
|
+
- `batch_get_market_intel` — Batch Market Intelligence (group: markets)
|
|
35
|
+
- `get_smart_money_flows` — List Smart-Money Flows (group: markets)
|
|
36
|
+
- `get_sharp_money_flows` — List Sharp-Money Flows (group: markets)
|
|
37
|
+
- `get_market_snapshot` — Get Market Snapshot (group: markets)
|
|
38
|
+
- `get_insider_radar` — Get Insider Radar Flags (group: insider_radar)
|
|
39
|
+
- `get_insider_radar_flag` — Get Insider Radar Flag (group: insider_radar)
|
|
40
|
+
- `get_positions` — List Current Positions (group: traders)
|
|
41
|
+
- `get_position_timeline` — Get Position Timeline (group: traders)
|
|
42
|
+
- `get_position_timeline_by_id` — Get Position Timeline By Trader ID (group: traders)
|
|
43
|
+
- `search_markets` — Search Markets (group: markets)
|
|
44
|
+
- `search_content` — Search Editorial Content (group: content)
|
|
45
|
+
- `explore_markets` — Explore Markets (group: markets)
|
|
46
|
+
- `get_event_replay_since` — Replay Public Events (group: whale_activity)
|
|
47
|
+
- `list_webhooks` — List Webhook Endpoints (group: webhooks)
|
|
48
|
+
- `get_webhook` — Get Webhook Endpoint (group: webhooks)
|
|
49
|
+
- `get_daily_report_snapshot` — Get Daily Report Snapshot (group: reports)
|
|
50
|
+
- `get_weekly_report_snapshot` — Get Weekly Report Snapshot (group: reports)
|
|
51
|
+
- `get_monthly_report_snapshot` — Get Monthly Report Snapshot (group: reports)
|
|
52
|
+
- `get_report` — Get Report Snapshot (group: reports)
|
|
53
|
+
- `get_trader_export_snapshot` — Get Trader Export Snapshot (group: traders)
|
|
54
|
+
- `get_platforms` — Get Platform Capability Matrix (group: platforms)
|
|
55
|
+
- `get_large_positions` — List Large Positions (group: markets)
|
|
56
|
+
- `get_trending_wallets` — List Trending Wallets (group: traders)
|
|
57
|
+
- `get_trader_pnl` — Get Trader P&L Time Series (group: traders)
|
|
58
|
+
- `get_pick_of_the_day` — Get Pick of the Day (group: picks)
|
|
59
|
+
- `get_pick_of_the_day_archive` — Get Pick of the Day Archive (group: picks)
|
|
60
|
+
<!-- generated-mcp-catalog:end -->
|
|
6
61
|
|
|
7
62
|
## Quick Start
|
|
8
63
|
|
|
@@ -12,6 +67,8 @@ Gives your AI agent access to trader grades, whale trades, smart money signals,
|
|
|
12
67
|
npx -y @0xinsider/mcp init
|
|
13
68
|
```
|
|
14
69
|
|
|
70
|
+
`init` reads the key without echoing it. For non-interactive setup, set `OXINSIDER_API_KEY` in the process environment or pipe the key on stdin. Do not pass the key as a command-line argument.
|
|
71
|
+
|
|
15
72
|
Or manually add to `~/.claude/settings.json`:
|
|
16
73
|
|
|
17
74
|
```json
|
|
@@ -65,7 +122,7 @@ OXINSIDER_API_KEY = "oxi_sk_live_..."
|
|
|
65
122
|
|
|
66
123
|
### Gemini CLI
|
|
67
124
|
|
|
68
|
-
`npx -y @0xinsider/mcp init`
|
|
125
|
+
`npx -y @0xinsider/mcp init` detects Gemini CLI when the `gemini` command is installed and prints a manual config template.
|
|
69
126
|
|
|
70
127
|
Or add to `~/.gemini/settings.json`:
|
|
71
128
|
|
|
@@ -87,9 +144,7 @@ Or add to `~/.gemini/settings.json`:
|
|
|
87
144
|
|
|
88
145
|
Any client that supports stdio transport:
|
|
89
146
|
|
|
90
|
-
|
|
91
|
-
OXINSIDER_API_KEY=oxi_sk_live_... npx -y @0xinsider/mcp
|
|
92
|
-
```
|
|
147
|
+
Set `OXINSIDER_API_KEY` in the process environment before starting the stdio server. Do not pass the key as a command-line argument.
|
|
93
148
|
|
|
94
149
|
Need the command list? Run:
|
|
95
150
|
|
|
@@ -99,18 +154,48 @@ npx -y @0xinsider/mcp --help
|
|
|
99
154
|
|
|
100
155
|
## API Key
|
|
101
156
|
|
|
102
|
-
Get your API key at [0xinsider.com/developers](https://0xinsider.com/developers). Requires
|
|
157
|
+
Get your API key at [0xinsider.com/developers](https://0xinsider.com/developers). Requires a Pro subscription.
|
|
158
|
+
|
|
159
|
+
## Security
|
|
160
|
+
|
|
161
|
+
`init` never prints the API key. If an older version wrote the key to recorded terminal output, rotate the key before you use the new configuration.
|
|
103
162
|
|
|
104
163
|
## Tools
|
|
105
164
|
|
|
165
|
+
<!-- The `batch_get_traders` and `batch_get_market_intel` rows below are GENERATED: they
|
|
166
|
+
publish the batch item cap, which is owned by `MAX_BATCH_ITEMS` in
|
|
167
|
+
`backend/src/api_v1/handlers/batch.rs` (#8103). Do not hand-edit those two rows; a
|
|
168
|
+
`cd web && npm run generate:api-policy` run rewrites them. Every other row is written by
|
|
169
|
+
hand. Markers are not used here because an HTML comment inside a table breaks it. -->
|
|
170
|
+
|
|
106
171
|
| Tool | Description |
|
|
107
172
|
|------|-------------|
|
|
108
173
|
| `get_trader` | Look up a trader by wallet address or username — grade, P&L, win rate, strategy, quant metrics |
|
|
109
|
-
| `
|
|
174
|
+
| `batch_get_traders` | Look up 1-25 traders in one call with per-item results and batch-item quota |
|
|
175
|
+
| `get_whale_trades` | Recent large trades with signal scoring and persisted suspicion facts; filterable by size/category/grade/suspicious_only |
|
|
176
|
+
| `get_whale_trade` | Read one whale trade by wt_ ID or raw whale_alerts.id, including persisted suspicion facts |
|
|
177
|
+
| `get_whale_trades_history` | Replay historical whale trades with cursor, market, trader, category, grade, suspicious_only, platform, and time filters |
|
|
110
178
|
| `get_leaderboard` | Top-ranked traders (S/A/B grades) with optional category/strategy filters |
|
|
111
179
|
| `search_markets` | Search prediction markets by keyword |
|
|
180
|
+
| `explore_markets` | Browse whale-active markets with facets and grouped discovery entries |
|
|
112
181
|
| `get_market_intel` | Smart money flow analysis for a specific market |
|
|
113
|
-
| `
|
|
182
|
+
| `batch_get_market_intel` | Fetch market intelligence for 1-25 condition IDs in one call |
|
|
183
|
+
| `get_smart_money_flows` | Deprecated alias of `get_sharp_money_flows` (byte-identical); kept for backward compatibility |
|
|
184
|
+
| `get_sharp_money_flows` | Ranked sharp-money flow discovery across markets (timeframe, category, platform, min-grade, direction filters) |
|
|
185
|
+
| `get_market_snapshot` | Live market-card snapshot with outcomes, liquidity, sports context, and freshness state |
|
|
186
|
+
| `get_positions` | Current positions with trader, market, value, side, P&L, and freshness context |
|
|
187
|
+
| `get_position_timeline` | Per-market trader fills with running amount and average entry price |
|
|
188
|
+
| `get_position_timeline_by_id` | Per-market trader fills using an internal trader ID alias |
|
|
189
|
+
| `get_insider_radar` | Suspicious trading pattern flags |
|
|
190
|
+
| `get_insider_radar_flag` | Read one insider-radar flag by rf_ ID or raw radar_flags.id |
|
|
191
|
+
| `get_event_replay_since` | Durable public event replay after an opaque cursor |
|
|
192
|
+
| `list_webhooks` | Read webhook endpoints owned by the authenticated API-key user |
|
|
193
|
+
| `get_webhook` | Read one webhook endpoint by ID |
|
|
194
|
+
| `get_daily_report_snapshot` | Read a dated daily whale-activity report snapshot |
|
|
195
|
+
| `get_weekly_report_snapshot` | Read a weekly whale-activity report snapshot by week token or date range |
|
|
196
|
+
| `get_monthly_report_snapshot` | Read a monthly whale-activity report snapshot |
|
|
197
|
+
| `get_trader_export_snapshot` | Read trader export metadata without starting an export job |
|
|
198
|
+
| `get_platforms` | Provider capability matrix: which platforms support grade, P&L, strategy, timeline, whale signal, insider radar, and market snapshot |
|
|
114
199
|
|
|
115
200
|
## Resources
|
|
116
201
|
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
export declare const MCP_TOOL_CATALOG: readonly [{
|
|
2
|
+
readonly name: "get_leaderboard";
|
|
3
|
+
readonly title: "Get Trader Leaderboard";
|
|
4
|
+
readonly docsGroup: "traders";
|
|
5
|
+
}, {
|
|
6
|
+
readonly name: "get_trader";
|
|
7
|
+
readonly title: "Get Trader Intelligence";
|
|
8
|
+
readonly docsGroup: "traders";
|
|
9
|
+
}, {
|
|
10
|
+
readonly name: "batch_get_traders";
|
|
11
|
+
readonly title: "Batch Trader Intelligence";
|
|
12
|
+
readonly docsGroup: "traders";
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: "get_whale_trades";
|
|
15
|
+
readonly title: "List Whale Trades";
|
|
16
|
+
readonly docsGroup: "whale_activity";
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "get_whale_trade";
|
|
19
|
+
readonly title: "Get Whale Trade";
|
|
20
|
+
readonly docsGroup: "whale_activity";
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "get_whale_trades_history";
|
|
23
|
+
readonly title: "Replay Historical Whale Trades";
|
|
24
|
+
readonly docsGroup: "whale_activity";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "get_market_intel";
|
|
27
|
+
readonly title: "Get Market Intelligence";
|
|
28
|
+
readonly docsGroup: "markets";
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "batch_get_market_intel";
|
|
31
|
+
readonly title: "Batch Market Intelligence";
|
|
32
|
+
readonly docsGroup: "markets";
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "get_smart_money_flows";
|
|
35
|
+
readonly title: "List Smart-Money Flows";
|
|
36
|
+
readonly docsGroup: "markets";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "get_sharp_money_flows";
|
|
39
|
+
readonly title: "List Sharp-Money Flows";
|
|
40
|
+
readonly docsGroup: "markets";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "get_market_snapshot";
|
|
43
|
+
readonly title: "Get Market Snapshot";
|
|
44
|
+
readonly docsGroup: "markets";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "get_insider_radar";
|
|
47
|
+
readonly title: "Get Insider Radar Flags";
|
|
48
|
+
readonly docsGroup: "insider_radar";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "get_insider_radar_flag";
|
|
51
|
+
readonly title: "Get Insider Radar Flag";
|
|
52
|
+
readonly docsGroup: "insider_radar";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "get_positions";
|
|
55
|
+
readonly title: "List Current Positions";
|
|
56
|
+
readonly docsGroup: "traders";
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "get_position_timeline";
|
|
59
|
+
readonly title: "Get Position Timeline";
|
|
60
|
+
readonly docsGroup: "traders";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "get_position_timeline_by_id";
|
|
63
|
+
readonly title: "Get Position Timeline By Trader ID";
|
|
64
|
+
readonly docsGroup: "traders";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "search_markets";
|
|
67
|
+
readonly title: "Search Markets";
|
|
68
|
+
readonly docsGroup: "markets";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "search_content";
|
|
71
|
+
readonly title: "Search Editorial Content";
|
|
72
|
+
readonly docsGroup: "content";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "explore_markets";
|
|
75
|
+
readonly title: "Explore Markets";
|
|
76
|
+
readonly docsGroup: "markets";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "get_event_replay_since";
|
|
79
|
+
readonly title: "Replay Public Events";
|
|
80
|
+
readonly docsGroup: "whale_activity";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "list_webhooks";
|
|
83
|
+
readonly title: "List Webhook Endpoints";
|
|
84
|
+
readonly docsGroup: "webhooks";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "get_webhook";
|
|
87
|
+
readonly title: "Get Webhook Endpoint";
|
|
88
|
+
readonly docsGroup: "webhooks";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "get_daily_report_snapshot";
|
|
91
|
+
readonly title: "Get Daily Report Snapshot";
|
|
92
|
+
readonly docsGroup: "reports";
|
|
93
|
+
}, {
|
|
94
|
+
readonly name: "get_weekly_report_snapshot";
|
|
95
|
+
readonly title: "Get Weekly Report Snapshot";
|
|
96
|
+
readonly docsGroup: "reports";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "get_monthly_report_snapshot";
|
|
99
|
+
readonly title: "Get Monthly Report Snapshot";
|
|
100
|
+
readonly docsGroup: "reports";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "get_report";
|
|
103
|
+
readonly title: "Get Report Snapshot";
|
|
104
|
+
readonly docsGroup: "reports";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "get_trader_export_snapshot";
|
|
107
|
+
readonly title: "Get Trader Export Snapshot";
|
|
108
|
+
readonly docsGroup: "traders";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "get_platforms";
|
|
111
|
+
readonly title: "Get Platform Capability Matrix";
|
|
112
|
+
readonly docsGroup: "platforms";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "get_large_positions";
|
|
115
|
+
readonly title: "List Large Positions";
|
|
116
|
+
readonly docsGroup: "markets";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "get_trending_wallets";
|
|
119
|
+
readonly title: "List Trending Wallets";
|
|
120
|
+
readonly docsGroup: "traders";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "get_trader_pnl";
|
|
123
|
+
readonly title: "Get Trader P&L Time Series";
|
|
124
|
+
readonly docsGroup: "traders";
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "get_pick_of_the_day";
|
|
127
|
+
readonly title: "Get Pick of the Day";
|
|
128
|
+
readonly docsGroup: "picks";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "get_pick_of_the_day_archive";
|
|
131
|
+
readonly title: "Get Pick of the Day Archive";
|
|
132
|
+
readonly docsGroup: "picks";
|
|
133
|
+
}];
|
|
134
|
+
export type McpToolName = (typeof MCP_TOOL_CATALOG)[number]["name"];
|
|
135
|
+
export declare const MCP_TOOL_NAME_ENUM: readonly McpToolName[];
|
|
136
|
+
//# sourceMappingURL=catalog.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.generated.d.ts","sourceRoot":"","sources":["../src/catalog.generated.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsKnB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,eAAO,MAAM,kBAAkB,EAAE,SAAS,WAAW,EAEpD,CAAC"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// THIS FILE IS GENERATED. Do not edit it directly.
|
|
2
|
+
// Source: backend/src/mcp/tools/contract.rs; run node scripts/generate-mcp-catalog.mjs.
|
|
3
|
+
export const MCP_TOOL_CATALOG = [
|
|
4
|
+
{
|
|
5
|
+
"name": "get_leaderboard",
|
|
6
|
+
"title": "Get Trader Leaderboard",
|
|
7
|
+
"docsGroup": "traders"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"name": "get_trader",
|
|
11
|
+
"title": "Get Trader Intelligence",
|
|
12
|
+
"docsGroup": "traders"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "batch_get_traders",
|
|
16
|
+
"title": "Batch Trader Intelligence",
|
|
17
|
+
"docsGroup": "traders"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "get_whale_trades",
|
|
21
|
+
"title": "List Whale Trades",
|
|
22
|
+
"docsGroup": "whale_activity"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "get_whale_trade",
|
|
26
|
+
"title": "Get Whale Trade",
|
|
27
|
+
"docsGroup": "whale_activity"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "get_whale_trades_history",
|
|
31
|
+
"title": "Replay Historical Whale Trades",
|
|
32
|
+
"docsGroup": "whale_activity"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "get_market_intel",
|
|
36
|
+
"title": "Get Market Intelligence",
|
|
37
|
+
"docsGroup": "markets"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "batch_get_market_intel",
|
|
41
|
+
"title": "Batch Market Intelligence",
|
|
42
|
+
"docsGroup": "markets"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "get_smart_money_flows",
|
|
46
|
+
"title": "List Smart-Money Flows",
|
|
47
|
+
"docsGroup": "markets"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "get_sharp_money_flows",
|
|
51
|
+
"title": "List Sharp-Money Flows",
|
|
52
|
+
"docsGroup": "markets"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "get_market_snapshot",
|
|
56
|
+
"title": "Get Market Snapshot",
|
|
57
|
+
"docsGroup": "markets"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "get_insider_radar",
|
|
61
|
+
"title": "Get Insider Radar Flags",
|
|
62
|
+
"docsGroup": "insider_radar"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "get_insider_radar_flag",
|
|
66
|
+
"title": "Get Insider Radar Flag",
|
|
67
|
+
"docsGroup": "insider_radar"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "get_positions",
|
|
71
|
+
"title": "List Current Positions",
|
|
72
|
+
"docsGroup": "traders"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "get_position_timeline",
|
|
76
|
+
"title": "Get Position Timeline",
|
|
77
|
+
"docsGroup": "traders"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "get_position_timeline_by_id",
|
|
81
|
+
"title": "Get Position Timeline By Trader ID",
|
|
82
|
+
"docsGroup": "traders"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "search_markets",
|
|
86
|
+
"title": "Search Markets",
|
|
87
|
+
"docsGroup": "markets"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "search_content",
|
|
91
|
+
"title": "Search Editorial Content",
|
|
92
|
+
"docsGroup": "content"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "explore_markets",
|
|
96
|
+
"title": "Explore Markets",
|
|
97
|
+
"docsGroup": "markets"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "get_event_replay_since",
|
|
101
|
+
"title": "Replay Public Events",
|
|
102
|
+
"docsGroup": "whale_activity"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "list_webhooks",
|
|
106
|
+
"title": "List Webhook Endpoints",
|
|
107
|
+
"docsGroup": "webhooks"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "get_webhook",
|
|
111
|
+
"title": "Get Webhook Endpoint",
|
|
112
|
+
"docsGroup": "webhooks"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "get_daily_report_snapshot",
|
|
116
|
+
"title": "Get Daily Report Snapshot",
|
|
117
|
+
"docsGroup": "reports"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "get_weekly_report_snapshot",
|
|
121
|
+
"title": "Get Weekly Report Snapshot",
|
|
122
|
+
"docsGroup": "reports"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "get_monthly_report_snapshot",
|
|
126
|
+
"title": "Get Monthly Report Snapshot",
|
|
127
|
+
"docsGroup": "reports"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "get_report",
|
|
131
|
+
"title": "Get Report Snapshot",
|
|
132
|
+
"docsGroup": "reports"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "get_trader_export_snapshot",
|
|
136
|
+
"title": "Get Trader Export Snapshot",
|
|
137
|
+
"docsGroup": "traders"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "get_platforms",
|
|
141
|
+
"title": "Get Platform Capability Matrix",
|
|
142
|
+
"docsGroup": "platforms"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "get_large_positions",
|
|
146
|
+
"title": "List Large Positions",
|
|
147
|
+
"docsGroup": "markets"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "get_trending_wallets",
|
|
151
|
+
"title": "List Trending Wallets",
|
|
152
|
+
"docsGroup": "traders"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "get_trader_pnl",
|
|
156
|
+
"title": "Get Trader P&L Time Series",
|
|
157
|
+
"docsGroup": "traders"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "get_pick_of_the_day",
|
|
161
|
+
"title": "Get Pick of the Day",
|
|
162
|
+
"docsGroup": "picks"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "get_pick_of_the_day_archive",
|
|
166
|
+
"title": "Get Pick of the Day Archive",
|
|
167
|
+
"docsGroup": "picks"
|
|
168
|
+
}
|
|
169
|
+
];
|
|
170
|
+
export const MCP_TOOL_NAME_ENUM = MCP_TOOL_CATALOG.map((tool) => tool.name);
|
|
171
|
+
//# sourceMappingURL=catalog.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.generated.js","sourceRoot":"","sources":["../src/catalog.generated.ts"],"names":[],"mappings":"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"}
|
package/dist/cli-lib.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export type Environment = {
|
|
|
4
4
|
type: EnvironmentType;
|
|
5
5
|
configPath: string;
|
|
6
6
|
};
|
|
7
|
+
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
8
|
+
[key: string]: JsonValue;
|
|
9
|
+
};
|
|
7
10
|
type McpConfig = {
|
|
8
11
|
command: string;
|
|
9
12
|
args: string[];
|
|
@@ -11,8 +14,14 @@ type McpConfig = {
|
|
|
11
14
|
};
|
|
12
15
|
export declare function buildMcpConfig(apiKey: string): McpConfig;
|
|
13
16
|
export declare function formatCodexToml(apiKey: string): string;
|
|
17
|
+
export declare function buildMcpConfigTemplate(): McpConfig;
|
|
18
|
+
export declare function formatCodexTomlTemplate(): string;
|
|
14
19
|
export declare function resolveCliCommand(args: readonly string[]): CliCommand;
|
|
15
20
|
export declare function detectEnvironments(home?: string): Environment[];
|
|
21
|
+
export declare function readJsonFile(path: string): Record<string, JsonValue>;
|
|
22
|
+
export declare function writeJsonFile(path: string, data: Record<string, JsonValue>): void;
|
|
23
|
+
export declare function addJsonMcpServer(configPath: string, apiKey: string): void;
|
|
24
|
+
export declare function addCodexMcpServer(configPath: string, apiKey: string): void;
|
|
16
25
|
export declare function runCli(args: readonly string[]): Promise<void>;
|
|
17
26
|
export {};
|
|
18
27
|
//# sourceMappingURL=cli-lib.d.ts.map
|
package/dist/cli-lib.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-lib.d.ts","sourceRoot":"","sources":["../src/cli-lib.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli-lib.d.ts","sourceRoot":"","sources":["../src/cli-lib.ts"],"names":[],"mappings":"AAoBA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AACnD,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;AAEhF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,eAAe,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAE/F,KAAK,SAAS,GAAG;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B,CAAC;AASF,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAQxD;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAQtD;AAED,wBAAgB,sBAAsB,IAAI,SAAS,CAElD;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAOD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,CAarE;AAyLD,wBAAgB,kBAAkB,CAChC,IAAI,SAAoD,GACvD,WAAW,EAAE,CAwBf;AAiCD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAYpE;AAWD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,CAEjF;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CASzE;AA2CD,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAM1E;AA6CD,wBAAsB,MAAM,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBnE"}
|