@t402/mcp 2.5.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 +9 -3
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/index.js +569 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/server/index.d.ts +22 -2
- package/dist/cjs/server/index.js +551 -1
- package/dist/cjs/server/index.js.map +1 -1
- package/dist/cjs/{types-CwwW_c2B.d.ts → ton-bridge-BN3RKhNy.d.ts} +89 -1
- package/dist/cjs/tools/index.d.ts +219 -2
- package/dist/cjs/tools/index.js +514 -0
- package/dist/cjs/tools/index.js.map +1 -1
- package/dist/esm/{chunk-KTG47TRY.mjs → chunk-3FGPOVUZ.mjs} +82 -3
- package/dist/esm/chunk-3FGPOVUZ.mjs.map +1 -0
- package/dist/esm/{chunk-5UOBQKXW.mjs → chunk-RDQ7AMR4.mjs} +503 -1
- package/dist/esm/chunk-RDQ7AMR4.mjs.map +1 -0
- package/dist/esm/index.d.mts +3 -3
- package/dist/esm/index.mjs +20 -2
- package/dist/esm/server/index.d.mts +22 -2
- package/dist/esm/server/index.mjs +2 -2
- package/dist/esm/{types-CwwW_c2B.d.mts → ton-bridge-BN3RKhNy.d.mts} +89 -1
- package/dist/esm/tools/index.d.mts +219 -2
- package/dist/esm/tools/index.mjs +25 -1
- package/package.json +20 -12
- package/dist/esm/chunk-5UOBQKXW.mjs.map +0 -1
- package/dist/esm/chunk-KTG47TRY.mjs.map +0 -1
package/bin/t402-mcp.js
CHANGED
|
@@ -34,14 +34,18 @@ async function main() {
|
|
|
34
34
|
console.error(` Bundler URL: ${config.bundlerUrl ? 'configured' : 'not set'}`)
|
|
35
35
|
console.error(` Paymaster URL: ${config.paymasterUrl ? 'configured' : 'not set'}`)
|
|
36
36
|
console.error(` WDK Seed Phrase: ${config.seedPhrase ? 'configured' : 'not set'}`)
|
|
37
|
-
console.error(
|
|
37
|
+
console.error(
|
|
38
|
+
` WDK Chains: ${config.wdkChains ? config.wdkChains.join(', ') : 'default (ethereum, arbitrum, base)'}`,
|
|
39
|
+
)
|
|
38
40
|
|
|
39
41
|
if (config.rpcUrls) {
|
|
40
42
|
console.error(` Custom RPC URLs: ${Object.keys(config.rpcUrls).join(', ')}`)
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
if (config.seedPhrase || config.demoMode) {
|
|
44
|
-
console.error(
|
|
46
|
+
console.error(
|
|
47
|
+
' WDK Tools: enabled (wdk/getWallet, wdk/getBalances, wdk/transfer, wdk/swap, t402/autoPay)',
|
|
48
|
+
)
|
|
45
49
|
} else {
|
|
46
50
|
console.error(' WDK Tools: disabled (set T402_WDK_SEED_PHRASE to enable)')
|
|
47
51
|
}
|
|
@@ -49,7 +53,9 @@ async function main() {
|
|
|
49
53
|
if (!config.privateKey && !config.demoMode && !config.seedPhrase) {
|
|
50
54
|
console.error('')
|
|
51
55
|
console.error('Warning: No private key or seed phrase configured.')
|
|
52
|
-
console.error(
|
|
56
|
+
console.error(
|
|
57
|
+
'Set T402_PRIVATE_KEY or T402_WDK_SEED_PHRASE env var, or enable T402_DEMO_MODE=true',
|
|
58
|
+
)
|
|
53
59
|
console.error('')
|
|
54
60
|
}
|
|
55
61
|
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, 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 './
|
|
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
7
|
import '@t402/wdk';
|