@t2000/mcp 0.20.24 → 0.20.26

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/index.js CHANGED
@@ -548,7 +548,7 @@ function registerWriteTools(server, agent) {
548
548
  const investAssets = Object.keys(INVESTMENT_ASSETS);
549
549
  server.tool(
550
550
  "t2000_invest",
551
- "Buy, sell, earn yield, or stop earning on investment assets. Actions: buy (invest USD), sell (convert to USDC), earn (deposit into best-rate lending for yield), unearn (withdraw from lending, keep in portfolio). Amount required for buy/sell only.",
551
+ "Buy, sell, earn yield, or stop earning on investment assets. Actions: buy (invest USD), sell (convert to USDC), earn (deposit into best-rate lending for yield), unearn (withdraw from lending, keep in portfolio). Amount required for buy/sell only. If checking balance is insufficient for a buy, the SDK will auto-withdraw from savings \u2014 no manual withdraw needed.",
552
552
  {
553
553
  action: z.enum(["buy", "sell", "earn", "unearn"]).describe("'buy' to invest, 'sell' to liquidate, 'earn' to deposit into lending for yield, 'unearn' to withdraw from lending"),
554
554
  asset: z.enum(investAssets).describe("Asset to invest in"),
@@ -624,7 +624,7 @@ function registerWriteTools(server, agent) {
624
624
  );
625
625
  server.tool(
626
626
  "t2000_strategy",
627
- "Manage investment strategies \u2014 buy into predefined or custom allocations, sell entire strategies, check status, rebalance, or create/delete custom strategies.",
627
+ 'Manage investment strategies \u2014 buy into predefined or custom allocations, sell entire strategies, check status, rebalance, or create/delete custom strategies. IMPORTANT: Before buying, ALWAYS call with action "list" first to show the user the strategy allocations (e.g. All-Weather = 30% BTC, 20% ETH, 20% SUI, 30% GOLD), then use dryRun: true to preview estimated amounts and prices. Only execute after the user confirms. If checking balance is insufficient, the SDK will auto-withdraw from savings \u2014 no manual withdraw needed.',
628
628
  {
629
629
  action: z.enum(["list", "buy", "sell", "status", "rebalance", "create", "delete"]).describe("Strategy action to perform"),
630
630
  name: z.string().optional().describe("Strategy name (required for all actions except 'list')"),
@@ -1081,7 +1081,14 @@ ${context}
1081
1081
  " - Whether invested assets should earn yield (t2000_invest earn)",
1082
1082
  " - Risk: concentration, unrealized losses, strategy drift",
1083
1083
  "",
1084
- "For strategies: use t2000_strategy with dryRun: true to preview.",
1084
+ "STRATEGY PRESENTATION: Always show the strategy allocations before buying.",
1085
+ ' e.g. "All-Weather: 30% BTC, 20% ETH, 20% SUI, 30% GOLD \u2014 diversified crypto + commodities"',
1086
+ " Then use dryRun: true to preview estimated prices and amounts.",
1087
+ "",
1088
+ "AUTO-FUNDING: If checking balance is insufficient but savings exist,",
1089
+ " the SDK auto-withdraws from savings to fund the investment.",
1090
+ " Do NOT manually withdraw first \u2014 just call t2000_strategy buy or t2000_invest buy directly.",
1091
+ "",
1085
1092
  'For DCA: use t2000_auto_invest action: "setup" to create recurring buys.'
1086
1093
  ].join("\n")
1087
1094
  }
@@ -1154,8 +1161,9 @@ ${context}
1154
1161
  "",
1155
1162
  'For INVESTMENT scenarios ("invest $X in Y" or "buy $X of strategy"):',
1156
1163
  ` - Call t2000_strategy (action: "list") to get allocations if it's a strategy`,
1164
+ ' - ALWAYS show strategy allocations (e.g. "30% BTC, 20% ETH, 20% SUI, 30% GOLD")',
1157
1165
  " - Call t2000_invest or t2000_strategy with dryRun: true to preview",
1158
- " - If the amount exceeds available checking, calculate what they'd need to withdraw from savings",
1166
+ " - If checking is insufficient but savings exist, note that the SDK auto-withdraws \u2014 no manual step needed",
1159
1167
  "",
1160
1168
  'For SAVINGS scenarios ("save $X" or "withdraw $X"):',
1161
1169
  " - Show impact on yield and health factor",
@@ -1177,8 +1185,8 @@ ${context}
1177
1185
  " Investment $XX.XX $XX.XX",
1178
1186
  "",
1179
1187
  "Then add a smart recommendation:",
1180
- " - If amount exceeds checking, suggest a smaller amount that keeps savings intact",
1181
- " - If it would drain checking below $5, warn about gas needs",
1188
+ " - If amount exceeds checking, note that savings will be auto-withdrawn to fund it",
1189
+ " - If it would drain total funds (checking + savings) below $5, warn about gas needs",
1182
1190
  " - If the asset can earn yield after buying, mention it",
1183
1191
  "",
1184
1192
  'End with: "Want me to go ahead?" \u2014 ready to execute on confirmation.'