felix-mcp 2.0.110 → 2.0.123
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 +315 -30
- package/THIRD_PARTY_NOTICES.md +5 -0
- package/dist/agent-ops-guide.js +172 -2
- package/dist/arc-hl-return-ports.js +353 -0
- package/dist/arc-hl-return.js +1545 -0
- package/dist/arc-home.js +1168 -0
- package/dist/arc-pm-return.js +834 -0
- package/dist/arc-settlement.js +682 -0
- package/dist/funding.js +843 -48
- package/dist/getting-started-guide.js +133 -23
- package/dist/http-rate-subject.js +164 -0
- package/dist/http-server.js +151 -71
- package/dist/index.js +6660 -599
- package/dist/key-backup.js +46 -8
- package/dist/legal.js +1 -1
- package/dist/money-journal-identity.js +63 -6
- package/dist/polymarket.js +12 -4
- package/dist/redact-output.js +80 -0
- package/dist/safe-error.js +2 -1
- package/dist/strategy-guide.js +18 -8
- package/package.json +43 -8
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -7,46 +7,112 @@
|
|
|
7
7
|
Non-custodial trading tools for AI agents across Hyperliquid, Polymarket, and
|
|
8
8
|
Derive. Live execution is the default; paper mode must be selected explicitly.
|
|
9
9
|
|
|
10
|
+
Package version: `felix-mcp@2.0.123`. For prepublication review, use the local
|
|
11
|
+
tarball below. Packaging checks do not certify live money workflows.
|
|
12
|
+
|
|
10
13
|
## Install
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
### 1. Install
|
|
16
|
+
|
|
17
|
+
Requires Node.js 20.10 or newer and npm. Guided key setup currently requires
|
|
18
|
+
macOS with an accessible Keychain. Other operating systems can run the server,
|
|
19
|
+
but the guided local custody quickstart below is macOS-only.
|
|
20
|
+
|
|
21
|
+
From a checkout of this candidate, build and install the local package:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
node --version
|
|
25
|
+
npm ci
|
|
26
|
+
candidate_dir="$(mktemp -d)"
|
|
27
|
+
npm pack --pack-destination "$candidate_dir"
|
|
28
|
+
npm install --global "$candidate_dir/felix-mcp-2.0.123.tgz"
|
|
29
|
+
felix-keys --help
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
After the operator publishes this version, the registry installation is:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install --global felix-mcp@2.0.123
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 2. Set up keys locally
|
|
39
|
+
|
|
40
|
+
Review [Felix's terms](https://felix.trade/legal), then run:
|
|
15
41
|
|
|
16
42
|
```bash
|
|
17
|
-
|
|
43
|
+
felix-keys onboard --accept-terms --client none
|
|
18
44
|
```
|
|
19
45
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
46
|
+
This registers a launcher identity and creates an authenticated encrypted backup;
|
|
47
|
+
it does not fund an account or place an order. `--client none` leaves client
|
|
48
|
+
configuration to step 3, so the local candidate never needs an npm download.
|
|
49
|
+
The command checks the active Node runtime before writing credentials and can
|
|
50
|
+
be rerun after interruption to reuse a matching identity and backup.
|
|
23
51
|
|
|
24
|
-
|
|
25
|
-
flow. The owner key, launcher key, and a generated high-entropy backup recovery
|
|
52
|
+
The owner key, launcher key, and a generated high-entropy backup recovery
|
|
26
53
|
code are stored directly in macOS Keychain and are never printed or returned to
|
|
27
54
|
the MCP client. The encrypted backup is created and authenticated automatically.
|
|
28
55
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
56
|
+
If restoring an existing funded identity, use
|
|
57
|
+
`felix-keys restore --input /absolute/path/to/felix-custody-backup.json` instead
|
|
58
|
+
of creating a new owner. For an existing matching owner/launcher pair, the
|
|
59
|
+
interactive `felix-keys setup` and `felix-keys set-api-key` commands accept keys
|
|
60
|
+
through hidden native dialogs; never pass them as command arguments. Run
|
|
61
|
+
onboarding afterward to verify registration and create the matching backup.
|
|
33
62
|
|
|
34
|
-
|
|
35
|
-
|
|
63
|
+
### 3. Connect Claude or Cursor
|
|
64
|
+
|
|
65
|
+
Find the installed executable and active Node paths:
|
|
36
66
|
|
|
37
|
-
|
|
67
|
+
```bash
|
|
68
|
+
command -v felix-mcp
|
|
69
|
+
command -v node
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
For [Claude Code](https://code.claude.com/docs/en/mcp), register the absolute
|
|
73
|
+
executable path returned above (replace the example path):
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
claude mcp add --transport stdio --scope user felix -- /absolute/path/to/felix-mcp
|
|
77
|
+
claude mcp get felix
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
For Claude Desktop, merge the following entry into
|
|
81
|
+
`~/Library/Application Support/Claude/claude_desktop_config.json`. For
|
|
82
|
+
[Cursor](https://cursor.com/docs/mcp), merge it into `~/.cursor/mcp.json`
|
|
83
|
+
(global) or `.cursor/mcp.json` (project). Preserve any existing server entries.
|
|
84
|
+
Replace both example paths with the values from `command -v`:
|
|
38
85
|
|
|
39
86
|
```json
|
|
40
87
|
{
|
|
41
88
|
"mcpServers": {
|
|
42
89
|
"felix": {
|
|
43
|
-
"command": "
|
|
44
|
-
"args": ["
|
|
90
|
+
"command": "/absolute/path/to/node",
|
|
91
|
+
"args": ["/absolute/path/to/felix-mcp"]
|
|
45
92
|
}
|
|
46
93
|
}
|
|
47
94
|
}
|
|
48
95
|
```
|
|
49
96
|
|
|
97
|
+
Using an absolute Node path also works when a desktop app does not inherit
|
|
98
|
+
your terminal's Node version manager. Run the client as the same macOS user
|
|
99
|
+
who completed key setup; the server loads credentials directly from Keychain.
|
|
100
|
+
No credential belongs in the client JSON.
|
|
101
|
+
|
|
102
|
+
### 4. Verify the connection without moving money
|
|
103
|
+
|
|
104
|
+
Restart or reconnect the MCP client, then ask it to call `get_status` and
|
|
105
|
+
require `mcp.compatibility.compatible: true`. The same block reports
|
|
106
|
+
`current_mcp_version` and the API's `minimum_mcp_version`; an older client can
|
|
107
|
+
still read, but money and policy changes are refused until it is updated. Call
|
|
108
|
+
`get_custody_recovery_status` and require `ready: true`. Read
|
|
109
|
+
`felix://getting-started` to confirm resources are available. These checks
|
|
110
|
+
complete the quickstart without creating a funded trading account; no
|
|
111
|
+
credential or recovery material is returned.
|
|
112
|
+
|
|
113
|
+
Claude Code requires one human action: open `/permissions` and allow the
|
|
114
|
+
`mcp__felix` tool namespace. Felix cannot grant that permission itself.
|
|
115
|
+
|
|
50
116
|
Never put an API key, owner key, seed phrase, signature, or signed transaction
|
|
51
117
|
in a prompt, tool argument, URL, source file, log, or committed configuration.
|
|
52
118
|
|
|
@@ -57,7 +123,7 @@ Read `felix://getting-started`, review <https://felix.trade/legal>, then call:
|
|
|
57
123
|
```text
|
|
58
124
|
create_account(
|
|
59
125
|
accept_terms=true,
|
|
60
|
-
legal_version="2026-
|
|
126
|
+
legal_version="2026-10-11",
|
|
61
127
|
idempotency_key="primary-live-account"
|
|
62
128
|
)
|
|
63
129
|
```
|
|
@@ -69,8 +135,10 @@ Account creation is funded-first:
|
|
|
69
135
|
2. Send at least the returned minimum, currently $5, using one of the exact
|
|
70
136
|
accepted stablecoins in the response.
|
|
71
137
|
3. After confirmation, retry `create_account` with the same idempotency key.
|
|
72
|
-
4. Felix verifies the owner-controlled
|
|
73
|
-
stores the least-privilege child credential
|
|
138
|
+
4. Felix verifies the owner-controlled Polygon wallet and Arc home Safe/module,
|
|
139
|
+
enables supported venues, stores the least-privilege child credential
|
|
140
|
+
locally, and activates it. If Arc verification is pending or unavailable,
|
|
141
|
+
retry the same key; no live credential is activated.
|
|
74
142
|
|
|
75
143
|
Activation normally takes 60-120 seconds but can take longer when a venue is
|
|
76
144
|
settling. Keep the call open. If it is interrupted, retry the exact same request
|
|
@@ -83,16 +151,95 @@ get_status()
|
|
|
83
151
|
get_money_map()
|
|
84
152
|
search_markets(q="bitcoin")
|
|
85
153
|
preview_order(instrument="crypto:BTC", side="long", size_usd=25, auto_fund=true)
|
|
154
|
+
preview_execution_route(objective="directional", instrument="BTC", side="long", size_usd=25)
|
|
86
155
|
place_order(instrument="crypto:BTC", side="long", size_usd=25, auto_fund=true)
|
|
87
156
|
get_situation()
|
|
88
157
|
```
|
|
89
158
|
|
|
159
|
+
For combined-book controls, call `get_portfolio_risk` before
|
|
160
|
+
`preview_portfolio_hedge`, `preview_derive_greek_hedge`, `preview_portfolio_stress`,
|
|
161
|
+
`preview_historical_portfolio_risk`, `preview_covariance_risk_trim`, or
|
|
162
|
+
`preview_fleet_capacity` and `preview_fleet_reallocation`. The reallocation
|
|
163
|
+
preview requires an explicit total and exact owner-selected weights, orders
|
|
164
|
+
live exposure reductions before budget changes, and never derives live weights
|
|
165
|
+
from backtest returns. After pausing every agent whose ceiling will change, call
|
|
166
|
+
`apply_fleet_reallocation` with the reviewed policy version, exact weights,
|
|
167
|
+
target, and a stable idempotency key. The apply step updates all eligible budget
|
|
168
|
+
ceilings in one database transaction; it does not resume an agent, move money,
|
|
169
|
+
fund a venue, change a position, or place an order. Use
|
|
170
|
+
`get_execution_quality` for bounded agent decision/outcome and runtime-latency
|
|
171
|
+
evidence. These are read-only decision tools; execution still requires fresh
|
|
172
|
+
`preview_order` and `preview_portfolio_order` checks followed by a separately
|
|
173
|
+
authorized order.
|
|
174
|
+
|
|
90
175
|
Paper is optional and explicit:
|
|
91
176
|
|
|
92
177
|
```text
|
|
93
|
-
derive_api_key(paper=true, accept_terms=true, legal_version="2026-
|
|
178
|
+
derive_api_key(paper=true, accept_terms=true, legal_version="2026-10-11")
|
|
94
179
|
```
|
|
95
180
|
|
|
181
|
+
## Arc settlement
|
|
182
|
+
|
|
183
|
+
Felix can settle an account on Arc in its owner-controlled Arc home Safe. Read the
|
|
184
|
+
account's reported home rather than assuming every account uses Arc.
|
|
185
|
+
|
|
186
|
+
- `get_deposit_address` returns `home_chain` (`arc` or `polygon`). Its top-level
|
|
187
|
+
`address` is the Polygon owner wallet. When Arc settlement is active, the
|
|
188
|
+
`arc.address` is the verified Arc home Safe; before verification it is `null`
|
|
189
|
+
with `onboarding_required: true`. Send Arc USDC only to that verified Safe.
|
|
190
|
+
If `arc.admission_frozen` is true, do not start a new Arc deposit; the address
|
|
191
|
+
stays visible only so existing transfers can be verified and recovered.
|
|
192
|
+
- `get_money_map` reports `settlement_home.home_cash_location` as
|
|
193
|
+
`arc_home_safe` or `owner_wallet_polygon`. Arc locations include
|
|
194
|
+
`arc_home_safe`, `arc_home_safe_gateway_balance`, `owner_wallet_arc`, and
|
|
195
|
+
`arc_settlement_in_transit`. The Arc owner wallet is not the Arc home Safe.
|
|
196
|
+
- A new account's first `create_account` call uses a Polygon deposit address.
|
|
197
|
+
The same workflow now completes owner-signed Arc-home onboarding before
|
|
198
|
+
issuing a live key. Fresh-account Arc activation has not yet passed a live
|
|
199
|
+
end-to-end canary, so this held release is not launch-certified. If
|
|
200
|
+
`arc.onboarding_required` is true, do not send funds on Arc; retry the same
|
|
201
|
+
account-creation key or contact support.
|
|
202
|
+
- `fund_market` spends USDC from the Polygon owner wallet, not from the Arc
|
|
203
|
+
home Safe; Polygon USDC deposits still count as spendable cash. Funding
|
|
204
|
+
Polymarket or Hyperliquid from Arc home funds has not passed a live canary on
|
|
205
|
+
this release, and owner-wallet venue funding on an account with an active Arc
|
|
206
|
+
home has not been re-certified live on it either. Derive funding and venue
|
|
207
|
+
returns are not supported in this release.
|
|
208
|
+
- Arc transfers (`prepare_arc_transfer`, `submit_arc_transfer`) are not yet
|
|
209
|
+
certified end to end. Do not start one just to fund a venue. For a transfer
|
|
210
|
+
already started, keep its operation ID and key and follow
|
|
211
|
+
`get_money_operation`.
|
|
212
|
+
- `start_arc_home_hl_return` (Hyperliquid to Arc home) is refused by the server
|
|
213
|
+
in this release, and the refusal moves no money. Returns that have already
|
|
214
|
+
started can still be recovered with their original operation ID and key.
|
|
215
|
+
- Arc home money tools move USDC in and out of the verified Arc home Safe. Each
|
|
216
|
+
is one resumable, owner-signed call with a required `idempotency_key`; the
|
|
217
|
+
client verifies every SafeTx, burn intent and source call against the exact
|
|
218
|
+
request before it signs, and refuses without a signature on any mismatch.
|
|
219
|
+
None of them has passed a live canary on this release.
|
|
220
|
+
- `arc_home_withdraw`: to the owner's own address on `arc`, `base`,
|
|
221
|
+
`polygon`, `arbitrum` or `ethereum`, or to an address allowlisted for
|
|
222
|
+
that chain (`add_withdrawal_address` allowlists Polygon). `chain=arc` has
|
|
223
|
+
no Circle fee; other chains pay an owner-approved Gateway fee ceiling
|
|
224
|
+
(`max_fee_usd`, default 0.05) plus destination mint gas.
|
|
225
|
+
- `arc_home_deposit`: owner USDC on another chain into the Arc home Safe.
|
|
226
|
+
Felix tops up only the shortfall in the owner's Gateway balance, broadcast
|
|
227
|
+
by the owner through your own `FELIX_<CHAIN>_RPC_URL`.
|
|
228
|
+
- `arc_home_fund_venue`: Polymarket only. It stages native USDC in the
|
|
229
|
+
owner's Polygon wallet and returns `venue_funded: false` with a
|
|
230
|
+
`fund_market(venue=prediction_market)` next step; it does not by itself
|
|
231
|
+
fund Polymarket. Hyperliquid and Derive are refused before anything is
|
|
232
|
+
prepared.
|
|
233
|
+
- Recovery: `get_arc_home_operation` (read), `reconcile_arc_home_operation`,
|
|
234
|
+
and `report_arc_home_mint` for a destination mint you broadcast yourself.
|
|
235
|
+
Retry the original tool with the same `idempotency_key`; never start a
|
|
236
|
+
second operation for the same intent. `arc_home_receipt_unknown` means an
|
|
237
|
+
owner transaction was already signed but has no confirmed receipt yet:
|
|
238
|
+
wait, then reconcile or retry with the same key; nothing is signed again.
|
|
239
|
+
- Cross-chain mints are paid by the recipient. The client broadcasts one
|
|
240
|
+
only into the owner's own address and only when that chain's owner RPC is
|
|
241
|
+
configured; otherwise it returns the `mint_call` for you to broadcast.
|
|
242
|
+
|
|
96
243
|
## Custody
|
|
97
244
|
|
|
98
245
|
- The root owner key is created and retained in the local OS credential store.
|
|
@@ -177,6 +324,9 @@ symbol formats.
|
|
|
177
324
|
1. Call `preview_order`. It moves no money and reports executability, venue
|
|
178
325
|
minimums, collateral, leverage, liquidity, fees, funding requirements, and
|
|
179
326
|
expected duration.
|
|
327
|
+
To compare compatible live expressions first, call `preview_execution_route`.
|
|
328
|
+
It fails closed on unknown costs and never equates event contracts or options
|
|
329
|
+
with linear spot/perpetual exposure.
|
|
180
330
|
2. Correct every `constraint_violation` before execution.
|
|
181
331
|
3. Call `place_order` with the same intent. Use a stable idempotency key when
|
|
182
332
|
the tool accepts one.
|
|
@@ -201,15 +351,64 @@ Filled orders return `position_id`. Use it with `close_position`. Use
|
|
|
201
351
|
freshness, unavailable sources, reserved balances, and whether the total is
|
|
202
352
|
partial. Never interpret unavailable as zero.
|
|
203
353
|
|
|
354
|
+
**Release hold:** venue-to-owner returns are not certified end to end for this
|
|
355
|
+
candidate. Do not start a new `bring_home` or `start_bring_home` operation based
|
|
356
|
+
on a preview alone. A withdrawal can reach an intermediate owner wallet before
|
|
357
|
+
the final bridge fails. For an operation already started, retain its original
|
|
358
|
+
ID, key, and transaction hashes; inspect `get_money_operation` and follow its
|
|
359
|
+
recovery instructions. Never create a new-key return to work around an
|
|
360
|
+
uncertain result. External `withdraw` uses funds already in an owner wallet or
|
|
361
|
+
Safe; it does not retrieve venue balances.
|
|
362
|
+
|
|
363
|
+
| Money action | Status in this candidate |
|
|
364
|
+
| --- | --- |
|
|
365
|
+
| Fund Polymarket or Hyperliquid from the Polygon owner wallet | End-to-end live evidence on earlier builds |
|
|
366
|
+
| Fund Polymarket or Hyperliquid from Arc home funds | Not certified on this candidate; `arc_home_fund_venue` stages Polymarket only |
|
|
367
|
+
| Arc home Safe withdrawal or deposit (`arc_home_withdraw`, `arc_home_deposit`) | Not certified on this candidate |
|
|
368
|
+
| Fund Derive | Not certified; do not start a new operation |
|
|
369
|
+
| Return from any venue | Not certified; do not start a new operation |
|
|
370
|
+
| Withdraw owner-wallet or Safe funds to an approved address | Available; does not pull funds from a venue |
|
|
371
|
+
| Arc transfer between Gateway domains | Not certified; recover existing operations only |
|
|
372
|
+
| Direct venue-to-venue movement | Not certified |
|
|
373
|
+
|
|
374
|
+
An unsupported action is not necessarily blocked by the current API. This
|
|
375
|
+
table is a safety boundary for this candidate, not a claim that the server
|
|
376
|
+
always refuses before movement.
|
|
377
|
+
|
|
204
378
|
Use:
|
|
205
379
|
|
|
206
|
-
- `
|
|
207
|
-
|
|
380
|
+
- `preview_funding_route`: read-only Polygon-to-Hyperliquid Relay quote with
|
|
381
|
+
expected destination credit, total cost, and duration. With `venue=options`
|
|
382
|
+
(or `derive`) it may describe a Derive-chain USDC, Arbitrum USDC, or Polygon
|
|
383
|
+
USDC.e path. A quote, including `executable=true`, does not authorize Derive
|
|
384
|
+
funding in this release. A quote that cannot execute includes a
|
|
385
|
+
`non_executable_reason`.
|
|
386
|
+
- `preview_return_route`: read-only Hyperliquid-to-Polygon Relay quote with
|
|
387
|
+
verified withdrawable balance, mandate-reserved collateral, expected owner
|
|
388
|
+
wallet credit, total cost, and duration.
|
|
389
|
+
- `fund_market` or `start_fund_market`: owner wallet to a currently certified
|
|
390
|
+
venue (Polymarket or Hyperliquid in this candidate; not Derive).
|
|
391
|
+
- `bring_home` or `start_bring_home`: venue-to-owner return tools; held pending
|
|
392
|
+
end-to-end certification as described above.
|
|
393
|
+
- `prepare_arc_transfer`, `submit_arc_transfer`, `get_arc_transfer`: owner-signed
|
|
394
|
+
Circle Gateway USDC transfers between Gateway domains (Arc and the venue
|
|
395
|
+
chains) through Felix Arc settlement. Prepare returns the exact payloads;
|
|
396
|
+
submit signs and broadcasts locally through the journey-scoped relay and
|
|
397
|
+
runs as an asynchronous money operation.
|
|
398
|
+
- `arc_home_withdraw`, `arc_home_deposit`, `arc_home_fund_venue`: owner-signed
|
|
399
|
+
Arc home Safe money paths (see Arc settlement above). Recover them with
|
|
400
|
+
`get_arc_home_operation`, `reconcile_arc_home_operation`, and
|
|
401
|
+
`report_arc_home_mint`.
|
|
208
402
|
- `get_money_operation`: inspect an asynchronous money workflow.
|
|
209
403
|
- `wait_for_operation`: wait without repeated polling.
|
|
210
404
|
- `list_recent_operations`: recover locally journaled operations after restart.
|
|
211
405
|
- `withdraw`: move funds to an owner-approved external address.
|
|
212
406
|
|
|
407
|
+
Preview calls do not reserve liquidity, create operations, request signatures,
|
|
408
|
+
or move money. Quotes expire. Review the current quote, then start the separate
|
|
409
|
+
owner-signed workflow; the execution path performs fresh validation and may
|
|
410
|
+
reject if balances, collateral, provider availability, or economics changed.
|
|
411
|
+
|
|
213
412
|
Cross-chain movement can take several minutes. Prefer the asynchronous tools,
|
|
214
413
|
persist the returned operation ID, and follow these rules:
|
|
215
414
|
|
|
@@ -274,11 +473,40 @@ Read these resources before authoring:
|
|
|
274
473
|
The normal sequence is:
|
|
275
474
|
|
|
276
475
|
```text
|
|
277
|
-
|
|
476
|
+
generate from plain words -> backtest by strategy_id -> inspect validity and costs -> deploy -> monitor
|
|
278
477
|
```
|
|
279
478
|
|
|
280
|
-
`generate_strategy`
|
|
281
|
-
|
|
479
|
+
`generate_strategy` returns an owned `strategy_id` for `backtest` and
|
|
480
|
+
`deploy_agent`. Source in its response and the bundled reference examples is
|
|
481
|
+
for display only. The engine refuses user-supplied code, including source copied
|
|
482
|
+
from a generation response. Each walk-forward variant also takes a `strategy_id`.
|
|
483
|
+
`walk_forward_backtest` compares two to four explicit variants with anchored
|
|
484
|
+
training and untouched cold-start holdouts before deployment. It requires one
|
|
485
|
+
stable idempotency key and explicit fee/slippage assumptions, and never moves
|
|
486
|
+
money.
|
|
487
|
+
|
|
488
|
+
For an existing saved agent, use `review_agent_strategy_revision` before
|
|
489
|
+
replacing its logic. Felix loads the current strategy without returning its
|
|
490
|
+
source, evaluates current and candidate code on one shared dataset with fresh
|
|
491
|
+
state for both development and chronological holdout phases, and returns exact
|
|
492
|
+
strategy hashes, costs, evidence completeness, and holdout deltas. The review
|
|
493
|
+
never changes or resumes the agent. Promotion always requires a later explicit
|
|
494
|
+
`update_agent(strategy_id=...)` call while the agent is stopped and flat.
|
|
495
|
+
|
|
496
|
+
`backtest_sensitivity` keeps strategy code fixed while varying two to eight
|
|
497
|
+
explicit history, capital, fee, and slippage scenarios on one shared price
|
|
498
|
+
dataset. Overlapping windows are diagnostics, not out-of-sample evidence. Use a
|
|
499
|
+
stable idempotency key. Incomplete history, live-only inputs that were not
|
|
500
|
+
replayed, degraded or short execution, too few trades, or any non-positive
|
|
501
|
+
scenario force `robust:false`.
|
|
502
|
+
|
|
503
|
+
`portfolio_backtest` replays two to six caller-owned saved agents with explicit
|
|
504
|
+
weights totaling 10,000 basis points. It reports combined full-period and
|
|
505
|
+
chronological holdout equity, costs, attribution, correlation, and covariance.
|
|
506
|
+
Capital remains in independent fixed sleeves: Felix does not assume shared
|
|
507
|
+
margin, cross-venue netting, capital reuse, market impact, or future returns.
|
|
508
|
+
The holdout is independently out-of-sample only when the strategies were frozen
|
|
509
|
+
before that window was inspected. The tool never changes agents or moves money.
|
|
282
510
|
|
|
283
511
|
Backtesting never deploys an agent or moves money. Results identify data source,
|
|
284
512
|
methodology, cost assumptions, and historical validity. A degraded result is not
|
|
@@ -287,7 +515,12 @@ evidence of live performance.
|
|
|
287
515
|
`deploy_agent` requires an explicit budget and one to four authorized markets.
|
|
288
516
|
Paper mode must be explicit. Use `get_situation`, `agent_status`,
|
|
289
517
|
`get_agent_log`, and `wait_for_events` to operate the fleet. Stop an agent before
|
|
290
|
-
changing it with `update_agent`; review current positions before resuming.
|
|
518
|
+
changing it with `update_agent`; review current positions before resuming. To
|
|
519
|
+
replace logic without losing the agent UUID or history, stop the agent, prove its
|
|
520
|
+
position book is flat, compare the generated candidate using
|
|
521
|
+
`review_agent_strategy_revision(candidate_strategy_id=...)`, pass the reviewed
|
|
522
|
+
`strategy_id` and its replay evidence (or explicit acknowledgement),
|
|
523
|
+
verify the returned old/new strategy hashes, and resume in a separate call.
|
|
291
524
|
Stopping an agent does not close positions.
|
|
292
525
|
|
|
293
526
|
Stop loss, take profit, trailing stop, break-even, and maximum-hold rules are
|
|
@@ -318,6 +551,27 @@ Polymarket and Derive live execution fees use prepaid fee credit. Read it with
|
|
|
318
551
|
a confirmed fill, and released after a confirmed no-fill. Withdrawals do not
|
|
319
552
|
collect trading fees and Felix does not create fee debt.
|
|
320
553
|
|
|
554
|
+
Reserved credit is still unspent, but unavailable for another order until its
|
|
555
|
+
reservation is released or captured. Fee credit is not withdrawable cash or
|
|
556
|
+
venue collateral and is excluded from the money map's wallet total. When the
|
|
557
|
+
response includes `exact`, use its six-decimal unit strings for accounting;
|
|
558
|
+
the numeric USD fields are convenient display values. Captured prepaid fees
|
|
559
|
+
are not a total of venue fees, gas, bridge costs or Hyperliquid builder fees.
|
|
560
|
+
|
|
561
|
+
`fund_market` network fees are also prepaid. Felix signs, submits, and confirms
|
|
562
|
+
the exact fee transfer to treasury before authorizing any venue funding or
|
|
563
|
+
bridge value transaction. If that fee cannot be confirmed, the value leg does
|
|
564
|
+
not start. If a later venue step is interrupted, resume with the exact original
|
|
565
|
+
idempotency key; the confirmed fee proof is reused and is never charged twice.
|
|
566
|
+
Felix does not create an outstanding funding-fee balance.
|
|
567
|
+
|
|
568
|
+
An unknown fee balance is not zero. For `fee_credit_state_unavailable`, retry
|
|
569
|
+
`get_fee_balance` after the returned delay. For `fee_credit_state_invalid`,
|
|
570
|
+
use `report_feedback`; do not send a top-up to repair missing accounting data.
|
|
571
|
+
The MCP honors `retryable:false` and valid retry timing in either the HTTP
|
|
572
|
+
header or error body. Long waits return control to the agent instead of silently
|
|
573
|
+
polling sooner. Preserve the original key for an in-progress money operation.
|
|
574
|
+
|
|
321
575
|
`upgrade_subscription(plan="pro", idempotency_key="...")` prepares an exact
|
|
322
576
|
owner-signed 30-day Pro payment. Auto-renew is off; every renewal requires a new
|
|
323
577
|
owner-authorized workflow.
|
|
@@ -348,12 +602,33 @@ interrupted message with the same key.
|
|
|
348
602
|
`get_funding`, research and screening tools.
|
|
349
603
|
- Trading: `preview_order`, `place_order`, `place_batch_orders`, `cancel_order`,
|
|
350
604
|
`close_position`, exit-plan tools, `make_market`.
|
|
351
|
-
- Portfolio: `get_situation`, `get_positions`, `get_fills`,
|
|
605
|
+
- Portfolio: `get_situation`, `get_positions`, `get_fills`,
|
|
606
|
+
`get_account_statement`, `get_pnl`,
|
|
352
607
|
`get_money_map`, `verify_custody`.
|
|
353
608
|
- Money: funding, bring-home, fee-credit, withdrawal, and venue onboarding tools.
|
|
354
|
-
- Agents: strategy guide, backtest,
|
|
609
|
+
- Agents: strategy guide, backtest, walk-forward validation, deploy, status,
|
|
610
|
+
logs, events, update, stop.
|
|
355
611
|
- Account: keys, children, policy, webhooks, subscription, support, and archive.
|
|
356
612
|
|
|
613
|
+
Advanced portfolio mandates can also set per-underlying Derive absolute-net and
|
|
614
|
+
gross gamma, theta, and vega limits. Felix enforces them against exact
|
|
615
|
+
venue-rounded live-order projections across direct orders, autonomous agents,
|
|
616
|
+
and cumulative batches. Missing required Greek evidence fails closed; trades
|
|
617
|
+
that reduce an existing breach remain permitted.
|
|
618
|
+
|
|
619
|
+
`preview_derive_greek_hedge` ranks no more than four exact Derive buy-to-open
|
|
620
|
+
option previews for one net gamma, theta, or vega reduction target. It uses the
|
|
621
|
+
matching owner absolute-net limit unless an explicit target is supplied. The
|
|
622
|
+
result does not optimize gross risk, multiple Greeks, future volatility, or exit
|
|
623
|
+
liquidity, and it never signs, funds, bridges, or submits an order.
|
|
624
|
+
|
|
625
|
+
`preview_covariance_risk_trim` uses 20-500 complete aligned daily-return rows to
|
|
626
|
+
size one reduction in an existing verified linear exposure toward the owner's
|
|
627
|
+
annualized volatility mandate. An explicit target may tighten but cannot loosen
|
|
628
|
+
that mandate. The result includes an exact Hyperliquid collateral, liquidity,
|
|
629
|
+
fee, slippage, portfolio-limit, and key-limit preview. It cannot create new asset
|
|
630
|
+
exposure, cross through zero, add leverage, fund, sign, submit, or move money.
|
|
631
|
+
|
|
357
632
|
Tool schemas are authoritative for required arguments, bounds, and enums.
|
|
358
633
|
|
|
359
634
|
## Examples
|
|
@@ -376,3 +651,13 @@ the validity and cost assumptions before asking whether to deploy it live.
|
|
|
376
651
|
Full integration guide: <https://felix.trade/docs>
|
|
377
652
|
|
|
378
653
|
Not financial advice.
|
|
654
|
+
|
|
655
|
+
### r234 capital and withdrawal confirmation tools
|
|
656
|
+
|
|
657
|
+
MCP 2.0.123 adds the app's manual trading for API keys through `/v1/manual`: `get_trading_capabilities`, `get_trading_details`, `get_available_to_trade`, `preview_manual_order`, `place_manual_order` (market, limit, post-only, resting Polymarket GTC, reduce-only, leverage up to the venue maximum, on Hyperliquid, Lighter and Polymarket), `get_manual_order_receipt`, `list_open_orders`, `cancel_open_order`, `modify_order_price`, `close_manual_position` (full or partial), `get_close_receipt`, and `get_position_protection` / `set_position_protection` / `cancel_position_protection` (take-profit and stop-loss trigger prices with optional partial exits). Opening orders keep the key's own `max_order_usd` and `max_daily_usd` and the account's portfolio mandate. `cancel_order` now cancels live resting orders, and `panic` now also cancels and closes Lighter.
|
|
658
|
+
|
|
659
|
+
MCP 2.0.122 adds `preview_home_funding`, `start_home_funding`, `get_home_funding`, `prepare_capital_allocation`, `submit_capital_allocation`, `prepare_venue_bootstrap`, `submit_venue_bootstrap`, `get_capital_move_recovery`, and withdrawal confirmation request/verify/status tools. Derive and treasury capital moves require owner approval and are disabled via API key, including with `confirm:true`. Their read-only previews, status and recovery tools remain available. Home funding quotes cover Hyperliquid, Lighter and Polymarket, with owner-paid Arc gas and explicit `quote_execution_bound:false`. Owner signatures and email proofs stay in the trusted local client. The new submit tools accept locally produced signatures; they do not generate signatures.
|
|
660
|
+
|
|
661
|
+
The refreshed [owner canary templates](docs/OWNER_REAL_MONEY_E2E.md) preserve exact operation IDs and continuation keys. These templates have not been executed with real money. See [release verification](docs/RELEASE_VERIFICATION.md) for live read-only results and publication prerequisites.
|
|
662
|
+
|
|
663
|
+
Agent deployment requires `confirmed_budget_usd` alongside `budget_usd`: repeat the exact capital the owner reviewed. `deploy_agent` passes it to `POST /v1/agents` and refuses missing or mismatching confirmation before sending a request. A generic yes does not confirm an amount. Saved chat proposals are approved in the app with both the confirmed amount and their `review_version`; `deploy_agent` creates a new agent from a generated `strategy_id`, so it has no saved chat proposal version.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
# Third-Party Notices
|
|
2
2
|
|
|
3
3
|
Felix MCP includes portions of Polymarket's `clob-client-v2` version 1.1.0.
|
|
4
|
+
Source: <https://github.com/Polymarket/clob-client-v2>. These files are shipped
|
|
5
|
+
under `dist/vendor/polymarket-clob-v2/` in the npm package.
|
|
4
6
|
The vendored runtime is kept behaviorally equivalent to the upstream package;
|
|
5
7
|
two legacy Ethers dependencies that are not imported by that runtime are not
|
|
6
8
|
included.
|
|
7
9
|
|
|
10
|
+
Other runtime dependencies are installed separately by npm and retain their
|
|
11
|
+
own license files and notices in their respective packages.
|
|
12
|
+
|
|
8
13
|
MIT License
|
|
9
14
|
|
|
10
15
|
Copyright (c) 2026 Polymarket
|