@caypo/canton-mcp 0.1.0

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.
@@ -0,0 +1,14 @@
1
+
2
+ > @caypo/canton-mcp@0.1.0 build /Users/anil/Desktop/caypo/packages/mcp
3
+ > tsup
4
+
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Using tsup config: /Users/anil/Desktop/caypo/packages/mcp/tsup.config.ts
9
+ CLI Target: es2022
10
+ CLI Cleaning output folder
11
+ ESM Build start
12
+ ESM dist/index.js 21.32 KB
13
+ ESM dist/index.js.map 37.47 KB
14
+ ESM ⚡️ Build success in 11ms
@@ -0,0 +1,12 @@
1
+
2
+ > @caypo/canton-mcp@0.1.0 test /Users/anil/Desktop/caypo/packages/mcp
3
+ > vitest run
4
+
5
+
6
+ RUN v3.2.4 /Users/anil/Desktop/caypo/packages/mcp
7
+
8
+ No test files found, exiting with code 0
9
+
10
+ include: **/*.{test,spec}.?(c|m)[jt]s?(x)
11
+ exclude: **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*
12
+
package/README.md ADDED
@@ -0,0 +1,84 @@
1
+ # @caypo/canton-mcp
2
+
3
+ **MCP server connecting [Canton Network](https://canton.network) to Claude Desktop, Cursor, and Windsurf**
4
+
5
+ 33 tools and 20 prompts for AI-assisted banking operations — check balances, send payments, pay for APIs, manage safeguards, and more.
6
+
7
+ [![License](https://img.shields.io/badge/license-Apache--2.0%20%2F%20MIT-blue)](../../LICENSE-APACHE)
8
+ [![Tools](https://img.shields.io/badge/MCP%20tools-33-purple)](../../)
9
+ [![Prompts](https://img.shields.io/badge/MCP%20prompts-20-purple)](../../)
10
+
11
+ ## Install
12
+
13
+ The easiest way:
14
+
15
+ ```bash
16
+ caypo mcp install
17
+ ```
18
+
19
+ Or manually add to your MCP config (`claude_desktop_config.json`):
20
+
21
+ ```json
22
+ {
23
+ "mcpServers": {
24
+ "caypo": {
25
+ "command": "npx",
26
+ "args": ["@caypo/canton-mcp"],
27
+ "env": { "CANTON_AGENT_CONFIG": "~/.caypo/config.json" }
28
+ }
29
+ }
30
+ }
31
+ ```
32
+
33
+ ## What You Can Ask
34
+
35
+ Once installed, talk to your AI assistant naturally:
36
+
37
+ > "What's my CAYPO balance?"
38
+
39
+ > "Send 5 USDCx to Alice::1220..."
40
+
41
+ > "Pay for a GPT-4 API call through the gateway"
42
+
43
+ > "Show my spending limits and daily usage"
44
+
45
+ > "Give me a morning financial briefing"
46
+
47
+ > "Run a security audit on my agent wallet"
48
+
49
+ ## Tools (33)
50
+
51
+ | Category | Tools | Description |
52
+ |----------|-------|-------------|
53
+ | **Balance & Info** | `caypo_balance`, `caypo_address`, `caypo_history`, `caypo_positions`, `caypo_rates` | Account overview |
54
+ | **Checking** | `caypo_send`, `caypo_receive`, `caypo_contacts` | Send and receive USDCx |
55
+ | **MPP Payments** | `caypo_pay`, `caypo_pay_status`, `caypo_services` | Pay for APIs, check status |
56
+ | **Safeguards** | `caypo_safeguards`, `caypo_set_limit`, `caypo_lock` | Spending controls |
57
+ | **Traffic** | `caypo_traffic`, `caypo_purchase_traffic` | Validator bandwidth |
58
+ | **Savings** | 4 tools | Coming in Phase 3 |
59
+ | **Credit** | 3 tools | Coming in Phase 3 |
60
+ | **Exchange** | 2 tools | Coming in Phase 3 |
61
+ | **Investment** | 8 tools | Coming in Phase 4 |
62
+ | **Rewards** | 2 tools | Coming in Phase 3 |
63
+
64
+ ## Prompts (20)
65
+
66
+ | Prompt | Description |
67
+ |--------|-------------|
68
+ | `morning_briefing` | Daily financial briefing with balance, spending, traffic |
69
+ | `financial_report` | Comprehensive account analysis with recommendations |
70
+ | `spending_analysis` | Categorize spending and identify patterns |
71
+ | `security_audit` | Check safeguards, wallet status, traffic health |
72
+ | `onboarding` | New user guide for Canton agent banking |
73
+ | *+ 15 more* | what_if, optimize_yield, risk_assessment, budget_plan, ... |
74
+
75
+ ## Compatible With
76
+
77
+ - **Claude Desktop** (Anthropic)
78
+ - **Cursor** (AI code editor)
79
+ - **Windsurf** (Codeium)
80
+ - Any MCP-compatible AI tool
81
+
82
+ ## License
83
+
84
+ Apache-2.0 OR MIT
package/SPEC.md ADDED
@@ -0,0 +1,93 @@
1
+ # @cayvox/canton-mcp — MCP Server Specification (Production)
2
+
3
+ ## Stats: 33 tools + 20 prompts (matching t2000)
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ canton-agent mcp install
9
+ # Creates config for Claude Desktop / Cursor / Windsurf
10
+ ```
11
+
12
+ MCP config entry:
13
+ ```json
14
+ {
15
+ "mcpServers": {
16
+ "canton-agent": {
17
+ "command": "npx",
18
+ "args": ["@cayvox/canton-mcp"],
19
+ "env": { "CANTON_AGENT_CONFIG": "~/.canton-agent/config.json" }
20
+ }
21
+ }
22
+ }
23
+ ```
24
+
25
+ Transport: **stdio** (standard for Claude Desktop MCP servers)
26
+
27
+ ## Tools (33)
28
+
29
+ ### Balance & Info (5)
30
+ - `canton_balance` — All account balances (queries Holding contracts via `/v2/state/active-contracts`)
31
+ - `canton_address` — Party ID and network info
32
+ - `canton_history` — Transaction history via `/v2/updates/flats`
33
+ - `canton_positions` — DeFi positions (Phase 3 stub)
34
+ - `canton_rates` — Exchange rates and APYs (Phase 3 stub)
35
+
36
+ ### Checking (3)
37
+ - `canton_send` — Send USDCx via TransferFactory_Transfer
38
+ - `canton_receive` — Show party ID + deposit instructions
39
+ - `canton_contacts` — Manage contact list (local JSON)
40
+
41
+ ### Savings (4) — Phase 3 stubs
42
+ - `canton_save`, `canton_withdraw`, `canton_rebalance_savings`, `canton_earnings`
43
+
44
+ ### Credit (3) — Phase 3 stubs
45
+ - `canton_borrow`, `canton_repay`, `canton_health`
46
+
47
+ ### Exchange (2) — Phase 3 stubs
48
+ - `canton_exchange`, `canton_quote`
49
+
50
+ ### Investment (8) — Phase 4 stubs
51
+ - `canton_invest_buy`, `canton_invest_sell`, `canton_invest_earn`, `canton_invest_unearn`
52
+ - `canton_invest_rebalance`, `canton_portfolio`, `canton_strategy_buy`, `canton_auto_invest`
53
+
54
+ ### MPP Payments (3)
55
+ - `canton_pay` — Pay for API via MPP (402 auto-handling)
56
+ - `canton_pay_status` — Check payment by updateId
57
+ - `canton_services` — List MPP gateway services
58
+
59
+ ### Safeguards (3)
60
+ - `canton_safeguards` — View limits
61
+ - `canton_set_limit` — Set tx/daily limits
62
+ - `canton_lock` — Lock/unlock wallet
63
+
64
+ ### Traffic (2)
65
+ - `canton_traffic` — Validator traffic balance
66
+ - `canton_purchase_traffic` — Buy traffic with CC
67
+
68
+ ### Rewards (2) — Phase 3 stubs
69
+ - `canton_claim_rewards`, `canton_reward_history`
70
+
71
+ ## Prompts (20)
72
+
73
+ morning_briefing, financial_report, what_if, optimize_yield, risk_assessment,
74
+ investment_thesis, rebalance_plan, savings_strategy, credit_health, spending_analysis,
75
+ traffic_report, market_overview, portfolio_review, defi_opportunities, weekly_summary,
76
+ budget_plan, tax_summary, onboarding, troubleshoot, security_audit
77
+
78
+ ## Implementation
79
+
80
+ ```typescript
81
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
82
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
83
+ import { CantonAgent } from "@cayvox/canton-sdk";
84
+
85
+ const agent = await CantonAgent.create();
86
+ const server = new Server({ name: "canton-agent", version: "1.0.0" }, {
87
+ capabilities: { tools: {}, prompts: {} },
88
+ });
89
+
90
+ // Register tools and prompts...
91
+ const transport = new StdioServerTransport();
92
+ await server.connect(transport);
93
+ ```