@t402/mcp 2.8.0 → 2.8.1
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/dist/cjs/index.js +286 -58
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/server/index.d.ts +5 -0
- package/dist/cjs/server/index.js +286 -58
- package/dist/cjs/server/index.js.map +1 -1
- package/dist/cjs/tools/index.d.ts +322 -1
- package/dist/cjs/tools/index.js +606 -58
- package/dist/cjs/tools/index.js.map +1 -1
- package/dist/esm/{chunk-XOPD7VTU.mjs → chunk-4DCBAKH2.mjs} +25 -2
- package/dist/esm/chunk-4DCBAKH2.mjs.map +1 -0
- package/dist/esm/{chunk-SUDCVXHQ.mjs → chunk-OSPCSAZF.mjs} +591 -55
- package/dist/esm/chunk-OSPCSAZF.mjs.map +1 -0
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/server/index.d.mts +5 -0
- package/dist/esm/server/index.mjs +2 -2
- package/dist/esm/tools/index.d.mts +322 -1
- package/dist/esm/tools/index.mjs +25 -1
- package/package.json +11 -11
- package/dist/esm/chunk-SUDCVXHQ.mjs.map +0 -1
- package/dist/esm/chunk-XOPD7VTU.mjs.map +0 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
T402McpServer,
|
|
3
3
|
createT402McpServer,
|
|
4
4
|
loadConfigFromEnv
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4DCBAKH2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
BRIDGEABLE_CHAINS,
|
|
8
8
|
CHAIN_IDS,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
paymentPlanInputSchema,
|
|
48
48
|
smartPayInputSchema,
|
|
49
49
|
supportsToken
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-OSPCSAZF.mjs";
|
|
51
51
|
export {
|
|
52
52
|
BRIDGEABLE_CHAINS,
|
|
53
53
|
CHAIN_IDS,
|
|
@@ -20,6 +20,11 @@ declare class T402McpServer {
|
|
|
20
20
|
* Initialize the WDK instance from seed phrase
|
|
21
21
|
*/
|
|
22
22
|
initWdk(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Clear sensitive data from memory.
|
|
25
|
+
* Should be called on server shutdown to minimize key exposure window.
|
|
26
|
+
*/
|
|
27
|
+
cleanup(): void;
|
|
23
28
|
/** TON MCP bridge configuration */
|
|
24
29
|
private tonBridgeConfig;
|
|
25
30
|
/**
|
|
@@ -865,6 +865,232 @@ declare function executeCompareNetworkFees(input: CompareNetworkFeesInput, optio
|
|
|
865
865
|
*/
|
|
866
866
|
declare function formatNetworkFeeComparison(result: NetworkFeeComparison): string;
|
|
867
867
|
|
|
868
|
+
/**
|
|
869
|
+
* t402/signMessage - Sign a message using the configured wallet
|
|
870
|
+
*/
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Input schema for signMessage tool
|
|
874
|
+
*/
|
|
875
|
+
declare const signMessageInputSchema: z.ZodObject<{
|
|
876
|
+
chain: z.ZodEnum<["ethereum", "base", "arbitrum", "optimism", "polygon", "avalanche", "ink", "berachain", "unichain"]>;
|
|
877
|
+
message: z.ZodString;
|
|
878
|
+
}, "strip", z.ZodTypeAny, {
|
|
879
|
+
message: string;
|
|
880
|
+
chain: "ethereum" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ink" | "berachain" | "unichain";
|
|
881
|
+
}, {
|
|
882
|
+
message: string;
|
|
883
|
+
chain: "ethereum" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ink" | "berachain" | "unichain";
|
|
884
|
+
}>;
|
|
885
|
+
type SignMessageInput = z.infer<typeof signMessageInputSchema>;
|
|
886
|
+
/**
|
|
887
|
+
* Sign message result
|
|
888
|
+
*/
|
|
889
|
+
interface SignMessageResult {
|
|
890
|
+
/** The original message that was signed */
|
|
891
|
+
message: string;
|
|
892
|
+
/** The produced signature (hex) */
|
|
893
|
+
signature: string;
|
|
894
|
+
/** The signer address */
|
|
895
|
+
address: string;
|
|
896
|
+
/** Network context */
|
|
897
|
+
network: SupportedNetwork;
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* Execute signMessage tool
|
|
901
|
+
*
|
|
902
|
+
* Currently throws because wallet signing requires a configured private key.
|
|
903
|
+
* This will be implemented when the MCP server supports wallet configuration.
|
|
904
|
+
*/
|
|
905
|
+
declare function executeSignMessage(_input: SignMessageInput): Promise<SignMessageResult>;
|
|
906
|
+
/**
|
|
907
|
+
* Format sign message result for display
|
|
908
|
+
*/
|
|
909
|
+
declare function formatSignMessageResult(result: SignMessageResult): string;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* t402/verifySignature - Verify an EIP-191 signed message
|
|
913
|
+
*/
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Input schema for verifySignature tool
|
|
917
|
+
*/
|
|
918
|
+
declare const verifySignatureInputSchema: z.ZodObject<{
|
|
919
|
+
chain: z.ZodEnum<["ethereum", "base", "arbitrum", "optimism", "polygon", "avalanche", "ink", "berachain", "unichain"]>;
|
|
920
|
+
message: z.ZodString;
|
|
921
|
+
signature: z.ZodString;
|
|
922
|
+
address: z.ZodString;
|
|
923
|
+
}, "strip", z.ZodTypeAny, {
|
|
924
|
+
address: string;
|
|
925
|
+
message: string;
|
|
926
|
+
chain: "ethereum" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ink" | "berachain" | "unichain";
|
|
927
|
+
signature: string;
|
|
928
|
+
}, {
|
|
929
|
+
address: string;
|
|
930
|
+
message: string;
|
|
931
|
+
chain: "ethereum" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ink" | "berachain" | "unichain";
|
|
932
|
+
signature: string;
|
|
933
|
+
}>;
|
|
934
|
+
type VerifySignatureInput = z.infer<typeof verifySignatureInputSchema>;
|
|
935
|
+
/**
|
|
936
|
+
* Signature verification result
|
|
937
|
+
*/
|
|
938
|
+
interface VerifySignatureResult {
|
|
939
|
+
/** Whether the signature is valid */
|
|
940
|
+
valid: boolean;
|
|
941
|
+
/** The expected signer address */
|
|
942
|
+
address: string;
|
|
943
|
+
/** The message that was verified */
|
|
944
|
+
message: string;
|
|
945
|
+
/** Network context */
|
|
946
|
+
network: SupportedNetwork;
|
|
947
|
+
/** Error message if verification failed */
|
|
948
|
+
error?: string;
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* Execute verifySignature tool
|
|
952
|
+
*/
|
|
953
|
+
declare function executeVerifySignature(input: VerifySignatureInput): Promise<VerifySignatureResult>;
|
|
954
|
+
/**
|
|
955
|
+
* Format verification result for display
|
|
956
|
+
*/
|
|
957
|
+
declare function formatVerifySignatureResult(result: VerifySignatureResult): string;
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* t402/getTransferHistory - Query recent ERC-20 Transfer events for an address
|
|
961
|
+
*/
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* Input schema for getTransferHistory tool
|
|
965
|
+
*/
|
|
966
|
+
declare const getTransferHistoryInputSchema: z.ZodObject<{
|
|
967
|
+
network: z.ZodEnum<["ethereum", "base", "arbitrum", "optimism", "polygon", "avalanche", "ink", "berachain", "unichain"]>;
|
|
968
|
+
address: z.ZodString;
|
|
969
|
+
token: z.ZodOptional<z.ZodEnum<["USDC", "USDT", "USDT0"]>>;
|
|
970
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
971
|
+
}, "strip", z.ZodTypeAny, {
|
|
972
|
+
address: string;
|
|
973
|
+
network: "ethereum" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ink" | "berachain" | "unichain";
|
|
974
|
+
token?: "USDC" | "USDT" | "USDT0" | undefined;
|
|
975
|
+
limit?: number | undefined;
|
|
976
|
+
}, {
|
|
977
|
+
address: string;
|
|
978
|
+
network: "ethereum" | "base" | "arbitrum" | "optimism" | "polygon" | "avalanche" | "ink" | "berachain" | "unichain";
|
|
979
|
+
token?: "USDC" | "USDT" | "USDT0" | undefined;
|
|
980
|
+
limit?: number | undefined;
|
|
981
|
+
}>;
|
|
982
|
+
type GetTransferHistoryInput = z.infer<typeof getTransferHistoryInputSchema>;
|
|
983
|
+
/**
|
|
984
|
+
* A single transfer event
|
|
985
|
+
*/
|
|
986
|
+
interface TransferEvent {
|
|
987
|
+
/** Transaction hash */
|
|
988
|
+
txHash: string;
|
|
989
|
+
/** Block number */
|
|
990
|
+
blockNumber: string;
|
|
991
|
+
/** Sender address */
|
|
992
|
+
from: string;
|
|
993
|
+
/** Recipient address */
|
|
994
|
+
to: string;
|
|
995
|
+
/** Transfer amount (formatted) */
|
|
996
|
+
amount: string;
|
|
997
|
+
/** Token symbol */
|
|
998
|
+
token: string;
|
|
999
|
+
/** Token contract address */
|
|
1000
|
+
tokenAddress: string;
|
|
1001
|
+
/** Whether this address sent (out) or received (in) */
|
|
1002
|
+
direction: 'in' | 'out';
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
* Transfer history result
|
|
1006
|
+
*/
|
|
1007
|
+
interface TransferHistoryResult {
|
|
1008
|
+
/** Network queried */
|
|
1009
|
+
network: SupportedNetwork;
|
|
1010
|
+
/** Chain ID */
|
|
1011
|
+
chainId: number;
|
|
1012
|
+
/** Address queried */
|
|
1013
|
+
address: string;
|
|
1014
|
+
/** Transfer events (most recent first) */
|
|
1015
|
+
transfers: TransferEvent[];
|
|
1016
|
+
/** Explorer base URL */
|
|
1017
|
+
explorerUrl: string;
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Execute getTransferHistory tool
|
|
1021
|
+
*/
|
|
1022
|
+
declare function executeGetTransferHistory(input: GetTransferHistoryInput, rpcUrls?: Partial<Record<SupportedNetwork, string>>): Promise<TransferHistoryResult>;
|
|
1023
|
+
/**
|
|
1024
|
+
* Format transfer history result for display
|
|
1025
|
+
*/
|
|
1026
|
+
declare function formatTransferHistoryResult(result: TransferHistoryResult): string;
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* t402/getHistoricalPrice - Get historical price data from CoinGecko
|
|
1030
|
+
*/
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Input schema for getHistoricalPrice tool
|
|
1034
|
+
*/
|
|
1035
|
+
declare const getHistoricalPriceInputSchema: z.ZodObject<{
|
|
1036
|
+
token: z.ZodString;
|
|
1037
|
+
days: z.ZodOptional<z.ZodNumber>;
|
|
1038
|
+
}, "strip", z.ZodTypeAny, {
|
|
1039
|
+
token: string;
|
|
1040
|
+
days?: number | undefined;
|
|
1041
|
+
}, {
|
|
1042
|
+
token: string;
|
|
1043
|
+
days?: number | undefined;
|
|
1044
|
+
}>;
|
|
1045
|
+
type GetHistoricalPriceInput = z.infer<typeof getHistoricalPriceInputSchema>;
|
|
1046
|
+
/**
|
|
1047
|
+
* A single price data point
|
|
1048
|
+
*/
|
|
1049
|
+
interface PriceDataPoint {
|
|
1050
|
+
/** Unix timestamp in milliseconds */
|
|
1051
|
+
timestamp: number;
|
|
1052
|
+
/** ISO date string */
|
|
1053
|
+
date: string;
|
|
1054
|
+
/** Price in USD */
|
|
1055
|
+
price: number;
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Historical price result
|
|
1059
|
+
*/
|
|
1060
|
+
interface HistoricalPriceResult {
|
|
1061
|
+
/** Token symbol */
|
|
1062
|
+
token: string;
|
|
1063
|
+
/** CoinGecko ID used */
|
|
1064
|
+
coinId: string;
|
|
1065
|
+
/** Currency */
|
|
1066
|
+
currency: string;
|
|
1067
|
+
/** Number of days queried */
|
|
1068
|
+
days: number;
|
|
1069
|
+
/** Price data points */
|
|
1070
|
+
prices: PriceDataPoint[];
|
|
1071
|
+
/** Price change over the period */
|
|
1072
|
+
priceChange: {
|
|
1073
|
+
/** Absolute change */
|
|
1074
|
+
absolute: number;
|
|
1075
|
+
/** Percentage change */
|
|
1076
|
+
percentage: number;
|
|
1077
|
+
/** Highest price in period */
|
|
1078
|
+
high: number;
|
|
1079
|
+
/** Lowest price in period */
|
|
1080
|
+
low: number;
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Execute getHistoricalPrice tool
|
|
1085
|
+
*/
|
|
1086
|
+
declare function executeGetHistoricalPrice(input: GetHistoricalPriceInput, options?: {
|
|
1087
|
+
demoMode?: boolean;
|
|
1088
|
+
}): Promise<HistoricalPriceResult>;
|
|
1089
|
+
/**
|
|
1090
|
+
* Format historical price result for display
|
|
1091
|
+
*/
|
|
1092
|
+
declare function formatHistoricalPriceResult(result: HistoricalPriceResult): string;
|
|
1093
|
+
|
|
868
1094
|
/**
|
|
869
1095
|
* Quote Store - In-memory quote storage with TTL
|
|
870
1096
|
*/
|
|
@@ -1644,6 +1870,101 @@ declare const TOOL_DEFINITIONS: {
|
|
|
1644
1870
|
required: string[];
|
|
1645
1871
|
};
|
|
1646
1872
|
};
|
|
1873
|
+
't402/signMessage': {
|
|
1874
|
+
name: string;
|
|
1875
|
+
description: string;
|
|
1876
|
+
inputSchema: {
|
|
1877
|
+
type: "object";
|
|
1878
|
+
properties: {
|
|
1879
|
+
chain: {
|
|
1880
|
+
type: string;
|
|
1881
|
+
enum: string[];
|
|
1882
|
+
description: string;
|
|
1883
|
+
};
|
|
1884
|
+
message: {
|
|
1885
|
+
type: string;
|
|
1886
|
+
description: string;
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1889
|
+
required: string[];
|
|
1890
|
+
};
|
|
1891
|
+
};
|
|
1892
|
+
't402/verifySignature': {
|
|
1893
|
+
name: string;
|
|
1894
|
+
description: string;
|
|
1895
|
+
inputSchema: {
|
|
1896
|
+
type: "object";
|
|
1897
|
+
properties: {
|
|
1898
|
+
chain: {
|
|
1899
|
+
type: string;
|
|
1900
|
+
enum: string[];
|
|
1901
|
+
description: string;
|
|
1902
|
+
};
|
|
1903
|
+
message: {
|
|
1904
|
+
type: string;
|
|
1905
|
+
description: string;
|
|
1906
|
+
};
|
|
1907
|
+
signature: {
|
|
1908
|
+
type: string;
|
|
1909
|
+
pattern: string;
|
|
1910
|
+
description: string;
|
|
1911
|
+
};
|
|
1912
|
+
address: {
|
|
1913
|
+
type: string;
|
|
1914
|
+
pattern: string;
|
|
1915
|
+
description: string;
|
|
1916
|
+
};
|
|
1917
|
+
};
|
|
1918
|
+
required: string[];
|
|
1919
|
+
};
|
|
1920
|
+
};
|
|
1921
|
+
't402/getTransferHistory': {
|
|
1922
|
+
name: string;
|
|
1923
|
+
description: string;
|
|
1924
|
+
inputSchema: {
|
|
1925
|
+
type: "object";
|
|
1926
|
+
properties: {
|
|
1927
|
+
network: {
|
|
1928
|
+
type: string;
|
|
1929
|
+
enum: string[];
|
|
1930
|
+
description: string;
|
|
1931
|
+
};
|
|
1932
|
+
address: {
|
|
1933
|
+
type: string;
|
|
1934
|
+
pattern: string;
|
|
1935
|
+
description: string;
|
|
1936
|
+
};
|
|
1937
|
+
token: {
|
|
1938
|
+
type: string;
|
|
1939
|
+
enum: string[];
|
|
1940
|
+
description: string;
|
|
1941
|
+
};
|
|
1942
|
+
limit: {
|
|
1943
|
+
type: string;
|
|
1944
|
+
description: string;
|
|
1945
|
+
};
|
|
1946
|
+
};
|
|
1947
|
+
required: string[];
|
|
1948
|
+
};
|
|
1949
|
+
};
|
|
1950
|
+
't402/getHistoricalPrice': {
|
|
1951
|
+
name: string;
|
|
1952
|
+
description: string;
|
|
1953
|
+
inputSchema: {
|
|
1954
|
+
type: "object";
|
|
1955
|
+
properties: {
|
|
1956
|
+
token: {
|
|
1957
|
+
type: string;
|
|
1958
|
+
description: string;
|
|
1959
|
+
};
|
|
1960
|
+
days: {
|
|
1961
|
+
type: string;
|
|
1962
|
+
description: string;
|
|
1963
|
+
};
|
|
1964
|
+
};
|
|
1965
|
+
required: string[];
|
|
1966
|
+
};
|
|
1967
|
+
};
|
|
1647
1968
|
};
|
|
1648
1969
|
/**
|
|
1649
1970
|
* WDK tool definitions (only available when WDK seed phrase is configured)
|
|
@@ -1893,4 +2214,4 @@ declare const ERC8004_TOOL_DEFINITIONS: {
|
|
|
1893
2214
|
};
|
|
1894
2215
|
};
|
|
1895
2216
|
|
|
1896
|
-
export { type AllBalancesResult, type AutoPayInput, type AutoPayResult, type BridgeInput, type BridgeOptions, type BridgeQuoteResult, type CompareNetworkFeesInput, ERC8004_TOOL_DEFINITIONS, type Erc8004CheckReputationInput, type Erc8004ResolveAgentInput, type Erc8004VerifyWalletInput, type Erc8004VerifyWalletResult, type EstimatePaymentFeeInput, type ExecuteBridgeFromQuoteInput, type ExecuteSwapResult, GASLESS_SUPPORTED_NETWORKS, type GasPriceResult, type GetAllBalancesInput, type GetBalanceInput, type GetBridgeFeeInput, type GetGasPriceInput, type GetTokenPriceInput, type NetworkFeeComparison, type PayGaslessInput, type PayGaslessOptions, type PayInput, type PayOptions, type PaymentFeeEstimate, type PaymentPlanInput, type PaymentPlanResult, type QuoteBridgeInput, type QuoteData, type SmartPayInput, type SmartPayResult, type SmartPayStep, type SwapQuoteResult, TOOL_DEFINITIONS, type TokenPriceResult, UNIFIED_TOOL_DEFINITIONS, type UnifiedMcpConfig, WDK_TOOL_DEFINITIONS, type WdkBalancesResult, type WdkExecuteSwapInput, type WdkGetBalancesInput, type WdkGetWalletInput, type WdkQuoteSwapInput, type WdkSwapInput, type WdkSwapResult, type WdkTransferInput, type WdkTransferResult, type WdkWalletInfo, autoPayInputSchema, bridgeInputSchema, clearPriceCache, clearQuoteStore, compareNetworkFeesInputSchema, createQuote, deleteQuote, erc8004CheckReputationInputSchema, erc8004ResolveAgentInputSchema, erc8004VerifyWalletInputSchema, estimatePaymentFeeInputSchema, executeAutoPay, executeAutoPayDemo, executeBridge, executeBridgeFromQuoteInputSchema, executeCompareNetworkFees, executeErc8004CheckReputation, executeErc8004ResolveAgent, executeErc8004VerifyWallet, executeEstimatePaymentFee, executeExecuteBridgeFromQuote, executeExecuteBridgeFromQuoteDemo, executeGetAllBalances, executeGetBalance, executeGetBridgeFee, executeGetGasPrice, executeGetTokenPrice, executePay, executePayGasless, executePaymentPlan, executePaymentPlanDemo, executeQuoteBridge, executeQuoteBridgeDemo, executeSmartPay, executeSmartPayDemo, executeWdkExecuteSwap, executeWdkExecuteSwapDemo, executeWdkGetBalances, executeWdkGetBalancesDemo, executeWdkGetWallet, executeWdkGetWalletDemo, executeWdkQuoteSwap, executeWdkQuoteSwapDemo, executeWdkSwap, executeWdkSwapDemo, executeWdkTransfer, executeWdkTransferDemo, formatAllBalancesResult, formatAutoPayResult, formatBalanceResult, formatBridgeFeeResult, formatBridgeQuoteResult, formatBridgeResult, formatErc8004CheckReputationResult, formatErc8004ResolveAgentResult, formatErc8004VerifyWalletResult, formatBridgeResult as formatExecuteBridgeFromQuoteResult, formatExecuteSwapResult, formatGasPriceResult, formatGaslessPaymentResult, formatNetworkFeeComparison, formatPaymentFeeEstimate, formatPaymentPlanResult, formatPaymentResult, formatSmartPayResult, formatSwapQuoteResult, formatTokenPriceResult, formatWdkBalancesResult, formatWdkSwapResult, formatWdkTransferResult, formatWdkWalletResult, getAllBalancesInputSchema, getBalanceInputSchema, getBridgeFeeInputSchema, getGasPriceInputSchema, getQuote, getTokenPriceInputSchema, getTokenPrices, getTokenPricesDemo, payGaslessInputSchema, payInputSchema, paymentPlanInputSchema, quoteBridgeInputSchema, smartPayInputSchema, wdkExecuteSwapInputSchema, wdkGetBalancesInputSchema, wdkGetWalletInputSchema, wdkQuoteSwapInputSchema, wdkSwapInputSchema, wdkTransferInputSchema };
|
|
2217
|
+
export { type AllBalancesResult, type AutoPayInput, type AutoPayResult, type BridgeInput, type BridgeOptions, type BridgeQuoteResult, type CompareNetworkFeesInput, ERC8004_TOOL_DEFINITIONS, type Erc8004CheckReputationInput, type Erc8004ResolveAgentInput, type Erc8004VerifyWalletInput, type Erc8004VerifyWalletResult, type EstimatePaymentFeeInput, type ExecuteBridgeFromQuoteInput, type ExecuteSwapResult, GASLESS_SUPPORTED_NETWORKS, type GasPriceResult, type GetAllBalancesInput, type GetBalanceInput, type GetBridgeFeeInput, type GetGasPriceInput, type GetHistoricalPriceInput, type GetTokenPriceInput, type GetTransferHistoryInput, type HistoricalPriceResult, type NetworkFeeComparison, type PayGaslessInput, type PayGaslessOptions, type PayInput, type PayOptions, type PaymentFeeEstimate, type PaymentPlanInput, type PaymentPlanResult, type PriceDataPoint, type QuoteBridgeInput, type QuoteData, type SignMessageInput, type SignMessageResult, type SmartPayInput, type SmartPayResult, type SmartPayStep, type SwapQuoteResult, TOOL_DEFINITIONS, type TokenPriceResult, type TransferEvent, type TransferHistoryResult, UNIFIED_TOOL_DEFINITIONS, type UnifiedMcpConfig, type VerifySignatureInput, type VerifySignatureResult, WDK_TOOL_DEFINITIONS, type WdkBalancesResult, type WdkExecuteSwapInput, type WdkGetBalancesInput, type WdkGetWalletInput, type WdkQuoteSwapInput, type WdkSwapInput, type WdkSwapResult, type WdkTransferInput, type WdkTransferResult, type WdkWalletInfo, autoPayInputSchema, bridgeInputSchema, clearPriceCache, clearQuoteStore, compareNetworkFeesInputSchema, createQuote, deleteQuote, erc8004CheckReputationInputSchema, erc8004ResolveAgentInputSchema, erc8004VerifyWalletInputSchema, estimatePaymentFeeInputSchema, executeAutoPay, executeAutoPayDemo, executeBridge, executeBridgeFromQuoteInputSchema, executeCompareNetworkFees, executeErc8004CheckReputation, executeErc8004ResolveAgent, executeErc8004VerifyWallet, executeEstimatePaymentFee, executeExecuteBridgeFromQuote, executeExecuteBridgeFromQuoteDemo, executeGetAllBalances, executeGetBalance, executeGetBridgeFee, executeGetGasPrice, executeGetHistoricalPrice, executeGetTokenPrice, executeGetTransferHistory, executePay, executePayGasless, executePaymentPlan, executePaymentPlanDemo, executeQuoteBridge, executeQuoteBridgeDemo, executeSignMessage, executeSmartPay, executeSmartPayDemo, executeVerifySignature, executeWdkExecuteSwap, executeWdkExecuteSwapDemo, executeWdkGetBalances, executeWdkGetBalancesDemo, executeWdkGetWallet, executeWdkGetWalletDemo, executeWdkQuoteSwap, executeWdkQuoteSwapDemo, executeWdkSwap, executeWdkSwapDemo, executeWdkTransfer, executeWdkTransferDemo, formatAllBalancesResult, formatAutoPayResult, formatBalanceResult, formatBridgeFeeResult, formatBridgeQuoteResult, formatBridgeResult, formatErc8004CheckReputationResult, formatErc8004ResolveAgentResult, formatErc8004VerifyWalletResult, formatBridgeResult as formatExecuteBridgeFromQuoteResult, formatExecuteSwapResult, formatGasPriceResult, formatGaslessPaymentResult, formatHistoricalPriceResult, formatNetworkFeeComparison, formatPaymentFeeEstimate, formatPaymentPlanResult, formatPaymentResult, formatSignMessageResult, formatSmartPayResult, formatSwapQuoteResult, formatTokenPriceResult, formatTransferHistoryResult, formatVerifySignatureResult, formatWdkBalancesResult, formatWdkSwapResult, formatWdkTransferResult, formatWdkWalletResult, getAllBalancesInputSchema, getBalanceInputSchema, getBridgeFeeInputSchema, getGasPriceInputSchema, getHistoricalPriceInputSchema, getQuote, getTokenPriceInputSchema, getTokenPrices, getTokenPricesDemo, getTransferHistoryInputSchema, payGaslessInputSchema, payInputSchema, paymentPlanInputSchema, quoteBridgeInputSchema, signMessageInputSchema, smartPayInputSchema, verifySignatureInputSchema, wdkExecuteSwapInputSchema, wdkGetBalancesInputSchema, wdkGetWalletInputSchema, wdkQuoteSwapInputSchema, wdkSwapInputSchema, wdkTransferInputSchema };
|
package/dist/esm/tools/index.mjs
CHANGED
|
@@ -32,16 +32,20 @@ import {
|
|
|
32
32
|
executeGetBalance,
|
|
33
33
|
executeGetBridgeFee,
|
|
34
34
|
executeGetGasPrice,
|
|
35
|
+
executeGetHistoricalPrice,
|
|
35
36
|
executeGetTokenPrice,
|
|
37
|
+
executeGetTransferHistory,
|
|
36
38
|
executePay,
|
|
37
39
|
executePayGasless,
|
|
38
40
|
executePaymentPlan,
|
|
39
41
|
executePaymentPlanDemo,
|
|
40
42
|
executeQuoteBridge,
|
|
41
43
|
executeQuoteBridgeDemo,
|
|
44
|
+
executeSignMessage,
|
|
42
45
|
executeSmartPay,
|
|
43
46
|
executeSmartPayDemo,
|
|
44
47
|
executeTonBridgeTool,
|
|
48
|
+
executeVerifySignature,
|
|
45
49
|
executeWdkExecuteSwap,
|
|
46
50
|
executeWdkExecuteSwapDemo,
|
|
47
51
|
executeWdkGetBalances,
|
|
@@ -66,13 +70,17 @@ import {
|
|
|
66
70
|
formatExecuteSwapResult,
|
|
67
71
|
formatGasPriceResult,
|
|
68
72
|
formatGaslessPaymentResult,
|
|
73
|
+
formatHistoricalPriceResult,
|
|
69
74
|
formatNetworkFeeComparison,
|
|
70
75
|
formatPaymentFeeEstimate,
|
|
71
76
|
formatPaymentPlanResult,
|
|
72
77
|
formatPaymentResult,
|
|
78
|
+
formatSignMessageResult,
|
|
73
79
|
formatSmartPayResult,
|
|
74
80
|
formatSwapQuoteResult,
|
|
75
81
|
formatTokenPriceResult,
|
|
82
|
+
formatTransferHistoryResult,
|
|
83
|
+
formatVerifySignatureResult,
|
|
76
84
|
formatWdkBalancesResult,
|
|
77
85
|
formatWdkSwapResult,
|
|
78
86
|
formatWdkTransferResult,
|
|
@@ -81,22 +89,26 @@ import {
|
|
|
81
89
|
getBalanceInputSchema,
|
|
82
90
|
getBridgeFeeInputSchema,
|
|
83
91
|
getGasPriceInputSchema,
|
|
92
|
+
getHistoricalPriceInputSchema,
|
|
84
93
|
getQuote,
|
|
85
94
|
getTokenPriceInputSchema,
|
|
86
95
|
getTokenPrices,
|
|
87
96
|
getTokenPricesDemo,
|
|
97
|
+
getTransferHistoryInputSchema,
|
|
88
98
|
payGaslessInputSchema,
|
|
89
99
|
payInputSchema,
|
|
90
100
|
paymentPlanInputSchema,
|
|
91
101
|
quoteBridgeInputSchema,
|
|
102
|
+
signMessageInputSchema,
|
|
92
103
|
smartPayInputSchema,
|
|
104
|
+
verifySignatureInputSchema,
|
|
93
105
|
wdkExecuteSwapInputSchema,
|
|
94
106
|
wdkGetBalancesInputSchema,
|
|
95
107
|
wdkGetWalletInputSchema,
|
|
96
108
|
wdkQuoteSwapInputSchema,
|
|
97
109
|
wdkSwapInputSchema,
|
|
98
110
|
wdkTransferInputSchema
|
|
99
|
-
} from "../chunk-
|
|
111
|
+
} from "../chunk-OSPCSAZF.mjs";
|
|
100
112
|
export {
|
|
101
113
|
ERC8004_TOOL_DEFINITIONS,
|
|
102
114
|
GASLESS_SUPPORTED_NETWORKS,
|
|
@@ -131,16 +143,20 @@ export {
|
|
|
131
143
|
executeGetBalance,
|
|
132
144
|
executeGetBridgeFee,
|
|
133
145
|
executeGetGasPrice,
|
|
146
|
+
executeGetHistoricalPrice,
|
|
134
147
|
executeGetTokenPrice,
|
|
148
|
+
executeGetTransferHistory,
|
|
135
149
|
executePay,
|
|
136
150
|
executePayGasless,
|
|
137
151
|
executePaymentPlan,
|
|
138
152
|
executePaymentPlanDemo,
|
|
139
153
|
executeQuoteBridge,
|
|
140
154
|
executeQuoteBridgeDemo,
|
|
155
|
+
executeSignMessage,
|
|
141
156
|
executeSmartPay,
|
|
142
157
|
executeSmartPayDemo,
|
|
143
158
|
executeTonBridgeTool,
|
|
159
|
+
executeVerifySignature,
|
|
144
160
|
executeWdkExecuteSwap,
|
|
145
161
|
executeWdkExecuteSwapDemo,
|
|
146
162
|
executeWdkGetBalances,
|
|
@@ -166,13 +182,17 @@ export {
|
|
|
166
182
|
formatExecuteSwapResult,
|
|
167
183
|
formatGasPriceResult,
|
|
168
184
|
formatGaslessPaymentResult,
|
|
185
|
+
formatHistoricalPriceResult,
|
|
169
186
|
formatNetworkFeeComparison,
|
|
170
187
|
formatPaymentFeeEstimate,
|
|
171
188
|
formatPaymentPlanResult,
|
|
172
189
|
formatPaymentResult,
|
|
190
|
+
formatSignMessageResult,
|
|
173
191
|
formatSmartPayResult,
|
|
174
192
|
formatSwapQuoteResult,
|
|
175
193
|
formatTokenPriceResult,
|
|
194
|
+
formatTransferHistoryResult,
|
|
195
|
+
formatVerifySignatureResult,
|
|
176
196
|
formatWdkBalancesResult,
|
|
177
197
|
formatWdkSwapResult,
|
|
178
198
|
formatWdkTransferResult,
|
|
@@ -181,15 +201,19 @@ export {
|
|
|
181
201
|
getBalanceInputSchema,
|
|
182
202
|
getBridgeFeeInputSchema,
|
|
183
203
|
getGasPriceInputSchema,
|
|
204
|
+
getHistoricalPriceInputSchema,
|
|
184
205
|
getQuote,
|
|
185
206
|
getTokenPriceInputSchema,
|
|
186
207
|
getTokenPrices,
|
|
187
208
|
getTokenPricesDemo,
|
|
209
|
+
getTransferHistoryInputSchema,
|
|
188
210
|
payGaslessInputSchema,
|
|
189
211
|
payInputSchema,
|
|
190
212
|
paymentPlanInputSchema,
|
|
191
213
|
quoteBridgeInputSchema,
|
|
214
|
+
signMessageInputSchema,
|
|
192
215
|
smartPayInputSchema,
|
|
216
|
+
verifySignatureInputSchema,
|
|
193
217
|
wdkExecuteSwapInputSchema,
|
|
194
218
|
wdkGetBalancesInputSchema,
|
|
195
219
|
wdkGetWalletInputSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t402/mcp",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "t402 Payment Protocol MCP Server for AI Agents",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -26,28 +26,28 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@eslint/js": "^10.0.1",
|
|
29
|
-
"@types/node": "^25.
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
31
|
-
"@typescript-eslint/parser": "^8.
|
|
32
|
-
"eslint": "^10.0
|
|
29
|
+
"@types/node": "^25.5.2",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
31
|
+
"@typescript-eslint/parser": "^8.58.0",
|
|
32
|
+
"eslint": "^10.2.0",
|
|
33
33
|
"eslint-plugin-import": "^2.31.0",
|
|
34
|
-
"eslint-plugin-jsdoc": "^62.
|
|
34
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
35
35
|
"eslint-plugin-prettier": "^5.5.5",
|
|
36
36
|
"glob": "^13.0.6",
|
|
37
37
|
"prettier": "3.8.1",
|
|
38
38
|
"tsup": "^8.5.1",
|
|
39
39
|
"tsx": "^4.21.0",
|
|
40
40
|
"typescript": "^5.9.3",
|
|
41
|
-
"vite": "^
|
|
41
|
+
"vite": "^8.0.3",
|
|
42
42
|
"vite-tsconfig-paths": "^6.1.1",
|
|
43
43
|
"vitest": "^3.2.4"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
46
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
47
47
|
"zod": "^3.24.2",
|
|
48
|
-
"@t402/
|
|
49
|
-
"@t402/
|
|
50
|
-
"@t402/
|
|
48
|
+
"@t402/erc8004": "2.8.1",
|
|
49
|
+
"@t402/core": "2.9.0",
|
|
50
|
+
"@t402/evm": "2.9.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"viem": "^2.0.0"
|