{"id":42643,"date":"2025-06-10T02:01:36","date_gmt":"2025-06-09T18:01:36","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/42643.html"},"modified":"2025-06-10T02:01:36","modified_gmt":"2025-06-09T18:01:36","slug":"gfast%e5%bc%80%e5%8f%91mcp%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b9%8b%e9%9b%86%e6%88%90ai%e5%af%b9%e8%af%9d%ef%bc%88%e4%b8%89%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/42643.html","title":{"rendered":"GFast\u5f00\u53d1MCP\u670d\u52a1\u5668\u4e4b\u96c6\u6210AI\u5bf9\u8bdd\uff08\u4e09\uff09"},"content":{"rendered":"<p>\u652f\u6301\u914d\u7f6e\u4e0d\u540c\u5e73\u53f0\u5927\u6a21\u578b\u63a5\u53e3&#xff08;\u5982&#xff1a;openAI \u6216\u517c\u5bb9 openAI \u63a5\u53e3&#xff0c;DeepSeek, \u901a\u4e49\u5343\u95ee&#xff09;\u6216\u8005\u672c\u5730\u642d\u5efa\u63a5\u53e3&#xff08;\u5982&#xff1a;ollama&#xff09;, \u5e76\u652f\u6301\u914d\u7f6e mcp \u670d\u52a1\u8c03\u7528 mcp \u5de5\u5177\u3002<\/p>\n<h3>AI \u5bf9\u8bdd\u804a\u5929\u529f\u80fd\u7684\u6838\u5fc3\u7279\u70b9&#xff1a;<\/h3>\n<h4>1\u3001\u81ea\u7136\u8bed\u8a00\u7406\u89e3\u00a0&#xff08;NLU&#xff09;<\/h4>\n<p>\u7406\u89e3\u7528\u6237\u8f93\u5165\u7684\u610f\u601d&#xff0c;\u5305\u62ec\u610f\u56fe\u8bc6\u522b\u3001\u5b9e\u4f53\u63d0\u53d6\u7b49\u3002 \u4f8b\u5982&#xff1a;\u7528\u6237\u8bf4 \u201c\u660e\u5929\u5317\u4eac\u5929\u6c14\u600e\u4e48\u6837&#xff1f;\u201dAI \u80fd\u8bc6\u522b\u51fa\u610f\u56fe\u662f \u201c\u67e5\u5929\u6c14\u201d&#xff0c;\u5730\u70b9\u662f \u201c\u5317\u4eac\u201d&#xff0c;\u65f6\u95f4\u662f \u201c\u660e\u5929\u201d\u3002<\/p>\n<h4>2\u3001\u5bf9\u8bdd\u7ba1\u7406<\/h4>\n<p>\u7ef4\u6301\u591a\u8f6e\u5bf9\u8bdd\u7684\u8fde\u8d2f\u6027&#xff0c;\u8bb0\u4f4f\u4e0a\u4e0b\u6587\u3002 \u6bd4\u5982\u5728\u4e00\u8f6e\u5bf9\u8bdd\u4e2d&#xff0c;\u7528\u6237\u8bf4 \u201c\u6211\u60f3\u8ba2\u673a\u7968\u201d&#xff0c;\u7136\u540e\u63a5\u7740\u8bf4 \u201c\u53bb\u5317\u4eac\u201d&#xff0c;\u7cfb\u7edf\u8981\u80fd\u7406\u89e3\u8fd9\u662f\u7ee7\u7eed\u8ba2\u7968\u6d41\u7a0b\u3002 \u4e0d\u540c\u7528\u6237\u5bf9\u8bdd\u5386\u53f2\u8bb0\u5f55\u5b58\u5165\u6570\u636e\u5e93&#xff0c;\u6c38\u4e45\u4fdd\u5b58&#xff0c;\u7531\u7528\u6237\u81ea\u884c\u7ba1\u7406&#xff0c;\u65b9\u4fbf\u67e5\u9605<\/p>\n<h4>3\u3001\u81ea\u7136\u8bed\u8a00\u751f\u6210\u00a0&#xff08;NLG&#xff09;<\/h4>\n<p>\u5c06\u7cfb\u7edf\u7684\u56de\u5e94\u5185\u5bb9\u7528\u81ea\u7136\u6d41\u7545\u7684\u8bed\u8a00\u8868\u8fbe\u51fa\u6765\u3002 \u6bd4\u5982\u6839\u636e\u67e5\u8be2\u7ed3\u679c&#xff0c;\u53ef\u81ea\u5b9a\u4e49\u67e5\u8be2\u5929\u6c14\u7684 mpc \u5de5\u5177\u8c03\u7528\u5929\u6c14\u63a5\u53e3&#xff0c;\u5bf9\u8bdd\u65f6 AI \u81ea\u52a8\u8c03\u7528\u5de5\u5177\u67e5\u8be2\u5929\u6c14&#xff0c;\u751f\u6210 \u201c\u660e\u5929\u5317\u4eac\u6700\u9ad8\u6c14\u6e29 20\u2103&#xff0c;\u6700\u4f4e 12\u2103\u3002\u201d<\/p>\n<h4>4\u3001MCP \u5de5\u5177\u6389\u7528<\/h4>\n<p>\u7cfb\u7edf\u5185\u7f6e\u4e86\u51e0\u4e2a\u57fa\u672c\u793a\u4f8b MCP \u5de5\u5177&#xff0c;\u7528\u6237\u53ef\u81ea\u884c\u6269\u5c55\u5de5\u5177&#xff0c;\u7cfb\u7edf\u5df2\u5bf9 mcp \u6269\u5c55\u529f\u80fd\u8fdb\u884c\u4e86\u5c01\u88c5&#xff0c;\u6269\u5c55\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<h3>\u63d2\u4ef6\u4e0b\u8f7d&#xff1a;<\/h3>\n<p>https:\/\/plugins.g-fast.cn\/store#\/showModule?id&#061;22<\/p>\n<h3>\u63d2\u4ef6\u5b89\u88c5<\/h3>\n<h4>\u4e00\u3001\u8986\u76d6\u4e0b\u8f7d\u63d2\u4ef6\u540e\u7aef\u4ee3\u7801&#xff0c;\u5e76\u5b89\u88c5\u76f8\u5173\u4f9d\u8d56<\/h4>\n<p>\u5c06\u4e0b\u8f7d\u63d2\u4ef6\u4e2d\u00a0go\u00a0\u6587\u4ef6\u5939\u4e0b\u7684\u6587\u4ef6\u8986\u76d6\u5230\u540e\u7aef&#xff0c;\u540e\u7aef\u4ee3\u7801\u4e3a\u4e00\u4e2a\u65b0\u7684\u76ee\u5f55&#xff0c;\u4e0d\u4f1a\u8986\u76d6\u9879\u76ee\u5df2\u6709\u4ee3\u7801&#xff0c;\u53ef\u653e\u5fc3\u8986\u76d6\u5230\u9879\u76ee\u6839\u76ee\u5f55\u4e0b&#xff0c;\u8986\u76d6\u540e\u4fee\u6539\u4ee5\u4e0b\u51e0\u4e2a\u914d\u7f6e&#xff1a;<\/p>\n<p>internal\/app\/system\/consts\/consts.go\u00a0\u6587\u4ef6\u6dfb\u52a0\u5e38\u91cf&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250529171357\" height=\"856\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180126-6847217673fcf.png\" width=\"1532\" \/><\/p>\n<p>\/\/ WebSocketTypeChat websocket\u901a\u77e5\u7c7b\u578b-AI\u5bf9\u8bdd<br \/>\nWebSocketTypeChat     &#061; &#034;chat&#034;<br \/>\nWebSocketTypeLLMTools &#061; &#034;LLMTools&#034;<\/p>\n<p>main.go\u00a0\u6587\u4ef6\u4e2d\u6ce8\u518c\u00a0mcp hook:<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250529171603\" height=\"648\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180126-68472176d5bc8.png\" width=\"1571\" \/><\/p>\n<p>import (<br \/>\n&#8230;<br \/>\n_ &#034;github.com\/tiger1103\/gfast\/v3\/internal\/app\/mcp\/hook&#034;<br \/>\n&#8230;<br \/>\n)<\/p>\n<p>\u5b89\u88c5\u76f8\u5173\u4f9d\u8d56&#xff1a;<\/p>\n<p>go get github.com\/mark3labs\/mcp-go<br \/>\ngo get github.com\/cloudwego\/eino<br \/>\ngo get github.com\/cloudwego\/eino-ext\/components\/model\/openai<br \/>\ngo get github.com\/cloudwego\/eino-ext\/components\/model\/deepseek<br \/>\ngo get github.com\/cloudwego\/eino-ext\/components\/model\/ollama<br \/>\ngo get github.com\/cloudwego\/eino-ext\/components\/tool\/mcp<br \/>\ngo get github.com\/cloudwego\/eino-ext\/libs\/acl\/openai<\/p>\n<h4>\u4e8c\u3001\u8986\u76d6\u4e0b\u8f7d\u63d2\u4ef6\u524d\u7aef\u4ee3\u7801&#xff0c;\u5e76\u5b89\u88c5\u76f8\u5173\u4f9d\u8d56<\/h4>\n<p>\u5c06\u4e0b\u8f7d\u63d2\u4ef6\u4e2d\u00a0vue\u00a0\u6587\u4ef6\u5939\u4e0b\u7684\u6587\u4ef6\u8986\u76d6\u5230\u524d\u7aef<\/p>\n<p>\u6dfb\u52a0\u524d\u7aef\u4f9d\u8d56 \u901a\u8fc7\u4fee\u6539\u00a0package.json\u00a0\u6587\u4ef6\u6dfb\u52a0\u4f9d\u8d56&#xff0c;\u5728\u00a0dependencies\u00a0\u5757\u4e2d\u6dfb\u52a0&#xff08;\u63a8\u8350\u4f7f\u7528\u6b64\u65b9\u5f0f&#xff09;&#xff1a;<\/p>\n<p>&#034;dependencies&#034;: {<br \/>\n&#034;dompurify&#034;: &#034;^3.2.5&#034;,<br \/>\n&#034;marked&#034;: &#034;^15.0.11&#034;,<br \/>\n&#034;&#064;types\/highlight.js&#034;: &#034;^9.12.4&#034;,<br \/>\n&#034;highlight.js&#034;: &#034;^11.11.1&#034;,<br \/>\n}<\/p>\n<p>&#034;devDependencies&#034;:{<br \/>\n&#034;&#064;types\/dompurify&#034;: &#034;^3.0.5&#034;,<br \/>\n    &#034;&#064;types\/marked&#034;: &#034;^5.0.2&#034;,<br \/>\n}<\/p>\n<p>\u6dfb\u52a0\u540e\u8fd0\u884c&#xff1a;npm install &#8211;registry&#061;https:\/\/registry.npmmirror.com\u00a0\u6216\u8005\u901a\u8fc7\u547d\u4ee4\u884c\u5b89\u88c5&#xff08;\u5982\u679c\u4f7f\u7528\u4e86\u4e0a\u9762\u65b9\u5f0f\u5b89\u88c5&#xff0c;\u8df3\u8fc7&#xff0c;\u4e0d\u9700\u91cd\u590d\u5b89\u88c5&#xff09;&#xff1a;<\/p>\n<p>npm install dompurify&#064;3.2.5 marked&#064;15.0.11 &#064;types\/highlight.js&#064;9.12.4 highlight.js&#064;11.11.1 &#8211;registry&#061;https:\/\/registry.npmmirror.com<\/p>\n<p>npm install &#064;types\/dompurify&#064;3.0.5 &#064;types\/marked&#064;5.0.2 &#8211;save-dev &#8211;registry&#061;https:\/\/registry.npmmirror.com<\/p>\n<p>\u4fee\u6539\u00a0src\/utils\/websocket.ts\u00a0\u6587\u4ef6&#xff0c;\u6dfb\u52a0 AI \u5bf9\u8bdd\u76f8\u5173\u5904\u7406\u4ee3\u7801&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250529174021\" height=\"710\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180127-684721774a665.png\" width=\"1807\" \/><\/p>\n<p>import { ToolCall, useChatStore } from &#039;\/&#064;\/stores\/chatStore&#039;;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250529174122\" height=\"1090\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180127-68472177ba09a.png\" width=\"1941\" \/><\/p>\n<p>if(message.event &#061;&#061;&#061;&#039;chat&#039;){<br \/>\nuseChatStore().setChunkMessage(message.data)<br \/>\nreturn<br \/>\n}<br \/>\nif(message.event &#061;&#061;&#061;&#039;LLMTools&#039;){<br \/>\nconst tools &#061; message.data as ToolCall[]<br \/>\nuseChatStore().setToolCall(tools)<br \/>\nreturn<br \/>\n}<\/p>\n<h4>\u4e09\u3001\u5bfc\u5165\u6570\u636e\u5e93\u6587\u4ef6<\/h4>\n<h5>1.1 \u5b57\u5178\u6570\u636e\u5bfc\u5165<\/h5>\n<p>\u5bfc\u5165\u5b57\u5178\u6570\u636e\u6587\u4ef6\u5b57\u5178.sql\u3002<\/p>\n<h5>1.2 \u6d41\u7a0b\u76f8\u5173\u6570\u636e\u8868\u5bfc\u5165<\/h5>\n<p>\u5bfc\u5165\u6570\u636e\u8868\u6587\u4ef6\u8868\u6570\u636e.sql\u00a0\u3002<\/p>\n<h5>1.3 \u83dc\u5355\u6570\u636e\u5bfc\u5165<\/h5>\n<p>\u5bfc\u5165\u83dc\u5355\u6570\u636e\u6587\u4ef6\u83dc\u5355.sql\u00a0\u3002<\/p>\n<h5>\u6ce8\u610f&#xff1a;\u83dc\u5355.sql \u4e3a\u811a\u672c&#xff0c;\u9700\u8981\u5728 mysql \u547d\u4ee4\u4e2d\u6267\u884c \u3002<\/h5>\n<h4>\u56db\u3001\u4f7f\u7528\u8bf4\u660e<\/h4>\n<h5>1\u3001\u6a21\u578b\u914d\u7f6e<\/h5>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250530104802\" height=\"841\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180128-684721786e2a2.png\" width=\"2469\" \/><\/p>\n<p>\u4f8b\u5982\u6dfb\u52a0\u901a\u4e49\u5343\u95ee&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250530104852\" height=\"539\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180129-6847217970715.png\" width=\"770\" \/><\/p>\n<p>\u586b\u5199\u6a21\u578b\u548c\u5bc6\u94a5<\/p>\n<p>\u914d\u7f6e ollama:<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250530104945\" height=\"513\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180129-6847217999abd.png\" width=\"793\" \/><\/p>\n<p>\u914d\u7f6e\u6a21\u578b deepseek-r1 \u548c \u63a5\u53e3\u5730\u5740<\/p>\n<p>\u6ce8\u610f\u6709\u7684\u6a21\u578b\u4e0d\u652f\u6301\u51fd\u6570\u8c03\u7528&#xff0c;\u4e0d\u80fd\u4f7f\u7528 mcp&#xff0c;\u5219\u51fd\u6570\u8c03\u7528\u9009\u62e9\u5426\u3002<\/p>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\u53ef\u8fdb\u5165 AI \u5bf9\u8bdd&#xff1a;<\/p>\n<p>\u9009\u62e9\u5bf9\u5e94\u6a21\u578b<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250530105432\" height=\"1209\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180129-68472179c3eb1.png\" width=\"2559\" \/><\/p>\n<p>\u9009\u62e9\u00a0ollama\u00a0deepseek-r1\u00a0\u5219\u6709\u601d\u8003\u8fc7\u7a0b&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250530105559\" height=\"1163\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180130-6847217af0553.png\" width=\"2071\" \/><\/p>\n<h4>\u56db\u3001MCP \u5de5\u5177\u6dfb\u52a0<\/h4>\n<p>\u7cfb\u7edf\u9ed8\u8ba4\u5df2\u7ecf\u6709\u51e0\u4e2a\u793a\u4f8b MCP \u5de5\u5177&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250530110153\" height=\"808\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180132-6847217c178f5.png\" width=\"2333\" \/><\/p>\n<p>\u5bf9\u5e94\u4ee3\u7801\u76ee\u5f55\u5728\u00a0internal\/app\/mcp\/tools\u00a0\u4e0b&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250530110344\" height=\"908\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180132-6847217ccf485.png\" width=\"2146\" \/><\/p>\n<p>\u5982\u679c\u9700\u8981\u65b0\u589e\u00a0MCP\u00a0\u5de5\u5177&#xff0c;\u53ea\u9700\u5728\u8be5\u76ee\u5f55\u4e0b\u6dfb\u52a0\u5bf9\u5e94\u65b9\u6cd5\u5373\u53ef&#xff0c;GFAST\u00a0\u5df2\u5bf9\u8be5\u76ee\u5f55\u4e0b\u5de5\u5177\u8fdb\u884c\u5c01\u88c5\u81ea\u52a8\u6ce8\u518c&#xff0c;\u6dfb\u52a0\u540e\u4f1a\u81ea\u52a8\u52a0\u8f7d\u6ce8\u5165\u5230\u7cfb\u7edf\u4e2d&#xff0c;\u00a0\u6ce8\u610f\u7cfb\u7edf\u4e2d\u81ea\u5e26\u6570\u636e\u5e93\u64cd\u4f5c\u7684\u5de5\u5177\u53ea\u5728\u5f00\u53d1\u73af\u5883\u4e0b\u6709\u4f5c\u7528&#xff0c;\u751f\u4ea7\u73af\u5883\u4e0d\u4f1a\u8c03\u7528&#xff0c;\u9632\u6b62\u751f\u4ea7\u6545\u969c\u548c\u6570\u636e\u6cc4\u6f0f&#xff08;\u4f8b\u5982\u7528\u6237\u5bf9 AI \u8bf4\u8bf7\u6e05\u7a7a\u6570\u636e\u5e93&#8230;&#xff09;\u3002<\/p>\n<p>\u4ee5\u4e0b\u6211\u4eec\u505a\u4e00\u4e2a\u6dfb\u52a0\u00a0mcp\u00a0\u5de5\u5177\u5b9e\u8df5&#xff0c;\u4f8b\u5982\u6dfb\u52a0\u5929\u6c14\u9884\u62a5\u67e5\u8be2\u5de5\u5177&#xff1a;<\/p>\n<p>\u5728\u00a0internal\/app\/mcp\/tools\u00a0\u76ee\u5f55\u4e0b\u65b0\u5efa\u6587\u4ef6&#xff1a;wether_query.go(\u6587\u4ef6\u540d\u8fd9\u4e9b\u90fd\u662f\u968f\u610f\u586b\u5199&#xff0c;\u6ca1\u6709\u9650\u5236)<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250530152927\" height=\"716\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180133-6847217db3bff.png\" width=\"512\" \/><\/p>\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801&#xff1a;<\/p>\n<p>\/*<br \/>\n* &#064;desc:\u5929\u6c14\u9884\u62a5\u67e5\u8be2tools<br \/>\n *\/<\/p>\n<p>package tools<\/p>\n<p>import (<br \/>\n&#034;context&#034;<br \/>\n&#034;errors&#034;<br \/>\n&#034;fmt&#034;<br \/>\n&#034;github.com\/gogf\/gf\/v2\/encoding\/gurl&#034;<br \/>\n&#034;github.com\/gogf\/gf\/v2\/frame\/g&#034;<br \/>\n&#034;github.com\/gogf\/gf\/v2\/util\/gconv&#034;<br \/>\n&#034;github.com\/mark3labs\/mcp-go\/mcp&#034;<br \/>\n&#034;github.com\/mark3labs\/mcp-go\/server&#034;<br \/>\n&#034;github.com\/tiger1103\/gfast\/v3\/internal\/app\/mcp\/register&#034;<br \/>\n&#034;github.com\/tiger1103\/gfast\/v3\/internal\/consts&#034;<br \/>\n&#034;github.com\/tiger1103\/gfast\/v3\/library\/liberr&#034;<br \/>\n)<\/p>\n<p>func (r *Reg) RegisterWeatherQuery() {<br \/>\n\/\/ \u6ce8\u518c\u5de5\u5177<br \/>\nregister.AddHandler(func(mcpServer *server.MCPServer) {<br \/>\n\/\/ \u6dfb\u52a0\u5de5\u5177<br \/>\nvar (<br \/>\ntool &#061; mcp.NewTool(&#034;weather_query&#034;, \/\/ \u5de5\u5177\u540d\u79f0<br \/>\nmcp.WithDescription(&#034;\u67e5\u8be2\u7ed9\u5b9a\u57ce\u5e02\u7684\u5929\u6c14\u9884\u62a5\u4fe1\u606f&#034;), \/\/ \u5de5\u5177\u63cf\u8ff0<br \/>\nmcp.WithString(&#034;city&#034;, \/\/ \u53c2\u6570\u540d\u79f0<br \/>\nmcp.Required(),             \/\/ \u53c2\u6570\u662f\u5fc5\u9700\u7684<br \/>\nmcp.Description(&#034;\u6307\u5b9a\u7684\u57ce\u5e02\u540d\u79f0&#034;), \/\/ \u53c2\u6570\u63cf\u8ff0<br \/>\n),<br \/>\nmcp.WithString(&#034;extensions&#034;, \/\/ \u53c2\u6570\u540d\u79f0<br \/>\nmcp.Description(&#034;\u6c14\u8c61\u7c7b\u578b\u5b9e\u51b5\u5929\u6c14&#xff08;\u5982\u73b0\u5728&#xff0c;\u4eca\u5929&#xff09;\u4e3a&#xff1a;base&#xff1b;\u9884\u62a5\u5929\u6c14&#xff08;\u5982\u8fd9\u51e0\u5929&#xff0c;\u660e\u5929\u7b49&#xff09;\u4e3a&#xff1a;all&#034;), \/\/ \u53c2\u6570\u63cf\u8ff0<br \/>\n),<br \/>\n)<\/p>\n<p>helloHandler &#061; func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {<br \/>\nvar (<br \/>\nerr     error<br \/>\nweather &#061; new(Weather)<br \/>\n)<br \/>\nerr &#061; g.Try(ctx, func(ctx context.Context) {<br \/>\n\/\/ \u4ece\u8bf7\u6c42\u53c2\u6570\u4e2d\u83b7\u53d6\u540d\u5b57\u53c2\u6570&#xff0c;\u5e76\u65ad\u8a00\u4e3a\u5b57\u7b26\u4e32\u7c7b\u578b<br \/>\nname, ok :&#061; request.GetArguments()[&#034;city&#034;].(string)<br \/>\nif !ok {<br \/>\n\/\/ \u5982\u679c\u65ad\u8a00\u5931\u8d25&#xff0c;\u8fd4\u56de\u9519\u8bef<br \/>\nliberr.ErrIsNilCode(ctx, errors.New(&#034;\u8bf7\u7ed9\u6211\u4e00\u4e2a\u57ce\u5e02\u540d\u79f0&#034;), consts.CodeInfo)<br \/>\n}<br \/>\nextensions :&#061; request.GetArguments()[&#034;extensions&#034;].(string)<br \/>\nweather, err &#061; weather.Query(ctx, name, extensions)<br \/>\nliberr.ErrIsNilCode(ctx, err, consts.CodeInfo)<br \/>\n})<br \/>\nif err !&#061; nil {<br \/>\nreturn r.returnRes(err)<br \/>\n}<br \/>\n\/\/ \u8fd4\u56de\u7ed3\u679c<br \/>\nreturn mcp.NewToolResultText(fmt.Sprintf(&#034;\u8be5\u57ce\u5e02\u7684\u5929\u6c14\u9884\u62a5\u4fe1\u606f\u4e3a&#xff1a; %s!&#034;, gconv.String(weather))), nil<br \/>\n}<br \/>\n)<br \/>\nmcpServer.AddTool(tool, helloHandler)<br \/>\n})<br \/>\n}<\/p>\n<p>func (s *Weather) Query(ctx context.Context, city, extensions string) (info *Weather, err error) {<br \/>\nerr &#061; g.Try(ctx, func(ctx context.Context) {<br \/>\nvar (<br \/>\nkey      &#061; &#034;\u6b64\u5904\u586b\u5199\u9ad8\u5fb7\u5f00\u53d1\u5e73\u53f0\u7533\u8bf7\u7684\u63a5\u53e3key&#034;<br \/>\ncityInfo *AMapDistrictResponse<br \/>\n)<br \/>\ncityInfo, err &#061; s.GetDistricts(ctx, city, key)<br \/>\nliberr.ErrIsNil(ctx, err)<br \/>\nif cityInfo &#061;&#061; nil || len(cityInfo.Districts) &#061;&#061; 0 {<br \/>\nliberr.ErrIsNil(ctx, errors.New(&#034;\u672a\u67e5\u8be2\u5230\u5bf9\u5e94\u57ce\u5e02\u884c\u653f\u7f16\u7801\u4fe1\u606f&#xff0c;\u8bf7\u6838\u5bf9\u57ce\u5e02\u662f\u5426\u6b63\u786e&#034;))<br \/>\n}<br \/>\ninfo, err &#061; s.GetWeather(ctx, cityInfo.Districts[0].AdCode, extensions, key)<br \/>\n})<br \/>\nreturn<br \/>\n}<\/p>\n<p>func (s *Weather) GetWeather(ctx context.Context, code, extensions, key string) (info *Weather, err error) {<br \/>\n\/\/ 1. \u6784\u9020\u8bf7\u6c42 URL<br \/>\nurl :&#061; fmt.Sprintf(<br \/>\n&#034;https:\/\/restapi.amap.com\/v3\/weather\/weatherInfo?city&#061;%s&amp;extensions&#061;%s&amp;key&#061;%s&#034;,<br \/>\ngurl.Encode(code),<br \/>\ngurl.Encode(extensions),<br \/>\ngurl.Encode(key),<br \/>\n)<\/p>\n<p>\/\/ 2. \u53d1\u8d77 GET \u8bf7\u6c42<br \/>\nclient :&#061; g.Client()<br \/>\nresp, err :&#061; client.Get(ctx, url)<br \/>\nif err !&#061; nil {<br \/>\nreturn nil, fmt.Errorf(&#034;\u8bf7\u6c42\u5931\u8d25: %v&#034;, err)<br \/>\n}<br \/>\ndefer resp.Close()<br \/>\n\/\/ 3. \u89e3\u6790 JSON \u54cd\u5e94<br \/>\nif err :&#061; gconv.Scan(resp.ReadAll(), &amp;info); err !&#061; nil {<br \/>\nreturn nil, fmt.Errorf(&#034;\u89e3\u6790 JSON \u5931\u8d25: %v&#034;, err)<br \/>\n}<\/p>\n<p>\/\/ 4. \u68c0\u67e5\u63a5\u53e3\u8fd4\u56de\u72b6\u6001<br \/>\nif info.Status !&#061; &#034;1&#034; {<br \/>\nreturn nil, fmt.Errorf(&#034;\u67e5\u8be2\u5929\u6c14\u63a5\u53e3\u8fd4\u56de\u9519\u8bef: %s,\u72b6\u6001\u7801&#xff1a;%s&#034;, info.Info, info.Infocode)<br \/>\n}<br \/>\nreturn<br \/>\n}<\/p>\n<p>\/\/ GetDistricts \u8c03\u7528\u9ad8\u5fb7\u5730\u56fe\u884c\u653f\u533a\u57df\u67e5\u8be2\u63a5\u53e3<br \/>\nfunc (s *Weather) GetDistricts(ctx context.Context, keywords string, key string) (*AMapDistrictResponse, error) {<br \/>\n\/\/ 1. \u6784\u9020\u8bf7\u6c42 URL<br \/>\nurl :&#061; fmt.Sprintf(<br \/>\n&#034;https:\/\/restapi.amap.com\/v3\/config\/district?keywords&#061;%s&amp;subdistrict&#061;2&amp;key&#061;%s&#034;,<br \/>\ngurl.Encode(keywords),<br \/>\ngurl.Encode(key),<br \/>\n)<\/p>\n<p>\/\/ 2. \u53d1\u8d77 GET \u8bf7\u6c42<br \/>\nclient :&#061; g.Client()<br \/>\nresp, err :&#061; client.Get(ctx, url)<br \/>\nif err !&#061; nil {<br \/>\nreturn nil, fmt.Errorf(&#034;\u8bf7\u6c42\u5931\u8d25: %v&#034;, err)<br \/>\n}<br \/>\ndefer resp.Close()<\/p>\n<p>\/\/ 3. \u89e3\u6790 JSON \u54cd\u5e94<br \/>\nvar result *AMapDistrictResponse<br \/>\nif err :&#061; gconv.Scan(resp.ReadAll(), &amp;result); err !&#061; nil {<br \/>\nreturn nil, fmt.Errorf(&#034;\u89e3\u6790 JSON \u5931\u8d25: %v&#034;, err)<br \/>\n}<\/p>\n<p>\/\/ 4. \u68c0\u67e5\u63a5\u53e3\u8fd4\u56de\u72b6\u6001<br \/>\nif result.Status !&#061; &#034;1&#034; {<br \/>\nreturn nil, fmt.Errorf(&#034;\u67e5\u8be2\u57ce\u5e02\u884c\u653f\u533a\u5212\u63a5\u53e3\u8fd4\u56de\u9519\u8bef: %s,\u72b6\u6001\u7801&#xff1a;%s&#034;, result.Info, result.Infocode)<br \/>\n}<br \/>\nreturn result, nil<br \/>\n}<\/p>\n<p>type Suggestion struct {<br \/>\nKeywords []string &#096;json:&#034;keywords&#034;&#096;<br \/>\nCities   []string &#096;json:&#034;cities&#034;&#096;<br \/>\n}<\/p>\n<p>type District struct {<br \/>\nCityCode string &#096;json:&#034;citycode&#034;&#096;<br \/>\nAdCode   string &#096;json:&#034;adcode&#034;&#096;<br \/>\nName     string &#096;json:&#034;name&#034;&#096;<br \/>\nCenter   string &#096;json:&#034;center&#034;&#096;<br \/>\nLevel    string &#096;json:&#034;level&#034;&#096;<br \/>\n}<\/p>\n<p>type AMapDistrictResponse struct {<br \/>\nStatus     string     &#096;json:&#034;status&#034;&#096;<br \/>\nInfo       string     &#096;json:&#034;info&#034;&#096;<br \/>\nInfocode   string     &#096;json:&#034;infocode&#034;&#096;<br \/>\nCount      string     &#096;json:&#034;count&#034;&#096;<br \/>\nSuggestion Suggestion &#096;json:&#034;suggestion&#034;&#096;<br \/>\nDistricts  []District &#096;json:&#034;districts&#034;&#096;<br \/>\n}<\/p>\n<p>type Weather struct {<br \/>\nStatus   string &#096;json:&#034;status&#034;&#096;<br \/>\nCount    string &#096;json:&#034;count&#034;&#096;<br \/>\nInfo     string &#096;json:&#034;info&#034;&#096;<br \/>\nInfocode string &#096;json:&#034;infocode&#034;&#096;<br \/>\nLives    []struct {<br \/>\nProvince         string &#096;json:&#034;province&#034;&#096;<br \/>\nCity             string &#096;json:&#034;city&#034;&#096;<br \/>\nAdcode           string &#096;json:&#034;adcode&#034;&#096;<br \/>\nWeather          string &#096;json:&#034;weather&#034;&#096;<br \/>\nTemperature      string &#096;json:&#034;temperature&#034;&#096;<br \/>\nWinddirection    string &#096;json:&#034;winddirection&#034;&#096;<br \/>\nWindpower        string &#096;json:&#034;windpower&#034;&#096;<br \/>\nHumidity         string &#096;json:&#034;humidity&#034;&#096;<br \/>\nReporttime       string &#096;json:&#034;reporttime&#034;&#096;<br \/>\nTemperatureFloat string &#096;json:&#034;temperature_float&#034;&#096;<br \/>\nHumidityFloat    string &#096;json:&#034;humidity_float&#034;&#096;<br \/>\n} &#096;json:&#034;lives&#034;&#096;<br \/>\nForecasts []struct {<br \/>\nCity       string &#096;json:&#034;city&#034;&#096;<br \/>\nAdcode     string &#096;json:&#034;adcode&#034;&#096;<br \/>\nProvince   string &#096;json:&#034;province&#034;&#096;<br \/>\nReporttime string &#096;json:&#034;reporttime&#034;&#096;<br \/>\nCasts      []struct {<br \/>\nDate           string &#096;json:&#034;date&#034;&#096;<br \/>\nWeek           string &#096;json:&#034;week&#034;&#096;<br \/>\nDayweather     string &#096;json:&#034;dayweather&#034;&#096;<br \/>\nNightweather   string &#096;json:&#034;nightweather&#034;&#096;<br \/>\nDaytemp        string &#096;json:&#034;daytemp&#034;&#096;<br \/>\nNighttemp      string &#096;json:&#034;nighttemp&#034;&#096;<br \/>\nDaywind        string &#096;json:&#034;daywind&#034;&#096;<br \/>\nNightwind      string &#096;json:&#034;nightwind&#034;&#096;<br \/>\nDaypower       string &#096;json:&#034;daypower&#034;&#096;<br \/>\nNightpower     string &#096;json:&#034;nightpower&#034;&#096;<br \/>\nDaytempFloat   string &#096;json:&#034;daytemp_float&#034;&#096;<br \/>\nNighttempFloat string &#096;json:&#034;nighttemp_float&#034;&#096;<br \/>\n}<br \/>\n} &#096;json:&#034;forecasts&#034;&#096;<br \/>\n}<\/p>\n<p>\u6ce8\u610f&#xff0c;\u5929\u6c14\u67e5\u8be2\u63a5\u53e3\u7528\u7684\u662f\u9ad8\u5fb7\u5730\u56fe&#xff0c;\u9700\u8981\u5728\u9ad8\u5fb7\u5f00\u653e\u5e73\u53f0\u7533\u8bf7\u4e00\u4e2a key \u5373\u53ef\u514d\u8d39\u4f7f\u7528<\/p>\n<p>\u5b8c\u6210\u540e\u5bf9\u8bdd\u5982\u4e0b\u56fe&#xff1a;<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"20250530153214\" height=\"1009\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180133-6847217dc6cbb.png\" width=\"2326\" \/><\/p>\n<h4>\u8865\u5145&#xff0c;\u4f7f\u7528 MCP Inspector \u5de5\u5177\u8fde\u63a5\u65f6&#xff0c;\u9700\u8981\u914d\u7f6e token<\/h4>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"725\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180134-6847217ed0b7e.png\" width=\"2526\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb913\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u652f\u6301\u914d\u7f6e\u4e0d\u540c\u5e73\u53f0\u5927\u6a21\u578b\u63a5\u53e3\uff08\u5982\uff1aopenAI \u6216\u517c\u5bb9 openAI \u63a5\u53e3\uff0cDeepSeek, \u901a\u4e49\u5343\u95ee\uff09\u6216\u8005\u672c\u5730\u642d\u5efa\u63a5\u53e3\uff08\u5982\uff1aollama\uff09, \u5e76\u652f\u6301\u914d\u7f6e mcp \u670d\u52a1\u8c03\u7528 mcp \u5de5\u5177\u3002<\/p>\n","protected":false},"author":2,"featured_media":42629,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[53,746],"topic":[],"class_list":["post-42643","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ai","tag-golang"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>GFast\u5f00\u53d1MCP\u670d\u52a1\u5668\u4e4b\u96c6\u6210AI\u5bf9\u8bdd\uff08\u4e09\uff09 - \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\/42643.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GFast\u5f00\u53d1MCP\u670d\u52a1\u5668\u4e4b\u96c6\u6210AI\u5bf9\u8bdd\uff08\u4e09\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb913\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u652f\u6301\u914d\u7f6e\u4e0d\u540c\u5e73\u53f0\u5927\u6a21\u578b\u63a5\u53e3\uff08\u5982\uff1aopenAI \u6216\u517c\u5bb9 openAI \u63a5\u53e3\uff0cDeepSeek, \u901a\u4e49\u5343\u95ee\uff09\u6216\u8005\u672c\u5730\u642d\u5efa\u63a5\u53e3\uff08\u5982\uff1aollama\uff09, \u5e76\u652f\u6301\u914d\u7f6e mcp \u670d\u52a1\u8c03\u7528 mcp \u5de5\u5177\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/42643.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-09T18:01:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180126-6847217673fcf.png\" \/>\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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42643.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/42643.html\",\"name\":\"GFast\u5f00\u53d1MCP\u670d\u52a1\u5668\u4e4b\u96c6\u6210AI\u5bf9\u8bdd\uff08\u4e09\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-09T18:01:36+00:00\",\"dateModified\":\"2025-06-09T18:01:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/42643.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/42643.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/42643.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GFast\u5f00\u53d1MCP\u670d\u52a1\u5668\u4e4b\u96c6\u6210AI\u5bf9\u8bdd\uff08\u4e09\uff09\"}]},{\"@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":"GFast\u5f00\u53d1MCP\u670d\u52a1\u5668\u4e4b\u96c6\u6210AI\u5bf9\u8bdd\uff08\u4e09\uff09 - \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\/42643.html","og_locale":"zh_CN","og_type":"article","og_title":"GFast\u5f00\u53d1MCP\u670d\u52a1\u5668\u4e4b\u96c6\u6210AI\u5bf9\u8bdd\uff08\u4e09\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb913\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\u652f\u6301\u914d\u7f6e\u4e0d\u540c\u5e73\u53f0\u5927\u6a21\u578b\u63a5\u53e3\uff08\u5982\uff1aopenAI \u6216\u517c\u5bb9 openAI \u63a5\u53e3\uff0cDeepSeek, \u901a\u4e49\u5343\u95ee\uff09\u6216\u8005\u672c\u5730\u642d\u5efa\u63a5\u53e3\uff08\u5982\uff1aollama\uff09, \u5e76\u652f\u6301\u914d\u7f6e mcp \u670d\u52a1\u8c03\u7528 mcp \u5de5\u5177\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/42643.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-09T18:01:36+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250609180126-6847217673fcf.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/42643.html","url":"https:\/\/www.wsisp.com\/helps\/42643.html","name":"GFast\u5f00\u53d1MCP\u670d\u52a1\u5668\u4e4b\u96c6\u6210AI\u5bf9\u8bdd\uff08\u4e09\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-09T18:01:36+00:00","dateModified":"2025-06-09T18:01:36+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/42643.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/42643.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/42643.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"GFast\u5f00\u53d1MCP\u670d\u52a1\u5668\u4e4b\u96c6\u6210AI\u5bf9\u8bdd\uff08\u4e09\uff09"}]},{"@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\/42643","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=42643"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/42643\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/42629"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=42643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=42643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=42643"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=42643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}