felix-mcp 2.0.108 → 2.0.110
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 +2 -2
- package/THIRD_PARTY_NOTICES.md +28 -0
- package/dist/getting-started-guide.js +1 -1
- package/dist/index.js +1 -1
- package/dist/polymarket.js +1 -1
- package/dist/vendor/polymarket-clob-v2/client.js +985 -0
- package/dist/vendor/polymarket-clob-v2/config.js +33 -0
- package/dist/vendor/polymarket-clob-v2/constants.js +9 -0
- package/dist/vendor/polymarket-clob-v2/endpoints.js +64 -0
- package/dist/vendor/polymarket-clob-v2/errors.js +16 -0
- package/dist/vendor/polymarket-clob-v2/fees/index.js +20 -0
- package/dist/vendor/polymarket-clob-v2/headers/index.js +34 -0
- package/dist/vendor/polymarket-clob-v2/http-helpers/index.js +112 -0
- package/dist/vendor/polymarket-clob-v2/index.js +14 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/helpers/buildMarketOrderCreationArgs.js +40 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/helpers/buildOrder.js +32 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/helpers/buildOrderCreationArgs.js +42 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/helpers/calculateBuyMarketPrice.js +25 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/helpers/calculateSellMarketPrice.js +25 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/helpers/createExchangeV3OrderFromAmounts.js +30 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/helpers/createMarketOrder.js +33 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/helpers/createOrder.js +33 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/helpers/getMarketOrderRawAmounts.js +37 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/helpers/getOrderRawAmounts.js +37 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/helpers/roundingConfig.js +36 -0
- package/dist/vendor/polymarket-clob-v2/order-builder/orderBuilder.js +57 -0
- package/dist/vendor/polymarket-clob-v2/order-utils/exchangeOrderBuilderV1.js +135 -0
- package/dist/vendor/polymarket-clob-v2/order-utils/exchangeOrderBuilderV2.js +195 -0
- package/dist/vendor/polymarket-clob-v2/order-utils/model/ctfExchangeV1TypedData.js +56 -0
- package/dist/vendor/polymarket-clob-v2/order-utils/model/ctfExchangeV2TypedData.js +53 -0
- package/dist/vendor/polymarket-clob-v2/order-utils/model/eip712.js +22 -0
- package/dist/vendor/polymarket-clob-v2/order-utils/model/side.js +9 -0
- package/dist/vendor/polymarket-clob-v2/order-utils/model/signatureTypeV1.js +19 -0
- package/dist/vendor/polymarket-clob-v2/order-utils/model/signatureTypeV2.js +23 -0
- package/dist/vendor/polymarket-clob-v2/order-utils/utils.js +7 -0
- package/dist/vendor/polymarket-clob-v2/signing/constants.js +5 -0
- package/dist/vendor/polymarket-clob-v2/signing/eip712.js +49 -0
- package/dist/vendor/polymarket-clob-v2/signing/hmac.js +43 -0
- package/dist/vendor/polymarket-clob-v2/signing/signer.js +44 -0
- package/dist/vendor/polymarket-clob-v2/types/clob.js +30 -0
- package/dist/vendor/polymarket-clob-v2/types/ordersV1.js +27 -0
- package/dist/vendor/polymarket-clob-v2/types/ordersV2.js +28 -0
- package/dist/vendor/polymarket-clob-v2/types/unifiedOrder.js +9 -0
- package/dist/vendor/polymarket-clob-v2/utilities.js +48 -0
- package/package.json +6 -3
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ identity, creates an encrypted backup, pins the same reviewed package in Claude
|
|
|
14
14
|
Code, and verifies the result:
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npx -y --package felix-mcp@2.0.
|
|
17
|
+
npx -y --package felix-mcp@2.0.110 felix-keys onboard --accept-terms --client claude
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Requires Node.js 20.10 or newer. The command checks the active runtime before
|
|
@@ -41,7 +41,7 @@ For Claude Desktop:
|
|
|
41
41
|
"mcpServers": {
|
|
42
42
|
"felix": {
|
|
43
43
|
"command": "npx",
|
|
44
|
-
"args": ["-y", "felix-mcp@2.0.
|
|
44
|
+
"args": ["-y", "felix-mcp@2.0.110"]
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Third-Party Notices
|
|
2
|
+
|
|
3
|
+
Felix MCP includes portions of Polymarket's `clob-client-v2` version 1.1.0.
|
|
4
|
+
The vendored runtime is kept behaviorally equivalent to the upstream package;
|
|
5
|
+
two legacy Ethers dependencies that are not imported by that runtime are not
|
|
6
|
+
included.
|
|
7
|
+
|
|
8
|
+
MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2026 Polymarket
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
@@ -13,7 +13,7 @@ the current legal bundle at https://felix.trade/legal before accepting it.
|
|
|
13
13
|
Let your AI agent run this single command:
|
|
14
14
|
|
|
15
15
|
~~~bash
|
|
16
|
-
npx -y --package felix-mcp@2.0.
|
|
16
|
+
npx -y --package felix-mcp@2.0.110 felix-keys onboard --accept-terms --client claude
|
|
17
17
|
~~~
|
|
18
18
|
|
|
19
19
|
After the user reviews the terms and explicitly authorizes acceptance, the agent
|
package/dist/index.js
CHANGED
|
@@ -108,7 +108,7 @@ export function validatedApiBase(raw = process.env.FELIX_API_URL || `https://${O
|
|
|
108
108
|
return parsed.origin;
|
|
109
109
|
}
|
|
110
110
|
const API = validatedApiBase();
|
|
111
|
-
const MCP_VERSION = "2.0.
|
|
111
|
+
const MCP_VERSION = "2.0.110";
|
|
112
112
|
const PRACTICAL_NO_CAP_USD = 1_000_000_000;
|
|
113
113
|
const DEFAULT_WALLET_OPERATION_USD = 10_000_000;
|
|
114
114
|
const DEFAULT_WALLET_DAILY_USD = 100_000_000;
|
package/dist/polymarket.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createWalletClient, decodeFunctionData, getAddress, hashTypedData, http, parseAbi } from "viem";
|
|
2
2
|
import { privateKeyToAccount } from "viem/accounts";
|
|
3
3
|
import { polygon } from "viem/chains";
|
|
4
|
-
import { ApiError, AssetType, Chain, ClobClient, createL2Headers, getContractConfig, isV2Order, orderToJsonV1, orderToJsonV2, OrderType, Side, SignatureTypeV2, } from "
|
|
4
|
+
import { ApiError, AssetType, Chain, ClobClient, createL2Headers, getContractConfig, isV2Order, orderToJsonV1, orderToJsonV2, OrderType, Side, SignatureTypeV2, } from "./vendor/polymarket-clob-v2/index.js";
|
|
5
5
|
import { getRuntimeOwnerPrivateKey } from "./secret-state.js";
|
|
6
6
|
const PRIVATE_KEY_RE = /^0x[0-9a-fA-F]{64}$/;
|
|
7
7
|
const ADDRESS_RE = /^0x[0-9a-fA-F]{40}$/;
|