@continuumdao/ctm-mpc-defi 0.2.7 → 0.2.8
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/dist/agent/catalog.cjs +122 -103
- package/dist/agent/catalog.cjs.map +1 -1
- package/dist/agent/catalog.d.ts +38 -5
- package/dist/agent/catalog.js +119 -103
- package/dist/agent/catalog.js.map +1 -1
- package/dist/agent/skills/_shared/multisign-mcp-gas.md +20 -0
- package/dist/agent/skills/aave-v4/SKILL.md +0 -7
- package/dist/agent/skills/curve-dao/SKILL.md +0 -7
- package/dist/agent/skills/ethena/SKILL.md +1 -1
- package/dist/agent/skills/euler-v2/SKILL.md +1 -1
- package/dist/agent/skills/gmx/SKILL.md +29 -2
- package/dist/agent/skills/lido/SKILL.md +1 -1
- package/dist/agent/skills/maple-syrup/SKILL.md +1 -1
- package/dist/agent/skills/sky/SKILL.md +1 -1
- package/dist/agent/skills/uniswap-v4/SKILL.md +0 -7
- package/package.json +1 -1
package/dist/agent/catalog.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ declare function getAgentCatalogForMcp(): {
|
|
|
70
70
|
protocols: readonly ProtocolModule[];
|
|
71
71
|
commonParams: Record<string, ParamDoc>;
|
|
72
72
|
multisignOutput: {
|
|
73
|
-
readonly description: "Unsigned mpc-auth multiSignRequest payload.
|
|
73
|
+
readonly description: "Unsigned mpc-auth multiSignRequest payload from protocol builders. MCP agents receive { requestId } instead; node-app callers sign messageToSign and POST { ...bodyForSign, clientSig, signedMessage }.";
|
|
74
74
|
readonly fields: {
|
|
75
75
|
readonly bodyForSign: {
|
|
76
76
|
readonly type: "object";
|
|
@@ -82,6 +82,15 @@ declare function getAgentCatalogForMcp(): {
|
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
|
+
multisignSubmitOutput: {
|
|
86
|
+
readonly description: "Submitted mpc-auth multiSignRequest id. continuum-mcp-server builds, signs the management envelope, and POSTs /multiSignRequest. Continue with wait_for_sign_request_ready → sign_request_agree → trigger_sign_result → broadcast_sign_result. Do not call the same build tool again if requestId was returned.";
|
|
87
|
+
readonly fields: {
|
|
88
|
+
readonly requestId: {
|
|
89
|
+
readonly type: "string";
|
|
90
|
+
readonly description: "Sign request id from POST /multiSignRequest.";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
85
94
|
managementSig: {
|
|
86
95
|
readonly description: "Management POST bodies embed NodeMgtKeySig: { nonce, clientSig, nodeKey }. Sign JSON with clientSig cleared via messageToSignManagementBody; POST with withManagementClientSig(body, sig). Do not put signedMessage in the JSON body for standard management routes. Legacy Nonce/Sig/sig field names are not accepted.";
|
|
87
96
|
readonly exceptions: {
|
|
@@ -124,6 +133,7 @@ declare function getAgentCatalogForMcp(): {
|
|
|
124
133
|
outputSchemas: Record<string, z.ZodType<any, z.ZodTypeDef, any>>;
|
|
125
134
|
workflow: {
|
|
126
135
|
evmSwapTypical: string[];
|
|
136
|
+
evmSwapManualTypical: string[];
|
|
127
137
|
managementPostTypical: string[];
|
|
128
138
|
agentMultisignTypical: string[];
|
|
129
139
|
};
|
|
@@ -213,8 +223,19 @@ declare const MCP_NON_SUBMIT_TOOL_NAMES: Set<string>;
|
|
|
213
223
|
|
|
214
224
|
/** Shared inputs documented once for all EVM multisign builders. */
|
|
215
225
|
declare const EVM_COMMON_PARAM_DOCS: Record<string, ParamDoc>;
|
|
226
|
+
/** MCP agent path: build_* tools auto-submit and return requestId. */
|
|
227
|
+
declare const MULTISIGN_SUBMIT_OUTPUT_DOC: {
|
|
228
|
+
readonly description: "Submitted mpc-auth multiSignRequest id. continuum-mcp-server builds, signs the management envelope, and POSTs /multiSignRequest. Continue with wait_for_sign_request_ready → sign_request_agree → trigger_sign_result → broadcast_sign_result. Do not call the same build tool again if requestId was returned.";
|
|
229
|
+
readonly fields: {
|
|
230
|
+
readonly requestId: {
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
readonly description: "Sign request id from POST /multiSignRequest.";
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
/** Legacy unsigned builder output (node app / manual sign path — not MCP tool return value). */
|
|
216
237
|
declare const MULTISIGN_OUTPUT_DOC: {
|
|
217
|
-
readonly description: "Unsigned mpc-auth multiSignRequest payload.
|
|
238
|
+
readonly description: "Unsigned mpc-auth multiSignRequest payload from protocol builders. MCP agents receive { requestId } instead; node-app callers sign messageToSign and POST { ...bodyForSign, clientSig, signedMessage }.";
|
|
218
239
|
readonly fields: {
|
|
219
240
|
readonly bodyForSign: {
|
|
220
241
|
readonly type: "object";
|
|
@@ -406,7 +427,7 @@ declare const evmMultisignCommonInputSchema: z.ZodObject<{
|
|
|
406
427
|
};
|
|
407
428
|
customGasChainDetails?: Record<string, unknown> | undefined;
|
|
408
429
|
}>;
|
|
409
|
-
/**
|
|
430
|
+
/** Internal builder output before MCP management submit (not the MCP tool return value). */
|
|
410
431
|
declare const multisignOutputSchema: z.ZodObject<{
|
|
411
432
|
bodyForSign: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
412
433
|
messageToSign: z.ZodString;
|
|
@@ -423,6 +444,8 @@ type EvmMultisignCommonInput = z.infer<typeof evmMultisignCommonInputSchema>;
|
|
|
423
444
|
type MultisignOutput = z.infer<typeof multisignOutputSchema>;
|
|
424
445
|
type KeyGenMcpInput = z.infer<typeof keyGenSchema>;
|
|
425
446
|
type ChainDetailMcpInput = z.infer<typeof chainDetailSchema>;
|
|
447
|
+
/** Parse protocol builder output before signAndSubmitMultiSignRequest. */
|
|
448
|
+
declare function parseMultisignBuilderOutput(data: unknown): MultisignOutput;
|
|
426
449
|
|
|
427
450
|
declare const uniswapQuoteTradeTypeSchema: z.ZodEnum<["EXACT_INPUT", "EXACT_OUTPUT"]>;
|
|
428
451
|
/** Input for MCP tool `ctm_uniswap_v4_quote` → handler `uniswapTradeQuote`. */
|
|
@@ -2302,7 +2325,7 @@ declare function getAgentCatalog(): {
|
|
|
2302
2325
|
protocols: readonly ProtocolModule[];
|
|
2303
2326
|
commonParams: Record<string, ParamDoc>;
|
|
2304
2327
|
multisignOutput: {
|
|
2305
|
-
readonly description: "Unsigned mpc-auth multiSignRequest payload.
|
|
2328
|
+
readonly description: "Unsigned mpc-auth multiSignRequest payload from protocol builders. MCP agents receive { requestId } instead; node-app callers sign messageToSign and POST { ...bodyForSign, clientSig, signedMessage }.";
|
|
2306
2329
|
readonly fields: {
|
|
2307
2330
|
readonly bodyForSign: {
|
|
2308
2331
|
readonly type: "object";
|
|
@@ -2314,6 +2337,15 @@ declare function getAgentCatalog(): {
|
|
|
2314
2337
|
};
|
|
2315
2338
|
};
|
|
2316
2339
|
};
|
|
2340
|
+
multisignSubmitOutput: {
|
|
2341
|
+
readonly description: "Submitted mpc-auth multiSignRequest id. continuum-mcp-server builds, signs the management envelope, and POSTs /multiSignRequest. Continue with wait_for_sign_request_ready → sign_request_agree → trigger_sign_result → broadcast_sign_result. Do not call the same build tool again if requestId was returned.";
|
|
2342
|
+
readonly fields: {
|
|
2343
|
+
readonly requestId: {
|
|
2344
|
+
readonly type: "string";
|
|
2345
|
+
readonly description: "Sign request id from POST /multiSignRequest.";
|
|
2346
|
+
};
|
|
2347
|
+
};
|
|
2348
|
+
};
|
|
2317
2349
|
managementSig: {
|
|
2318
2350
|
readonly description: "Management POST bodies embed NodeMgtKeySig: { nonce, clientSig, nodeKey }. Sign JSON with clientSig cleared via messageToSignManagementBody; POST with withManagementClientSig(body, sig). Do not put signedMessage in the JSON body for standard management routes. Legacy Nonce/Sig/sig field names are not accepted.";
|
|
2319
2351
|
readonly exceptions: {
|
|
@@ -2355,10 +2387,11 @@ declare function getAgentCatalog(): {
|
|
|
2355
2387
|
outputSchemas: Record<string, zod.ZodType<any, zod.ZodTypeDef, any>>;
|
|
2356
2388
|
workflow: {
|
|
2357
2389
|
evmSwapTypical: string[];
|
|
2390
|
+
evmSwapManualTypical: string[];
|
|
2358
2391
|
managementPostTypical: string[];
|
|
2359
2392
|
agentMultisignTypical: string[];
|
|
2360
2393
|
};
|
|
2361
2394
|
};
|
|
2362
2395
|
};
|
|
2363
2396
|
|
|
2364
|
-
export { type ChainDetailMcpInput, EVM_COMMON_PARAM_DOCS, type EvmMultisignCommonInput, type KeyGenMcpInput, MANAGEMENT_SIG_DOC, MCP_NON_SUBMIT_TOOL_NAMES, MCP_TOOL_DEFINITIONS, MCP_TOOL_INPUT_SCHEMAS, MCP_TOOL_OUTPUT_SCHEMAS, MULTISIGN_OUTPUT_DOC, type McpAaveV4DepositInput, type McpCurveDaoBuildSwapMultisignInput, type McpCurveDaoQuoteInput, type McpCurveDaoQuoteOutput, type McpEthenaStakeInput, type McpEulerV2IsolatedLendInput, type McpJsonSchema, type McpLidoSubmitInput, type McpMapleDepositInput, type McpSchemaProperty, type McpSkyLockstakeStakeInput, type McpToolDefinition, type McpToolHandler, type McpToolInputMap, type McpToolName, type McpToolOutputMap, type McpUniswapV4BuildMintLiquidityMultisignInput, type McpUniswapV4BuildSwapMultisignInput, type McpUniswapV4CreateSwapInput, type McpUniswapV4CreateSwapOutput, type McpUniswapV4LpCreatePositionInput, type McpUniswapV4QuoteInput, type McpUniswapV4QuoteOutput, type MultisignOutput, PROTOCOL_SUPPORT_ADVISORS, type ProtocolSupportAdvisor, type SupportedTokenRow, type TokenFilterKind, chainDetailSchema, evmAddressSchema, evmMultisignCommonInputSchema, getAgentCatalog, getAgentCatalogForMcp, getMcpToolByName, getMcpToolDefinitions, getMcpToolInputSchema, getMcpToolOutputSchema, getProtocolDiscoverySummary, getProtocolSkill, getProtocolSupportAdvisor, getToolsForProtocol, jsonObjectSchema, keyGenSchema, listProtocolSupportAdvisorIds, listProtocolsWithSkills, mcpAaveV4BorrowInputSchema, mcpAaveV4DepositInputSchema, mcpAaveV4RepayInputSchema, mcpAaveV4WithdrawInputSchema, mcpCurveDaoBuildSwapMultisignInputSchema, mcpCurveDaoQuoteInputSchema, mcpCurveDaoQuoteOutputSchema, mcpEthenaClaimInputSchema, mcpEthenaCooldownInputSchema, mcpEthenaRedeemInputSchema, mcpEthenaStakeInputSchema, mcpEulerV2BorrowRepayInputSchema, mcpEulerV2CollateralDepositInputSchema, mcpEulerV2CollateralWithdrawInputSchema, mcpEulerV2IsolatedBorrowInputSchema, mcpEulerV2IsolatedLendInputSchema, mcpEulerV2VaultWithdrawInputSchema, mcpGmxCancelInputSchema, mcpGmxDecreaseInputSchema, mcpGmxFetchGmApyInputSchema, mcpGmxFetchGmApyOutputSchema, mcpGmxFetchGmMarketsInputSchema, mcpGmxFetchGmMarketsOutputSchema, mcpGmxFetchMarketPricesInputSchema, mcpGmxFetchMarketPricesOutputSchema, mcpGmxFetchMarketsInputSchema, mcpGmxFetchMarketsOutputSchema, mcpGmxFetchOhlcvInputSchema, mcpGmxFetchOhlcvOutputSchema, mcpGmxFetchPositionsInputSchema, mcpGmxFetchPositionsOutputSchema, mcpGmxFetchStakingPowerInputSchema, mcpGmxFetchStakingPowerOutputSchema, mcpGmxGmDepositInputSchema, mcpGmxGmWithdrawInputSchema, mcpGmxIncreaseInputSchema,
|
|
2397
|
+
export { type ChainDetailMcpInput, EVM_COMMON_PARAM_DOCS, type EvmMultisignCommonInput, type KeyGenMcpInput, MANAGEMENT_SIG_DOC, MCP_NON_SUBMIT_TOOL_NAMES, MCP_TOOL_DEFINITIONS, MCP_TOOL_INPUT_SCHEMAS, MCP_TOOL_OUTPUT_SCHEMAS, MULTISIGN_OUTPUT_DOC, MULTISIGN_SUBMIT_OUTPUT_DOC, type McpAaveV4DepositInput, type McpCurveDaoBuildSwapMultisignInput, type McpCurveDaoQuoteInput, type McpCurveDaoQuoteOutput, type McpEthenaStakeInput, type McpEulerV2IsolatedLendInput, type McpJsonSchema, type McpLidoSubmitInput, type McpMapleDepositInput, type McpSchemaProperty, type McpSkyLockstakeStakeInput, type McpToolDefinition, type McpToolHandler, type McpToolInputMap, type McpToolName, type McpToolOutputMap, type McpUniswapV4BuildMintLiquidityMultisignInput, type McpUniswapV4BuildSwapMultisignInput, type McpUniswapV4CreateSwapInput, type McpUniswapV4CreateSwapOutput, type McpUniswapV4LpCreatePositionInput, type McpUniswapV4QuoteInput, type McpUniswapV4QuoteOutput, type MultisignOutput, PROTOCOL_SUPPORT_ADVISORS, type ProtocolSupportAdvisor, type SupportedTokenRow, type TokenFilterKind, chainDetailSchema, evmAddressSchema, evmMultisignCommonInputSchema, getAgentCatalog, getAgentCatalogForMcp, getMcpToolByName, getMcpToolDefinitions, getMcpToolInputSchema, getMcpToolOutputSchema, getProtocolDiscoverySummary, getProtocolSkill, getProtocolSupportAdvisor, getToolsForProtocol, jsonObjectSchema, keyGenSchema, listProtocolSupportAdvisorIds, listProtocolsWithSkills, mcpAaveV4BorrowInputSchema, mcpAaveV4DepositInputSchema, mcpAaveV4RepayInputSchema, mcpAaveV4WithdrawInputSchema, mcpCurveDaoBuildSwapMultisignInputSchema, mcpCurveDaoQuoteInputSchema, mcpCurveDaoQuoteOutputSchema, mcpEthenaClaimInputSchema, mcpEthenaCooldownInputSchema, mcpEthenaRedeemInputSchema, mcpEthenaStakeInputSchema, mcpEulerV2BorrowRepayInputSchema, mcpEulerV2CollateralDepositInputSchema, mcpEulerV2CollateralWithdrawInputSchema, mcpEulerV2IsolatedBorrowInputSchema, mcpEulerV2IsolatedLendInputSchema, mcpEulerV2VaultWithdrawInputSchema, mcpGmxCancelInputSchema, mcpGmxDecreaseInputSchema, mcpGmxFetchGmApyInputSchema, mcpGmxFetchGmApyOutputSchema, mcpGmxFetchGmMarketsInputSchema, mcpGmxFetchGmMarketsOutputSchema, mcpGmxFetchMarketPricesInputSchema, mcpGmxFetchMarketPricesOutputSchema, mcpGmxFetchMarketsInputSchema, mcpGmxFetchMarketsOutputSchema, mcpGmxFetchOhlcvInputSchema, mcpGmxFetchOhlcvOutputSchema, mcpGmxFetchPositionsInputSchema, mcpGmxFetchPositionsOutputSchema, mcpGmxFetchStakingPowerInputSchema, mcpGmxFetchStakingPowerOutputSchema, mcpGmxGmDepositInputSchema, mcpGmxGmWithdrawInputSchema, mcpGmxIncreaseInputSchema, mcpServerSubmitOutputSchema as mcpGmxMultisignOutputSchema, mcpGmxStakeGmxInputSchema, mcpGmxUnstakeGmxInputSchema, mcpLidoClaimWithdrawalInputSchema, mcpLidoRequestWithdrawalsInputSchema, mcpLidoSubmitInputSchema, mcpLidoUnwrapWstEthInputSchema, mcpLidoWrapStEthInputSchema, mcpMapleDepositInputSchema, mcpMapleRequestRedeemInputSchema, mcpMultisignInput, multisignOutputSchema as mcpMultisignOutputSchema, mcpServerSubmitOutputSchema as mcpMultisignSubmitOutputSchema, mcpServerCommonInputSchema, mcpServerMultisignInput, mcpServerSubmitOutputSchema, mcpSkyLockstakeCloseInputSchema, mcpSkyLockstakeDrawInputSchema, mcpSkyLockstakeGetRewardInputSchema, mcpSkyLockstakeStakeInputSchema, mcpSkyLockstakeWipeInputSchema, mcpSkySusdsDepositInputSchema, mcpSkySusdsRedeemInputSchema, mcpUniswapV4BuildCollectFeesMultisignInputSchema, mcpUniswapV4BuildDecreaseLiquidityMultisignInputSchema, mcpUniswapV4BuildIncreaseLiquidityMultisignInputSchema, mcpUniswapV4BuildMintLiquidityMultisignInputSchema, mcpUniswapV4BuildSwapMultisignInputSchema, mcpUniswapV4CreateSwapInputSchema, mcpUniswapV4CreateSwapOutputSchema, mcpUniswapV4LpClaimInputSchema, mcpUniswapV4LpClaimOutputSchema, mcpUniswapV4LpCreatePositionInputSchema, mcpUniswapV4LpCreatePositionOutputSchema, mcpUniswapV4LpDecreaseInputSchema, mcpUniswapV4LpDecreaseOutputSchema, mcpUniswapV4LpIncreaseInputSchema, mcpUniswapV4LpIncreaseOutputSchema, mcpUniswapV4LpListPoolsInputSchema, mcpUniswapV4LpListPoolsOutputSchema, mcpUniswapV4LpListPositionsInputSchema, mcpUniswapV4LpListPositionsOutputSchema, mcpUniswapV4QuoteInputSchema, mcpUniswapV4QuoteOutputSchema, mcpUniswapV4RegisterPositionFromMintTxInputSchema, mcpUniswapV4RegisterPositionFromMintTxOutputSchema, mcpUniswapV4RegisterPositionNftInputSchema, mcpUniswapV4RegisterPositionNftOutputSchema, multisignOutputSchema, parseMcpToolInput, parseMcpToolOutput, parseMultisignBuilderOutput, uniswapQuoteTradeTypeSchema, zodSchemaToMcpJsonSchema };
|