{"id":97416,"date":"2026-08-29T14:02:15","date_gmt":"2026-08-29T06:02:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/97416.html"},"modified":"2026-08-29T14:02:15","modified_gmt":"2026-08-29T06:02:15","slug":"%e6%9e%84%e5%bb%ba%e5%ae%89%e5%85%a8%e7%9a%84%e9%92%b1%e5%8c%85mcp%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%9a%e8%ae%a9ai%e5%8a%a9%e6%89%8b%e5%ae%89%e5%85%a8%e6%93%8d%e4%bd%9c%e5%8c%ba%e5%9d%97%e9%93%be","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/97416.html","title":{"rendered":"\u6784\u5efa\u5b89\u5168\u7684\u94b1\u5305MCP\u670d\u52a1\u5668\uff1a\u8ba9AI\u52a9\u624b\u5b89\u5168\u64cd\u4f5c\u533a\u5757\u94fe\u8d44\u4ea7"},"content":{"rendered":"<h3>\n 1. \u9879\u76ee\u6982\u8ff0&#xff1a;\u4e00\u4e2a\u94b1\u5305\u7684MCP\u670d\u52a1\u5668\u610f\u5473\u7740\u4ec0\u4e48&#xff1f;<br \/>\n<\/h3>\n<p>\n \u6700\u8fd1\u5728\u6298\u817eAI\u667a\u80fd\u4f53\u5f00\u53d1&#xff0c;\u7279\u522b\u662f\u56f4\u7ed5Claude Desktop\u8fd9\u7c7b\u5de5\u5177\u6784\u5efa\u4e2a\u4eba\u5de5\u4f5c\u6d41\u65f6&#xff0c;\u9047\u5230\u4e86\u4e00\u4e2a\u9ad8\u9891\u75db\u70b9&#xff1a;\u5982\u4f55\u8ba9AI\u5b89\u5168\u3001\u53ef\u63a7\u5730\u8bbf\u95ee\u6211\u7684\u94fe\u4e0a\u8d44\u4ea7\u4fe1\u606f&#xff0c;\u6216\u8005\u6267\u884c\u4e00\u4e9b\u7b80\u5355\u7684\u94fe\u4e0a\u64cd\u4f5c&#xff1f;\u6bd4\u5982&#xff0c;\u6211\u60f3\u8ba9AI\u5e2e\u6211\u6c47\u603b\u4e00\u4e0b\u51e0\u4e2a\u94b1\u5305\u7684\u4f59\u989d&#xff0c;\u6216\u8005\u5728\u4e0d\u66b4\u9732\u79c1\u94a5\u7684\u524d\u63d0\u4e0b&#xff0c;\u6388\u6743\u4e00\u7b14\u5c0f\u989d\u4ea4\u6613\u3002\u76f4\u63a5\u8ba9AI\u63a5\u89e6\u79c1\u94a5\u662f\u5929\u65b9\u591c\u8c2d&#xff0c;\u800c\u624b\u52a8\u590d\u5236\u7c98\u8d34\u5730\u5740\u548c\u91d1\u989d\u53c8\u592a\u7e41\u7410\u3002\u8fd9\u65f6\u5019&#xff0c;<\/p>\n<p>  MCP&#xff08;Model Context Protocol&#xff09;<\/p>\n<p> \u7684\u6982\u5ff5\u5c31\u8fdb\u5165\u4e86\u89c6\u91ce\u3002\n<\/p>\n<p>  genoshide\/wallet-mcp<\/p>\n<p> \u8fd9\u4e2a\u9879\u76ee&#xff0c;\u4ece\u6807\u9898\u62c6\u89e3\u6765\u770b&#xff0c;\u6838\u5fc3\u662f\u201c\u94b1\u5305\u201d\u548c\u201cMCP\u670d\u52a1\u5668\u201d\u3002\u7b80\u5355\u8bf4&#xff0c;\u5b83\u5c31\u662f\u4e00\u4e2a\u4e13\u95e8\u4e3a\u52a0\u5bc6\u8d27\u5e01\u94b1\u5305\u529f\u80fd\u8bbe\u8ba1\u7684MCP\u670d\u52a1\u5668\u5b9e\u73b0\u3002MCP\u662fAnthropic\u63a8\u51fa\u7684\u4e00\u79cd\u534f\u8bae&#xff0c;\u65e8\u5728\u8ba9AI\u6a21\u578b&#xff08;\u5982Claude&#xff09;\u80fd\u591f\u5b89\u5168\u3001\u7ed3\u6784\u5316\u5730\u4f7f\u7528\u5916\u90e8\u5de5\u5177\u3001\u6570\u636e\u548c\u8ba1\u7b97\u80fd\u529b\u3002\u4f60\u53ef\u4ee5\u628a\u5b83\u7406\u89e3\u4e3aAI\u6a21\u578b\u7684\u201c\u5916\u6302\u201d\u6216\u201c\u63d2\u4ef6\u201d\u7cfb\u7edf&#xff0c;\u4f46\u66f4\u5f3a\u8c03\u6807\u51c6\u5316\u548c\u5b89\u5168\u6027\u3002\u90a3\u4e48&#xff0c;\u4e00\u4e2a\u201c\u94b1\u5305MCP\u670d\u52a1\u5668\u201d&#xff0c;\u5c31\u662f\u628a\u8fd9\u4e2a\u201c\u5916\u6302\u201d\u7684\u80fd\u529b&#xff0c;\u805a\u7126\u5728\u4e86\u533a\u5757\u94fe\u94b1\u5305\u64cd\u4f5c\u4e0a\u3002\n<\/p>\n<p>\n \u8fd9\u89e3\u51b3\u4e86\u4ec0\u4e48\u95ee\u9898&#xff1f;\u5b83\u672c\u8d28\u4e0a\u662f\u5728AI\u4e0e\u533a\u5757\u94fe\u4e16\u754c\u4e4b\u95f4&#xff0c;\u67b6\u8d77\u4e86\u4e00\u5ea7<\/p>\n<p>  \u6807\u51c6\u5316\u3001\u6743\u9650\u53ef\u63a7\u7684\u6865\u6881<\/p>\n<p> \u3002\u5bf9\u4e8e\u5f00\u53d1\u8005\u6216\u9ad8\u7ea7\u7528\u6237&#xff0c;\u8fd9\u610f\u5473\u7740\u4f60\u53ef\u4ee5\u8ba9Claude\u8fd9\u6837\u7684AI\u52a9\u624b&#xff0c;\u901a\u8fc7\u4e00\u7cfb\u5217\u5b9a\u4e49\u597d\u7684\u3001\u5b89\u5168\u7684\u201c\u5de5\u5177\u201d&#xff08;Tools&#xff09;&#xff0c;\u6765\u67e5\u8be2\u4f60\u7684\u94b1\u5305\u4f59\u989d\u3001\u8bfb\u53d6\u4ea4\u6613\u5386\u53f2\u3001\u751a\u81f3\u53d1\u8d77\u4ea4\u6613&#xff08;\u9700\u8981\u4f60\u786e\u8ba4&#xff09;&#xff0c;\u800c\u65e0\u9700\u8ba9AI\u76f4\u63a5\u63a5\u89e6\u4f60\u7684\u79c1\u94a5\u6216\u52a9\u8bb0\u8bcd\u3002\u8fd9\u6781\u5927\u5730\u6269\u5c55\u4e86AI\u5728DeFi\u3001\u8d44\u4ea7\u7ba1\u7406\u3001\u94fe\u4e0a\u6570\u636e\u5206\u6790\u7b49\u573a\u666f\u7684\u81ea\u52a8\u5316\u80fd\u529b&#xff0c;\u540c\u65f6\u5c06\u98ce\u9669\u9694\u79bb\u5728\u53ef\u63a7\u8303\u56f4\u5185\u3002\n<\/p>\n<p>\n \u8fd9\u4e2a\u9879\u76ee\u9002\u5408\u8c01&#xff1f;\u9996\u5148\u662f<\/p>\n<p>  AI\u667a\u80fd\u4f53\u5f00\u53d1\u8005<\/p>\n<p> &#xff0c;\u5c24\u5176\u662f\u90a3\u4e9b\u6784\u5efa\u91d1\u878d\u3001\u52a0\u5bc6\u76f8\u5173\u5e94\u7528\u7684\u5f00\u53d1\u8005&#xff0c;\u4ed6\u4eec\u53ef\u4ee5\u4ee5\u6b64\u4e3a\u57fa\u7840&#xff0c;\u5feb\u901f\u96c6\u6210\u94b1\u5305\u529f\u80fd\u3002\u5176\u6b21\u662f<\/p>\n<p>  \u52a0\u5bc6\u8d27\u5e01\u7684\u6df1\u5ea6\u7528\u6237\u548c\u7814\u7a76\u8005<\/p>\n<p> &#xff0c;\u4ed6\u4eec\u5e0c\u671b\u7528AI\u6765\u8f85\u52a9\u7ba1\u7406\u591a\u94fe\u8d44\u4ea7\u3001\u76d1\u63a7\u5730\u5740\u3001\u5206\u6790\u4ea4\u6613\u6d41\u3002\u6700\u540e&#xff0c;\u5b83\u4e5f\u662f<\/p>\n<p>  \u5b66\u4e60MCP\u534f\u8bae\u548c\u667a\u80fd\u4f53\u5f00\u53d1<\/p>\n<p> \u7684\u4e00\u4e2a\u7edd\u4f73\u5b9e\u8df5\u6848\u4f8b&#xff0c;\u56e0\u4e3a\u94b1\u5305\u529f\u80fd\u6d89\u53ca\u6743\u9650\u3001\u5b89\u5168\u3001\u7b7e\u540d\u7b49\u6838\u5fc3\u6982\u5ff5&#xff0c;\u975e\u5e38\u6709\u4ee3\u8868\u6027\u3002\n<\/p>\n<h3>\n 2. \u6838\u5fc3\u8bbe\u8ba1\u601d\u8def&#xff1a;\u5982\u4f55\u5b89\u5168\u5730\u8ba9AI\u201c\u78b0\u201d\u94b1\u5305&#xff1f;<br \/>\n<\/h3>\n<p>\n \u8ba9AI\u64cd\u4f5c\u94b1\u5305&#xff0c;\u542c\u8d77\u6765\u5c31\u8ba9\u4eba\u795e\u7ecf\u7d27\u7ef7\u3002\u6240\u4ee5&#xff0c;\u8fd9\u4e2a\u9879\u76ee\u7684\u9996\u8981\u8bbe\u8ba1\u539f\u5219&#xff0c;\u4e5f\u662f\u6240\u6709\u7c7b\u4f3c\u9879\u76ee\u7684\u751f\u547d\u7ebf&#xff0c;\u5c31\u662f<\/p>\n<p>  \u5b89\u5168<\/p>\n<p> \u3002\u5b83\u7684\u6838\u5fc3\u601d\u8def\u4e0d\u662f\u8ba9AI\u6210\u4e3a\u94b1\u5305\u7684\u4e3b\u4eba&#xff0c;\u800c\u662f\u8ba9AI\u6210\u4e3a\u4e00\u4e2a<\/p>\n<p>  \u53d7\u4e25\u683c\u6307\u4ee4\u63a7\u5236\u7684\u201c\u64cd\u4f5c\u5458\u201d<\/p>\n<p> &#xff0c;\u800c\u7528\u6237\u59cb\u7ec8\u662f\u62e5\u6709\u6700\u7ec8\u5ba1\u6279\u6743\u7684\u201c\u6307\u6325\u5b98\u201d\u3002\n<\/p>\n<h4>\n 2.1 \u6743\u9650\u5206\u79bb\u4e0e\u6700\u5c0f\u5316\u539f\u5219<br \/>\n<\/h4>\n<p>\n \u6700\u6838\u5fc3\u7684\u8bbe\u8ba1\u662f<\/p>\n<p>  \u79c1\u94a5\u7edd\u4e0d\u79bb\u5f00\u5b89\u5168\u73af\u5883<\/p>\n<p> \u3002\u5728\u8fd9\u4e2a\u67b6\u6784\u4e2d&#xff0c;MCP\u670d\u52a1\u5668\u672c\u8eab\u5e76\u4e0d\u5b58\u50a8\u79c1\u94a5\u3002\u79c1\u94a5\u7684\u7ba1\u7406\u901a\u5e38\u7531\u4ee5\u4e0b\u51e0\u7c7b\u65b9\u5f0f\u5904\u7406&#xff1a;\n<\/p>\n<li>\n<p>   \u672c\u5730\u52a0\u5bc6\u5b58\u50a8<\/p>\n<p>  &#xff1a;\u79c1\u94a5\u7ecf\u8fc7\u7528\u6237\u5bc6\u7801\u52a0\u5bc6\u540e&#xff0c;\u4ec5\u5b58\u50a8\u5728\u7528\u6237\u672c\u5730\u8bbe\u5907\u4e0a\u3002MCP\u670d\u52a1\u5668\u5728\u8fd0\u884c\u65f6&#xff0c;\u901a\u8fc7\u5b89\u5168\u7684\u65b9\u5f0f&#xff08;\u5982\u5185\u5b58\u4e2d\u89e3\u5bc6&#xff09;\u4e34\u65f6\u4f7f\u7528&#xff0c;\u64cd\u4f5c\u5b8c\u6210\u540e\u7acb\u5373\u4ece\u5185\u5b58\u4e2d\u6e05\u9664\u3002\n <\/li>\n<li>\n<p>   \u786c\u4ef6\u94b1\u5305\u96c6\u6210<\/p>\n<p>  &#xff1a;\u901a\u8fc7\u8fde\u63a5Ledger\u3001Trezor\u7b49\u786c\u4ef6\u94b1\u5305&#xff0c;\u79c1\u94a5\u59cb\u7ec8\u4fdd\u5b58\u5728\u786c\u4ef6\u8bbe\u5907\u7684\u5b89\u5168\u82af\u7247\u4e2d&#xff0c;\u7b7e\u540d\u64cd\u4f5c\u5728\u786c\u4ef6\u5185\u5b8c\u6210&#xff0c;MCP\u670d\u52a1\u5668\u53ea\u80fd\u53d1\u8d77\u7b7e\u540d\u8bf7\u6c42&#xff0c;\u65e0\u6cd5\u89e6\u53ca\u79c1\u94a5\u660e\u6587\u3002\n <\/li>\n<li>\n<p>   \u8fdc\u7a0b\u7b7e\u540d\u670d\u52a1<\/p>\n<p>  &#xff1a;\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u573a\u666f&#xff0c;\u53ef\u4ee5\u8fde\u63a5\u5982Keplr\u3001MetaMask\u7684\u6269\u5c55\u7a0b\u5e8f\u540e\u53f0&#xff0c;\u6216\u8005\u81ea\u5efa\u7684\u8fdc\u7a0b\u7b7e\u540d\u670d\u52a1&#xff08;\u5982<\/p>\n<p>   signingd<\/p>\n<p>  &#xff09;\u3002MCP\u670d\u52a1\u5668\u901a\u8fc7\u4e0e\u8fd9\u4e9b\u670d\u52a1\u901a\u4fe1\u6765\u53d1\u8d77\u4ea4\u6613&#xff0c;\u7531\u7528\u6237\u5728\u8fd9\u4e9b\u670d\u52a1\u7684\u754c\u9762\u4e2d\u8fdb\u884c\u6700\u7ec8\u786e\u8ba4\u3002\n <\/li>\n<p>  wallet-mcp<\/p>\n<p> \u9879\u76ee\u9700\u8981\u5b9e\u73b0\u7684\u5c31\u662f\u4e0e\u4e0a\u8ff0\u4e00\u79cd\u6216\u591a\u79cd\u5b89\u5168\u540e\u7aef\u7684\u5bf9\u63a5\u3002\u5b83\u7684\u89d2\u8272\u662f\u4e00\u4e2a<\/p>\n<p>  \u534f\u8bae\u8f6c\u6362\u5668\u548c\u5de5\u5177\u66b4\u9732\u5668<\/p>\n<p> \u3002\u5b83\u63a5\u6536\u6765\u81eaAI&#xff08;\u901a\u8fc7MCP\u5ba2\u6237\u7aef&#xff09;\u7684\u7ed3\u6784\u5316\u8bf7\u6c42&#xff0c;\u6bd4\u5982\u201c\u67e5\u8be2\u5730\u57400x&#8230;\u7684ETH\u4f59\u989d\u201d&#xff0c;\u7136\u540e\u5c06\u5176\u8f6c\u6362\u4e3a\u5bf9\u76f8\u5e94\u533a\u5757\u94fe\u8282\u70b9&#xff08;\u5982Infura\u3001Alchemy&#xff09;\u6216\u5b89\u5168\u7b7e\u540d\u540e\u7aef\u7684\u8c03\u7528&#xff0c;\u6700\u540e\u5c06\u7ed3\u679c\u683c\u5f0f\u5316\u540e\u8fd4\u56de\u7ed9AI\u3002\n<\/p>\n<h4>\n 2.2 MCP\u5de5\u5177&#xff08;Tools&#xff09;\u7684\u8bbe\u8ba1<br \/>\n<\/h4>\n<p>\n MCP\u534f\u8bae\u7684\u6838\u5fc3\u662f\u201c\u5de5\u5177\u201d\u3002\u4e00\u4e2a\u5de5\u5177\u7531\u540d\u79f0\u3001\u63cf\u8ff0\u3001\u8f93\u5165\u53c2\u6570\u6a21\u5f0f&#xff08;JSON Schema&#xff09;\u548c\u5b9e\u9645\u7684\u6267\u884c\u51fd\u6570\u6784\u6210\u3002\u5bf9\u4e8e\u94b1\u5305MCP&#xff0c;\u5de5\u5177\u7684\u8bbe\u8ba1\u9700\u8981\u517c\u987e\u529f\u80fd\u6027\u548c\u5b89\u5168\u6027&#xff1a;\n<\/p>\n<ul>\n<li>\n<p>    \u53ea\u8bfb\u5de5\u5177&#xff08;\u5b89\u5168\u7b49\u7ea7\u9ad8&#xff09;<\/p>\n<p>   &#xff1a;\n  <\/p>\n<ul>\n<li>\n<p>     get_balance<\/p>\n<p>    : \u67e5\u8be2\u6307\u5b9a\u5730\u5740\u5728\u6307\u5b9a\u94fe\u4e0a\u7684\u539f\u751f\u4ee3\u5e01\u4f59\u989d\u3002\n   <\/li>\n<li>\n<p>     get_token_balances<\/p>\n<p>    : \u67e5\u8be2\u5730\u5740\u7684ERC-20\u7b49\u6807\u51c6\u4ee3\u5e01\u4f59\u989d\u3002\n   <\/li>\n<li>\n<p>     get_transaction_history<\/p>\n<p>    : \u83b7\u53d6\u5730\u5740\u7684\u5386\u53f2\u4ea4\u6613\u5217\u8868\u3002\n   <\/li>\n<li>\n<p>     get_gas_price<\/p>\n<p>    : \u83b7\u53d6\u5f53\u524d\u7f51\u7edc\u7684\u5b9e\u65f6Gas\u4ef7\u683c\u3002\n   <\/li>\n<li>\n    \u8fd9\u4e9b\u5de5\u5177\u901a\u5e38\u53ea\u9700\u8981\u533a\u5757\u94feRPC\u8282\u70b9&#xff0c;\u4e0d\u6d89\u53ca\u79c1\u94a5&#xff0c;\u53ef\u4ee5\u653e\u5fc3\u66b4\u9732\u3002\n   <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>    \u9700\u786e\u8ba4\u7684\u5199\u5de5\u5177&#xff08;\u5b89\u5168\u7b49\u7ea7\u4e2d&#xff0c;\u9700\u7528\u6237\u4ea4\u4e92&#xff09;<\/p>\n<p>   &#xff1a;\n  <\/p>\n<ul>\n<li>\n<p>     transfer_native<\/p>\n<p>    : \u8f6c\u8d26\u539f\u751f\u4ee3\u5e01&#xff08;\u5982ETH&#xff09;\u3002\n   <\/li>\n<li>\n<p>     transfer_token<\/p>\n<p>    : \u8f6c\u8d26\u6807\u51c6\u4ee3\u5e01\u3002\n   <\/li>\n<li>\n<p>     approve_token<\/p>\n<p>    : \u6388\u6743\u4ee3\u5e01\u7ed9\u67d0\u4e2a\u5408\u7ea6\u3002\n   <\/li>\n<li>\n    \u8fd9\u4e9b\u5de5\u5177\u662f\u201c\u5371\u9669\u64cd\u4f5c\u201d\u3002MCP\u670d\u52a1\u5668\u7684\u8bbe\u8ba1<\/p>\n<p>     \u7edd\u4e0d\u80fd<\/p>\n<p>    \u76f4\u63a5\u6267\u884c\u5b83\u4eec\u3002\u6b63\u786e\u7684\u6d41\u7a0b\u662f&#xff1a;AI\u53d1\u8d77\u8bf7\u6c42 -&gt; MCP\u670d\u52a1\u5668\u751f\u6210\u4e00\u4e2a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61 -&gt; \u901a\u8fc7\u67d0\u79cd\u65b9\u5f0f&#xff08;\u5982\u8fd4\u56de\u4e00\u4e2a\u9700\u8981\u7528\u6237\u786e\u8ba4\u7684\u94fe\u63a5\u3001\u89e6\u53d1\u4e00\u4e2a\u684c\u9762\u901a\u77e5\u3001\u66f4\u65b0\u4e00\u4e2a\u5f85\u5ba1\u6279\u5217\u8868&#xff09;\u5448\u73b0\u7ed9\u7528\u6237 -&gt; \u7528\u6237\u5728\u5b89\u5168\u7684\u73af\u5883&#xff08;\u5982\u786c\u4ef6\u94b1\u5305\u3001MetaMask\u5f39\u7a97&#xff09;\u4e2d\u5ba1\u67e5\u5e76\u7b7e\u540d -&gt; \u7b7e\u540d\u540e\u7684\u4ea4\u6613\u88ab\u5e7f\u64ad\u5230\u94fe\u4e0a\u3002\n   <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>    \u5de5\u5177\u8f93\u5165\u53c2\u6570\u7684\u4e25\u8c28\u5b9a\u4e49<\/p>\n<p>   &#xff1a;\u4e3a\u4e86\u9632\u6b62AI\u80e1\u4e71\u6784\u9020\u53c2\u6570&#xff0c;\u6bcf\u4e2a\u5de5\u5177\u7684\u8f93\u5165\u6a21\u5f0f\u5fc5\u987b\u5b9a\u4e49\u5f97\u975e\u5e38\u4e25\u683c\u3002\u4f8b\u5982&#xff0c;<\/p>\n<p>    transfer_native<\/p>\n<p>   \u5de5\u5177\u7684\u53c2\u6570\u6a21\u5f0f\u4f1a\u8981\u6c42<\/p>\n<p>    to<\/p>\n<p>   \u5730\u5740\u5fc5\u987b\u7b26\u5408EIP-55\u6821\u9a8c\u548c\u683c\u5f0f&#xff0c;<\/p>\n<p>    amount<\/p>\n<p>   \u5fc5\u987b\u662f\u5b57\u7b26\u4e32\u7c7b\u578b&#xff08;\u907f\u514dJS\u6570\u5b57\u7cbe\u5ea6\u95ee\u9898&#xff09;&#xff0c;\u5e76\u4e14\u53ef\u4ee5\u9644\u52a0\u4e00\u4e2a<\/p>\n<p>    maxFeePerGas<\/p>\n<p>   \u548c<\/p>\n<p>    maxPriorityFeePerGas<\/p>\n<p>   \u7684\u53ef\u9009\u53c2\u6570&#xff0c;\u800c\u4e0d\u662f\u4e00\u4e2a\u6a21\u7cca\u7684<\/p>\n<p>    gasPrice<\/p>\n<p>   \u3002\n  <\/p>\n<\/li>\n<\/ul>\n<p>   \u6ce8\u610f<\/p>\n<p>  &#xff1a;\u4e00\u4e2a\u5173\u952e\u7684\u8bbe\u8ba1\u51b3\u7b56\u662f&#xff0c;MCP\u670d\u52a1\u5668<\/p>\n<p>   \u4e0d\u5e94\u8be5<\/p>\n<p>  \u63d0\u4f9b\u201c\u4f30\u7b97\u4ea4\u6613\u8d39\u7528\u5e76\u81ea\u52a8\u53d1\u9001\u201d\u8fd9\u79cd\u5168\u81ea\u52a8\u5de5\u5177\u3002\u6240\u6709\u6d89\u53ca\u8d44\u4ea7\u8f6c\u79fb\u7684\u64cd\u4f5c&#xff0c;\u5fc5\u987b\u6709\u4e00\u4e2a\u660e\u786e\u7684\u3001\u963b\u65ad\u5f0f\u7684\u7528\u6237\u786e\u8ba4\u73af\u8282\u3002\u8fd9\u662f\u4e0d\u53ef\u59a5\u534f\u7684\u5b89\u5168\u5e95\u7ebf\u3002\n <\/p>\n<h4>\n 2.3 \u591a\u94fe\u652f\u6301\u4e0e\u62bd\u8c61<br \/>\n<\/h4>\n<p>\n \u73b0\u5728\u7684\u533a\u5757\u94fe\u751f\u6001\u662f\u591a\u94fe\u7684\u3002\u4e00\u4e2a\u597d\u7684\u94b1\u5305MCP\u670d\u52a1\u5668\u4e0d\u80fd\u53ea\u652f\u6301\u4ee5\u592a\u574a\u3002\u5176\u67b6\u6784\u5e94\u8be5\u662f\u6a21\u5757\u5316\u7684&#xff0c;\u6838\u5fc3\u662f\u4e00\u4e2a<\/p>\n<p>  \u94b1\u5305\u7ba1\u7406\u5668<\/p>\n<p> \u548c<\/p>\n<p>  \u94fe\u9002\u914d\u5668<\/p>\n<p> \u63a5\u53e3\u3002\n<\/p>\n<ul>\n<li>\n<p>   \u94b1\u5305\u7ba1\u7406\u5668<\/p>\n<p>  &#xff1a;\u8d1f\u8d23\u52a0\u8f7d\u548c\u7ba1\u7406\u4e0d\u540c\u7684\u94b1\u5305&#xff08;\u8d26\u6237&#xff09;&#xff0c;\u6bcf\u4e2a\u94b1\u5305\u5bf9\u5e94\u4e00\u4e2a\u79c1\u94a5\u6216\u786c\u4ef6\u94b1\u5305\u8fde\u63a5\u3002\n <\/li>\n<li>\n<p>   \u94fe\u9002\u914d\u5668<\/p>\n<p>  &#xff1a;\u6bcf\u4e2a\u652f\u6301\u7684\u533a\u5757\u94fe&#xff08;\u5982Ethereum, Polygon, Arbitrum, Solana, Cosmos Hub&#xff09;\u90fd\u6709\u4e00\u4e2a\u5bf9\u5e94\u7684\u9002\u914d\u5668\u3002\u9002\u914d\u5668\u5b9e\u73b0\u4e86\u8be5\u94fe\u7279\u6709\u7684RPC\u8c03\u7528\u3001\u4ea4\u6613\u6784\u9020\u3001\u7b7e\u540d\u9a8c\u8bc1\u903b\u8f91\u3002\n <\/li>\n<li>\n  \u5f53AI\u8bf7\u6c42\u201c\u5728Polygon\u4e0a\u8f6c\u8d26MATIC\u201d\u65f6&#xff0c;MCP\u670d\u52a1\u5668\u4f1a\u901a\u8fc7\u94b1\u5305\u7ba1\u7406\u5668\u627e\u5230\u5bf9\u5e94\u7684\u8d26\u6237&#xff0c;\u7136\u540e\u8c03\u7528Polygon\u94fe\u9002\u914d\u5668\u6765\u6784\u9020\u4ea4\u6613&#xff0c;\u6700\u540e\u518d\u901a\u8fc7\u94b1\u5305\u7ba1\u7406\u5668\u8bf7\u6c42\u7b7e\u540d\u3002\n <\/li>\n<\/ul>\n<p>\n \u8fd9\u79cd\u8bbe\u8ba1\u4f7f\u5f97\u6dfb\u52a0\u5bf9\u65b0\u94fe\u7684\u652f\u6301\u53d8\u5f97\u6e05\u6670&#xff0c;\u53ea\u9700\u8981\u5b9e\u73b0\u65b0\u7684\u94fe\u9002\u914d\u5668\u5373\u53ef&#xff0c;\u6838\u5fc3\u7684\u4e1a\u52a1\u903b\u8f91\u548cMCP\u534f\u8bae\u5c42\u4e0d\u9700\u8981\u6539\u52a8\u3002\n<\/p>\n<h3>\n 3. \u6838\u5fc3\u7ec6\u8282\u89e3\u6790\u4e0e\u5b9e\u64cd\u8981\u70b9<br \/>\n<\/h3>\n<p>\n \u7406\u89e3\u4e86\u8bbe\u8ba1\u601d\u8def&#xff0c;\u6211\u4eec\u6df1\u5165\u5230\u5b9e\u73b0\u5c42\u9762&#xff0c;\u770b\u770b\u51e0\u4e2a\u6700\u5173\u952e\u7684\u6280\u672f\u7ec6\u8282\u548c\u5b9e\u64cd\u4e2d\u5bb9\u6613\u8e29\u5751\u7684\u5730\u65b9\u3002\n<\/p>\n<h4>\n 3.1 \u79c1\u94a5\u7684\u5b89\u5168\u52a0\u8f7d\u4e0e\u751f\u547d\u5468\u671f\u7ba1\u7406<br \/>\n<\/h4>\n<p>\n \u8fd9\u662f\u6574\u4e2a\u9879\u76ee\u7684\u5b89\u5168\u57fa\u77f3\u3002\u4ee5\u672c\u5730\u52a0\u5bc6\u5b58\u50a8\u4e3a\u4f8b&#xff0c;\u4e00\u4e2a\u5e38\u89c1\u7684\u505a\u6cd5\u662f\u4f7f\u7528<\/p>\n<p>  keytar<\/p>\n<p> &#xff08;Node.js&#xff09;\u6216<\/p>\n<p>  keyring<\/p>\n<p> &#xff08;Python&#xff09;\u7b49\u5e93&#xff0c;\u5229\u7528\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u7684\u5b89\u5168\u51ed\u8bc1\u5b58\u50a8&#xff08;\u5982macOS\u7684Keychain\u3001Linux\u7684Secret Service\u3001Windows\u7684Credential Vault&#xff09;\u6765\u4fdd\u5b58\u52a0\u5bc6\u540e\u7684\u79c1\u94a5\u3002\n<\/p>\n<p>  \u5b9e\u64cd\u6b65\u9aa4\u793a\u4f8b&#xff08;Node.js\u601d\u8def&#xff09;<\/p>\n<p> &#xff1a;\n<\/p>\n<li>\n<p>   \u9996\u6b21\u8fd0\u884c\/\u521d\u59cb\u5316<\/p>\n<p>  &#xff1a;<br \/>\n  # \u5047\u8bbe\u9879\u76ee\u4f7f\u7528Node.js&#xff0c;\u521d\u59cb\u5316\u4e00\u4e2a\u94b1\u5305<br \/>\nnode cli.js init-wallet &#8211;name &#034;my-main-eth&#034;<\/p>\n<p>  \u6b64\u65f6&#xff0c;CLI\u4f1a\u63d0\u793a\u4f60\u8f93\u5165\u79c1\u94a5\u6216\u52a9\u8bb0\u8bcd&#xff08;\u5728\u7ec8\u7aef\u4e2d\u9690\u85cf\u8f93\u5165&#xff09;&#xff0c;\u7136\u540e\u8981\u6c42\u4f60\u8bbe\u7f6e\u4e00\u4e2a\u5f3a\u5bc6\u7801\u3002\u63a5\u4e0b\u6765&#xff1a;<br \/>\n  \/\/ \u4f2a\u4ee3\u7801\u903b\u8f91<br \/>\nconst privateKey &#061; await promptForPrivateKey(); \/\/ \u5b89\u5168\u83b7\u53d6\u79c1\u94a5<br \/>\nconst userPassword &#061; await promptForPassword(); \/\/ \u83b7\u53d6\u7528\u6237\u52a0\u5bc6\u5bc6\u7801<br \/>\nconst salt &#061; crypto.randomBytes(16);<br \/>\nconst key &#061; crypto.scryptSync(userPassword, salt, 32); \/\/ \u7528\u5bc6\u7801\u6d3e\u751f\u52a0\u5bc6\u5bc6\u94a5<br \/>\nconst cipher &#061; crypto.createCipheriv(&#039;aes-256-gcm&#039;, key, iv);<br \/>\nlet encrypted &#061; cipher.update(privateKey, &#039;utf8&#039;, &#039;hex&#039;);<br \/>\nencrypted &#043;&#061; cipher.final(&#039;hex&#039;);<br \/>\nconst authTag &#061; cipher.getAuthTag();<br \/>\n\/\/ \u5c06\u52a0\u5bc6\u540e\u7684\u6570\u636e\u3001salt\u3001iv\u3001authTag\u901a\u8fc7keytar\u5b58\u50a8\u5230\u7cfb\u7edf\u5bc6\u94a5\u94fe&#xff0c;\u6807\u8bc6\u4e3a&#096;wallet-mcp:my-main-eth&#096;<br \/>\nawait keytar.setPassword(&#039;wallet-mcp&#039;, &#039;my-main-eth&#039;, JSON.stringify({encrypted, salt, iv, authTag}));<br \/>\n\/\/ \u5185\u5b58\u4e2d\u7684\u79c1\u94a5\u660e\u6587\u7acb\u5373\u88ab\u8986\u76d6\u6e05\u9664<\/p>\n<\/li>\n<li>\n<p>   MCP\u670d\u52a1\u5668\u8fd0\u884c\u65f6\u52a0\u8f7d<\/p>\n<p>  &#xff1a;<br \/>\n\u5f53MCP\u670d\u52a1\u5668\u542f\u52a8&#xff0c;\u9700\u8981\u7528\u5230\u8fd9\u4e2a\u94b1\u5305\u65f6&#xff0c;\u5b83\u4f1a\u63d0\u793a\u8f93\u5165\u5bc6\u7801&#xff08;\u6216\u4ece\u73af\u5883\u53d8\u91cf\u7b49\u5b89\u5168\u4f4d\u7f6e\u83b7\u53d6&#xff09;\u3002<br \/>\n  const storedData &#061; JSON.parse(await keytar.getPassword(&#039;wallet-mcp&#039;, &#039;my-main-eth&#039;));<br \/>\nconst userPassword &#061; await getPasswordFromSecureSource(); \/\/ \u83b7\u53d6\u5bc6\u7801<br \/>\nconst key &#061; crypto.scryptSync(userPassword, storedData.salt, 32);<br \/>\nconst decipher &#061; crypto.createDecipheriv(&#039;aes-256-gcm&#039;, key, storedData.iv);<br \/>\ndecipher.setAuthTag(storedData.authTag);<br \/>\nlet decrypted &#061; decipher.update(storedData.encrypted, &#039;hex&#039;, &#039;utf8&#039;);<br \/>\ndecrypted &#043;&#061; decipher.final(&#039;utf8&#039;);<br \/>\n\/\/ \u6b64\u65f6decrypted\u662f\u79c1\u94a5\u660e\u6587&#xff0c;\u5c06\u5176\u52a0\u8f7d\u5230ethers.js\u6216viem\u7684Wallet\u5bf9\u8c61\u4e2d<br \/>\nconst wallet &#061; new ethers.Wallet(decrypted);<br \/>\n\/\/ \u91cd\u8981&#xff1a;\u79c1\u94a5\u660e\u6587\u53ea\u5b58\u5728\u4e8e\u8fd9\u4e2awallet\u5bf9\u8c61\u5185\u90e8&#xff0c;\u4e14\u8be5\u5bf9\u8c61\u5e94\u5728\u5185\u5b58\u4e2d\u751f\u547d\u5468\u671f\u6700\u77ed<\/p>\n<\/li>\n<p>   \u5b9e\u64cd\u5fc3\u5f97<\/p>\n<p>  &#xff1a;\n <\/p>\n<li>\n<p>    \u7edd\u4e0d\u8bb0\u5f55\u65e5\u5fd7<\/p>\n<p>   &#xff1a;\u4efb\u4f55\u53ef\u80fd\u5305\u542b\u79c1\u94a5\u3001\u52a9\u8bb0\u8bcd\u3001\u89e3\u5bc6\u5bc6\u7801\u7684\u53d8\u91cf&#xff0c;\u5728\u8c03\u8bd5\u65f6\u7edd\u4e0d\u80fd\u901a\u8fc7<\/p>\n<p>    console.log<\/p>\n<p>   \u8f93\u51fa&#xff0c;\u5373\u4f7f\u662f<\/p>\n<p>    ****<\/p>\n<p>   \u63a9\u7801\u4e5f\u53ef\u80fd\u5728\u65e5\u5fd7\u805a\u5408\u7cfb\u7edf\u4e2d\u66b4\u9732\u957f\u5ea6\u4fe1\u606f\u3002\n  <\/li>\n<li>\n<p>    \u5185\u5b58\u6e05\u96f6<\/p>\n<p>   &#xff1a;\u5728JavaScript\u4e2d&#xff0c;\u5b57\u7b26\u4e32\u662f\u4e0d\u53ef\u53d8\u7684&#xff0c;\u5355\u7eaf\u5730<\/p>\n<p>    privateKey &#061; null<\/p>\n<p>   \u53ef\u80fd\u4e0d\u4f1a\u7acb\u5373\u4ece\u5185\u5b58\u4e2d\u6e05\u9664\u3002\u5bf9\u4e8e\u6781\u5ea6\u654f\u611f\u7684\u573a\u666f&#xff0c;\u8003\u8651\u4f7f\u7528<\/p>\n<p>    Buffer<\/p>\n<p>   \u6216<\/p>\n<p>    Uint8Array<\/p>\n<p>   \u6765\u5b58\u50a8\u79c1\u94a5&#xff0c;\u5e76\u5728\u4f7f\u7528\u540e\u8c03\u7528<\/p>\n<p>    .fill(0)<\/p>\n<p>   \u6765\u8986\u76d6\u5185\u5b58\u3002\u6216\u8005\u4f7f\u7528\u4e13\u95e8\u7684\u5b89\u5168\u5e93\u3002\n  <\/li>\n<li>\n<p>    \u5bc6\u7801\u8f93\u5165\u8d85\u65f6<\/p>\n<p>   &#xff1a;\u5982\u679c\u5bc6\u7801\u662f\u4ece\u4ea4\u4e92\u5f0f\u7ec8\u7aef\u8f93\u5165\u7684&#xff0c;\u8003\u8651\u8bbe\u7f6e\u4e00\u4e2a\u8d85\u65f6&#xff0c;\u5982\u679cMCP\u670d\u52a1\u5668\u5728\u540e\u53f0\u7a7a\u95f2\u592a\u4e45&#xff0c;\u5e94\u81ea\u52a8\u9501\u5b9a&#xff0c;\u9700\u8981\u91cd\u65b0\u8f93\u5165\u5bc6\u7801\u3002\n  <\/li>\n<li>\n<p>    \u73af\u5883\u53d8\u91cf\u7684\u9677\u9631<\/p>\n<p>   &#xff1a;\u5f88\u591a\u4eba\u559c\u6b22\u7528<\/p>\n<p>    WALLET_PRIVATE_KEY<\/p>\n<p>   \u73af\u5883\u53d8\u91cf\u3002\u8fd9\u975e\u5e38\u5371\u9669&#xff0c;\u56e0\u4e3a\u8fdb\u7a0b\u7684\u73af\u5883\u53d8\u91cf\u53ef\u80fd\u901a\u8fc7<\/p>\n<p>    \/proc\/[pid]\/environ<\/p>\n<p>   \u6216\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\u6cc4\u9732\u3002\u5982\u679c\u5fc5\u987b\u7528&#xff0c;\u786e\u4fdd\u8be5\u73af\u5883\u53d8\u91cf\u4ec5\u5728\u542f\u52a8\u65f6\u8bfb\u53d6\u4e00\u6b21&#xff0c;\u5e76\u7acb\u5373\u4ece<\/p>\n<p>    process.env<\/p>\n<p>   \u4e2d\u5220\u9664&#xff08;<\/p>\n<p>    delete process.env.WALLET_PRIVATE_KEY<\/p>\n<p>   &#xff09;&#xff0c;\u4f46\u8fd9\u5e76\u975e\u7edd\u5bf9\u5b89\u5168\u3002\n  <\/li>\n<h4>\n 3.2 \u4ea4\u6613\u6784\u9020\u4e0e\u7528\u6237\u786e\u8ba4\u6d41\u7a0b<br \/>\n<\/h4>\n<p>\n \u8fd9\u662f\u201c\u5199\u64cd\u4f5c\u201d\u5b89\u5168\u7684\u5173\u952e\u3002\u6d41\u7a0b\u5fc5\u987b\u662f\u5f02\u6b65\u7684\u3001\u53ef\u4ea4\u4e92\u7684\u3002\n<\/p>\n<p>  \u6807\u51c6\u6d41\u7a0b\u8bbe\u8ba1<\/p>\n<p> &#xff1a;\n<\/p>\n<li>\n<p>   AI\u8bf7\u6c42<\/p>\n<p>  &#xff1a;AI\u901a\u8fc7MCP\u53d1\u9001<\/p>\n<p>   transfer_native<\/p>\n<p>  \u5de5\u5177\u8c03\u7528\u8bf7\u6c42&#xff0c;\u5305\u542b<\/p>\n<p>   to<\/p>\n<p>  ,<\/p>\n<p>   amount<\/p>\n<p>  ,<\/p>\n<p>   chainId<\/p>\n<p>  \u53c2\u6570\u3002\n <\/li>\n<li>\n<p>   \u670d\u52a1\u5668\u6784\u9020\u672a\u7b7e\u540d\u4ea4\u6613<\/p>\n<p>  &#xff1a;MCP\u670d\u52a1\u5668\u6839\u636e\u5f53\u524d\u7f51\u7edcGas\u4ef7\u683c&#xff08;\u53ef\u901a\u8fc7<\/p>\n<p>   eth_gasPrice<\/p>\n<p>  \u6216EIP-1559\u7684<\/p>\n<p>   eth_feeHistory<\/p>\n<p>  \u4f30\u7b97&#xff09;&#xff0c;\u6784\u9020\u4e00\u4e2a\u672a\u7b7e\u540d\u7684\u4ea4\u6613\u5bf9\u8c61&#xff08;<\/p>\n<p>   UnsignedTransaction<\/p>\n<p>  &#xff09;\u3002\n <\/li>\n<li>\n<p>   \u751f\u6210\u5f85\u786e\u8ba4\u8bf7\u6c42<\/p>\n<p>  &#xff1a;\u670d\u52a1\u5668<\/p>\n<p>   \u4e0d\u76f4\u63a5\u7b7e\u540d<\/p>\n<p>  \u3002\u800c\u662f\u5c06\u8fd9\u4e2a\u672a\u7b7e\u540d\u4ea4\u6613\u8f6c\u6362\u6210\u4e00\u4e2a<\/p>\n<p>   \u5f85\u786e\u8ba4\u8bf7\u6c42<\/p>\n<p>  &#xff0c;\u8be5\u8bf7\u6c42\u5305\u542b\u4e00\u4e2a\u552f\u4e00\u7684ID\u3001\u4ea4\u6613\u8be6\u60c5&#xff08;\u7f8e\u5316\u540e\u7684&#xff0c;\u7ed9\u7528\u6237\u770b&#xff09;&#xff0c;\u5e76\u5b58\u50a8\u5728\u4e00\u4e2a\u4e34\u65f6\u7684\u5185\u5b58\u5b58\u50a8&#xff08;\u5982Map&#xff09;\u6216\u6570\u636e\u5e93\u91cc\u3002<br \/>\n  const pendingTxId &#061; uuidv4();<br \/>\nconst pendingTxStore.set(pendingTxId, {<br \/>\n    unsignedTx: rawUnsignedTxObject,<br \/>\n    createdAt: Date.now(),<br \/>\n    status: &#039;pending&#039;<br \/>\n});<\/p>\n<\/li>\n<li>\n<p>   \u8fd4\u56de\u7528\u6237\u786e\u8ba4\u6307\u4ee4<\/p>\n<p>  &#xff1a;MCP\u670d\u52a1\u5668\u901a\u8fc7MCP\u534f\u8bae\u8fd4\u56de\u4e00\u4e2a\u7ed3\u679c\u7ed9AI&#xff0c;\u8fd9\u4e2a\u7ed3\u679c\u4e0d\u662f\u4ea4\u6613\u54c8\u5e0c&#xff0c;\u800c\u662f\u4e00\u6761\u6e05\u6670\u7684\u6587\u672c\u6d88\u606f&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p>\n    \u201c\u6211\u5df2\u4e3a\u60a8\u6784\u9020\u4e86\u4e00\u7b14\u5411<\/p>\n<p>     0x742d35Cc6634C0532925a3b844Bc9e&#8230;<\/p>\n<p>    \u8f6c\u8d26<\/p>\n<p>     0.1 ETH<\/p>\n<p>    \u7684\u4ea4\u6613\u3002\u9884\u4f30Gas\u8d39\u7528\u7ea6\u4e3a<\/p>\n<p>     0.0012 ETH<\/p>\n<p>    \u3002\u8bf7\u786e\u8ba4\u662f\u5426\u53d1\u9001\u3002\\\\n\\\\n<\/p>\n<p>     \u8bf7\u590d\u5236\u4ee5\u4e0b\u547d\u4ee4\u5e76\u5728\u4f60\u7684\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u8fdb\u884c\u786e\u8ba4&#xff1a;<\/p>\n<p>    \\\\n<\/p>\n<p>     confirm-tx ${pendingTxId}<\/p>\n<p>    \u201d<br \/>\n\u6216\u8005&#xff0c;\u5982\u679c\u96c6\u6210\u4e86\u684c\u9762\u901a\u77e5&#xff0c;\u53ef\u4ee5\u89e6\u53d1\u4e00\u4e2a\u7cfb\u7edf\u901a\u77e5&#xff0c;\u70b9\u51fb\u540e\u6253\u5f00\u4e00\u4e2a\u672c\u5730\u7684\u5c0f\u578bWeb\u670d\u52a1\u5668\u9875\u9762\u6765\u5c55\u793a\u4ea4\u6613\u8be6\u60c5\u548c\u786e\u8ba4\u6309\u94ae\u3002\n   <\/p>\n<\/li>\n<li>\n<p>   \u7528\u6237\u786e\u8ba4<\/p>\n<p>  &#xff1a;\u7528\u6237\u5728\u7ec8\u7aef\u6267\u884c\u786e\u8ba4\u547d\u4ee4&#xff0c;\u6216\u5728\u524d\u7aef\u9875\u9762\u70b9\u51fb\u786e\u8ba4\u3002\n <\/li>\n<li>\n<p>   \u7b7e\u540d\u5e76\u5e7f\u64ad<\/p>\n<p>  &#xff1a;\u786e\u8ba4\u547d\u4ee4\u7684\u5904\u7406\u7a0b\u5e8f\u4ece<\/p>\n<p>   pendingTxStore<\/p>\n<p>  \u4e2d\u53d6\u51fa\u5bf9\u5e94\u7684\u672a\u7b7e\u540d\u4ea4\u6613&#xff0c;<\/p>\n<p>   \u6b64\u65f6\u624d\u8c03\u7528\u5b89\u5168\u7684\u94b1\u5305\u5bf9\u8c61\u8fdb\u884c\u7b7e\u540d<\/p>\n<p>  &#xff0c;\u7136\u540e\u5c06\u7b7e\u540d\u540e\u7684\u4ea4\u6613\u5e7f\u64ad\u5230\u7f51\u7edc\u3002\n <\/li>\n<li>\n<p>   \u8fd4\u56de\u6700\u7ec8\u7ed3\u679c<\/p>\n<p>  &#xff1a;\u5c06\u4ea4\u6613\u54c8\u5e0c\u8fd4\u56de\u7ed9\u7528\u6237\u548cAI\u3002\n <\/li>\n<p>\n \u8fd9\u4e2a\u6d41\u7a0b\u786e\u4fdd\u4e86\u79c1\u94a5\u7b7e\u540d\u52a8\u4f5c\u4e0eAI\u7684\u8bf7\u6c42\u4e4b\u95f4&#xff0c;\u6c38\u8fdc\u9694\u7740\u4e00\u4e2a<\/p>\n<p>  \u660e\u786e\u7684\u3001\u7531\u7528\u6237\u89e6\u53d1\u7684\u52a8\u4f5c<\/p>\n<p> \u3002\n<\/p>\n<h4>\n 3.3 \u591a\u94fe\u9002\u914d\u5668\u7684\u7edf\u4e00\u63a5\u53e3<br \/>\n<\/h4>\n<p>\n \u4e3a\u4e86\u5b9e\u73b0\u4f18\u96c5\u7684\u591a\u94fe\u652f\u6301&#xff0c;\u9700\u8981\u5b9a\u4e49\u4e00\u4e2a\u62bd\u8c61\u7684<\/p>\n<p>  ChainAdapter<\/p>\n<p> \u63a5\u53e3\u3002\n<\/p>\n<p>\/\/ \u4f2aTypeScript\u63a5\u53e3\u5b9a\u4e49<br \/>\ninterface ChainAdapter {<br \/>\n  chainId: number | string;<br \/>\n  chainName: string;<\/p>\n<p>  \/\/ \u53ea\u8bfb\u64cd\u4f5c<br \/>\n  getBalance(address: string): Promise&lt;BigNumberish&gt;;<br \/>\n  getTokenBalances(address: string, tokenAddresses?: string[]): Promise&lt;TokenBalance[]&gt;;<br \/>\n  getTransactionHistory(address: string, limit?: number): Promise&lt;Transaction[]&gt;;<br \/>\n  estimateGas(transaction: Partial&lt;TransactionRequest&gt;): Promise&lt;BigNumberish&gt;;<\/p>\n<p>  \/\/ \u5199\u64cd\u4f5c&#xff08;\u8fd4\u56de\u672a\u7b7e\u540d\u4ea4\u6613&#xff09;<br \/>\n  buildTransferNativeTx(from: string, to: string, amount: BigNumberish): Promise&lt;UnsignedTx&gt;;<br \/>\n  buildTransferTokenTx(from: string, to: string, tokenAddress: string, amount: BigNumberish): Promise&lt;UnsignedTx&gt;;<\/p>\n<p>  \/\/ \u7b7e\u540d\u4e0e\u5e7f\u64ad&#xff08;\u7531\u94b1\u5305\u7ba1\u7406\u5668\u8c03\u7528&#xff09;<br \/>\n  signTransaction(unsignedTx: UnsignedTx, signer: Signer): Promise&lt;SignedTx&gt;;<br \/>\n  sendSignedTransaction(signedTx: SignedTx): Promise&lt;string&gt;; \/\/ \u8fd4\u56detxHash<br \/>\n}<\/p>\n<p>\n \u7136\u540e&#xff0c;\u4e3a\u6bcf\u6761\u94fe\u5b9e\u73b0\u8fd9\u4e2a\u63a5\u53e3&#xff1a;\n<\/p>\n<ul>\n<li>\n<p>   EthereumAdapter<\/p>\n<p>  : \u57fa\u4e8e<\/p>\n<p>   ethers.js<\/p>\n<p>  \u6216<\/p>\n<p>   viem<\/p>\n<p>  \u5b9e\u73b0\u3002\n <\/li>\n<li>\n<p>   PolygonAdapter<\/p>\n<p>  : \u7ee7\u627f\u81ea<\/p>\n<p>   EthereumAdapter<\/p>\n<p>  &#xff0c;\u53ea\u9700\u8986\u76d6<\/p>\n<p>   chainId<\/p>\n<p>  \u548cRPC\u7aef\u70b9\u3002\n <\/li>\n<li>\n<p>   SolanaAdapter<\/p>\n<p>  : \u57fa\u4e8e<\/p>\n<p>   &#064;solana\/web3.js<\/p>\n<p>  \u5b9e\u73b0&#xff0c;\u63a5\u53e3\u76f8\u540c\u4f46\u5185\u90e8\u5b9e\u73b0\u5b8c\u5168\u4e0d\u540c\u3002\n <\/li>\n<li>\n<p>   CosmosAdapter<\/p>\n<p>  : \u57fa\u4e8e<\/p>\n<p>   cosmjs<\/p>\n<p>  \u5b9e\u73b0\u3002\n <\/li>\n<\/ul>\n<p>\n \u5728MCP\u670d\u52a1\u5668\u542f\u52a8\u65f6&#xff0c;\u6839\u636e\u914d\u7f6e\u52a0\u8f7d\u6240\u6709\u9700\u8981\u7684\u9002\u914d\u5668\u3002\u94b1\u5305\u7ba1\u7406\u5668\u6839\u636e\u8bf7\u6c42\u4e2d\u7684<\/p>\n<p>  chainId<\/p>\n<p> \u6216\u94fe\u540d\u79f0&#xff0c;\u8def\u7531\u5230\u6b63\u786e\u7684\u9002\u914d\u5668\u3002\n<\/p>\n<p>   \u6ce8\u610f\u4e8b\u9879<\/p>\n<p>  &#xff1a;\n <\/p>\n<ul>\n<li>\n<p>    \u4ee3\u5e01\u7cbe\u5ea6<\/p>\n<p>   &#xff1a;\u4e0d\u540c\u94fe\u3001\u4e0d\u540c\u4ee3\u5e01\u7684\u7cbe\u5ea6&#xff08;decimals&#xff09;\u4e0d\u540c\u3002<\/p>\n<p>    buildTransferTokenTx<\/p>\n<p>   \u65f6&#xff0c;\u5fc5\u987b\u5c06\u4eba\u7c7b\u53ef\u8bfb\u7684\u91d1\u989d&#xff08;\u5982\u201c1.5 USDC\u201d&#xff09;\u8f6c\u6362\u4e3a\u57fa\u4e8e\u7cbe\u5ea6\u7684\u6700\u5c0f\u5355\u4f4d&#xff08;\u5982<\/p>\n<p>    1.5 * 10^6 &#061; 1500000<\/p>\n<p>   &#xff09;\u3002\u8fd9\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u9519\u8bef\u6765\u6e90\u3002\n  <\/li>\n<li>\n<p>    Gas\u8d27\u5e01<\/p>\n<p>   &#xff1a;\u6bcf\u6761\u94fe\u7684Gas\u8d39\u652f\u4ed8\u8d27\u5e01\u53ef\u80fd\u4e0d\u540c&#xff08;ETH\u3001MATIC\u3001AVAX\u7b49&#xff09;\u3002\u5728\u4f30\u7b97\u548c\u663e\u793aGas\u8d39\u65f6&#xff0c;\u9700\u8981\u9002\u914d\u5668\u63d0\u4f9bGas\u8d27\u5e01\u7684\u7b26\u53f7\u548c\u7cbe\u5ea6\u4fe1\u606f\u3002\n  <\/li>\n<li>\n<p>    RPC\u8282\u70b9\u7a33\u5b9a\u6027<\/p>\n<p>   &#xff1a;\u52a1\u5fc5\u4e3a\u6bcf\u6761\u94fe\u914d\u7f6e\u5907\u7528RPC\u8282\u70b9URL&#xff0c;\u5e76\u5728\u4e3b\u8282\u70b9\u5931\u8d25\u65f6\u81ea\u52a8\u5207\u6362\u3002\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u50cf<\/p>\n<p>    ethers.js<\/p>\n<p>   \u7684<\/p>\n<p>    FallbackProvider<\/p>\n<p>   \u3002\n  <\/li>\n<\/ul>\n<h3>\n 4. \u5b9e\u64cd\u8fc7\u7a0b\u4e0e\u6838\u5fc3\u73af\u8282\u5b9e\u73b0<br \/>\n<\/h3>\n<p>\n \u8ba9\u6211\u4eec\u4ee5\u4e00\u4e2a\u5177\u4f53\u7684\u573a\u666f\u6765\u4e32\u8054\u6574\u4e2a\u5b9e\u64cd\u8fc7\u7a0b&#xff1a;<\/p>\n<p>  \u4e3aClaude Desktop\u914d\u7f6e<\/p>\n<p>   wallet-mcp<\/p>\n<p>  &#xff0c;\u5e76\u5b9e\u73b0\u67e5\u8be2\u4f59\u989d\u548c\u53d1\u8d77\u8f6c\u8d26&#xff08;\u9700\u786e\u8ba4&#xff09;\u7684\u529f\u80fd\u3002<\/p>\n<h4>\n 4.1 \u73af\u5883\u51c6\u5907\u4e0e\u9879\u76ee\u521d\u59cb\u5316<br \/>\n<\/h4>\n<p>\n \u5047\u8bbe\u6211\u4eec\u4f7f\u7528Node.js\u73af\u5883&#xff0c;\u57fa\u4e8e\u4e00\u4e2a\u73b0\u6709\u7684<\/p>\n<p>  wallet-mcp<\/p>\n<p> \u9879\u76ee\u6a21\u677f\u8fdb\u884c\u5f00\u53d1\u3002\n<\/p>\n<p># 1. \u514b\u9686\u9879\u76ee\u6216\u4f7f\u7528\u6a21\u677f<br \/>\ngit clone &lt;https:\/\/github.com\/genoshide\/wallet-mcp.git&gt; # \u5047\u8bbe\u8fd9\u662f\u9879\u76ee\u5730\u5740<br \/>\ncd wallet-mcp<\/p>\n<p># 2. \u5b89\u88c5\u4f9d\u8d56<br \/>\nnpm install<\/p>\n<p># 3. \u5b89\u88c5\u5e76\u914d\u7f6eClaude Desktop&#xff08;\u5982\u679c\u5c1a\u672a\u5b89\u88c5&#xff09;<br \/>\n# \u4eceAnthropic\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5Claude Desktop\u3002<\/p>\n<p># 4. \u914d\u7f6eClaude Desktop\u7684MCP\u8bbe\u7f6e<br \/>\n# Claude Desktop\u7684\u914d\u7f6e\u901a\u5e38\u4f4d\u4e8e&#xff1a;<br \/>\n# macOS: ~\/Library\/Application Support\/Claude\/claude_desktop_config.json<br \/>\n# Windows: %APPDATA%\/Claude\/claude_desktop_config.json<br \/>\n# Linux: ~\/.config\/Claude\/claude_desktop_config.json<\/p>\n<p>\n \u7f16\u8f91\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6&#xff0c;\u6dfb\u52a0\u6211\u4eec\u7684MCP\u670d\u52a1\u5668&#xff1a;\n<\/p>\n<p>{<br \/>\n  &#034;mcpServers&#034;: {<br \/>\n    &#034;wallet-mcp&#034;: {<br \/>\n      &#034;command&#034;: &#034;node&#034;,<br \/>\n      &#034;args&#034;: [<br \/>\n        &#034;\/ABSOLUTE\/PATH\/TO\/YOUR\/wallet-mcp\/dist\/index.js&#034;, \/\/ \u6307\u5411\u7f16\u8bd1\u540e\u7684\u5165\u53e3\u6587\u4ef6<br \/>\n        &#034;&#8211;config&#034;,<br \/>\n        &#034;\/ABSOLUTE\/PATH\/TO\/YOUR\/wallet-mcp\/config.json&#034; \/\/ \u914d\u7f6e\u6587\u4ef6\u8def\u5f84<br \/>\n      ],<br \/>\n      &#034;env&#034;: {<br \/>\n        \/\/ \u53ef\u4ee5\u5728\u8fd9\u91cc\u4f20\u9012\u52a0\u5bc6\u5bc6\u7801&#xff0c;\u4f46\u4e0d\u63a8\u8350\u660e\u6587\u3002\u66f4\u5b89\u5168\u7684\u65b9\u5f0f\u662f\u8ba9\u670d\u52a1\u5668\u542f\u52a8\u65f6\u4ea4\u4e92\u5f0f\u8be2\u95ee\u3002<br \/>\n        &#034;NODE_ENV&#034;: &#034;production&#034;<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<h4>\n 4.2 \u914d\u7f6e\u6587\u4ef6\u4e0e\u94b1\u5305\u521d\u59cb\u5316<br \/>\n<\/h4>\n<p>\n \u521b\u5efa<\/p>\n<p>  config.json<\/p>\n<p> &#xff0c;\u8fd9\u662f\u670d\u52a1\u5668\u7684\u6838\u5fc3\u914d\u7f6e&#xff1a;\n<\/p>\n<p>{<br \/>\n  &#034;wallets&#034;: [<br \/>\n    {<br \/>\n      &#034;name&#034;: &#034;my-ethereum-wallet&#034;,<br \/>\n      &#034;type&#034;: &#034;encrypted-keystore&#034;, \/\/ \u7c7b\u578b&#xff1a;\u52a0\u5bc6\u5b58\u50a8<br \/>\n      &#034;keySource&#034;: &#034;keychain&#034;, \/\/ \u5b58\u50a8\u4f4d\u7f6e&#xff1a;\u7cfb\u7edf\u5bc6\u94a5\u94fe<br \/>\n      &#034;keyIdentifier&#034;: &#034;wallet-mcp:my-ethereum-wallet&#034;,<br \/>\n      &#034;defaultChainId&#034;: 1 \/\/ \u9ed8\u8ba4\u4ee5\u592a\u574a\u4e3b\u7f51<br \/>\n    }<br \/>\n  ],<br \/>\n  &#034;chains&#034;: {<br \/>\n    &#034;1&#034;: { \/\/ \u4ee5\u592a\u574a\u4e3b\u7f51<br \/>\n      &#034;adapter&#034;: &#034;ethereum&#034;,<br \/>\n      &#034;rpcUrls&#034;: [<br \/>\n        &#034;https:\/\/eth-mainnet.g.alchemy.com\/v2\/YOUR_API_KEY&#034;,<br \/>\n        &#034;https:\/\/rpc.ankr.com\/eth&#034;<br \/>\n      ],<br \/>\n      &#034;explorerUrl&#034;: &#034;https:\/\/etherscan.io&#034;<br \/>\n    },<br \/>\n    &#034;137&#034;: { \/\/ Polygon\u4e3b\u7f51<br \/>\n      &#034;adapter&#034;: &#034;ethereum&#034;, \/\/ \u4f7f\u7528\u76f8\u540c\u7684EVM\u9002\u914d\u5668<br \/>\n      &#034;rpcUrls&#034;: [&#034;https:\/\/polygon-mainnet.g.alchemy.com\/v2\/YOUR_API_KEY&#034;],<br \/>\n      &#034;explorerUrl&#034;: &#034;https:\/\/polygonscan.com&#034;<br \/>\n    }<br \/>\n  },<br \/>\n  &#034;server&#034;: {<br \/>\n    &#034;host&#034;: &#034;127.0.0.1&#034;,<br \/>\n    &#034;port&#034;: 3000,<br \/>\n    &#034;pendingTxTimeout&#034;: 300 \/\/ \u5f85\u5904\u7406\u4ea4\u6613\u8fc7\u671f\u65f6\u95f4&#xff08;\u79d2&#xff09;<br \/>\n  }<br \/>\n}<\/p>\n<p>\n \u8fd0\u884c\u521d\u59cb\u5316\u547d\u4ee4\u6765\u52a0\u5bc6\u5b58\u50a8\u4f60\u7684\u79c1\u94a5&#xff1a;\n<\/p>\n<p>node .\/cli.js init-wallet &#8211;name my-ethereum-wallet &#8211;chain 1<br \/>\n# \u968f\u540e\u6309\u63d0\u793a\u8f93\u5165\u79c1\u94a5\u548c\u52a0\u5bc6\u5bc6\u7801\u3002<\/p>\n<h4>\n 4.3 \u6838\u5fc3\u5de5\u5177\u7684\u5b9e\u73b0\u793a\u4f8b<br \/>\n<\/h4>\n<p>\n \u6211\u4eec\u770b\u770b\u4e24\u4e2a\u6838\u5fc3\u5de5\u5177\u5728\u4ee3\u7801\u4e2d\u5982\u4f55\u5b9e\u73b0\u3002\u8fd9\u91cc\u4f7f\u7528<\/p>\n<p>  &#064;modelcontextprotocol\/sdk<\/p>\n<p> \u6765\u521b\u5efaMCP\u670d\u52a1\u5668\u3002\n<\/p>\n<p>\/\/ src\/tools\/balanceTool.js<br \/>\nimport { z } from &#034;zod&#034;;<br \/>\nimport { McpServer } from &#034;&#064;modelcontextprotocol\/sdk\/server\/mcp.js&#034;;<\/p>\n<p>export function setupBalanceTool(server, walletManager, chainRegistry) {<br \/>\n  server.tool(<br \/>\n    &#034;get_balance&#034;,<br \/>\n    &#034;\u83b7\u53d6\u6307\u5b9a\u5730\u5740\u5728\u6307\u5b9a\u533a\u5757\u94fe\u4e0a\u7684\u539f\u751f\u4ee3\u5e01\u4f59\u989d\u3002&#034;,<br \/>\n    {<br \/>\n      address: z.string().describe(&#034;\u8981\u67e5\u8be2\u4f59\u989d\u7684\u533a\u5757\u94fe\u5730\u5740\u3002&#034;),<br \/>\n      chainId: z.number().optional().describe(&#034;\u533a\u5757\u94fe\u7684Chain ID\u3002\u5982\u4e0d\u63d0\u4f9b&#xff0c;\u4f7f\u7528\u9ed8\u8ba4\u94fe\u3002&#034;)<br \/>\n    },<br \/>\n    async ({ address, chainId }) &#061;&gt; {<br \/>\n      try {<br \/>\n        \/\/ 1. \u83b7\u53d6\u94fe\u9002\u914d\u5668<br \/>\n        const chain &#061; chainRegistry.getChain(chainId);<br \/>\n        const adapter &#061; chain.adapter;<\/p>\n<p>        \/\/ 2. \u8c03\u7528\u9002\u914d\u5668\u65b9\u6cd5<br \/>\n        const balanceWei &#061; await adapter.getBalance(address);<br \/>\n        \/\/ 3. \u683c\u5f0f\u5316\u8f93\u51fa&#xff08;\u4f8b\u5982&#xff0c;\u4ecewei\u8f6c\u6362\u4e3aether&#xff09;<br \/>\n        const balanceFormatted &#061; ethers.formatEther(balanceWei);<\/p>\n<p>        return {<br \/>\n          content: [{<br \/>\n            type: &#034;text&#034;,<br \/>\n            text: &#096;\u5730\u5740 ${address} \u5728 ${chain.chainName} \u4e0a\u7684\u4f59\u989d\u4e3a: ${balanceFormatted} ${chain.nativeCurrencySymbol}&#096;<br \/>\n          }]<br \/>\n        };<br \/>\n      } catch (error) {<br \/>\n        return {<br \/>\n          content: [{<br \/>\n            type: &#034;text&#034;,<br \/>\n            text: &#096;\u67e5\u8be2\u4f59\u989d\u5931\u8d25: ${error.message}&#096;<br \/>\n          }],<br \/>\n          isError: true<br \/>\n        };<br \/>\n      }<br \/>\n    }<br \/>\n  );<br \/>\n}<\/p>\n<p>\/\/ src\/tools\/transferTool.js<br \/>\nimport { z } from &#034;zod&#034;;<br \/>\nimport { v4 as uuidv4 } from &#039;uuid&#039;;<\/p>\n<p>export function setupTransferTool(server, walletManager, chainRegistry, pendingTxStore) {<br \/>\n  server.tool(<br \/>\n    &#034;transfer_native&#034;,<br \/>\n    &#034;\u53d1\u8d77\u4e00\u7b14\u539f\u751f\u4ee3\u5e01\u8f6c\u8d26\u3002\u6b64\u64cd\u4f5c\u9700\u8981\u7528\u6237\u6700\u7ec8\u786e\u8ba4\u3002&#034;,<br \/>\n    {<br \/>\n      to: z.string().describe(&#034;\u6536\u6b3e\u4eba\u5730\u5740\u3002&#034;),<br \/>\n      amount: z.string().describe(&#034;\u8f6c\u8d26\u91d1\u989d&#xff0c;\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\u8868\u793a&#xff08;\u4f8b\u5982 &#039;0.1&#039;&#xff09;\u3002&#034;),<br \/>\n      chainId: z.number().optional().describe(&#034;\u533a\u5757\u94fe\u7684Chain ID\u3002&#034;)<br \/>\n    },<br \/>\n    async ({ to, amount, chainId }, extra) &#061;&gt; {<br \/>\n      \/\/ extra \u53ef\u80fd\u5305\u542b\u4f1a\u8bdd\u7b49\u4fe1\u606f<br \/>\n      const wallet &#061; walletManager.getDefaultWallet();<br \/>\n      const fromAddress &#061; await wallet.getAddress();<br \/>\n      const chain &#061; chainRegistry.getChain(chainId || wallet.defaultChainId);<br \/>\n      const adapter &#061; chain.adapter;<\/p>\n<p>      \/\/ 1. \u6784\u9020\u672a\u7b7e\u540d\u4ea4\u6613<br \/>\n      const unsignedTx &#061; await adapter.buildTransferNativeTx(fromAddress, to, amount);<\/p>\n<p>      \/\/ 2. \u4f30\u7b97Gas&#xff08;\u53ef\u9009&#xff0c;\u4f46\u63a8\u8350&#xff0c;\u7528\u4e8e\u7ed9\u7528\u6237\u5c55\u793a&#xff09;<br \/>\n      const estimatedGas &#061; await adapter.estimateGas(unsignedTx);<br \/>\n      const gasPrice &#061; await adapter.getGasPrice(); \/\/ \u53ef\u80fd\u662fEIP-1559\u7684fee\u6570\u636e<br \/>\n      const estimatedFee &#061; estimatedGas * gasPrice.maxFeePerGas; \/\/ \u7b80\u5316\u8ba1\u7b97<\/p>\n<p>      \/\/ 3. \u751f\u6210\u5f85\u786e\u8ba4\u8bf7\u6c42ID\u5e76\u5b58\u50a8<br \/>\n      const pendingTxId &#061; uuidv4();<br \/>\n      pendingTxStore.set(pendingTxId, {<br \/>\n        unsignedTx,<br \/>\n        chainId: chain.chainId,<br \/>\n        createdAt: Date.now(),<br \/>\n        from: fromAddress,<br \/>\n        to,<br \/>\n        amount,<br \/>\n        estimatedFee: ethers.formatEther(estimatedFee),<br \/>\n        status: &#039;pending&#039;<br \/>\n      });<\/p>\n<p>      \/\/ 4. \u8fd4\u56de\u9700\u8981\u7528\u6237\u786e\u8ba4\u7684\u6d88\u606f<br \/>\n      const confirmationMessage &#061; &#096;<br \/>\n\u5df2\u4e3a\u60a8\u6784\u9020\u4e00\u7b14\u8f6c\u8d26\u4ea4\u6613&#xff1a;<br \/>\n&#8211; **\u53d1\u6b3e\u4eba**: ${fromAddress}<br \/>\n&#8211; **\u6536\u6b3e\u4eba**: ${to}<br \/>\n&#8211; **\u91d1\u989d**: ${amount} ${chain.nativeCurrencySymbol}<br \/>\n&#8211; **\u7f51\u7edc**: ${chain.chainName}<br \/>\n&#8211; **\u9884\u4f30\u624b\u7eed\u8d39**: ${ethers.formatEther(estimatedFee)} ${chain.nativeCurrencySymbol}<\/p>\n<p>**\u6b64\u4ea4\u6613\u5c1a\u672a\u53d1\u9001\u3002\u4e3a\u4e86\u5b89\u5168&#xff0c;\u9700\u8981\u60a8\u624b\u52a8\u786e\u8ba4\u3002**<\/p>\n<p>\u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u6279\u51c6\u5e76\u53d1\u9001\u6b64\u4ea4\u6613&#xff1a;<br \/>\n\\\\&#096;\\\\&#096;\\\\&#096;bash<br \/>\nnpm run confirm-tx &#8212; ${pendingTxId}<br \/>\n\\\\&#096;\\\\&#096;\\\\&#096;<br \/>\n\u6b64\u547d\u4ee4\u5c06\u5728 ${Math.floor(pendingTxStore.timeout \/ 60)} \u5206\u949f\u5185\u6709\u6548\u3002<br \/>\n&#096;;<\/p>\n<p>      return {<br \/>\n        content: [{<br \/>\n          type: &#034;text&#034;,<br \/>\n          text: confirmationMessage<br \/>\n        }]<br \/>\n      };<br \/>\n    }<br \/>\n  );<br \/>\n}<\/p>\n<h4>\n 4.4 \u7528\u6237\u786e\u8ba4\u547d\u4ee4\u7684\u5b9e\u73b0<br \/>\n<\/h4>\n<p>\n \u6211\u4eec\u9700\u8981\u4e00\u4e2a\u72ec\u7acb\u7684CLI\u547d\u4ee4\u6216\u4e00\u4e2a\u5185\u7f6e\u7684HTTP\u7aef\u70b9\u6765\u5904\u7406\u7528\u6237\u786e\u8ba4\u3002\n<\/p>\n<p>\/\/ cli\/confirmTx.js<br \/>\nimport { walletManager, chainRegistry, pendingTxStore } from &#039;..\/src\/core\/index.js&#039;;<br \/>\nimport { program } from &#039;commander&#039;;<\/p>\n<p>program<br \/>\n  .argument(&#039;&lt;txId&gt;&#039;, &#039;\u5f85\u786e\u8ba4\u4ea4\u6613\u7684ID&#039;)<br \/>\n  .action(async (txId) &#061;&gt; {<br \/>\n    const pending &#061; pendingTxStore.get(txId);<br \/>\n    if (!pending) {<br \/>\n      console.error(&#039;\u9519\u8bef&#xff1a;\u4ea4\u6613ID\u65e0\u6548\u6216\u5df2\u8fc7\u671f\u3002&#039;);<br \/>\n      process.exit(1);<br \/>\n    }<br \/>\n    if (pending.status !&#061;&#061; &#039;pending&#039;) {<br \/>\n      console.error(&#096;\u9519\u8bef&#xff1a;\u4ea4\u6613\u72b6\u6001\u4e3a&#034;${pending.status}&#034;&#xff0c;\u65e0\u6cd5\u786e\u8ba4\u3002&#096;);<br \/>\n      process.exit(1);<br \/>\n    }<\/p>\n<p>    \/\/ \u663e\u793a\u4ea4\u6613\u8be6\u60c5&#xff0c;\u6700\u540e\u4e00\u6b21\u8ba9\u7528\u6237\u786e\u8ba4<br \/>\n    console.log(&#096;\\\\n&#061;&#061;&#061; \u4ea4\u6613\u8be6\u60c5 &#061;&#061;&#061;&#096;);<br \/>\n    console.log(&#096;\u7f51\u7edc: ${chainRegistry.getChain(pending.chainId).chainName}&#096;);<br \/>\n    console.log(&#096;\u4ece: ${pending.from}&#096;);<br \/>\n    console.log(&#096;\u5230: ${pending.to}&#096;);<br \/>\n    console.log(&#096;\u91d1\u989d: ${pending.amount}&#096;);<br \/>\n    console.log(&#096;\u9884\u4f30\u624b\u7eed\u8d39: ${pending.estimatedFee}&#096;);<br \/>\n    console.log(&#096;\\\\n\u662f\u5426\u786e\u8ba4\u53d1\u9001\u6b64\u4ea4\u6613&#xff1f;(y\/N)&#096;);<\/p>\n<p>    \/\/ \u7b49\u5f85\u7528\u6237\u8f93\u5165<br \/>\n    const readline &#061; require(&#039;readline&#039;).createInterface({<br \/>\n      input: process.stdin,<br \/>\n      output: process.stdout<br \/>\n    });<br \/>\n    const answer &#061; await new Promise(resolve &#061;&gt; readline.question(&#039;&#039;, resolve));<br \/>\n    readline.close();<\/p>\n<p>    if (answer.toLowerCase() !&#061;&#061; &#039;y&#039;) {<br \/>\n      console.log(&#039;\u4ea4\u6613\u5df2\u53d6\u6d88\u3002&#039;);<br \/>\n      pendingTxStore.delete(txId);<br \/>\n      process.exit(0);<br \/>\n    }<\/p>\n<p>    \/\/ \u7528\u6237\u786e\u8ba4&#xff0c;\u5f00\u59cb\u7b7e\u540d\u548c\u53d1\u9001<br \/>\n    console.log(&#039;\u6b63\u5728\u7b7e\u540d\u5e76\u53d1\u9001\u4ea4\u6613&#8230;&#039;);<br \/>\n    try {<br \/>\n      const wallet &#061; walletManager.getWalletForAddress(pending.from);<br \/>\n      const chain &#061; chainRegistry.getChain(pending.chainId);<br \/>\n      const signedTx &#061; await chain.adapter.signTransaction(pending.unsignedTx, wallet.signer);<br \/>\n      const txHash &#061; await chain.adapter.sendSignedTransaction(signedTx);<\/p>\n<p>      pendingTxStore.update(txId, { status: &#039;broadcasted&#039;, txHash });<br \/>\n      console.log(&#096;\u2705 \u4ea4\u6613\u5df2\u6210\u529f\u5e7f\u64ad&#xff01;\\\\n\u4ea4\u6613\u54c8\u5e0c: ${txHash}&#096;);<br \/>\n      console.log(&#096;\u60a8\u53ef\u4ee5\u5728\u533a\u5757\u6d4f\u89c8\u5668\u67e5\u770b: ${chain.explorerUrl}\/tx\/${txHash}&#096;);<br \/>\n    } catch (error) {<br \/>\n      console.error(&#096;\u274c \u4ea4\u6613\u53d1\u9001\u5931\u8d25: ${error.message}&#096;);<br \/>\n      pendingTxStore.update(txId, { status: &#039;failed&#039;, error: error.message });<br \/>\n      process.exit(1);<br \/>\n    }<br \/>\n  });<\/p>\n<p>program.parse();<\/p>\n<h4>\n 4.5 \u4e0eClaude\u7684\u4ea4\u4e92\u5b9e\u6218<br \/>\n<\/h4>\n<p>\n \u914d\u7f6e\u5e76\u542f\u52a8\u4e00\u5207\u540e&#xff0c;\u91cd\u542fClaude Desktop\u3002\u5728Claude\u7684\u804a\u5929\u754c\u9762\u4e2d&#xff0c;\u4f60\u5c31\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u4e86\u3002\n<\/p>\n<p>  \u573a\u666f\u4e00&#xff1a;\u67e5\u8be2\u4f59\u989d<\/p>\n<p> \u4f60&#xff1a;<\/p>\n<p>  \u201c\u6211\u7684\u4e3b\u94b1\u5305\u5730\u57400x&#8230;\u5728\u4ee5\u592a\u574a\u4e0a\u8fd8\u6709\u591a\u5c11ETH&#xff1f;\u201d<\/p>\n<p> Claude&#xff08;\u8bc6\u522b\u5230<\/p>\n<p>  get_balance<\/p>\n<p> \u5de5\u5177&#xff0c;\u5e76\u81ea\u52a8\u8c03\u7528&#xff09;&#xff1a;\n<\/p>\n<p>\n  \u201c\u6b63\u5728\u4e3a\u60a8\u67e5\u8be2&#8230; \u5730\u5740 0x&#8230; \u5728 Ethereum Mainnet \u4e0a\u7684\u4f59\u989d\u4e3a: 1.542 ETH\u201d\n <\/p>\n<p>  \u573a\u666f\u4e8c&#xff1a;\u53d1\u8d77\u8f6c\u8d26<\/p>\n<p> \u4f60&#xff1a;<\/p>\n<p>  \u201c\u5411\u5730\u57400x&#8230;\u8f6c0.01\u4e2aETH\u3002\u201d<\/p>\n<p> Claude&#xff08;\u8bc6\u522b\u5230<\/p>\n<p>  transfer_native<\/p>\n<p> \u5de5\u5177&#xff0c;\u8c03\u7528\u540e\u8fd4\u56de&#xff09;&#xff1a;\n<\/p>\n<p>\n  \u201c\u5df2\u4e3a\u60a8\u6784\u9020\u4e00\u7b14\u8f6c\u8d26\u4ea4\u6613&#xff1a;\n <\/p>\n<ul>\n<li>\n<p>    \u53d1\u6b3e\u4eba<\/p>\n<p>   : 0xYourAddress&#8230;\n  <\/li>\n<li>\n<p>    \u6536\u6b3e\u4eba<\/p>\n<p>   : 0xRecipientAddress&#8230;\n  <\/li>\n<li>\n<p>    \u91d1\u989d<\/p>\n<p>   : 0.01 ETH\n  <\/li>\n<li>\n<p>    \u7f51\u7edc<\/p>\n<p>   : Ethereum Mainnet\n  <\/li>\n<li>\n<p>    \u9884\u4f30\u624b\u7eed\u8d39<\/p>\n<p>   : 0.00042 ETH\n  <\/li>\n<\/ul>\n<p>   \u6b64\u4ea4\u6613\u5c1a\u672a\u53d1\u9001\u3002\u4e3a\u4e86\u5b89\u5168&#xff0c;\u9700\u8981\u60a8\u624b\u52a8\u786e\u8ba4\u3002<\/p>\n<p>\n  \u8bf7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u6279\u51c6\u5e76\u53d1\u9001\u6b64\u4ea4\u6613&#xff1a;\n <\/p>\n<p> npm run confirm-tx &#8212; abc123-xyz-456<\/p>\n<p>\n  \u6b64\u547d\u4ee4\u5c06\u57285\u5206\u949f\u5185\u6709\u6548\u3002\u201d\n <\/p>\n<p>\n \u7136\u540e\u4f60\u5207\u6362\u5230\u7ec8\u7aef&#xff0c;\u8fd0\u884c\u7ed9\u51fa\u7684\u547d\u4ee4&#xff0c;\u5728\u7ec8\u7aef\u4e2d\u518d\u6b21\u786e\u8ba4\u540e&#xff0c;\u4ea4\u6613\u624d\u88ab\u7b7e\u540d\u5e76\u5e7f\u64ad\u3002\u6574\u4e2a\u8fc7\u7a0b\u4e2d&#xff0c;\u79c1\u94a5\u4ece\u672a\u79bb\u5f00\u8fc7\u5b89\u5168\u5b58\u50a8&#xff0c;AI\u53ea\u662f\u8d77\u5230\u4e86\u4e00\u4e2a\u201c\u63d0\u8bae\u201d\u548c\u201c\u4fe1\u606f\u4f20\u9012\u201d\u7684\u4f5c\u7528\u3002\n<\/p>\n<h3>\n 5. \u5e38\u89c1\u95ee\u9898\u4e0e\u6392\u67e5\u6280\u5de7\u5b9e\u5f55<br \/>\n<\/h3>\n<p>\n \u5728\u5b9e\u9645\u5f00\u53d1\u548c\u8fd0\u884c\u4e2d&#xff0c;\u4f60\u4f1a\u9047\u5230\u5404\u79cd\u5404\u6837\u7684\u95ee\u9898\u3002\u4e0b\u9762\u662f\u6211\u5728\u5b9e\u73b0\u548c\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u4e00\u4e9b\u5178\u578b\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5\u3002\n<\/p>\n<h4>\n 5.1 MCP\u670d\u52a1\u5668\u8fde\u63a5\u5931\u8d25<br \/>\n<\/h4>\n<p>  \u95ee\u9898\u73b0\u8c61<\/p>\n<p> &#xff1a;Claude Desktop\u542f\u52a8\u540e&#xff0c;\u53f3\u4e0b\u89d2\u63d0\u793a\u201cMCP\u670d\u52a1\u5668\u8fde\u63a5\u9519\u8bef\u201d&#xff0c;\u6216\u8005\u5728Claude\u4e2d\u65e0\u6cd5\u4f7f\u7528\u94b1\u5305\u5de5\u5177\u3002\n<\/p>\n<p>  \u6392\u67e5\u6b65\u9aa4<\/p>\n<p> &#xff1a;\n<\/p>\n<li>\n<p>   \u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u8def\u5f84<\/p>\n<p>  &#xff1a;\u8fd9\u662f\u6700\u5e38\u89c1\u7684\u95ee\u9898\u3002\u786e\u4fdd<\/p>\n<p>   claude_desktop_config.json<\/p>\n<p>  \u4e2d\u7684<\/p>\n<p>   command<\/p>\n<p>  \u548c<\/p>\n<p>   args<\/p>\n<p>  \u8def\u5f84\u662f<\/p>\n<p>   \u7edd\u5bf9\u8def\u5f84<\/p>\n<p>  &#xff0c;\u5e76\u4e14\u6307\u5411\u6b63\u786e\u7684\u6587\u4ef6\u3002Node.js\u811a\u672c\u9700\u8981\u6709\u53ef\u6267\u884c\u6743\u9650\u3002\n <\/li>\n<li>\n<p>   \u624b\u52a8\u542f\u52a8\u670d\u52a1\u5668<\/p>\n<p>  &#xff1a;\u5728\u7ec8\u7aef\u4e2d&#xff0c;\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u4e2d\u76f8\u540c\u7684\u547d\u4ee4\u548c\u53c2\u6570\u624b\u52a8\u542f\u52a8MCP\u670d\u52a1\u5668\u3002\u4f8b\u5982&#xff1a;<br \/>\n  node \/path\/to\/wallet-mcp\/dist\/index.js &#8211;config \/path\/to\/config.json<\/p>\n<p>  \u89c2\u5bdf\u670d\u52a1\u5668\u662f\u5426\u80fd\u6b63\u5e38\u542f\u52a8&#xff0c;\u662f\u5426\u6709\u9519\u8bef\u8f93\u51fa&#xff08;\u5982\u7f3a\u5c11\u6a21\u5757\u3001\u914d\u7f6e\u6587\u4ef6\u8bed\u6cd5\u9519\u8bef\u3001RPC\u8fde\u63a5\u5931\u8d25\u7b49&#xff09;\u3002\n <\/li>\n<li>\n<p>   \u68c0\u67e5\u7aef\u53e3\u51b2\u7a81<\/p>\n<p>  &#xff1a;MCP\u670d\u52a1\u5668\u53ef\u80fd\u9ed8\u8ba4\u76d1\u542c\u67d0\u4e2a\u7aef\u53e3&#xff08;\u59823000&#xff09;&#xff0c;\u68c0\u67e5\u8be5\u7aef\u53e3\u662f\u5426\u88ab\u5176\u4ed6\u7a0b\u5e8f\u5360\u7528\u3002\n <\/li>\n<li>\n<p>   \u67e5\u770bClaude\u65e5\u5fd7<\/p>\n<p>  &#xff1a;Claude Desktop\u901a\u5e38\u6709\u5e94\u7528\u65e5\u5fd7\u3002\u5728macOS\u4e0a\u53ef\u4ee5\u5728<\/p>\n<p>   ~\/Library\/Logs\/Claude\/<\/p>\n<p>  \u627e\u5230&#xff0c;\u67e5\u770b\u5176\u4e2d\u662f\u5426\u6709\u5173\u4e8eMCP\u670d\u52a1\u5668\u542f\u52a8\u5931\u8d25\u7684\u8be6\u7ec6\u9519\u8bef\u4fe1\u606f\u3002\n <\/li>\n<li>\n<p>   \u73af\u5883\u53d8\u91cf\u95ee\u9898<\/p>\n<p>  &#xff1a;\u786e\u4fdd\u670d\u52a1\u5668\u8fd0\u884c\u6240\u9700\u7684\u73af\u5883\u53d8\u91cf&#xff08;\u5982<\/p>\n<p>   NODE_ENV<\/p>\n<p>  &#xff0c;\u6216\u67d0\u4e9bAPI\u5bc6\u94a5&#xff09;\u5728Claude\u7684\u914d\u7f6e\u4e2d\u901a\u8fc7<\/p>\n<p>   env<\/p>\n<p>  \u5b57\u6bb5\u6b63\u786e\u4f20\u9012&#xff0c;\u6216\u8005\u5df2\u5728\u7cfb\u7edf\u5c42\u9762\u8bbe\u7f6e\u3002\n <\/li>\n<h4>\n 5.2 \u5de5\u5177\u8c03\u7528\u65e0\u54cd\u5e94\u6216\u8d85\u65f6<br \/>\n<\/h4>\n<p>  \u95ee\u9898\u73b0\u8c61<\/p>\n<p> &#xff1a;\u5728Claude\u4e2d\u8c03\u7528<\/p>\n<p>  get_balance<\/p>\n<p> \u540e&#xff0c;\u957f\u65f6\u95f4\u6ca1\u6709\u53cd\u5e94&#xff0c;\u6700\u540e\u53ef\u80fd\u8d85\u65f6\u3002\n<\/p>\n<p>  \u6392\u67e5\u6b65\u9aa4<\/p>\n<p> &#xff1a;\n<\/p>\n<li>\n<p>   \u68c0\u67e5RPC\u8282\u70b9<\/p>\n<p>  &#xff1a;\u94b1\u5305\u64cd\u4f5c\u4e25\u91cd\u4f9d\u8d56\u533a\u5757\u94feRPC\u8282\u70b9\u3002\u9996\u5148\u68c0\u67e5\u4f60\u7684RPC URL\u662f\u5426\u6709\u6548\u3001\u662f\u5426\u6709\u901f\u7387\u9650\u5236\u6216\u9700\u8981API\u5bc6\u94a5\u3002\u5c1d\u8bd5\u5728\u6d4f\u89c8\u5668\u6216<\/p>\n<p>   curl<\/p>\n<p>  \u4e2d\u76f4\u63a5\u8bbf\u95eeRPC\u7aef\u70b9\u3002<br \/>\n  curl -X POST -H &#034;Content-Type: application\/json&#034; &#8211;data &#039;{&#034;jsonrpc&#034;:&#034;2.0&#034;,&#034;method&#034;:&#034;eth_blockNumber&#034;,&#034;params&#034;:[],&#034;id&#034;:1}&#039; &lt;https:\/\/your-rpc-url&gt;<\/p>\n<\/li>\n<li>\n<p>   \u670d\u52a1\u5668\u7aef\u65e5\u5fd7<\/p>\n<p>  &#xff1a;\u5728\u624b\u52a8\u542f\u52a8\u7684\u670d\u52a1\u5668\u7ec8\u7aef\u4e2d&#xff0c;\u67e5\u770b\u5f53Claude\u8c03\u7528\u5de5\u5177\u65f6&#xff0c;\u662f\u5426\u6709\u8bf7\u6c42\u8fdb\u6765&#xff0c;\u4ee5\u53ca\u5361\u5728\u4e86\u54ea\u4e00\u6b65\u3002\u6dfb\u52a0\u8be6\u7ec6\u7684\u8c03\u8bd5\u65e5\u5fd7\u3002\n <\/li>\n<li>\n<p>   \u7f51\u7edc\u95ee\u9898<\/p>\n<p>  &#xff1a;\u5982\u679c\u670d\u52a1\u5668\u548cRPC\u8282\u70b9\u90fd\u5728\u8fdc\u7a0b&#xff0c;\u7f51\u7edc\u5ef6\u8fdf\u53ef\u80fd\u5bfc\u81f4\u8d85\u65f6\u3002\u8003\u8651\u4f7f\u7528\u66f4\u7a33\u5b9a\u7684RPC\u63d0\u4f9b\u5546&#xff0c;\u6216\u8005\u4e3a\u8bf7\u6c42\u589e\u52a0\u8d85\u65f6\u8bbe\u7f6e\u3002\n <\/li>\n<li>\n<p>   \u5de5\u5177\u51fd\u6570\u9519\u8bef<\/p>\n<p>  &#xff1a;\u5de5\u5177\u51fd\u6570\u5185\u90e8\u53ef\u80fd\u6709\u672a\u5904\u7406\u7684\u5f02\u5e38&#xff0c;\u5bfc\u81f4\u6ca1\u6709\u8fd4\u56de\u6709\u6548\u7684MCP\u54cd\u5e94\u3002\u786e\u4fdd\u6240\u6709\u5de5\u5177\u51fd\u6570\u90fd\u6709\u5b8c\u5584\u7684<\/p>\n<p>   try-catch<\/p>\n<p>  &#xff0c;\u5e76\u8fd4\u56de\u683c\u5f0f\u6b63\u786e\u7684<\/p>\n<p>   ToolResult<\/p>\n<p>  \u5bf9\u8c61&#xff08;\u5305\u542b<\/p>\n<p>   content<\/p>\n<p>  \u6216<\/p>\n<p>   isError<\/p>\n<p>  &#xff09;\u3002\n <\/li>\n<h4>\n 5.3 \u4ea4\u6613\u6784\u9020\u5931\u8d25&#xff08;Gas\u4f30\u7b97\u9519\u8bef\u3001nonce\u95ee\u9898&#xff09;<br \/>\n<\/h4>\n<p>  \u95ee\u9898\u73b0\u8c61<\/p>\n<p> &#xff1a;\u8c03\u7528<\/p>\n<p>  transfer_native<\/p>\n<p> \u65f6&#xff0c;\u670d\u52a1\u5668\u65e5\u5fd7\u62a5\u9519\u201cfailed to estimate gas\u201d\u6216\u201cinvalid nonce\u201d\u3002\n<\/p>\n<p>  \u539f\u56e0\u4e0e\u89e3\u51b3<\/p>\n<p> &#xff1a;\n<\/p>\n<ul>\n<li>\n<p>   Gas\u4f30\u7b97\u5931\u8d25<\/p>\n<p>  &#xff1a;\u901a\u5e38\u662f\u56e0\u4e3a\u4ea4\u6613\u53c2\u6570\u6709\u95ee\u9898&#xff0c;\u6bd4\u5982<\/p>\n<p>   to<\/p>\n<p>  \u5730\u5740\u683c\u5f0f\u9519\u8bef&#xff0c;\u6216\u8005<\/p>\n<p>   amount<\/p>\n<p>  \u8d85\u8fc7\u4e86\u53d1\u9001\u8005\u4f59\u989d\u3002\u786e\u4fdd\u5728\u6784\u9020\u4ea4\u6613\u524d\u8fdb\u884c\u57fa\u672c\u7684\u53c2\u6570\u6821\u9a8c&#xff08;\u5730\u5740\u683c\u5f0f\u3001\u4f59\u989d\u5145\u8db3\u6027\u68c0\u67e5&#xff09;\u3002\n <\/li>\n<li>\n<p>   Nonce\u503c\u9519\u8bef<\/p>\n<p>  &#xff1a;Nonce\u662f\u9632\u6b62\u91cd\u653e\u653b\u51fb\u7684\u8ba1\u6570\u5668\u3002\u5982\u679c\u4f60\u624b\u52a8\u6784\u9020\u4ea4\u6613&#xff0c;\u9700\u8981\u4ece\u94fe\u4e0a\u5b9e\u65f6\u83b7\u53d6\u4e0b\u4e00\u4e2a\u53ef\u7528\u7684nonce\u3002\u4f7f\u7528<\/p>\n<p>   provider.getTransactionCount(address, &#039;pending&#039;)<\/p>\n<p>  \u6765\u83b7\u53d6\u6700\u65b0\u7684nonce&#xff0c;\u800c\u4e0d\u662f\u7f13\u5b58\u6216\u81ea\u5df1\u7ef4\u62a4\u3002\n <\/li>\n<li>\n<p>   EIP-1559\u53c2\u6570<\/p>\n<p>  &#xff1a;\u5bf9\u4e8e\u652f\u6301EIP-1559\u7684\u94fe&#xff08;\u5982\u4ee5\u592a\u574a&#xff09;&#xff0c;Gas\u8d39\u7531<\/p>\n<p>   maxFeePerGas<\/p>\n<p>  \u548c<\/p>\n<p>   maxPriorityFeePerGas<\/p>\n<p>  \u6784\u6210\u3002\u9700\u8981\u4eceRPC\u8282\u70b9\u83b7\u53d6\u5f53\u524d\u7684Fee\u5e02\u573a\u6570\u636e\u6765\u586b\u5145\u8fd9\u4e9b\u503c&#xff0c;\u800c\u4e0d\u662f\u7b80\u5355\u7684<\/p>\n<p>   gasPrice<\/p>\n<p>  \u3002\u4f7f\u7528<\/p>\n<p>   provider.getFeeData()<\/p>\n<p>  \u6765\u83b7\u53d6\u63a8\u8350\u503c\u3002\n <\/li>\n<\/ul>\n<h4>\n 5.4 \u4f59\u989d\u67e5\u8be2\u663e\u793a\u4e3a0\u6216\u9519\u8bef<br \/>\n<\/h4>\n<p>  \u95ee\u9898\u73b0\u8c61<\/p>\n<p> &#xff1a;\u67e5\u8be2\u4e00\u4e2a\u660e\u660e\u6709\u4f59\u989d\u7684\u5730\u5740&#xff0c;\u5374\u8fd4\u56de0\u3002\n<\/p>\n<p>  \u6392\u67e5\u6b65\u9aa4<\/p>\n<p> &#xff1a;\n<\/p>\n<li>\n<p>   \u94feID\u9519\u8bef<\/p>\n<p>  &#xff1a;\u786e\u8ba4\u4f60\u67e5\u8be2\u7684\u94feID\u662f\u5426\u6b63\u786e\u3002\u5730\u5740\u5728\u4ee5\u592a\u574a\u4e3b\u7f51&#xff08;chainId&#061;1&#xff09;\u4e0a\u6709\u4f59\u989d&#xff0c;\u5728\u6d4b\u8bd5\u7f51&#xff08;\u5982Goerli chainId&#061;5&#xff09;\u4e0a\u53ef\u80fd\u5c31\u662f0\u3002\n <\/li>\n<li>\n<p>   RPC\u8282\u70b9\u4e0d\u540c\u6b65<\/p>\n<p>  &#xff1a;\u6709\u4e9b\u514d\u8d39\u7684\u516c\u5171RPC\u8282\u70b9\u53ef\u80fd\u540c\u6b65\u72b6\u6001\u843d\u540e\u3002\u5c1d\u8bd5\u5207\u6362\u5230\u53e6\u4e00\u4e2a\u5907\u7528RPC\u8282\u70b9\u3002\n <\/li>\n<li>\n<p>   \u4ee3\u5e01\u7c7b\u578b<\/p>\n<p>  &#xff1a;<\/p>\n<p>   get_balance<\/p>\n<p>  \u901a\u5e38\u53ea\u67e5\u8be2\u539f\u751f\u4ee3\u5e01&#xff08;ETH\u3001MATIC\u7b49&#xff09;\u3002\u5982\u679c\u8981\u67e5ERC-20\u4ee3\u5e01&#xff0c;\u9700\u8981\u4f7f\u7528<\/p>\n<p>   get_token_balances<\/p>\n<p>  \u5de5\u5177&#xff0c;\u5e76\u4f20\u5165\u4ee3\u5e01\u5408\u7ea6\u5730\u5740\u3002\n <\/li>\n<li>\n<p>   \u5730\u5740\u683c\u5f0f<\/p>\n<p>  &#xff1a;\u786e\u4fdd\u4f20\u5165\u7684\u5730\u5740\u662f\u6b63\u786e\u7684\u5927\u5c0f\u5199\u6821\u9a8c\u548c\u683c\u5f0f&#xff08;EIP-55&#xff09;&#xff0c;\u7279\u522b\u662f\u5bf9\u4e8e\u4ee5\u592a\u574a\u5730\u5740\u3002\u4e00\u4e9b\u5e93\u6216RPC\u8282\u70b9\u5bf9\u975e\u6821\u9a8c\u548c\u5730\u5740\u7684\u5904\u7406\u53ef\u80fd\u4e0d\u4e00\u81f4\u3002\n <\/li>\n<h4>\n 5.5 \u5b89\u5168\u76f8\u5173\u7684\u6700\u4f73\u5b9e\u8df5\u4e0e\u8b66\u793a<br \/>\n<\/h4>\n<li>\n<p>   \u5b9a\u671f\u5ba1\u8ba1\u4f9d\u8d56<\/p>\n<p>  &#xff1a;\u9879\u76ee\u4f9d\u8d56\u4e86<\/p>\n<p>   ethers.js<\/p>\n<p>  \u3001<\/p>\n<p>   &#064;solana\/web3.js<\/p>\n<p>  \u7b49\u8bb8\u591a\u7b2c\u4e09\u65b9\u5e93\u3002\u5b9a\u671f\u8fd0\u884c<\/p>\n<p>   npm audit<\/p>\n<p>  \u6216\u4f7f\u7528<\/p>\n<p>   dependabot<\/p>\n<p>  \u6765\u66f4\u65b0\u6709\u5b89\u5168\u6f0f\u6d1e\u7684\u4f9d\u8d56\u3002\n <\/li>\n<li>\n<p>   \u9650\u5236\u5de5\u5177\u6743\u9650<\/p>\n<p>  &#xff1a;\u5728MCP\u670d\u52a1\u5668\u914d\u7f6e\u4e2d&#xff0c;\u53ef\u4ee5\u8003\u8651\u5b9e\u73b0\u4e00\u4e2a\u6743\u9650\u6a21\u578b\u3002\u4f8b\u5982&#xff0c;\u67d0\u4e9b\u53ea\u8bfb\u5de5\u5177\u5bf9\u6240\u6709\u4f1a\u8bdd\u5f00\u653e&#xff0c;\u800c\u8f6c\u8d26\u5de5\u5177\u53ea\u5bf9\u53d7\u4fe1\u4efb\u7684\u3001\u7ecf\u8fc7\u8ba4\u8bc1\u7684\u4f1a\u8bdd&#xff08;\u6bd4\u5982\u6765\u81ea\u4f60\u672c\u5730IP\u7684Claude\u5b9e\u4f8b&#xff09;\u5f00\u653e\u3002MCP\u534f\u8bae\u672c\u8eab\u652f\u6301\u4f1a\u8bdd\u7ea7\u522b\u7684\u8ba4\u8bc1\u548c\u5143\u6570\u636e\u3002\n <\/li>\n<li>\n<p>   \u5907\u4efd\u4e0e\u6062\u590d<\/p>\n<p>  &#xff1a;\u52a0\u5bc6\u540e\u7684\u5bc6\u94a5\u5b58\u50a8&#xff08;\u5982\u7cfb\u7edf\u5bc6\u94a5\u94fe&#xff09;\u4e5f\u9700\u8981\u5907\u4efd\u65b9\u6848\u3002\u6307\u5bfc\u7528\u6237\u5982\u4f55\u5b89\u5168\u5730\u5907\u4efd\u4ed6\u4eec\u7684\u52a0\u5bc6\u5bc6\u94a5\u6587\u4ef6\u6216\u6062\u590d\u77ed\u8bed&#xff08;\u5982\u679c\u4f7f\u7528\u52a9\u8bb0\u8bcd\u6d3e\u751f&#xff09;\u3002\n <\/li>\n<li>\n<p>   \u6e05\u6670\u7684\u8b66\u544a<\/p>\n<p>  &#xff1a;\u5728\u5de5\u5177\u7684<\/p>\n<p>   description<\/p>\n<p>  \u548c\u8fd4\u56de\u7ed9\u7528\u6237\u7684\u6d88\u606f\u4e2d&#xff0c;\u53cd\u590d\u5f3a\u8c03\u5b89\u5168\u987b\u77e5\u3002\u4f8b\u5982&#xff0c;\u5728\u8f6c\u8d26\u5de5\u5177\u7684\u8bf4\u660e\u4e2d\u5199\u660e&#xff1a;\u201c\u6b64\u64cd\u4f5c\u5c06\u79fb\u52a8\u771f\u5b9e\u8d44\u4ea7\u3002\u8bf7\u52a1\u5fc5\u4ed4\u7ec6\u6838\u5bf9\u6536\u6b3e\u5730\u5740\u548c\u91d1\u989d\u3002\u5f00\u53d1\u8005\u4e0d\u5bf9\u56e0\u8bef\u64cd\u4f5c\u5bfc\u81f4\u7684\u8d44\u4ea7\u635f\u5931\u8d1f\u8d23\u3002\u201d\n <\/li>\n<li>\n<p>   \u6a21\u62df\u6d4b\u8bd5\u7f51\u5148\u884c<\/p>\n<p>  &#xff1a;\u5728\u96c6\u6210\u4efb\u4f55\u65b0\u94fe\u6216\u65b0\u529f\u80fd\u65f6&#xff0c;<\/p>\n<p>   \u6c38\u8fdc\u5148\u5728\u6d4b\u8bd5\u7f51\u4e0a\u8fdb\u884c\u5b8c\u6574\u6d4b\u8bd5<\/p>\n<p>  \u3002\u914d\u7f6e\u6d4b\u8bd5\u7f51\u7684RPC\u548c\u9002\u914d\u5668&#xff0c;\u4f7f\u7528\u6d4b\u8bd5\u5e01\u8fdb\u884c\u5b8c\u6574\u7684\u201c\u67e5\u8be2-&gt;\u6784\u9020-&gt;\u786e\u8ba4-&gt;\u53d1\u9001\u201d\u6d41\u7a0b\u9a8c\u8bc1\u3002\n <\/li>\n<p>\n \u5f00\u53d1\u8fd9\u6837\u4e00\u4e2a\u94b1\u5305MCP\u670d\u52a1\u5668&#xff0c;\u5c31\u50cf\u7ed9AI\u88c5\u4e0a\u4e86\u4e00\u53cc\u53ef\u4ee5\u5b89\u5168\u67e5\u770b\u548c\u64cd\u4f5c\u94fe\u4e0a\u4e16\u754c\u7684\u624b\u3002\u5b83\u5e26\u6765\u7684\u81ea\u52a8\u5316\u6f5c\u529b\u662f\u5de8\u5927\u7684&#xff0c;\u4f46\u4e0e\u4e4b\u5339\u914d\u7684\u5b89\u5168\u8d23\u4efb\u4e5f\u540c\u6837\u91cd\u5927\u3002\u6bcf\u4e00\u884c\u5904\u7406\u79c1\u94a5\u548c\u4ea4\u6613\u7684\u4ee3\u7801&#xff0c;\u90fd\u9700\u8981\u7ecf\u8fc7\u6df1\u601d\u719f\u8651\u3002\u4ece\u6211\u7684\u7ecf\u9a8c\u6765\u770b&#xff0c;\u6700\u5927\u7684\u6311\u6218\u5f80\u5f80\u4e0d\u662f\u529f\u80fd\u5b9e\u73b0&#xff0c;\u800c\u662f\u5728\u4fbf\u6377\u6027\u548c\u7edd\u5bf9\u5b89\u5168\u4e4b\u95f4\u627e\u5230\u90a3\u4e2a\u5b8c\u7f8e\u7684\u5e73\u8861\u70b9\u3002\u8fd9\u4e2a\u9879\u76ee\u4e0d\u662f\u4e00\u4e2a\u53ef\u4ee5\u201c\u8bbe\u7f6e\u5b8c\u5c31\u5fd8\u201d\u7684\u5de5\u5177&#xff0c;\u5b83\u9700\u8981\u5f00\u53d1\u8005\u6301\u7eed\u5173\u6ce8\u5b89\u5168\u52a8\u6001\u3001\u66f4\u65b0\u4f9d\u8d56\u3001\u5e76\u6559\u80b2\u7528\u6237\u517b\u6210\u826f\u597d\u7684\u5b89\u5168\u4e60\u60ef\u3002\u4f46\u4e00\u65e6\u5b83\u7a33\u5b9a\u8fd0\u884c\u8d77\u6765&#xff0c;\u90a3\u79cd\u8ba9AI\u6210\u4e3a\u4f60\u94fe\u4e0a\u8d44\u4ea7\u5f97\u529b\u52a9\u624b\u7684\u611f\u89c9&#xff0c;\u7edd\u5bf9\u662f\u4f20\u7edf\u624b\u52a8\u64cd\u4f5c\u65e0\u6cd5\u6bd4\u62df\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u9879\u76ee\u6982\u8ff0&#xff1a;\u4e00\u4e2a\u94b1\u5305\u7684MCP\u670d\u52a1\u5668\u610f\u5473\u7740\u4ec0\u4e48&#xff1f;\u6700\u8fd1\u5728\u6298\u817eAI\u667a\u80fd\u4f53\u5f00\u53d1&#xff0c;\u7279\u522b\u662f\u56f4\u7ed5Claude Desktop\u8fd9\u7c7b\u5de5\u5177\u6784\u5efa\u4e2a\u4eba\u5de5\u4f5c\u6d41\u65f6&#xff0c;\u9047\u5230\u4e86\u4e00\u4e2a\u9ad8\u9891\u75db\u70b9&#xff1a;\u5982\u4f55\u8ba9AI\u5b89\u5168\u3001\u53ef\u63a7\u5730\u8bbf\u95ee\u6211\u7684\u94fe\u4e0a\u8d44\u4ea7\u4fe1\u606f&#xff0c;\u6216\u8005\u6267\u884c\u4e00\u4e9b\u7b80\u5355\u7684\u94fe\u4e0a\u64cd\u4f5c&#xff1f;\u6bd4\u5982&#xff0c;\u6211\u60f3\u8ba9AI\u5e2e\u6211\u6c47\u603b\u4e00\u4e0b\u51e0\u4e2a\u94b1\u5305\u7684\u4f59\u989d&#xff0c;\u6216\u8005\u5728\u4e0d\u66b4\u9732\u79c1\u94a5\u7684\u524d\u63d0\u4e0b&#xff0c;\u6388\u6743\u4e00\u7b14\u5c0f\u989d\u4ea4\u6613\u3002\u76f4\u63a5\u8ba9AI\u63a5\u89e6\u79c1\u94a5\u662f<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11178,5403,3212],"topic":[],"class_list":["post-97416","post","type-post","status-publish","format-standard","hentry","category-server","tag-11178","tag-ai","tag-mcp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6784\u5efa\u5b89\u5168\u7684\u94b1\u5305MCP\u670d\u52a1\u5668\uff1a\u8ba9AI\u52a9\u624b\u5b89\u5168\u64cd\u4f5c\u533a\u5757\u94fe\u8d44\u4ea7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/97416.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6784\u5efa\u5b89\u5168\u7684\u94b1\u5305MCP\u670d\u52a1\u5668\uff1a\u8ba9AI\u52a9\u624b\u5b89\u5168\u64cd\u4f5c\u533a\u5757\u94fe\u8d44\u4ea7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. \u9879\u76ee\u6982\u8ff0&#xff1a;\u4e00\u4e2a\u94b1\u5305\u7684MCP\u670d\u52a1\u5668\u610f\u5473\u7740\u4ec0\u4e48&#xff1f;\u6700\u8fd1\u5728\u6298\u817eAI\u667a\u80fd\u4f53\u5f00\u53d1&#xff0c;\u7279\u522b\u662f\u56f4\u7ed5Claude Desktop\u8fd9\u7c7b\u5de5\u5177\u6784\u5efa\u4e2a\u4eba\u5de5\u4f5c\u6d41\u65f6&#xff0c;\u9047\u5230\u4e86\u4e00\u4e2a\u9ad8\u9891\u75db\u70b9&#xff1a;\u5982\u4f55\u8ba9AI\u5b89\u5168\u3001\u53ef\u63a7\u5730\u8bbf\u95ee\u6211\u7684\u94fe\u4e0a\u8d44\u4ea7\u4fe1\u606f&#xff0c;\u6216\u8005\u6267\u884c\u4e00\u4e9b\u7b80\u5355\u7684\u94fe\u4e0a\u64cd\u4f5c&#xff1f;\u6bd4\u5982&#xff0c;\u6211\u60f3\u8ba9AI\u5e2e\u6211\u6c47\u603b\u4e00\u4e0b\u51e0\u4e2a\u94b1\u5305\u7684\u4f59\u989d&#xff0c;\u6216\u8005\u5728\u4e0d\u66b4\u9732\u79c1\u94a5\u7684\u524d\u63d0\u4e0b&#xff0c;\u6388\u6743\u4e00\u7b14\u5c0f\u989d\u4ea4\u6613\u3002\u76f4\u63a5\u8ba9AI\u63a5\u89e6\u79c1\u94a5\u662f\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/97416.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-29T06:02:15+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/97416.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/97416.html\",\"name\":\"\u6784\u5efa\u5b89\u5168\u7684\u94b1\u5305MCP\u670d\u52a1\u5668\uff1a\u8ba9AI\u52a9\u624b\u5b89\u5168\u64cd\u4f5c\u533a\u5757\u94fe\u8d44\u4ea7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-29T06:02:15+00:00\",\"dateModified\":\"2026-08-29T06:02:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/97416.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/97416.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/97416.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6784\u5efa\u5b89\u5168\u7684\u94b1\u5305MCP\u670d\u52a1\u5668\uff1a\u8ba9AI\u52a9\u624b\u5b89\u5168\u64cd\u4f5c\u533a\u5757\u94fe\u8d44\u4ea7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6784\u5efa\u5b89\u5168\u7684\u94b1\u5305MCP\u670d\u52a1\u5668\uff1a\u8ba9AI\u52a9\u624b\u5b89\u5168\u64cd\u4f5c\u533a\u5757\u94fe\u8d44\u4ea7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/97416.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6784\u5efa\u5b89\u5168\u7684\u94b1\u5305MCP\u670d\u52a1\u5668\uff1a\u8ba9AI\u52a9\u624b\u5b89\u5168\u64cd\u4f5c\u533a\u5757\u94fe\u8d44\u4ea7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. \u9879\u76ee\u6982\u8ff0&#xff1a;\u4e00\u4e2a\u94b1\u5305\u7684MCP\u670d\u52a1\u5668\u610f\u5473\u7740\u4ec0\u4e48&#xff1f;\u6700\u8fd1\u5728\u6298\u817eAI\u667a\u80fd\u4f53\u5f00\u53d1&#xff0c;\u7279\u522b\u662f\u56f4\u7ed5Claude Desktop\u8fd9\u7c7b\u5de5\u5177\u6784\u5efa\u4e2a\u4eba\u5de5\u4f5c\u6d41\u65f6&#xff0c;\u9047\u5230\u4e86\u4e00\u4e2a\u9ad8\u9891\u75db\u70b9&#xff1a;\u5982\u4f55\u8ba9AI\u5b89\u5168\u3001\u53ef\u63a7\u5730\u8bbf\u95ee\u6211\u7684\u94fe\u4e0a\u8d44\u4ea7\u4fe1\u606f&#xff0c;\u6216\u8005\u6267\u884c\u4e00\u4e9b\u7b80\u5355\u7684\u94fe\u4e0a\u64cd\u4f5c&#xff1f;\u6bd4\u5982&#xff0c;\u6211\u60f3\u8ba9AI\u5e2e\u6211\u6c47\u603b\u4e00\u4e0b\u51e0\u4e2a\u94b1\u5305\u7684\u4f59\u989d&#xff0c;\u6216\u8005\u5728\u4e0d\u66b4\u9732\u79c1\u94a5\u7684\u524d\u63d0\u4e0b&#xff0c;\u6388\u6743\u4e00\u7b14\u5c0f\u989d\u4ea4\u6613\u3002\u76f4\u63a5\u8ba9AI\u63a5\u89e6\u79c1\u94a5\u662f","og_url":"https:\/\/www.wsisp.com\/helps\/97416.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-29T06:02:15+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"9 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/97416.html","url":"https:\/\/www.wsisp.com\/helps\/97416.html","name":"\u6784\u5efa\u5b89\u5168\u7684\u94b1\u5305MCP\u670d\u52a1\u5668\uff1a\u8ba9AI\u52a9\u624b\u5b89\u5168\u64cd\u4f5c\u533a\u5757\u94fe\u8d44\u4ea7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-29T06:02:15+00:00","dateModified":"2026-08-29T06:02:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/97416.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/97416.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/97416.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6784\u5efa\u5b89\u5168\u7684\u94b1\u5305MCP\u670d\u52a1\u5668\uff1a\u8ba9AI\u52a9\u624b\u5b89\u5168\u64cd\u4f5c\u533a\u5757\u94fe\u8d44\u4ea7"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/97416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=97416"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/97416\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=97416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=97416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=97416"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=97416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}