@t402/mcp 2.4.0 → 2.6.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.
@@ -1,4 +1,4 @@
1
- import { M as McpServerConfig } from '../types-CWK2p9_n.js';
1
+ import { M as McpServerConfig, e as TonMcpBridgeConfig } from '../ton-bridge-BN3RKhNy.js';
2
2
  import 'viem';
3
3
 
4
4
  /**
@@ -9,11 +9,29 @@ import 'viem';
9
9
  * t402 MCP Server
10
10
  *
11
11
  * Provides payment tools for AI agents via the Model Context Protocol.
12
+ * When a WDK seed phrase is configured, additional wallet management tools are available.
12
13
  */
13
14
  declare class T402McpServer {
14
15
  private server;
15
16
  private config;
17
+ private wdk;
16
18
  constructor(config?: McpServerConfig);
19
+ /**
20
+ * Initialize the WDK instance from seed phrase
21
+ */
22
+ initWdk(): Promise<void>;
23
+ /** TON MCP bridge configuration */
24
+ private tonBridgeConfig;
25
+ /**
26
+ * Register TON bridge tools
27
+ *
28
+ * Enables AI agents to use @ton/mcp tools through the t402 MCP server.
29
+ */
30
+ registerTonBridge(config: TonMcpBridgeConfig): void;
31
+ /**
32
+ * Get all tool definitions (base + WDK if configured + unified if enabled + TON bridge if registered)
33
+ */
34
+ private getToolDefinitions;
17
35
  /**
18
36
  * Set up MCP request handlers
19
37
  */
@@ -42,6 +60,38 @@ declare class T402McpServer {
42
60
  * Handle t402/bridge
43
61
  */
44
62
  private handleBridge;
63
+ /**
64
+ * Handle wdk/getWallet
65
+ */
66
+ private handleWdkGetWallet;
67
+ /**
68
+ * Handle wdk/getBalances
69
+ */
70
+ private handleWdkGetBalances;
71
+ /**
72
+ * Handle wdk/transfer
73
+ */
74
+ private handleWdkTransfer;
75
+ /**
76
+ * Handle wdk/swap
77
+ */
78
+ private handleWdkSwap;
79
+ /**
80
+ * Handle t402/autoPay
81
+ */
82
+ private handleAutoPay;
83
+ /**
84
+ * Handle t402/smartPay
85
+ */
86
+ private handleSmartPay;
87
+ /**
88
+ * Handle t402/paymentPlan
89
+ */
90
+ private handlePaymentPlan;
91
+ /**
92
+ * Handle TON bridge tool calls
93
+ */
94
+ private handleTonBridgeTool;
45
95
  /**
46
96
  * Start the server using stdio transport
47
97
  */