@t2000/cli 0.12.1 → 0.12.3

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 CHANGED
@@ -174,11 +174,17 @@ t2000 init
174
174
  ### MCP Server
175
175
 
176
176
  ```bash
177
- # Start MCP server (stdio transport) for Claude Desktop, Cursor, etc.
177
+ # Auto-configure Claude Desktop + Cursor
178
+ t2000 mcp install
179
+
180
+ # Remove MCP config
181
+ t2000 mcp uninstall
182
+
183
+ # Start MCP server (used by AI platforms, not typically run directly)
178
184
  t2000 mcp
179
185
  ```
180
186
 
181
- 16 tools, 3 prompts, safeguard enforced. See [MCP setup guide](../../docs/mcp-setup.md) for platform configs.
187
+ 16 tools, 3 prompts, safeguard enforced. See [MCP setup guide](../../docs/mcp-setup.md) for details.
182
188
 
183
189
  ### HTTP API Server
184
190
 
@@ -21015,7 +21015,7 @@ function errorResult(err) {
21015
21015
  function registerReadTools(server, agent) {
21016
21016
  server.tool(
21017
21017
  "t2000_balance",
21018
- "Get agent's current balance \u2014 available (checking), savings, gas reserve, and total. All values in USD.",
21018
+ "Get agent's current balance \u2014 available (checking), savings, credit (debt), gas reserve, and net total. All values in USD.",
21019
21019
  {},
21020
21020
  async () => {
21021
21021
  try {
@@ -21517,6 +21517,65 @@ ${context}
21517
21517
  };
21518
21518
  }
21519
21519
  );
21520
+ server.prompt(
21521
+ "budget-check",
21522
+ "Can I afford to spend $X? Checks balance, daily limit remaining, and whether spending would impact savings.",
21523
+ {
21524
+ amount: external_exports.number().optional().describe("Amount in dollars to check")
21525
+ },
21526
+ async ({ amount }) => ({
21527
+ messages: [{
21528
+ role: "user",
21529
+ content: {
21530
+ type: "text",
21531
+ text: [
21532
+ "You are a budget assistant for a t2000 AI agent bank account.",
21533
+ "",
21534
+ amount ? `The user wants to know if they can afford to spend $${amount}.` : "The user wants a spending check.",
21535
+ "",
21536
+ "Analyze their financial situation:",
21537
+ "1. Check current balance (t2000_balance)",
21538
+ '2. Check safeguard limits (t2000_config with action: "show")',
21539
+ "3. Calculate: available balance, daily limit remaining, what percentage of total this spend represents",
21540
+ "",
21541
+ "Give a clear yes/no answer with context:",
21542
+ "- Can they afford it from checking?",
21543
+ "- Would it hit their daily send limit?",
21544
+ "- What balance would remain after?",
21545
+ "- If it's a large % of their total, flag that."
21546
+ ].join("\n")
21547
+ }
21548
+ }]
21549
+ })
21550
+ );
21551
+ server.prompt(
21552
+ "savings-strategy",
21553
+ "Analyze idle funds in checking and recommend a savings strategy \u2014 how much to save, expected yield, best rates.",
21554
+ async () => ({
21555
+ messages: [{
21556
+ role: "user",
21557
+ content: {
21558
+ type: "text",
21559
+ text: [
21560
+ "You are a savings advisor for a t2000 AI agent bank account.",
21561
+ "",
21562
+ "Analyze the user's funds and recommend a savings strategy:",
21563
+ "1. Check current balance (t2000_balance) \u2014 how much is idle in checking?",
21564
+ "2. Check current positions (t2000_positions) \u2014 what's already in savings?",
21565
+ "3. Compare rates across protocols (t2000_rates) \u2014 where's the best yield?",
21566
+ "",
21567
+ "Recommend:",
21568
+ "- How much to move from checking to savings (keep a reasonable buffer for gas + daily spending)",
21569
+ "- Which protocol offers the best rate right now",
21570
+ "- Expected annual yield on the recommended amount",
21571
+ "- If they should rebalance existing savings (t2000_rebalance with dryRun: true)",
21572
+ "",
21573
+ "If they want to proceed, use t2000_save to deposit. Always preview first."
21574
+ ].join("\n")
21575
+ }
21576
+ }]
21577
+ })
21578
+ );
21520
21579
  }
21521
21580
  async function startMcpServer(opts) {
21522
21581
  const agent = await createAgent(opts?.keyPath);
@@ -21537,4 +21596,4 @@ async function startMcpServer(opts) {
21537
21596
  export {
21538
21597
  startMcpServer
21539
21598
  };
21540
- //# sourceMappingURL=dist-QVEFT4TY.js.map
21599
+ //# sourceMappingURL=dist-KTIGPZKW.js.map