@continuumdao/ctm-mpc-defi 0.2.4 → 0.2.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.
@@ -611,6 +611,33 @@ var mcpUniswapV4LpCreatePositionInputSchema = lpCommonApiInputSchema.extend({
611
611
  priceBounds: lpPriceBoundsSchema.optional(),
612
612
  tickBounds: lpTickBoundsSchema.optional()
613
613
  });
614
+ var mcpUniswapV4LpListPoolsInputSchema = zod.z.object({
615
+ chainId: zod.z.union([zod.z.number().int().positive(), zod.z.string().min(1)]),
616
+ pair: zod.z.string().optional().describe("Optional filter, e.g. eth-usdc or ETH/USDC")
617
+ });
618
+ var mcpUniswapV4LpListPoolsOutputSchema = zod.z.object({
619
+ chainId: zod.z.number().int().positive(),
620
+ chainLabel: zod.z.string(),
621
+ pools: zod.z.array(
622
+ zod.z.object({
623
+ presetId: zod.z.string(),
624
+ pairSlug: zod.z.string(),
625
+ pairLabel: zod.z.string(),
626
+ fee: zod.z.number().int(),
627
+ feeLabel: zod.z.string(),
628
+ tickSpacing: zod.z.number().int(),
629
+ token0Symbol: zod.z.string(),
630
+ token1Symbol: zod.z.string(),
631
+ token0Address: evmAddressSchema,
632
+ token1Address: evmAddressSchema,
633
+ poolReference: zod.z.string(),
634
+ hooks: evmAddressSchema,
635
+ nativeWrapped: evmAddressSchema.optional(),
636
+ usesNativeEth: zod.z.boolean()
637
+ })
638
+ ),
639
+ notes: zod.z.string()
640
+ });
614
641
  var mcpUniswapV4LpCreatePositionOutputSchema = jsonObjectSchema;
615
642
  var mcpUniswapV4LpIncreaseInputSchema = lpCommonApiInputSchema.extend({
616
643
  token0Address: evmAddressSchema,
@@ -1238,13 +1265,29 @@ var CORE_MCP_TOOL_DEFINITIONS = [
1238
1265
  inputZod: mcpUniswapV4BuildSwapMultisignInputSchema,
1239
1266
  outputZod: multisignOutputSchema
1240
1267
  }),
1268
+ defineMcpTool({
1269
+ name: "ctm_uniswap_v4_list_lp_pools",
1270
+ actionId: "uniswap-v4.lp-list-pools",
1271
+ protocolId: "uniswap-v4",
1272
+ chainCategory: "evm",
1273
+ description: "List standard Uniswap V4 LP pools for a chain (ETH/USDC and other main pairs at common fee tiers). Returns presetId, token addresses, fee, tickSpacing, and computed poolReference (bytes32 pool id). Use presetId as poolPreset on lp_create_position.",
1274
+ prerequisites: ["chainId"],
1275
+ followUp: ["ctm_uniswap_v4_lp_create_position"],
1276
+ handler: { importPath: "protocols/evm/uniswap-v4", exportName: "uniswapV4ListStandardLpPools" },
1277
+ inputZod: mcpUniswapV4LpListPoolsInputSchema,
1278
+ outputZod: mcpUniswapV4LpListPoolsOutputSchema
1279
+ }),
1241
1280
  defineMcpTool({
1242
1281
  name: "ctm_uniswap_v4_lp_create_position",
1243
1282
  actionId: "uniswap-v4.lp-create",
1244
1283
  protocolId: "uniswap-v4",
1245
1284
  chainCategory: "evm",
1246
- description: "Call Uniswap LP API POST /lp/create for a new V4 position. Returns token amounts and `create` transaction calldata. Does NOT create a sign request \u2014 call ctm_uniswap_v4_build_mint_liquidity_multisign next.",
1247
- prerequisites: ["UNISWAP_API_KEY", "get_defi_protocol_skill for LP flow"],
1285
+ description: "Call Uniswap LP API POST /lp/create for a new V4 position. Returns token amounts and `create` transaction calldata. Does NOT create a sign request \u2014 call ctm_uniswap_v4_build_mint_liquidity_multisign next. Pass poolPreset from list_lp_pools, or existingPool with poolReference (or fee+tickSpacing to derive pool id).",
1286
+ prerequisites: [
1287
+ "UNISWAP_API_KEY",
1288
+ "ctm_uniswap_v4_list_lp_pools for standard pairs",
1289
+ "get_defi_protocol_skill for LP flow"
1290
+ ],
1248
1291
  followUp: ["ctm_uniswap_v4_build_mint_liquidity_multisign"],
1249
1292
  handler: { importPath: "protocols/evm/uniswap-v4", exportName: "uniswapLpCreatePosition" },
1250
1293
  inputZod: mcpUniswapV4LpCreatePositionInputSchema,
@@ -2191,6 +2234,8 @@ exports.mcpUniswapV4LpDecreaseInputSchema = mcpUniswapV4LpDecreaseInputSchema;
2191
2234
  exports.mcpUniswapV4LpDecreaseOutputSchema = mcpUniswapV4LpDecreaseOutputSchema;
2192
2235
  exports.mcpUniswapV4LpIncreaseInputSchema = mcpUniswapV4LpIncreaseInputSchema;
2193
2236
  exports.mcpUniswapV4LpIncreaseOutputSchema = mcpUniswapV4LpIncreaseOutputSchema;
2237
+ exports.mcpUniswapV4LpListPoolsInputSchema = mcpUniswapV4LpListPoolsInputSchema;
2238
+ exports.mcpUniswapV4LpListPoolsOutputSchema = mcpUniswapV4LpListPoolsOutputSchema;
2194
2239
  exports.mcpUniswapV4LpListPositionsInputSchema = mcpUniswapV4LpListPositionsInputSchema;
2195
2240
  exports.mcpUniswapV4LpListPositionsOutputSchema = mcpUniswapV4LpListPositionsOutputSchema;
2196
2241
  exports.mcpUniswapV4QuoteInputSchema = mcpUniswapV4QuoteInputSchema;