{"id":110213,"date":"2026-09-26T10:41:40","date_gmt":"2026-09-26T02:41:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/110213.html"},"modified":"2026-09-26T10:41:40","modified_gmt":"2026-09-26T02:41:40","slug":"mcp-use-%e5%a4%9a%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%bb%a3%e7%90%86%e7%bd%91%e5%85%b3%e5%ae%9e%e6%88%98%ef%bc%9a%e7%94%a8-server-proxy-%e5%b0%86%e5%a4%9a%e4%b8%aa%e4%b8%8a%e6%b8%b8-mcp-server-%e8%81%9a","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/110213.html","title":{"rendered":"mcp-use \u591a\u670d\u52a1\u5668\u4ee3\u7406\u7f51\u5173\u5b9e\u6218\uff1a\u7528 `server.proxy()` \u5c06\u591a\u4e2a\u4e0a\u6e38 MCP Server \u805a\u5408\u6210\u4e00\u4e2a\u7edf\u4e00\u7aef\u70b9"},"content":{"rendered":"<ul class=\"gcb-tag-list\">\n<li><span class=\"gcb-tag\">\u540e\u7aef<\/span><\/li>\n<li><span class=\"gcb-tag\">MCP \u670d\u52a1<\/span><\/li>\n<li><span class=\"gcb-tag\">MCP Clients<\/span><\/li>\n<li><span class=\"gcb-tag\">AI Agent<\/span><\/li>\n<li><span class=\"gcb-tag\">\u4eba\u5de5\u667a\u80fd<\/span><\/li>\n<\/ul>\n<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011mcp-use<\/h3>\n<p class=\"gcb-project-desc\">The fullstack MCP framework to develop MCP Apps for ChatGPT \/ Claude &amp; MCP Servers for AI Agents.<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/mc\/mcp-use<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<h3>\u5bfc\u8bfb<\/h3>\n<p>libraries\/typescript\/packages\/server\/examples\/proxy \u662f mcp-use TypeScript Server \u5305\u5185\u7f6e\u7684\u4e00\u4e2a\u591a\u670d\u52a1\u5668\u4ee3\u7406\u793a\u4f8b&#xff1a;\u5b83\u540c\u65f6\u542f\u52a8\u4e24\u4e2a\u4e0a\u6e38 MCP \u670d\u52a1\u5668&#xff08;\u5929\u6c14\u670d\u52a1\u4e0e\u5e93\u5b58\u670d\u52a1&#xff09;&#xff0c;\u518d\u901a\u8fc7\u4e00\u4e2a\u7f51\u5173\u5c06\u4e24\u8005\u7684\u5de5\u5177&#xff08;Tool&#xff09;\u3001\u63d0\u793a\u8bcd&#xff08;Prompt&#xff09;\u4e0e\u8d44\u6e90&#xff08;Resource&#xff09;\u7edf\u4e00\u66b4\u9732\u5230\u5355\u4e00 HTTP \u7aef\u70b9&#xff0c;\u540c\u65f6\u4fdd\u7559\u7f51\u5173\u81ea\u8eab\u7684\u672c\u5730\u5de5\u5177\u3002\u8bfb\u5b8c\u672c\u6587&#xff0c;\u4f60\u5c06\u638c\u63e1 MCPServer.proxy() \u7684\u4e24\u79cd\u8c03\u7528\u5f62\u6001\u3001\u547d\u540d\u7a7a\u95f4\u6620\u5c04\u89c4\u5219\u3001\u4e0a\u6e38\u80fd\u529b\u81ea\u52a8\u53d1\u73b0&#xff08;introspection&#xff09;\u673a\u5236\u3001\u53ef\u9009\u7684\u8fde\u63a5\u914d\u7f6e\u9879&#xff0c;\u4ee5\u53ca\u5982\u4f55\u628a\u8fd9\u4e00\u6a21\u5f0f\u590d\u7528\u5230\u81ea\u5df1\u7684\u591a\u670d\u52a1\u805a\u5408\u573a\u666f\u4e2d\u3002<\/p>\n<h3>\u793a\u4f8b\u8981\u89e3\u51b3\u7684\u95ee\u9898<\/h3>\n<p>\u771f\u5b9e\u4e1a\u52a1\u4e2d&#xff0c;AI Agent \u5f80\u5f80\u9700\u8981\u8bbf\u95ee\u591a\u4e2a\u76f8\u4e92\u72ec\u7acb\u7684 MCP \u670d\u52a1\u5668&#xff1a;\u4e00\u4e2a\u8d1f\u8d23\u5929\u6c14\u67e5\u8be2\u3001\u4e00\u4e2a\u8d1f\u8d23\u5e93\u5b58\u68c0\u7d22\u3001\u4e00\u4e2a\u8d1f\u8d23\u6587\u6863\u68c0\u7d22\u2026\u2026\u5982\u679c\u8ba9\u6bcf\u4e2a\u670d\u52a1\u5668\u90fd\u66b4\u9732\u72ec\u7acb\u7aef\u70b9&#xff0c;\u5ba2\u6237\u7aef\u5c31\u8981\u7ef4\u62a4\u591a\u4efd\u8fde\u63a5\u914d\u7f6e\u3002mcp-use \u7684 proxy() \u63d0\u4f9b\u4e86\u4e00\u79cd&#034;\u7f51\u5173\u805a\u5408&#034;\u65b9\u6848&#xff1a;\u4e00\u4e2a\u7f51\u5173\u7aef\u70b9 &#061; \u591a\u4e2a\u4e0a\u6e38\u670d\u52a1\u5668\u80fd\u529b\u7684\u5e76\u96c6\u3002<\/p>\n<p>\u8be5\u793a\u4f8b\u7684\u6838\u5fc3\u76ee\u6807\u975e\u5e38\u660e\u786e&#xff1a;<\/p>\n<ul>\n<li>\u542f\u52a8\u4e24\u4e2a&#034;\u4e0a\u6e38&#034;MCP \u670d\u52a1\u5668&#xff08;weather\u3001inventory&#xff09;&#xff0c;\u5b83\u4eec\u4f7f\u7528\u4e34\u65f6\u672c\u5730\u7aef\u53e3&#xff0c;\u65e0\u9700\u624b\u5de5\u914d\u7f6e\u7aef\u53e3&#xff1b;<\/li>\n<li>\u901a\u8fc7 MCPServer.proxy() \u628a\u4e24\u4e2a\u4e0a\u6e38\u6302\u8f7d\u5230\u540c\u4e00\u4e2a\u7f51\u5173\u670d\u52a1\u5668\u4e0a&#xff1b;<\/li>\n<li>\u7f51\u5173\u4e3a\u6bcf\u4e2a\u4e0a\u6e38\u81ea\u52a8\u751f\u6210 weather_ \u4e0e inventory_ \u524d\u7f00\u547d\u540d\u7a7a\u95f4&#xff1b;<\/li>\n<li>\u7f51\u5173\u81ea\u8eab\u4fdd\u7559\u4e00\u4e2a\u672c\u5730\u5de5\u5177 gateway_status&#xff0c;\u4e0e\u4ee3\u7406\u80fd\u529b\u5171\u5b58&#xff1b;<\/li>\n<li>\u6574\u4e2a\u8fdb\u7a0b\u8d1f\u8d23\u4e0a\u6e38\u4e0e\u7f51\u5173\u7684\u542f\u52a8\u548c\u5173\u95ed&#xff0c;\u65e0\u9700\u591a\u4e2a\u7ec8\u7aef\u5206\u522b\u7ba1\u7406\u3002<\/li>\n<\/ul>\n<h3>\u8fd0\u884c\u7f51\u5173<\/h3>\n<p>\u793a\u4f8b\u7684 README&#xff08;libraries\/typescript\/packages\/server\/examples\/proxy\/README.md&#xff09;\u7ed9\u51fa\u4e86\u6700\u7b80\u542f\u52a8\u65b9\u5f0f\u3002\u5728\u4ed3\u5e93\u7684 libraries\/typescript \u76ee\u5f55\u4e0b\u6267\u884c&#xff1a;<\/p>\n<p>pnpm install<br \/>\npnpm &#8211;filter mcp-use-example-proxy start<\/p>\n<p>\u542f\u52a8\u540e\u7f51\u5173\u76d1\u542c\u5728 http:\/\/localhost:3000\/mcp\u3002\u5982\u9700\u66f4\u6362\u7aef\u53e3&#xff0c;\u901a\u8fc7\u73af\u5883\u53d8\u91cf PORT \u6307\u5b9a&#xff1a;<\/p>\n<p>PORT&#061;8080 pnpm &#8211;filter mcp-use-example-proxy start<\/p>\n<p>\u7aef\u53e3\u6821\u9a8c\u903b\u8f91\u5728 src\/index.ts \u4e2d\u5b9e\u73b0&#xff1a;PORT \u5fc5\u987b\u662f\u4e00\u4e2a 0~65535 \u7684\u6574\u6570&#xff0c;\u5426\u5219\u8fdb\u7a0b\u4f1a\u629b\u51fa PORT must be an integer from 0 to 65535 \u7684\u9519\u8bef\u5e76\u9000\u51fa\u3002port \u4f20 0 \u8868\u793a\u7531\u64cd\u4f5c\u7cfb\u7edf\u968f\u673a\u5206\u914d\u7a7a\u95f2\u7aef\u53e3\u3002<\/p>\n<p>\u542f\u52a8\u811a\u672c\u5b9a\u4e49\u5728 package.json&#xff1a;<\/p>\n<table>\n<tr>\u811a\u672c\u547d\u4ee4\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td>dev<\/td>\n<td>tsx watch src\/index.ts<\/td>\n<td>\u5f00\u53d1\u6a21\u5f0f&#xff0c;\u6587\u4ef6\u53d8\u66f4\u81ea\u52a8\u91cd\u542f<\/td>\n<\/tr>\n<tr>\n<td>start<\/td>\n<td>tsx src\/index.ts<\/td>\n<td>\u6b63\u5e38\u8fd0\u884c<\/td>\n<\/tr>\n<tr>\n<td>typecheck<\/td>\n<td>tsc &#8211;noEmit<\/td>\n<td>\u4ec5\u505a\u7c7b\u578b\u68c0\u67e5&#xff08;noEmit \u5f00\u542f&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u793a\u4f8b\u8981\u6c42 Node.js &gt;&#061; 22.22.2&#xff08;\u89c1 package.json \u7684 engines \u5b57\u6bb5&#xff09;&#xff0c;\u5e76\u4f7f\u7528 tsx \u76f4\u63a5\u8fd0\u884c TypeScript\u3002<\/p>\n<p>\u503c\u5f97\u6ce8\u610f\u7684\u4e00\u70b9\u662f&#xff1a;\u793a\u4f8b\u540c\u65f6\u5728\u4f9d\u8d56\u4e2d\u58f0\u660e\u4e86 mcp-use&#xff08;\u670d\u52a1\u7aef\u6846\u67b6&#xff09;\u4e0e &#064;mcp-use\/client&#xff08;\u5ba2\u6237\u7aef\u5305&#xff09;&#xff0c;\u539f\u56e0\u89c1\u4e0b\u6587&#034;\u53ef\u9009\u5ba2\u6237\u7aef\u4f9d\u8d56&#034;\u4e00\u8282\u3002<\/p>\n<h3>\u4e0a\u6e38\u670d\u52a1\u5668&#xff1a;weather \u4e0e inventory<\/h3>\n<p>\u4e24\u4e2a\u4e0a\u6e38\u670d\u52a1\u5668\u7684\u5b9a\u4e49\u90fd\u5728 src\/upstreams.ts \u4e2d&#xff0c;\u5b83\u4eec\u672c\u8eab\u662f\u666e\u901a\u7684 MCPServer \u5b9e\u4f8b&#xff0c;\u6f14\u793a\u4e86 mcp-use \u7684\u56db\u79cd\u6838\u5fc3\u80fd\u529b\u6ce8\u518c API\u3002<\/p>\n<h4>weather \u4e0a\u6e38&#xff1a;\u5de5\u5177 &#043; \u63d0\u793a\u8bcd<\/h4>\n<p>const server &#061; new MCPServer({ name: &#034;weather-upstream&#034;, version: &#034;1.0.0&#034; });<\/p>\n<p>server.tool(<br \/>\n  {<br \/>\n    name: &#034;forecast&#034;,<br \/>\n    description: &#034;Return a sample forecast for a city.&#034;,<br \/>\n    inputSchema: z.object({ city: z.string() }),<br \/>\n  },<br \/>\n  async ({ city }) &#061;&gt; ({<br \/>\n    content: [{ type: &#034;text&#034;, text: &#096;${city}: 21\u00b0C, clear skies&#096; }],<br \/>\n  })<br \/>\n);<\/p>\n<p>server.prompt(<br \/>\n  {<br \/>\n    name: &#034;plan_trip&#034;,<br \/>\n    description: &#034;Create a prompt for planning around the weather.&#034;,<br \/>\n    schema: z.object({ city: z.string() }),<br \/>\n  },<br \/>\n  async ({ city }) &#061;&gt; ({<br \/>\n    messages: [<br \/>\n      {<br \/>\n        role: &#034;user&#034;,<br \/>\n        content: { type: &#034;text&#034;, text: &#096;Plan a one-day trip to ${city} for clear, 21\u00b0C weather.&#096; },<br \/>\n      },<br \/>\n    ],<br \/>\n  })<br \/>\n);<\/p>\n<p>server.tool() \u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u56de\u8c03\u51fd\u6570&#xff0c;\u8fd4\u56de MCP \u6807\u51c6 content \u7ed3\u6784&#xff1b;server.prompt() \u5219\u8fd4\u56de messages \u6570\u7ec4&#xff0c;\u4f9b\u5ba2\u6237\u7aef&#xff08;\u5982 Claude\/ChatGPT \u7c7b\u5e94\u7528&#xff09;\u5728\u5bf9\u8bdd\u4e2d\u76f4\u63a5\u6e32\u67d3\u3002\u8fd9\u91cc\u4f7f\u7528\u4e86 zod \u5b9a\u4e49\u8f93\u5165\u6a21\u5f0f&#xff08;zod \u662f\u793a\u4f8b\u7684\u663e\u5f0f\u4f9d\u8d56&#xff09;\u3002<\/p>\n<h4>inventory \u4e0a\u6e38&#xff1a;\u5de5\u5177 &#043; \u8d44\u6e90<\/h4>\n<p>const server &#061; new MCPServer({ name: &#034;inventory-upstream&#034;, version: &#034;1.0.0&#034; });<\/p>\n<p>server.tool(<br \/>\n  {<br \/>\n    name: &#034;find_product&#034;,<br \/>\n    description: &#034;Look up a sample product by SKU.&#034;,<br \/>\n    inputSchema: z.object({ sku: z.string() }),<br \/>\n  },<br \/>\n  async ({ sku }) &#061;&gt; ({<br \/>\n    content: [{ type: &#034;text&#034;, text: JSON.stringify({ sku, name: &#034;Travel umbrella&#034;, inStock: true }) }],<br \/>\n  })<br \/>\n);<\/p>\n<p>server.resource(<br \/>\n  {<br \/>\n    name: &#034;featured_product&#034;,<br \/>\n    uri: &#034;inventory:\/\/featured&#034;,<br \/>\n    description: &#034;The featured product in the sample inventory.&#034;,<br \/>\n    mimeType: &#034;application\/json&#034;,<br \/>\n  },<br \/>\n  async (uri) &#061;&gt; ({<br \/>\n    contents: [<br \/>\n      {<br \/>\n        uri: uri.href,<br \/>\n        mimeType: &#034;application\/json&#034;,<br \/>\n        text: JSON.stringify({ sku: &#034;UMBRELLA-01&#034;, name: &#034;Travel umbrella&#034;, inStock: true }),<br \/>\n      },<br \/>\n    ],<br \/>\n  })<br \/>\n);<\/p>\n<p>server.resource() \u7684\u6ce8\u518c\u4fe1\u606f\u5305\u542b\u81ea\u5b9a\u4e49 uri&#xff08;\u8fd9\u91cc\u662f inventory:\/\/featured&#xff09;\u4e0e mimeType\u3002\u6ce8\u610f&#xff1a;\u8fd9\u4e2a\u81ea\u5b9a\u4e49 uri \u5728\u88ab\u7f51\u5173\u4ee3\u7406\u540e\u4f1a\u88ab\u91cd\u5199&#xff0c;\u7ec6\u8282\u89c1\u4e0b\u6587&#034;\u8d44\u6e90 URI \u7684\u91cd\u5199\u89c4\u5219&#034;\u3002<\/p>\n<h3>\u7f51\u5173\u7ec4\u88c5&#xff1a;createProxyExample()<\/h3>\n<p>\u7f51\u5173\u7684\u5b8c\u6574\u903b\u8f91\u96c6\u4e2d\u5728 src\/server.ts \u7684 createProxyExample() \u51fd\u6570\u4e2d&#xff0c;\u5b83\u8fd4\u56de\u4e00\u4e2a ProxyExample \u63a5\u53e3&#xff08;\u5305\u542b server \u4e0e close() \u4e24\u4e2a\u6210\u5458&#xff09;\u3002<\/p>\n<p>const weather &#061; createWeatherServer();<br \/>\nconst inventory &#061; createInventoryServer();<\/p>\n<p>\/\/ 1. \u4e24\u4e2a\u4e0a\u6e38\u5148\u5404\u81ea\u76d1\u542c\u968f\u673a\u7aef\u53e3&#xff08;listen(0) \u8868\u793a\u968f\u673a\u7aef\u53e3&#xff09;<br \/>\nconst [weatherAddress, inventoryAddress] &#061; await Promise.all([<br \/>\n  weather.listen(0),<br \/>\n  inventory.listen(0),<br \/>\n]);<\/p>\n<p>\/\/ 2. \u521b\u5efa\u7f51\u5173\u670d\u52a1\u5668<br \/>\ngateway &#061; new MCPServer({ name: &#034;multi-server-proxy&#034;, version: &#034;1.0.0&#034; });<\/p>\n<p>\/\/ 3. \u6ce8\u518c\u7f51\u5173\u672c\u5730\u5de5\u5177<br \/>\ngateway.tool(<br \/>\n  {<br \/>\n    name: &#034;gateway_status&#034;,<br \/>\n    description: &#034;Report whether the proxy gateway is running.&#034;,<br \/>\n  },<br \/>\n  async () &#061;&gt; ({ content: [{ type: &#034;text&#034;, text: &#034;Proxy gateway is running&#034; }] })<br \/>\n);<\/p>\n<p>\/\/ 4. \u6302\u8f7d\u4e24\u4e2a\u4e0a\u6e38<br \/>\nawait gateway.proxy({<br \/>\n  weather: { url: weatherAddress.url },<br \/>\n  inventory: { url: inventoryAddress.url },<br \/>\n});<\/p>\n<p>\u5173\u952e\u70b9&#xff1a;<\/p>\n<ul>\n<li>listen(0) \u8ba9\u64cd\u4f5c\u7cfb\u7edf\u5206\u914d\u968f\u673a\u7aef\u53e3&#xff0c;\u56e0\u6b64\u4e24\u4e2a\u4e0a\u6e38\u65e0\u9700\u9884\u5148\u5360\u7528\u56fa\u5b9a\u7aef\u53e3&#xff0c;\u4e5f\u65e0\u9700\u7528\u6237\u624b\u52a8\u914d\u7f6e&#xff1b;<\/li>\n<li>proxy() \u5fc5\u987b\u5728 listen() \u4e4b\u524d\u8c03\u7528\u3002\u6e90\u7801 src\/mcp-proxy.ts \u4e2d\u5bf9\u6b64\u6709\u786c\u6027\u6821\u9a8c&#xff1a;\u5982\u679c\u670d\u52a1\u5668\u5df2\u542f\u52a8\u4ecd\u8c03\u7528 proxy()&#xff0c;\u4f1a\u629b\u51fa Cannot call proxy() after the server has started: register upstream servers before listen()\/server.fetch&#xff1b;<\/li>\n<li>\u4f20\u7ed9 proxy() \u7684\u5bf9\u8c61\u952e weather \/ inventory \u5373\u547d\u540d\u7a7a\u95f4&#xff0c;\u4e0a\u6e38\u66b4\u9732\u7684\u6bcf\u4e2a\u80fd\u529b\u90fd\u4f1a\u88ab\u52a0\u4e0a\u5bf9\u5e94\u524d\u7f00\u3002<\/li>\n<\/ul>\n<h3>\u5ba2\u6237\u7aef\u5982\u4f55\u770b\u5230\u805a\u5408\u540e\u7684\u80fd\u529b<\/h3>\n<p>README \u4e2d\u7ed9\u51fa\u4e86\u6302\u8f7d\u5b8c\u6210\u540e&#xff0c;MCP \u5ba2\u6237\u7aef\u8fde\u63a5 http:\/\/localhost:3000\/mcp \u80fd\u770b\u5230\u7684\u5b8c\u6574\u80fd\u529b\u6e05\u5355&#xff1a;<\/p>\n<table>\n<tr>\u80fd\u529b\u7c7b\u578b\u540d\u79f0\u6765\u6e90<\/tr>\n<tbody>\n<tr>\n<td>Tool<\/td>\n<td>gateway_status<\/td>\n<td>\u7f51\u5173\u81ea\u8eab<\/td>\n<\/tr>\n<tr>\n<td>Tool<\/td>\n<td>weather_forecast<\/td>\n<td>weather \u4e0a\u6e38<\/td>\n<\/tr>\n<tr>\n<td>Prompt<\/td>\n<td>weather_plan_trip<\/td>\n<td>weather \u4e0a\u6e38<\/td>\n<\/tr>\n<tr>\n<td>Tool<\/td>\n<td>inventory_find_product<\/td>\n<td>inventory \u4e0a\u6e38<\/td>\n<\/tr>\n<tr>\n<td>Resource<\/td>\n<td>inventory_featured_product<\/td>\n<td>inventory \u4e0a\u6e38<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u5f20\u8868\u6e05\u6670\u5730\u5c55\u793a\u4e86\u547d\u540d\u7a7a\u95f4\u6620\u5c04\u89c4\u5219&#xff1a;\u4e0a\u6e38\u7684 forecast \u53d8\u6210 weather_forecast&#xff0c;plan_trip \u53d8\u6210 weather_plan_trip&#xff0c;find_product \u53d8\u6210 inventory_find_product&#xff0c;featured_product \u53d8\u6210 inventory_featured_product&#xff1b;\u800c\u7f51\u5173\u672c\u5730\u6ce8\u518c\u7684 gateway_status \u4fdd\u6301\u539f\u540d\u3002\u542f\u52a8\u65e5\u5fd7\u4e2d\u4e5f\u4f1a\u6253\u5370\u524d\u4e09\u4e2a\u5de5\u5177\u540d&#xff0c;\u65b9\u4fbf\u5feb\u901f\u786e\u8ba4\u3002<\/p>\n<h3>proxy() \u7684\u5e95\u5c42\u539f\u7406<\/h3>\n<p>proxy() \u7684\u5b9e\u73b0\u4f4d\u4e8e libraries\/typescript\/packages\/server\/src\/mcp-proxy.ts&#xff0c;\u6574\u4f53\u6d41\u7a0b\u53ef\u4ee5\u6982\u62ec\u4e3a\u4e09\u6b65&#xff1a;<\/p>\n<li>\u5efa\u7acb\u5ba2\u6237\u7aef\u8fde\u63a5&#xff1a;\u901a\u8fc7 &#064;mcp-use\/client \u7684 MCPClient.connect() \u8fde\u63a5\u6bcf\u4e2a\u4e0a\u6e38&#xff08;\u89c1 mountProxyServers()&#xff0c;\u7b2c 502-541 \u884c&#xff09;&#xff1b;<\/li>\n<li>\u81ea\u52a8\u53d1\u73b0&#xff08;introspection&#xff09;&#xff1a;introspect()&#xff08;\u7b2c 294-339 \u884c&#xff09;\u4f9d\u6b21\u8c03\u7528\u4e0a\u6e38\u7684 listTools()\u3001listResources()\/listAllResources()\u3001listPrompts()&#xff0c;\u83b7\u53d6\u5168\u90e8\u80fd\u529b\u5143\u6570\u636e&#xff1b;<\/li>\n<li>\u547d\u540d\u7a7a\u95f4\u6302\u8f7d&#xff08;mount&#xff09;&#xff1a;mountPlan()&#xff08;\u7b2c 341-451 \u884c&#xff09;\u628a\u6bcf\u4e2a\u4e0a\u6e38\u7684\u80fd\u529b\u4ee5 &lt;namespace&gt;_&lt;name&gt; \u7684\u5f62\u5f0f\u6ce8\u518c\u5230\u7f51\u5173&#xff0c;\u5e76\u751f\u6210\u8f6c\u53d1\u56de\u8c03\u3002<\/li>\n<p>\u5177\u4f53\u5230\u80fd\u529b\u7c7b\u578b&#xff0c;\u8f6c\u53d1\u65f6\u5404\u6709\u8bb2\u7a76&#xff1a;<\/p>\n<ul>\n<li>\u5de5\u5177&#xff08;Tool&#xff09;&#xff1a;\u5de5\u5177\u56de\u8c03\u628a\u53c2\u6570\u539f\u6837\u900f\u4f20\u7ed9\u4e0a\u6e38 callTool()&#xff0c;\u540c\u65f6\u628a\u4e0b\u6e38\u8bf7\u6c42\u7684\u53d6\u6d88\u4fe1\u53f7&#xff08;ctx.signal&#xff09;\u4e0e\u8fdb\u5ea6&#xff08;onprogress&#xff09;\u8f6c\u53d1\u7ed9\u4e0a\u6e38\u2014\u2014\u4e0a\u6e38\u7684\u8fdb\u5ea6\u901a\u77e5\u4f1a\u901a\u8fc7 ctx.reportProgress() \u56de\u4f20\u7ed9\u4e0b\u6e38\u5ba2\u6237\u7aef&#xff1b;<\/li>\n<li>\u8d44\u6e90&#xff08;Resource&#xff09;&#xff1a;readResource \u56de\u8c03\u63a5\u6536\u4e0a\u6e38\u7684\u539f\u59cb uri \u5e76\u900f\u4f20\u8bfb\u53d6&#xff1b;<\/li>\n<li>\u63d0\u793a\u8bcd&#xff08;Prompt&#xff09;&#xff1a;getPrompt \u56de\u8c03\u628a\u53c2\u6570\u900f\u4f20\u7ed9\u4e0a\u6e38\u6e32\u67d3\u3002\u4e0a\u6e38 prompt \u7684 arguments \u4f1a\u88ab\u8f6c\u6362\u6210 JSON Schema&#xff08;\u89c1 promptArgsToJsonSchema()&#xff0c;\u7b2c 211-228 \u884c&#xff09;&#xff0c;\u4ece\u800c\u517c\u5bb9\u7f51\u5173\u7684\u80fd\u529b\u63cf\u8ff0\u3002<\/li>\n<\/ul>\n<h4>proxy() \u7684\u4e24\u79cd\u8c03\u7528\u5f62\u6001<\/h4>\n<p>\u4ece src\/server.ts \u7684\u65b9\u6cd5\u7b7e\u540d\u53ef\u4ee5\u770b\u51fa&#xff0c;proxy() \u6709\u4e24\u4e2a\u91cd\u8f7d&#xff1a;<\/p>\n<p>\/\/ \u5f62\u6001\u4e00&#xff1a;\u547d\u540d\u7a7a\u95f4\u952e\u63a7\u7684\u4e0a\u6e38\u914d\u7f6e&#xff08;\u793a\u4f8b\u91c7\u7528&#xff09;<br \/>\nawait server.proxy({<br \/>\n  weather: { url: weatherAddress.url },<br \/>\n  inventory: { url: inventoryAddress.url },<br \/>\n});<\/p>\n<p>\/\/ \u5f62\u6001\u4e8c&#xff1a;\u76f4\u63a5\u6302\u8f7d\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u8fde\u63a5\u5bf9\u8c61<br \/>\nawait server.proxy(connection);<\/p>\n<p>\u7b2c\u4e8c\u79cd\u5f62\u6001\u8981\u6c42\u8fde\u63a5\u5bf9\u8c61\u662f&#034;\u5df2\u5c31\u7eea\u7684 &#064;mcp-use\/client v2 \u8fde\u63a5&#034;&#xff08;\u7ed3\u6784\u4e0a\u9700\u5177\u5907 listTools\u3001callTool\u3001readResource\u3001listPrompts\u3001getPrompt \u7b49\u65b9\u6cd5&#xff0c;\u6e90\u7801\u901a\u8fc7 isConnection() \u505a\u9e2d\u5b50\u7c7b\u578b\u5224\u65ad&#xff0c;\u89c1\u7b2c 238-248 \u884c&#xff09;\u3002\u6b64\u65f6\u547d\u540d\u7a7a\u95f4\u53d6\u81ea\u8fde\u63a5\u4e0a\u62a5\u7684 info.server.name&#xff1b;\u5982\u679c\u4e0a\u6e38\u670d\u52a1\u5668\u6ca1\u6709\u4e0a\u62a5\u540d\u79f0&#xff0c;\u4f1a\u629b\u51fa Cannot proxy an anonymous MCP connection directly \u7684\u9519\u8bef\u3002\u7b2c\u4e00\u79cd\u5f62\u6001&#xff08;\u914d\u7f6e\u5bf9\u8c61&#xff09;\u5219\u76f4\u63a5\u4ee5\u914d\u7f6e\u952e\u4f5c\u4e3a\u547d\u540d\u7a7a\u95f4&#xff0c;\u8fd9\u4e5f\u662f\u793a\u4f8b\u9009\u62e9\u5b83\u7684\u539f\u56e0\u2014\u2014\u547d\u540d\u7a7a\u95f4\u5b8c\u5168\u7531\u7f51\u5173\u638c\u63a7&#xff0c;\u4e0e\u4e0a\u6e38\u5185\u90e8\u540d\u79f0\u89e3\u8026\u3002<\/p>\n<h4>\u5931\u8d25\u9694\u79bb\u4e0e\u547d\u540d\u51b2\u7a81<\/h4>\n<p>proxy() \u5728\u8bbe\u8ba1\u4e0a\u505a\u4e86\u4e24\u5904\u5bb9\u9519&#xff1a;<\/p>\n<ul>\n<li>\u53d1\u73b0\u5931\u8d25\u4e0d\u963b\u65ad\u6574\u4f53&#xff1a;introspect() \u5bf9\u6bcf\u79cd\u80fd\u529b\u7684 list* \u8c03\u7528\u90fd\u7528 try\/catch \u5305\u88f9&#xff0c;\u5355\u4e2a\u4e0a\u6e38\u7684\u67d0\u4e2a\u80fd\u529b\u5217\u8868\u5931\u8d25\u53ea\u4f1a\u6253\u5370 [mcp-use] Failed to introspect &#8230; \u8bca\u65ad\u65e5\u5fd7&#xff0c;\u5176\u4f59\u80fd\u529b\u7167\u5e38\u6302\u8f7d&#xff1b;<\/li>\n<li>\u547d\u540d\u51b2\u7a81\u8df3\u8fc7\u800c\u975e\u8986\u76d6&#xff1a;mountPlan() \u6302\u8f7d\u6bcf\u4e2a\u80fd\u529b\u524d\u4f1a\u7528 hasTool\/hasResource\/hasPrompt \u68c0\u67e5\u540d\u79f0\u662f\u5426\u5df2\u88ab\u5360\u7528&#xff0c;\u82e5\u51b2\u7a81\u5219\u8df3\u8fc7\u5e76\u8f93\u51fa\u8bca\u65ad\u65e5\u5fd7&#xff08;\u4f8b\u5982 Skipping proxied tool &#034;weather_forecast&#034; from upstream &#034;weather&#034; because that name is already registered&#xff09;\u3002\u8fd9\u610f\u5473\u7740\u591a\u4e2a\u4e0a\u6e38\u4e4b\u95f4\u3001\u6216\u4e0a\u6e38\u4e0e\u672c\u5730\u80fd\u529b\u4e4b\u95f4\u51fa\u73b0\u540c\u540d\u65f6&#xff0c;\u5148\u6ce8\u518c\u8005\u4f18\u5148&#xff0c;\u7f51\u5173\u4e0d\u4f1a\u9759\u9ed8\u8986\u76d6\u3002<\/li>\n<\/ul>\n<h4>\u8d44\u6e90 URI \u7684\u91cd\u5199\u89c4\u5219<\/h4>\n<p>\u4ee3\u7406\u8d44\u6e90\u65f6&#xff0c;\u4e0a\u6e38\u7684\u539f\u59cb URI \u4f1a\u88ab\u91cd\u5199\u4e3a mcp-use-proxy:\/\/\/&lt;namespace&gt;\/&lt;encoded-uri&gt; \u5f62\u5f0f&#xff08;\u89c1 proxiedResourceUri()&#xff0c;\u7b2c 234-236 \u884c&#xff09;&#xff0c;\u4f8b\u5982\u793a\u4f8b\u4e2d\u7684 inventory:\/\/featured \u5728\u7f51\u5173\u4fa7\u4f1a\u8868\u73b0\u4e3a mcp-use-proxy:\/\/\/inventory\/inventory%3A%2F%2Ffeatured\u3002\u8fd9\u6837\u8bbe\u8ba1\u65e2\u907f\u514d\u4e86\u591a\u4e0a\u6e38 URI \u51b2\u7a81&#xff0c;\u53c8\u4fdd\u7559\u4e86\u4e0a\u6e38\u539f\u59cb URI \u7684\u5b8c\u6574\u4fe1\u606f&#xff0c;\u8bfb\u53d6\u65f6\u7f51\u5173\u518d\u628a\u5b83\u8fd8\u539f\u6210\u4e0a\u6e38\u5730\u5740\u900f\u4f20\u3002\u793a\u4f8b\u8868\u683c\u4e2d\u7684 inventory_featured_product \u5373\u8fd9\u4e2a\u91cd\u5199\u540e\u7684\u8d44\u6e90\u540d\u3002<\/p>\n<h3>\u53ef\u9009\u914d\u7f6e\u9879\u8be6\u89e3&#xff1a;ProxyHttpConfig<\/h3>\n<p>\u793a\u4f8b\u53ea\u7528\u4e86\u6700\u7b80\u7684 { url }&#xff0c;\u4f46 proxy() \u7684\u8fde\u63a5\u914d\u7f6e\u8fdc\u4e0d\u6b62\u4e8e\u6b64\u3002\u6e90\u7801 src\/mcp-proxy.ts \u5b9a\u4e49\u4e86 ProxyHttpConfig&#xff1a;<\/p>\n<table>\n<tr>\u914d\u7f6e\u9879\u7c7b\u578b\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>url<\/td>\n<td>string<\/td>\n<td>\u4e0a\u6e38 MCP \u7aef\u70b9 URL&#xff08;\u5fc5\u586b&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>headers<\/td>\n<td>Record&lt;string, string&gt;<\/td>\n<td>\u6bcf\u6b21\u4e0a\u6e38\u8bf7\u6c42\u9644\u52a0\u7684 HTTP \u5934&#xff0c;\u53ef\u7528\u4e8e\u81ea\u5b9a\u4e49\u9274\u6743\u5934\u6216\u8ddf\u8e2a\u5934<\/td>\n<\/tr>\n<tr>\n<td>authToken<\/td>\n<td>string<\/td>\n<td>\u53d1\u9001\u7ed9\u4e0a\u6e38\u670d\u52a1\u5668\u7684 Bearer Token<\/td>\n<\/tr>\n<tr>\n<td>timeout<\/td>\n<td>number<\/td>\n<td>\u8fde\u63a5\u8d85\u65f6&#xff08;\u6beb\u79d2&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>fetch<\/td>\n<td>typeof fetch<\/td>\n<td>\u81ea\u5b9a\u4e49 fetch \u5b9e\u73b0&#xff08;\u5982\u4ee3\u7406\u3001\u6ce8\u5165\u6d4b\u8bd5\u6869&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>protocolNegotiation<\/td>\n<td>&#034;auto&#034; \\\\| &#034;legacy&#034; \\\\| { pin: string }<\/td>\n<td>\u534f\u8bae\u534f\u5546\u6a21\u5f0f&#xff0c;\u8f6c\u53d1\u7ed9 &#064;mcp-use\/client&#xff1b;pin \u7528\u4e8e\u9501\u5b9a\u7279\u5b9a\u534f\u8bae\u7248\u672c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u4e9b\u914d\u7f6e\u5728 toClientConfig()&#xff08;\u7b2c 479-491 \u884c&#xff09;\u4e2d\u88ab\u6620\u5c04\u4e3a &#064;mcp-use\/client \u7684 HTTP \u670d\u52a1\u5668\u914d\u7f6e&#xff0c;\u540c\u65f6\u5f3a\u5236 oauth: false&#xff08;\u4ee3\u7406\u573a\u666f\u9ed8\u8ba4\u5173\u95ed OAuth \u6d41\u7a0b&#xff09;\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u8ba4\u8bc1\u3001\u8d85\u65f6\u3001\u534f\u8bae\u534f\u5546\u90fd\u53ef\u4ee5\u5728\u7f51\u5173\u4fa7\u7edf\u4e00\u914d\u7f6e&#xff0c;\u5bf9\u4e0b\u6e38\u5ba2\u6237\u7aef\u900f\u660e\u3002\u4ed3\u5e93\u4e2d\u8fd8\u6709 tests\/proxy-auth.test.ts \u4e13\u95e8\u8986\u76d6\u5e26\u8ba4\u8bc1\u7684\u4e0a\u6e38\u4ee3\u7406\u573a\u666f&#xff0c;\u53ef\u4f5c\u4e3a\u6269\u5c55\u53c2\u8003\u3002<\/p>\n<h3>\u53ef\u9009\u5ba2\u6237\u7aef\u4f9d\u8d56&#xff1a;\u4e3a\u4ec0\u4e48\u9700\u8981 &#064;mcp-use\/client<\/h3>\n<p>README \u7279\u522b\u8bf4\u660e\u4e86\u4e00\u4e2a\u8bbe\u8ba1\u7ec6\u8282&#xff1a;server.proxy() \u4f9d\u8d56\u53ef\u9009\u7684 &#064;mcp-use\/client \u5305&#xff0c;\u56e0\u6b64\u793a\u4f8b\u7684 package.json \u628a\u5b83\u5217\u4e3a\u663e\u5f0f\u4f9d\u8d56&#xff1b;\u5982\u679c\u9879\u76ee\u4e0d\u4f7f\u7528 proxy()&#xff0c;\u5219\u65e0\u9700\u5b89\u88c5\u8fd9\u4e2a\u53ef\u9009 peer\u3002<\/p>\n<p>\u4ece\u5b9e\u73b0\u770b&#xff0c;loadProxyClient()&#xff08;\u7b2c 275-285 \u884c&#xff09;\u901a\u8fc7\u52a8\u6001 import(&#034;&#064;mcp-use\/client&#034;) \u6309\u9700\u52a0\u8f7d\u5ba2\u6237\u7aef&#xff1b;\u5982\u679c\u52a0\u8f7d\u5931\u8d25\u4e14\u9519\u8bef\u7801\u4e3a ERR_MODULE_NOT_FOUND \/ MODULE_NOT_FOUND \u4e14\u4fe1\u606f\u5305\u542b &#064;mcp-use\/client&#xff0c;\u4f1a\u629b\u51fa\u5e26\u5b89\u88c5\u6307\u5f15\u7684\u9519\u8bef&#xff1a;<\/p>\n<p>[mcp-use] server.proxy() requires the optional &#064;mcp-use\/client package.<br \/>\nInstall it in your project:<\/p>\n<p>  npm install &#064;mcp-use\/client<\/p>\n<p>\u76f8\u5173\u7684\u53ef\u9009 peer \u5b89\u88c5\u884c\u4e3a\u6709\u4e13\u95e8\u6d4b\u8bd5\u8986\u76d6&#xff08;tests\/proxy-optional-peer.test.ts&#xff09;&#xff0c;\u786e\u4fdd\u7f3a\u5305\u65f6\u7ed9\u51fa\u7684\u662f\u53ef\u64cd\u4f5c\u7684\u9519\u8bef\u63d0\u793a\u800c\u975e\u6666\u6da9\u7684\u6a21\u5757\u52a0\u8f7d\u5f02\u5e38\u3002<\/p>\n<h3>\u751f\u547d\u5468\u671f&#xff1a;\u542f\u52a8\u3001\u4f18\u96c5\u9000\u51fa\u4e0e\u6e05\u7406<\/h3>\n<p>\u793a\u4f8b\u628a&#034;\u8fdb\u7a0b\u7ea7\u751f\u547d\u5468\u671f&#034;\u5c01\u88c5\u5f97\u5f88\u5b8c\u6574&#xff0c;\u8fd9\u4e5f\u662f\u5b83\u4e0d\u9700\u8981\u591a\u7ec8\u7aef\u7684\u539f\u56e0\u3002<\/p>\n<h4>\u542f\u52a8\u987a\u5e8f<\/h4>\n<p>\u5165\u53e3 src\/index.ts \u5728 createProxyExample() \u5185\u90e8\u5b8c\u6210&#034;\u4e0a\u6e38\u76d1\u542c \u2192 \u7f51\u5173\u521b\u5efa \u2192 proxy \u6302\u8f7d&#034;&#xff0c;\u4e4b\u540e\u624d\u8c03\u7528 example.server.listen(getPort()) \u8ba9\u7f51\u5173\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\u3002\u6574\u4e2a\u8fc7\u7a0b\u6ca1\u6709\u963b\u585e\u7b49\u5f85&#xff0c;createProxyExample() \u8fd4\u56de\u7684 ProxyExample \u5bf9\u8c61\u8ba9\u8c03\u7528\u65b9\u5b8c\u5168\u638c\u63a7\u7f51\u5173\u4f55\u65f6\u5f00\u59cb\u76d1\u542c\u3002<\/p>\n<h4>\u4f18\u96c5\u5173\u95ed<\/h4>\n<p>\u5165\u53e3\u6ce8\u518c\u4e86 SIGINT \/ SIGTERM \u4fe1\u53f7\u5904\u7406\u5668&#xff08;\u7b2c 23-31 \u884c&#xff09;&#xff0c;\u6536\u5230\u4fe1\u53f7\u540e\u8c03\u7528 example.close()\u3002close() \u7684\u5b9e\u73b0&#xff08;src\/server.ts&#xff09;\u4f7f\u7528 Promise.allSettled \u5e76\u53d1\u5173\u95ed\u7f51\u5173\u548c\u4e24\u4e2a\u4e0a\u6e38&#xff0c;\u5e76\u7528 closed \u6807\u5fd7\u4fdd\u8bc1\u53ef\u91cd\u590d\u8c03\u7528&#xff08;\u5e42\u7b49&#xff09;&#xff1b;\u4efb\u4f55\u670d\u52a1\u5668\u5173\u95ed\u5931\u8d25\u90fd\u4f1a\u6c47\u603b\u6210 AggregateError \u629b\u51fa&#xff0c;\u907f\u514d\u9759\u9ed8\u541e\u6389\u9519\u8bef\u3002<\/p>\n<p>\u5728\u7f51\u5173\u5c42\u9762&#xff0c;MCPServer \u7684\u5173\u95ed\u903b\u8f91&#xff08;src\/server.ts&#xff09;\u4f1a\u7b49\u5f85\u6240\u6709\u8fdb\u884c\u4e2d\u7684\u4ee3\u7406\u64cd\u4f5c&#xff08;#proxyOperations&#xff09;\u7ed3\u675f&#xff0c;\u518d\u5173\u95ed\u5b83\u521b\u5efa\u7684\u6240\u6709 &#064;mcp-use\/client \u5b9e\u4f8b&#xff08;#proxyOwners&#xff09;&#xff0c;\u786e\u4fdd\u4e0a\u6e38\u8fde\u63a5\u8d44\u6e90\u88ab\u5b8c\u6574\u91ca\u653e\u3002<\/p>\n<h4>\u5931\u8d25\u6e05\u7406<\/h4>\n<p>createProxyExample() \u5185\u90e8\u8fd8\u6709\u4e00\u5c42 try\/catch&#xff1a;\u5982\u679c\u7f51\u5173\u521b\u5efa\u6216 proxy() \u6302\u8f7d\u4e2d\u9014\u5931\u8d25&#xff0c;\u4f1a\u7acb\u523b\u7528 Promise.allSettled \u5173\u95ed\u5df2\u542f\u52a8\u7684\u4e0a\u6e38&#xff08;\u7b2c 51-58 \u884c&#xff09;&#xff0c;\u7136\u540e\u91cd\u65b0\u629b\u51fa\u9519\u8bef&#xff0c;\u9632\u6b62\u8fdb\u7a0b\u6b8b\u7559\u5b64\u513f\u670d\u52a1\u5668\u3002<\/p>\n<h3>\u8fd0\u884c\u6307\u6807\u4e0e\u53ef\u89c2\u6d4b\u6027<\/h3>\n<p>\u4ece src\/server.ts \u53ef\u4ee5\u770b\u5230&#xff0c;MCPServer \u4f1a\u4e3a\u4ee3\u7406\u94fe\u8def\u7ef4\u62a4\u4e00\u7ec4\u8fd0\u884c\u6307\u6807&#xff0c;\u4f9b\u76d1\u63a7\u4e0e\u8c03\u8bd5\u4f7f\u7528&#xff1a;<\/p>\n<ul>\n<li>proxy_servers_configured \/ proxy_servers_connected&#xff1a;\u914d\u7f6e\u7684\u4e0a\u6e38\u6570 \/ \u5b9e\u9645\u8fde\u63a5\u6210\u529f\u6570&#xff1b;<\/li>\n<li>proxy_tools_discovered \/ proxy_resources_discovered \/ proxy_prompts_discovered&#xff1a;\u5404\u4e0a\u6e38\u53d1\u73b0\u7684\u80fd\u529b\u603b\u6570&#xff1b;<\/li>\n<li>proxy_tools_mounted \/ proxy_resources_mounted \/ proxy_prompts_mounted&#xff1a;\u5b9e\u9645\u6302\u8f7d\u5230\u7f51\u5173\u7684\u80fd\u529b\u6570\u3002<\/li>\n<\/ul>\n<p>&#034;\u53d1\u73b0\u6570&#034;\u4e0e&#034;\u6302\u8f7d\u6570&#034;\u7684\u5dee\u5f02\u5f80\u5f80\u6765\u81ea\u547d\u540d\u51b2\u7a81\u8df3\u8fc7&#xff08;\u88ab Skipping proxied tool &#8230; \u8bca\u65ad\u65e5\u5fd7\u8bb0\u5f55&#xff09;\u3002\u8fd9\u4e9b\u6307\u6807\u4e3a\u6392\u67e5&#034;\u4e3a\u4ec0\u4e48\u67d0\u4e2a\u4e0a\u6e38\u5de5\u5177\u6ca1\u51fa\u73b0\u5728\u7f51\u5173\u91cc&#034;\u63d0\u4f9b\u4e86\u76f4\u63a5\u4f9d\u636e\u3002<\/p>\n<h3>\u6d4b\u8bd5\u9a8c\u8bc1<\/h3>\n<p>\u4ed3\u5e93\u4e3a\u4ee3\u7406\u529f\u80fd\u63d0\u4f9b\u4e86\u5b8c\u6574\u7684\u6d4b\u8bd5\u8986\u76d6&#xff0c;\u4e3b\u8981\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>tests\/proxy.test.ts&#xff08;566 \u884c&#xff09;&#xff1a;\u9a8c\u8bc1\u591a\u4e0a\u6e38\u6302\u8f7d\u3001\u5de5\u5177\/\u8d44\u6e90\/\u63d0\u793a\u8bcd\u8f6c\u53d1\u3001\u9519\u8bef\u900f\u4f20&#xff08;isError&#xff09;\u3001\u547d\u540d\u7a7a\u95f4\u524d\u7f00\u3001mountProxyConnection \u4e0e\u4f4e\u5c42 ProxyMountHost \u7b49&#xff1b;<\/li>\n<li>tests\/proxy-auth.test.ts&#xff1a;\u5e26\u9274\u6743\u7684\u4e0a\u6e38\u4ee3\u7406\u573a\u666f&#xff1b;<\/li>\n<li>tests\/proxy-optional-peer.test.ts&#xff1a;\u7f3a\u5305\u65f6\u7684\u5b89\u88c5\u63d0\u793a\u9519\u8bef\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u6d4b\u8bd5\u76f4\u63a5\u4ee5 MCPServer &#043; &#064;modelcontextprotocol\/client \u7684\u771f\u5b9e\u5ba2\u6237\u7aef\u8fde\u63a5\u65b9\u5f0f\u8fd0\u884c&#xff0c;\u9a8c\u8bc1\u4e86&#034;\u4ece\u7f51\u5173\u8fde\u63a5\u4e00\u4e2a\u5ba2\u6237\u7aef \u2192 \u8c03\u7528 weather_forecast \/ inventory_find_product \u8fd9\u7c7b\u524d\u7f00\u5316\u80fd\u529b \u2192 \u6536\u5230\u4e0a\u6e38\u771f\u5b9e\u8fd4\u56de&#034;\u7684\u5b8c\u6574\u95ed\u73af\u3002\u5bf9\u7167\u5b83\u4eec\u53ef\u4ee5\u786e\u8ba4\u672c\u6587\u6240\u8ff0\u884c\u4e3a\u4e0e\u5f53\u524d\u4ed3\u5e93\u5b9e\u73b0\u4e00\u81f4\u3002<\/p>\n<h3>\u6269\u5c55\u5230\u4f60\u7684\u9879\u76ee<\/h3>\n<p>\u5c06\u793a\u4f8b\u6a21\u5f0f\u843d\u5730\u5230\u81ea\u5df1\u7684\u670d\u52a1&#xff0c;\u53ea\u9700\u4e09\u6b65&#xff1a;<\/p>\n<li>\u5b9a\u4e49\u6216\u5f15\u5165\u4e0a\u6e38\u670d\u52a1\u5668&#xff08;\u672c\u5730 MCPServer \u6216\u4efb\u610f HTTP \u7aef\u70b9\u5747\u53ef&#xff0c;proxy() \u6309 URL \u8fde\u63a5&#xff09;&#xff1b;<\/li>\n<li>\u521b\u5efa\u7f51\u5173 MCPServer&#xff0c;\u5148\u6ce8\u518c\u672c\u5730\u80fd\u529b&#xff08;\u5982\u5065\u5eb7\u68c0\u67e5\u5de5\u5177&#xff09;&#xff0c;\u518d\u8c03\u7528 await server.proxy({ namespace: { url } })&#xff1b;<\/li>\n<li>\u5728 listen() \u524d\u5b8c\u6210\u6240\u6709\u6302\u8f7d&#xff0c;\u5ba2\u6237\u7aef\u53ea\u9700\u8fde\u63a5\u7f51\u5173\u5355\u4e00\u7aef\u70b9\u3002<\/li>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u524d\u63d0\u6761\u4ef6&#xff1a;<\/p>\n<ul>\n<li>Node.js &gt;&#061; 22.22.2&#xff0c;\u5e76\u4f7f\u7528 ESM&#xff08;&#034;type&#034;: &#034;module&#034;&#xff09;&#xff1b;<\/li>\n<li>\u5fc5\u987b\u5b89\u88c5 &#064;mcp-use\/client \u4f5c\u4e3a\u4f9d\u8d56&#xff08;proxy() \u7684\u53ef\u9009 peer&#xff09;&#xff1b;<\/li>\n<li>proxy() \u7684\u8c03\u7528\u65f6\u673a\u5fc5\u987b\u5728\u670d\u52a1\u5668\u542f\u52a8\u4e4b\u524d&#xff1b;<\/li>\n<li>\u547d\u540d\u7a7a\u95f4\u8bf7\u4f7f\u7528\u5ba2\u6237\u7aef\u53ef\u8bfb\u7684\u77ed\u524d\u7f00&#xff08;\u5982 weather\u3001inventory&#xff09;&#xff0c;\u5b83\u76f4\u63a5\u6210\u4e3a\u6240\u6709\u66b4\u9732\u80fd\u529b\u540d\u7684\u7ec4\u6210\u90e8\u5206\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u8fd9\u4e2a\u793a\u4f8b\u53ef\u4ee5\u770b\u5230&#xff0c;mcp-use \u7684 proxy() \u628a&#034;\u591a\u4e0a\u6e38\u670d\u52a1\u5668\u805a\u5408\u6210\u5355\u4e00 MCP \u7aef\u70b9&#034;\u4ece\u624b\u5de5\u80f6\u6c34\u4ee3\u7801\u53d8\u6210\u4e86\u6846\u67b6\u7ea7\u80fd\u529b&#xff1a;\u547d\u540d\u7a7a\u95f4\u81ea\u52a8\u751f\u6210\u3001\u80fd\u529b\u81ea\u52a8\u53d1\u73b0\u3001\u8fdb\u5ea6\u4e0e\u53d6\u6d88\u900f\u4f20\u3001\u8d44\u6e90 URI \u91cd\u5199\u3001\u5931\u8d25\u9694\u79bb\u3001\u751f\u547d\u5468\u671f\u6258\u7ba1\u4e00\u5e94\u4ff1\u5168\u3002\u5bf9\u4e8e\u9700\u8981\u4e3a Agent \u6574\u5408\u591a\u4e2a\u9886\u57df\u670d\u52a1\u7684\u56e2\u961f&#xff0c;\u8fd9\u662f\u4e00\u79cd\u5f00\u7bb1\u5373\u7528\u7684\u7f51\u5173\u65b9\u6848\u3002<\/p>\n<p>  <img loading=\"lazy\" decoding=\"async\" class=\"gcb-icon-like\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260926024139-6ab730e376d7e.svg\" alt=\"\" width=\"16\" height=\"16\" \/> <span class=\"gcb-like-text\">\u8d5e<\/span>  <\/p>\n<p>   <span class=\"gcb-share-text\">\u5206\u4eab<\/span>  <\/p>\n<ul class=\"gcb-tag-list\">\n<li><span class=\"gcb-tag\">\u540e\u7aef<\/span><\/li>\n<li><span class=\"gcb-tag\">MCP \u670d\u52a1<\/span><\/li>\n<li><span class=\"gcb-tag\">MCP Clients<\/span><\/li>\n<li><span class=\"gcb-tag\">AI Agent<\/span><\/li>\n<li><span class=\"gcb-tag\">\u4eba\u5de5\u667a\u80fd<\/span><\/li>\n<\/ul>\n<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011mcp-use<\/h3>\n<p class=\"gcb-project-desc\">The fullstack MCP framework to develop MCP Apps for ChatGPT \/ Claude &amp; MCP Servers for AI Agents.<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/mc\/mcp-use<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<h4 class=\"gcb-related-title\">\u76f8\u5173\u63a8\u8350<\/h4>\n<ul class=\"gcb-related-list\">\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">\u5229\u7528 MCPAggregator \u805a\u5408\u591a\u4e2a MCP \u670d\u52a1\u5668&#xff1a;mcp-agent \u591a\u670d\u52a1\u5668\u96c6\u6210\u5b9e\u6218\u6307\u5357<\/h5>\n<p class=\"gcb-related-item-desc\">\u5229\u7528 MCPAggregator \u805a\u5408\u591a\u4e2a MCP \u670d\u52a1\u5668&#xff1a;mcp agent \u591a\u670d\u52a1\u5668\u96c6\u6210\u5b9e\u6218\u6307\u5357 \u901a\u8fc7 MCPAggregator&#xff08;\u5373&#034;server of <\/p>\n<p>     <span class=\"gcb-tag\">\u4eba\u5de5\u667a\u80fd<\/span><br \/>\n     <span class=\"gcb-tag\">AI Agent<\/span><br \/>\n     <span class=\"gcb-tag\">Agent \u6846\u67b6<\/span><br \/>\n     <span class=\"gcb-tag\">MCP Clients<\/span><br \/>\n     <span class=\"gcb-tag\">Agent \u5de5\u4f5c\u6d41<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">python-sdk \u591a\u670d\u52a1\u5668\u805a\u5408\u6307\u5357&#xff1a;\u7528 ClientSessionGroup \u7edf\u4e00\u7ba1\u7406\u591a\u4e2a MCP \u8fde\u63a5<\/h5>\n<p class=\"gcb-related-item-desc\">python sdk \u591a\u670d\u52a1\u5668\u805a\u5408\u6307\u5357&#xff1a;\u7528 ClientSessionGroup \u7edf\u4e00\u7ba1\u7406\u591a\u4e2a MCP \u8fde\u63a5 ClientSessionGroup \u662f pyth<\/p>\n<p>     <span class=\"gcb-tag\">\u4eba\u5de5\u667a\u80fd<\/span><br \/>\n     <span class=\"gcb-tag\">MCP \u670d\u52a1<\/span><br \/>\n     <span class=\"gcb-tag\">MCP Clients<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">python-sdk \u4e2d\u7684 ClientSessionGroup&#xff1a;\u7528\u5355\u4e00\u89c6\u56fe\u805a\u5408\u7ba1\u7406\u591a\u4e2a MCP \u670d\u52a1\u5668\u8fde\u63a5<\/h5>\n<p class=\"gcb-related-item-desc\">python sdk \u4e2d\u7684 ClientSessionGroup&#xff1a;\u7528\u5355\u4e00\u89c6\u56fe\u805a\u5408\u7ba1\u7406\u591a\u4e2a MCP \u670d\u52a1\u5668\u8fde\u63a5 ClientSessionGroup \u662f Mode<\/p>\n<p>     <span class=\"gcb-tag\">\u4eba\u5de5\u667a\u80fd<\/span><br \/>\n     <span class=\"gcb-tag\">MCP \u670d\u52a1<\/span><br \/>\n     <span class=\"gcb-tag\">MCP Clients<\/span>\n      <\/li>\n<\/ul>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0a\u4e00\u7bc7&#xff1a;<\/span><br \/>\n   OpenSpout&#xff1a;PHP\u5f00\u53d1\u8005\u7684\u8868\u683c\u6570\u636e\u5904\u7406\u9769\u547d <\/p>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0b\u4e00\u7bc7&#xff1a;<\/span><br \/>\n   RookieAI_yolov8\u6e38\u620fAI\u81ea\u7784\u7cfb\u7edf&#xff1a;2025\u7ec8\u6781\u914d\u7f6e\u5b8c\u5168\u6307\u5357 <\/p>\n<p>\u521b\u4f5c\u58f0\u660e\uff1a\u672c\u6587\u90e8\u5206\u5185\u5bb9\u7531AI\u8f85\u52a9\u751f\u6210\uff08AIGC\uff09\uff0c\u4ec5\u4f9b\u53c2\u8003<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u540e\u7aefMCP \u670d\u52a1MCP ClientsAI Agent\u4eba\u5de5\u667a\u80fd \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011mcp-use The fullstack MCP framework to develop MCP Apps for ChatGPT \/ Claude &amp; MCP Servers for AI Agents. \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/mc\/mcp-use \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d  \u5bfc\u8bfb<br \/>\nlibraries\/typescript\/pac<\/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":[],"topic":[],"class_list":["post-110213","post","type-post","status-publish","format-standard","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>mcp-use \u591a\u670d\u52a1\u5668\u4ee3\u7406\u7f51\u5173\u5b9e\u6218\uff1a\u7528 `server.proxy()` \u5c06\u591a\u4e2a\u4e0a\u6e38 MCP Server \u805a\u5408\u6210\u4e00\u4e2a\u7edf\u4e00\u7aef\u70b9 - \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\/110213.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"mcp-use \u591a\u670d\u52a1\u5668\u4ee3\u7406\u7f51\u5173\u5b9e\u6218\uff1a\u7528 `server.proxy()` \u5c06\u591a\u4e2a\u4e0a\u6e38 MCP Server \u805a\u5408\u6210\u4e00\u4e2a\u7edf\u4e00\u7aef\u70b9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u540e\u7aefMCP \u670d\u52a1MCP ClientsAI Agent\u4eba\u5de5\u667a\u80fd \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011mcp-use The fullstack MCP framework to develop MCP Apps for ChatGPT \/ Claude &amp; MCP Servers for AI Agents. \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/mc\/mcp-use \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u5bfc\u8bfb libraries\/typescript\/pac\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/110213.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-26T02:41:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260926024139-6ab730e376d7e.svg\" \/>\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=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110213.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/110213.html\",\"name\":\"mcp-use \u591a\u670d\u52a1\u5668\u4ee3\u7406\u7f51\u5173\u5b9e\u6218\uff1a\u7528 `server.proxy()` \u5c06\u591a\u4e2a\u4e0a\u6e38 MCP Server \u805a\u5408\u6210\u4e00\u4e2a\u7edf\u4e00\u7aef\u70b9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-26T02:41:40+00:00\",\"dateModified\":\"2026-09-26T02:41:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/110213.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/110213.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110213.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"mcp-use \u591a\u670d\u52a1\u5668\u4ee3\u7406\u7f51\u5173\u5b9e\u6218\uff1a\u7528 `server.proxy()` \u5c06\u591a\u4e2a\u4e0a\u6e38 MCP Server \u805a\u5408\u6210\u4e00\u4e2a\u7edf\u4e00\u7aef\u70b9\"}]},{\"@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":"mcp-use \u591a\u670d\u52a1\u5668\u4ee3\u7406\u7f51\u5173\u5b9e\u6218\uff1a\u7528 `server.proxy()` \u5c06\u591a\u4e2a\u4e0a\u6e38 MCP Server \u805a\u5408\u6210\u4e00\u4e2a\u7edf\u4e00\u7aef\u70b9 - \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\/110213.html","og_locale":"zh_CN","og_type":"article","og_title":"mcp-use \u591a\u670d\u52a1\u5668\u4ee3\u7406\u7f51\u5173\u5b9e\u6218\uff1a\u7528 `server.proxy()` \u5c06\u591a\u4e2a\u4e0a\u6e38 MCP Server \u805a\u5408\u6210\u4e00\u4e2a\u7edf\u4e00\u7aef\u70b9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u540e\u7aefMCP \u670d\u52a1MCP ClientsAI Agent\u4eba\u5de5\u667a\u80fd \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011mcp-use The fullstack MCP framework to develop MCP Apps for ChatGPT \/ Claude &amp; MCP Servers for AI Agents. \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/mc\/mcp-use \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u5bfc\u8bfb libraries\/typescript\/pac","og_url":"https:\/\/www.wsisp.com\/helps\/110213.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-26T02:41:40+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260926024139-6ab730e376d7e.svg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/110213.html","url":"https:\/\/www.wsisp.com\/helps\/110213.html","name":"mcp-use \u591a\u670d\u52a1\u5668\u4ee3\u7406\u7f51\u5173\u5b9e\u6218\uff1a\u7528 `server.proxy()` \u5c06\u591a\u4e2a\u4e0a\u6e38 MCP Server \u805a\u5408\u6210\u4e00\u4e2a\u7edf\u4e00\u7aef\u70b9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-26T02:41:40+00:00","dateModified":"2026-09-26T02:41:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/110213.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/110213.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/110213.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"mcp-use \u591a\u670d\u52a1\u5668\u4ee3\u7406\u7f51\u5173\u5b9e\u6218\uff1a\u7528 `server.proxy()` \u5c06\u591a\u4e2a\u4e0a\u6e38 MCP Server \u805a\u5408\u6210\u4e00\u4e2a\u7edf\u4e00\u7aef\u70b9"}]},{"@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\/110213","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=110213"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/110213\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=110213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=110213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=110213"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=110213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}