@iflow-mcp/mission69b-t2000 0.22.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/README.md +76 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +1337 -0
- package/dist/bin.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1336 -0
- package/dist/index.js.map +1 -0
- package/package.json +62 -0
package/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# @t2000/mcp
|
|
2
|
+
|
|
3
|
+
MCP server for AI agent bank accounts on Sui. Connect Claude Desktop, Cursor, or any MCP client to your t2000 agent.
|
|
4
|
+
|
|
5
|
+
**Safeguard enforced · stdio transport**
|
|
6
|
+
|
|
7
|
+
> **New to t2000?** Run `t2000 init` — it creates your wallet, configures MCP for your AI platforms, and sets safeguards in one command.
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm i -g @t2000/cli # install
|
|
13
|
+
t2000 init # wallet + MCP + safeguards
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Restart your AI platform, then ask: **"What's my t2000 balance?"**
|
|
17
|
+
|
|
18
|
+
> `t2000 mcp install` can reconfigure MCP platforms later if needed.
|
|
19
|
+
|
|
20
|
+
To remove: `t2000 mcp uninstall`
|
|
21
|
+
|
|
22
|
+
For other platforms, paste manually:
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{ "mcpServers": { "t2000": { "command": "t2000", "args": ["mcp"] } } }
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Tools
|
|
29
|
+
|
|
30
|
+
| Tool | Type | Description |
|
|
31
|
+
|------|------|-------------|
|
|
32
|
+
| `t2000_overview` | read | Complete account snapshot in one call |
|
|
33
|
+
| `t2000_balance` | read | Current balance |
|
|
34
|
+
| `t2000_address` | read | Wallet address |
|
|
35
|
+
| `t2000_positions` | read | Lending positions |
|
|
36
|
+
| `t2000_rates` | read | Best interest rates per asset |
|
|
37
|
+
| `t2000_all_rates` | read | Per-protocol rate comparison |
|
|
38
|
+
| `t2000_health` | read | Health factor |
|
|
39
|
+
| `t2000_history` | read | Transaction history |
|
|
40
|
+
| `t2000_earnings` | read | Yield earnings |
|
|
41
|
+
| `t2000_fund_status` | read | Savings fund status |
|
|
42
|
+
| `t2000_pending_rewards` | read | Pending protocol rewards |
|
|
43
|
+
| `t2000_deposit_info` | read | Deposit instructions |
|
|
44
|
+
| `t2000_contacts` | read | List saved contacts (name → address) |
|
|
45
|
+
| `t2000_services` | read | Discover MPP services, endpoints, and prices |
|
|
46
|
+
| `t2000_pay` | write | Make a paid API request via MPP |
|
|
47
|
+
| `t2000_send` | write | Send USDC |
|
|
48
|
+
| `t2000_save` | write | Deposit to savings |
|
|
49
|
+
| `t2000_withdraw` | write | Withdraw from savings |
|
|
50
|
+
| `t2000_borrow` | write | Borrow against collateral |
|
|
51
|
+
| `t2000_repay` | write | Repay debt |
|
|
52
|
+
| `t2000_claim_rewards` | write | Claim protocol rewards and auto-convert to USDC |
|
|
53
|
+
| `t2000_contact_add` | write | Save a contact name → address |
|
|
54
|
+
| `t2000_contact_remove` | write | Remove a saved contact |
|
|
55
|
+
| `t2000_config` | safety | View/set limits |
|
|
56
|
+
| `t2000_lock` | safety | Emergency freeze |
|
|
57
|
+
|
|
58
|
+
## Programmatic Usage
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import { startMcpServer } from '@t2000/mcp';
|
|
62
|
+
|
|
63
|
+
await startMcpServer({ keyPath: '/path/to/key' });
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Security
|
|
67
|
+
|
|
68
|
+
- Safeguard gate prevents starting without configured limits
|
|
69
|
+
- Per-transaction and daily send caps enforced on all state-changing tools
|
|
70
|
+
- `unlock` is CLI-only — AI cannot circumvent a locked agent
|
|
71
|
+
- `dryRun: true` previews operations without signing
|
|
72
|
+
- stdio transport — private key never leaves the machine
|
|
73
|
+
|
|
74
|
+
## License
|
|
75
|
+
|
|
76
|
+
MIT
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|