@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.
- package/bin/t402-mcp.js +19 -3
- package/dist/cjs/index.d.ts +4 -3
- package/dist/cjs/index.js +1054 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/server/index.d.ts +51 -1
- package/dist/cjs/server/index.js +1036 -1
- package/dist/cjs/server/index.js.map +1 -1
- package/dist/cjs/{types-CWK2p9_n.d.ts → ton-bridge-BN3RKhNy.d.ts} +93 -1
- package/dist/cjs/tools/index.d.ts +620 -3
- package/dist/cjs/tools/index.js +945 -2
- package/dist/cjs/tools/index.js.map +1 -1
- package/dist/esm/{chunk-U2V6MOSU.mjs → chunk-3FGPOVUZ.mjs} +202 -4
- package/dist/esm/chunk-3FGPOVUZ.mjs.map +1 -0
- package/dist/esm/{chunk-5IVOABVF.mjs → chunk-RDQ7AMR4.mjs} +912 -2
- package/dist/esm/chunk-RDQ7AMR4.mjs.map +1 -0
- package/dist/esm/index.d.mts +4 -3
- package/dist/esm/index.mjs +20 -2
- package/dist/esm/server/index.d.mts +51 -1
- package/dist/esm/server/index.mjs +2 -2
- package/dist/esm/{types-CWK2p9_n.d.mts → ton-bridge-BN3RKhNy.d.mts} +93 -1
- package/dist/esm/tools/index.d.mts +620 -3
- package/dist/esm/tools/index.mjs +69 -3
- package/package.json +26 -16
- package/dist/esm/chunk-5IVOABVF.mjs.map +0 -1
- package/dist/esm/chunk-U2V6MOSU.mjs.map +0 -1
package/bin/t402-mcp.js
CHANGED
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
* T402_DEMO_MODE - Set to "true" to simulate transactions
|
|
15
15
|
* T402_BUNDLER_URL - ERC-4337 bundler URL for gasless transactions
|
|
16
16
|
* T402_PAYMASTER_URL - Paymaster URL for gasless transactions
|
|
17
|
+
* T402_WDK_SEED_PHRASE - WDK seed phrase (enables wallet tools)
|
|
18
|
+
* T402_WDK_CHAINS - Comma-separated chains for WDK (default: ethereum,arbitrum,base)
|
|
17
19
|
* T402_RPC_ETHEREUM - Custom RPC URL for Ethereum
|
|
18
20
|
* T402_RPC_BASE - Custom RPC URL for Base
|
|
19
21
|
* T402_RPC_ARBITRUM - Custom RPC URL for Arbitrum
|
|
@@ -31,15 +33,29 @@ async function main() {
|
|
|
31
33
|
console.error(` Demo Mode: ${config.demoMode ? 'enabled' : 'disabled'}`)
|
|
32
34
|
console.error(` Bundler URL: ${config.bundlerUrl ? 'configured' : 'not set'}`)
|
|
33
35
|
console.error(` Paymaster URL: ${config.paymasterUrl ? 'configured' : 'not set'}`)
|
|
36
|
+
console.error(` WDK Seed Phrase: ${config.seedPhrase ? 'configured' : 'not set'}`)
|
|
37
|
+
console.error(
|
|
38
|
+
` WDK Chains: ${config.wdkChains ? config.wdkChains.join(', ') : 'default (ethereum, arbitrum, base)'}`,
|
|
39
|
+
)
|
|
34
40
|
|
|
35
41
|
if (config.rpcUrls) {
|
|
36
42
|
console.error(` Custom RPC URLs: ${Object.keys(config.rpcUrls).join(', ')}`)
|
|
37
43
|
}
|
|
38
44
|
|
|
39
|
-
if (
|
|
45
|
+
if (config.seedPhrase || config.demoMode) {
|
|
46
|
+
console.error(
|
|
47
|
+
' WDK Tools: enabled (wdk/getWallet, wdk/getBalances, wdk/transfer, wdk/swap, t402/autoPay)',
|
|
48
|
+
)
|
|
49
|
+
} else {
|
|
50
|
+
console.error(' WDK Tools: disabled (set T402_WDK_SEED_PHRASE to enable)')
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (!config.privateKey && !config.demoMode && !config.seedPhrase) {
|
|
40
54
|
console.error('')
|
|
41
|
-
console.error('Warning: No private key configured.')
|
|
42
|
-
console.error(
|
|
55
|
+
console.error('Warning: No private key or seed phrase configured.')
|
|
56
|
+
console.error(
|
|
57
|
+
'Set T402_PRIVATE_KEY or T402_WDK_SEED_PHRASE env var, or enable T402_DEMO_MODE=true',
|
|
58
|
+
)
|
|
43
59
|
console.error('')
|
|
44
60
|
}
|
|
45
61
|
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { T402McpServer, createT402McpServer, loadConfigFromEnv } from './server/index.js';
|
|
2
|
-
export { AllBalancesResult, BridgeInput, BridgeOptions, GASLESS_SUPPORTED_NETWORKS, GetAllBalancesInput, GetBalanceInput, GetBridgeFeeInput, PayGaslessInput, PayGaslessOptions, PayInput, PayOptions, TOOL_DEFINITIONS, bridgeInputSchema, executeBridge, executeGetAllBalances, executeGetBalance, executeGetBridgeFee, executePay, executePayGasless, formatAllBalancesResult, formatBalanceResult, formatBridgeFeeResult, formatBridgeResult, formatGaslessPaymentResult, formatPaymentResult, getAllBalancesInputSchema, getBalanceInputSchema, getBridgeFeeInputSchema, payGaslessInputSchema, payInputSchema } from './tools/index.js';
|
|
3
|
-
import { S as SupportedNetwork } from './
|
|
4
|
-
export { B as BridgeFeeQuote,
|
|
2
|
+
export { AllBalancesResult, BridgeInput, BridgeOptions, GASLESS_SUPPORTED_NETWORKS, GetAllBalancesInput, GetBalanceInput, GetBridgeFeeInput, PayGaslessInput, PayGaslessOptions, PayInput, PayOptions, PaymentPlanInput, PaymentPlanResult, SmartPayInput, SmartPayResult, SmartPayStep, TOOL_DEFINITIONS, UNIFIED_TOOL_DEFINITIONS, UnifiedMcpConfig, bridgeInputSchema, executeBridge, executeGetAllBalances, executeGetBalance, executeGetBridgeFee, executePay, executePayGasless, executePaymentPlan, executePaymentPlanDemo, executeSmartPay, executeSmartPayDemo, formatAllBalancesResult, formatBalanceResult, formatBridgeFeeResult, formatBridgeResult, formatGaslessPaymentResult, formatPaymentPlanResult, formatPaymentResult, formatSmartPayResult, getAllBalancesInputSchema, getBalanceInputSchema, getBridgeFeeInputSchema, payGaslessInputSchema, payInputSchema, paymentPlanInputSchema, smartPayInputSchema } from './tools/index.js';
|
|
3
|
+
import { S as SupportedNetwork } from './ton-bridge-BN3RKhNy.js';
|
|
4
|
+
export { B as BridgeFeeQuote, a as BridgeResult, C as ChainBalance, G as GaslessPaymentResult, M as McpServerConfig, P as PaymentParams, b as PaymentResult, T as TokenBalance, c as ToolContext } from './ton-bridge-BN3RKhNy.js';
|
|
5
5
|
import { Address } from 'viem';
|
|
6
6
|
import 'zod';
|
|
7
|
+
import '@t402/wdk';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Constants and network configurations for t402 MCP Server
|