{"id":6695,"date":"2025-12-30T17:43:28","date_gmt":"2025-12-30T09:43:28","guid":{"rendered":"https:\/\/nullthought.net\/?p=6695"},"modified":"2025-12-30T17:46:13","modified_gmt":"2025-12-30T09:46:13","slug":"%e8%af%a6%e8%a7%a3%ef%bc%9a%e9%87%87%e7%94%a8model-context-protocol%ef%bc%88mcp%ef%bc%89%e8%bf%9e%e6%8e%a5ai%e5%92%8c%e5%ba%94%e7%94%a8%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/nullthought.net\/?p=6695","title":{"rendered":"\u8be6\u89e3\uff1a\u91c7\u7528Model Context Protocol\uff08MCP\uff09\u8fde\u63a5AI\u548c\u5e94\u7528\u7cfb\u7edf"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">1) <a href=\"https:\/\/nullthought.net\/?p=5203\" target=\"_blank\" rel=\"noreferrer noopener\">MCP <\/a>\u8fde\u63a5\u7684\u201c\u7ebf\u7f06\u201d\u662f\u4ec0\u4e48\uff1aJSON-RPC + \u4e24\u79cd\u4f20\u8f93<\/h4>\n\n\n\n<p>MCP \u7684\u6838\u5fc3\u662f\uff1a<strong>AI \u5e94\u7528\uff08MCP Client\uff09\u548c\u4f60\u7684\u7cfb\u7edf\u9002\u914d\u5668\uff08MCP Server\uff09<\/strong>\u7528 <strong>JSON-RPC 2.0<\/strong> \u8bf4\u540c\u4e00\u79cd\u201c\u5de5\u5177\u8bed\u8a00\u201d\u3002\u534f\u8bae\u672c\u8eab\u660e\u786e\u4e86\uff1a\u6d88\u606f\u7528 JSON-RPC \u7f16\u7801\u3001UTF-8\uff1b\u5e76\u5b9a\u4e49\u4e86\u6807\u51c6\u4f20\u8f93\u65b9\u5f0f\u3002 <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-06-18\/basic?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol+1<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u4e24\u79cd\u6700\u5e38\u89c1\u7684\u4f20\u8f93\u65b9\u5f0f<\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>stdio\uff08\u672c\u5730\u8fdb\u7a0b\u7ba1\u9053\uff09<\/strong>\uff1aClient \u542f\u52a8\u4e00\u4e2a\u672c\u5730 MCP Server \u8fdb\u7a0b\uff0c\u901a\u8fc7 stdin\/stdout \u4ea4\u6362 JSON-RPC\u3002\u9002\u5408\u201c\u672c\u673a\u5de5\u5177\u3001IDE\u3001\u684c\u9762\u5ba2\u6237\u7aef\u201d\u3002 <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-06-18\/basic\/transports?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol<\/a><\/li>\n\n\n\n<li><strong>Streamable HTTP\uff08\u670d\u52a1\u5316\/\u8fdc\u7a0b\uff09<\/strong>\uff1aMCP Server \u4f5c\u4e3a\u72ec\u7acb\u670d\u52a1\u8dd1\u5728\u67d0\u4e2a\u5730\u5740\uff0c\u901a\u8fc7 HTTP POST\/GET \u901a\u4fe1\uff0c\u5e76\u652f\u6301\u6d41\u5f0f\/\u901a\u77e5\u7b49\u66f4\u590d\u6742\u4ea4\u4e92\uff1b\u5b83\u662f\u5f53\u524d\u89c4\u8303\u4e2d\u7684\u6807\u51c6\u673a\u5236\u4e4b\u4e00\uff08\u5e76\u66ff\u4ee3\u4e86\u65e9\u671f\u201cHTTP+SSE\u201d\u7684\u601d\u8def\uff09\u3002 <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-06-18\/basic\/transports?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Auth0+3 Model Context Protocol+3 Model Context Protocol+3<\/a><\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>OpenAI \u8fd9\u8fb9\u4e5f\u5df2\u7ecf\u628a MCP \u4f5c\u4e3a\u201c\u628a ChatGPT\/Agents \u63a5\u5165\u5916\u90e8\u5de5\u5177\u4e0e\u8d44\u6e90\u201d\u7684\u5b98\u65b9\u8def\u5f84\u4e4b\u4e00\uff0c\u6587\u6863\u91cc\u8fd8\u4e13\u95e8\u5f3a\u8c03\u4e86\u81ea\u5b9a\u4e49 MCP \u670d\u52a1\u5668\u7684\u5b89\u5168\u98ce\u9669\uff08\u63d0\u793a\u6ce8\u5165\u3001token \u98ce\u9669\u7b49\uff09\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/mcp?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform+2 OpenAI GitHub+2<\/a><\/p>\n<\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\">2) \u8fde\u63a5\u5efa\u7acb\u7684\u201c\u63e1\u624b\u7ec6\u8282\u201d\uff1ainitialize \u2192 initialized<\/h4>\n\n\n\n<p>MCP \u4e0d\u662f\u4e00\u4e0a\u6765\u5c31\u4e71\u53d1 tools\/list\u3002\u5b83\u6709\u660e\u786e\u751f\u547d\u5468\u671f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Client \u53d1 <code>initialize<\/code>\uff08\u5e26\u534f\u8bae\u7248\u672c\u3001\u5ba2\u6237\u7aef\u4fe1\u606f\u3001\u81ea\u5df1\u652f\u6301\u54ea\u4e9b\u80fd\u529b\u7b49\uff09<\/li>\n\n\n\n<li>Server \u56de <code>initialize<\/code> response\uff08\u58f0\u660e\u5b83\u63d0\u4f9b\u54ea\u4e9b\u80fd\u529b\uff1atools\/resources\/prompts\u2026\uff09<\/li>\n\n\n\n<li>Client \u5fc5\u987b\u518d\u53d1\u4e00\u4e2a <code>notifications\/initialized<\/code>\uff0c\u8868\u793a\u63e1\u624b\u5b8c\u6210\uff0c\u8fdb\u5165\u6b63\u5e38\u5de5\u4f5c\u6001 <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-03-26\/basic\/lifecycle?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol+2 MCP Protocol+2<\/a><\/li>\n<\/ol>\n\n\n\n<p>\u4f60\u80fd\u5728\u6293\u5305\/\u65e5\u5fd7\u91cc\u770b\u5230\u7c7b\u4f3c\u8fd9\u6837\u7684\u201c\u5c31\u7eea\u901a\u77e5\u201d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"jsonrpc\": \"2.0\",\n  \"method\": \"notifications\/initialized\"\n}\n<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-03-26\/basic\/lifecycle?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3) \u573a\u666f A\uff1a\u7528 stdio \u628a AI \u63a5\u5230\u201c\u672c\u5730\u65e5\u5fd7\/\u6587\u4ef6\/\u914d\u7f6e\u201d\u7cfb\u7edf\uff08\u6700\u5bb9\u6613\u843d\u5730\uff09<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u76ee\u6807<\/h5>\n\n\n\n<p>\u7528\u6237\u95ee AI\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u201c\u628a\u4eca\u5929\u4ea7\u7ebf PLC \u7684\u62a5\u8b66\u65e5\u5fd7\u6309\u8bbe\u5907\u6c47\u603b\uff0c\u5e76\u6307\u51fa\u6700\u53ef\u80fd\u7684\u524d\u4e09\u4e2a\u539f\u56e0\u3002\u201d<\/p>\n<\/blockquote>\n\n\n\n<h5 class=\"wp-block-heading\">\u4f60\u505a\u7684 MCP Server\uff08\u672c\u5730\u8fdb\u7a0b\uff09<\/h5>\n\n\n\n<p>\u4f60\u5199\u4e00\u4e2a <code>plc-log-mcp<\/code> \u5c0f\u670d\u52a1\uff0c\u66b4\u9732\u4e24\u4e2a <strong>Tools<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>logs.search<\/code>\uff1a\u6309\u65f6\u95f4\/\u5173\u952e\u5b57\u67e5\u65e5\u5fd7<\/li>\n\n\n\n<li><code>logs.summarize_by_asset<\/code>\uff1a\u6309\u8bbe\u5907\u7f16\u53f7\u805a\u5408\u7edf\u8ba1\uff08\u8fd4\u56de\u7ed3\u6784\u5316 JSON\uff09<\/li>\n<\/ul>\n\n\n\n<p>MCP \u91cc <strong>Tool \u7684\u5173\u952e<\/strong>\u4e0d\u662f\u201c\u51fd\u6570\u540d\u201d\uff0c\u800c\u662f\u5b83\u5fc5\u987b\u5e26<strong>\u53c2\u6570 schema<\/strong>\uff08\u8ba9\u6a21\u578b\u77e5\u9053\u600e\u4e48\u586b\u53c2\u6570\uff09\uff0c\u4ee5\u53ca\u8fd4\u56de\u5185\u5bb9\u7684\u7ed3\u6784\u7ea6\u5b9a\u3002\u89c4\u8303\u91cc\u660e\u786e\uff1aServer \u53ef\u4ee5\u66b4\u9732 tools\uff0c\u5de5\u5177\u6709\u540d\u5b57\u548c schema\u3002 <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-06-18\/server\/tools?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol<\/a><\/p>\n\n\n\n<p>Client \u4fa7\u8c03\u7528\u4e00\u822c\u662f\u56fa\u5b9a\u5957\u8def\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>tools\/list<\/code>\uff1a\u53d1\u73b0\u5de5\u5177<\/li>\n\n\n\n<li><code>tools\/call<\/code>\uff1a\u5e26\u53c2\u6570\u8c03\u7528\u5de5\u5177<br>\uff08\u6709\u4e9b Client \u4f1a\u7f13\u5b58 tools \u5217\u8868\uff1b\u5de5\u5177\u53d8\u52a8\u65f6 Server \u8fd8\u53ef\u4ee5\u901a\u77e5 list_changed\uff0c\u8fd9\u5c5e\u4e8e\u201c\u66f4\u9ad8\u7ea7\u7684\u52a8\u6001\u80fd\u529b\u201d\uff09 <a href=\"https:\/\/github.com\/orgs\/modelcontextprotocol\/discussions\/76?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub+1<\/a><\/li>\n<\/ol>\n\n\n\n<p><strong>tools\/list\uff08\u793a\u610f\uff09<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 2,\n  \"method\": \"tools\/list\"\n}\n<\/code><\/pre>\n\n\n\n<p><strong>tools\/call\uff08\u793a\u610f\uff09<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 3,\n  \"method\": \"tools\/call\",\n  \"params\": {\n    \"name\": \"logs.search\",\n    \"arguments\": {\n      \"start\": \"2025-12-30T00:00:00+08:00\",\n      \"end\": \"2025-12-30T23:59:59+08:00\",\n      \"keyword\": \"ALARM\"\n    }\n  }\n}\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u7c7b stdio \u670d\u52a1\u5668\u7684\u4ef7\u503c\uff1a<strong>\u4f60\u4e0d\u9700\u8981\u628a\u65e5\u5fd7\u7cfb\u7edf\u201c\u5f00\u653e\u4e0a\u7f51\u201d<\/strong>\uff0cAI\/IDE \u5728\u672c\u673a\u5c31\u80fd\u67e5\u6587\u4ef6\u3001\u8bfb SQLite\u3001\u626b\u76ee\u5f55\u3001\u89e3\u6790 CSV\uff0c\u7136\u540e\u628a\u7ed3\u679c\u4ee5\u7ed3\u6784\u5316\u65b9\u5f0f\u5582\u7ed9\u6a21\u578b\u751f\u6210\u603b\u7ed3\u3002<\/p>\n<\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\">4) \u573a\u666f B\uff1a\u7528 Streamable HTTP \u628a AI \u63a5\u5230\u201cSCADA\/\u65f6\u5e8f\u5e93\/CMMS \u5de5\u5355\u7cfb\u7edf\u201d\uff08\u751f\u4ea7\u7ea7\uff09<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u76ee\u6807<\/h5>\n\n\n\n<p>\u7528\u6237\u5bf9 AI \u8bf4\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u201c\u627e\u51fa\u8fc7\u53bb 2 \u5c0f\u65f6\u632f\u52a8 RMS \u8d85\u9608\u503c\u7684\u8bbe\u5907\uff0c\u7ed9\u6bcf\u53f0\u8bbe\u5907\u5728 CMMS \u91cc\u5efa\u5de5\u5355\uff0c\u5e76\u9644\u4e0a\u8d8b\u52bf\u622a\u56fe\u94fe\u63a5\u3002\u201d<\/p>\n<\/blockquote>\n\n\n\n<p>\u8fd9\u901a\u5e38\u9700\u8981\u4e24\u4e2a MCP Servers\uff08\u6216\u8005\u4e00\u4e2a Server \u91cc\u66b4\u9732\u4e24\u7c7b\u5de5\u5177\uff09\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>tsdb-mcp<\/code>\uff08\u8bfb\u65f6\u5e8f\u6570\u636e\uff09\uff1a<code>metrics.query<\/code>, <code>metrics.topN_anomalies<\/code><\/li>\n\n\n\n<li><code>cmms-mcp<\/code>\uff08\u5199\u5de5\u5355\uff09\uff1a<code>workorder.create<\/code>, <code>workorder.attach_link<\/code><\/li>\n<\/ul>\n\n\n\n<p><strong>\u4e3a\u4ec0\u4e48\u7528 Streamable HTTP\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u591a\u5ba2\u6237\u7aef\u5e76\u53d1\uff08\u591a\u4e2a AI \u4f1a\u8bdd\u3001\u591a\u4e2a\u5de5\u7a0b\u5e08\uff09<\/li>\n\n\n\n<li>\u9700\u8981\u7edf\u4e00\u9274\u6743\u3001\u5ba1\u8ba1\u3001\u901f\u7387\u9650\u5236<\/li>\n\n\n\n<li>\u66f4\u9002\u5408\u90e8\u7f72\u5728\u5185\u7f51\/\u96f6\u4fe1\u4efb\u7f51\u5173\u540e\u9762<br>Streamable HTTP \u662f MCP \u7684\u6807\u51c6\u4f20\u8f93\u4e4b\u4e00\u3002 <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-06-18\/basic\/transports?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol+1<\/a><\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">\u5173\u952e\u6280\u672f\u7ec6\u8282 1\uff1a\u9274\u6743\/\u6388\u6743<\/h5>\n\n\n\n<p>HTTP \u5f62\u6001\u5929\u7136\u8981\u505a auth\u3002MCP \u89c4\u8303\u628a\u201cAuthorization\u201d\u4f5c\u4e3a\u534f\u8bae\u5c42\u7684\u4e00\u90e8\u5206\uff1bOpenAI \u4fa7\u6587\u6863\u4e5f\u5f3a\u8c03\u81ea\u5b9a\u4e49 MCP server \u7684\u5b89\u5168\u4e0e\u98ce\u9669\u3002 <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-06-18\/basic?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol+2 OpenAI Platform+2<\/a><\/p>\n\n\n\n<p>\u843d\u5730\u65f6\u5e38\u89c1\u505a\u6cd5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Bearer Token \/ OAuth<\/strong>\uff08\u8c01\u80fd\u8fde\u3001\u8fde\u4e0a\u80fd\u5e72\u4ec0\u4e48\uff09<\/li>\n\n\n\n<li><strong>\u5de5\u5177\u7ea7\u6743\u9650<\/strong>\uff1a\u540c\u4e00\u4e2a server \u91cc\uff0c<code>metrics.query<\/code> \u53ef\u80fd\u6240\u6709\u4eba\u53ef\u7528\uff0c\u4f46 <code>workorder.create<\/code> \u9700\u8981\u66f4\u9ad8\u6743\u9650<\/li>\n\n\n\n<li><strong>\u5ba1\u8ba1\u65e5\u5fd7<\/strong>\uff1a\u8bb0\u5f55\u6bcf\u6b21 tools\/call \u7684\u8bf7\u6c42\u53c2\u6570\u6458\u8981\u3001\u64cd\u4f5c\u8005\u3001\u8fd4\u56de\u72b6\u6001<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">\u5173\u952e\u6280\u672f\u7ec6\u8282 2\uff1a\u5f3a\u7ea6\u675f\u201c\u5199\u64cd\u4f5c\u201d<\/h5>\n\n\n\n<p>\u5de5\u4e1a\u573a\u666f\u6700\u6015\u6a21\u578b\u4e71\u5199\u70b9\u4f4d\/\u4e71\u4e0b\u53d1\u6307\u4ee4\u3002MCP \u8fd9\u8fb9\u5efa\u8bae\u4f60\u628a\u201c\u80fd\u505a\u4ec0\u4e48\u201d\u53d8\u6210<strong>\u660e\u786e\u5de5\u5177<\/strong>\uff0c\u5e76\u628a\u53c2\u6570 schema \u8bbe\u8ba1\u5f97\u8db3\u591f\u786c\uff1a<\/p>\n\n\n\n<p>\u4f8b\u5982 <code>workorder.create<\/code> \u53c2\u6570 schema \u5f3a\u5236\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>asset_id<\/code> \u5fc5\u586b\u4e14\u5fc5\u987b\u5339\u914d\u8bbe\u5907\u53f0\u8d26\u683c\u5f0f<\/li>\n\n\n\n<li><code>priority<\/code> \u53ea\u80fd\u662f\u679a\u4e3e<\/li>\n\n\n\n<li><code>description<\/code> \u9650\u957f\u5e76\u505a\u6ce8\u5165\u6e05\u6d17\uff08\u89c1\u4e0b\u4e00\u4e2a\u5b89\u5168\u70b9\uff09<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">\u5173\u952e\u6280\u672f\u7ec6\u8282 3\uff1a\u63d0\u793a\u6ce8\u5165\u4e0e\u201c\u5de5\u5177\u8f93\u51fa\u4e0d\u53ef\u4fe1\u201d<\/h5>\n\n\n\n<p>OpenAI \u6587\u6863\u660e\u786e\u70b9\u540d\u4e86\uff1a\u6076\u610f\u8f93\u5165\u53ef\u80fd\u901a\u8fc7\u5de5\u5177\/\u5de5\u5355\/\u90ae\u4ef6\u5185\u5bb9\u201c\u6ce8\u5165\u201d\u6a21\u578b\uff0c\u8ba9\u6a21\u578b\u6cc4\u9732 token \u6216\u6267\u884c\u4e0d\u8be5\u505a\u7684\u4e8b\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/mcp?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><br>\u6240\u4ee5\u4f60\u8981\u505a\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u628a\u5916\u90e8\u6587\u672c\u5f53\u4e0d\u53ef\u4fe1\u6570\u636e<\/strong>\uff1a\u5de5\u5177\u8fd4\u56de\u91cc\u533a\u5206 <code>data<\/code>\uff08\u7ed3\u6784\u5316\uff09\u548c <code>raw_text<\/code>\uff08\u53ea\u7ed9\u4eba\u770b\u6216\u4e25\u683c\u5f15\u7528\uff09<\/li>\n\n\n\n<li><strong>\u5bf9\u201c\u5199\u64cd\u4f5c\u5de5\u5177\u201d\u52a0\u4eba\u5de5\u5ba1\u6279\/\u4e8c\u6b21\u786e\u8ba4<\/strong>\uff08\u5f88\u591a Agents SDK \u652f\u6301\u201c\u53ef\u9009\u5ba1\u6279\u6d41\u201d\u8fd9\u7c7b\u6a21\u5f0f\uff09 <a href=\"https:\/\/openai.github.io\/openai-agents-python\/mcp\/?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI GitHub<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">5) \u573a\u666f C\uff1aMCP \u7684\u201c\u8d44\u6e90 Resources + \u63d0\u793a Prompts\u201d\u600e\u4e48\u7528\u4e8e\u4f01\u4e1a\u77e5\u8bc6\/\u6d41\u7a0b\u56fa\u5316<\/h4>\n\n\n\n<p>\u5f88\u591a\u4eba\u53ea\u628a MCP \u5f53\u201ctool calling\u201d\uff0c\u4f46 MCP \u89c4\u8303\u91cc\uff0cServer \u8fd8\u80fd\u66b4\u9732\uff1a<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Resources\uff1a\u628a\u201c\u53ef\u8bfb\u4e0a\u4e0b\u6587\u201d\u6807\u51c6\u5316<\/h5>\n\n\n\n<p>\u6bd4\u5982\u66b4\u9732\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>resource:\/\/manuals\/pump_A12<\/code>\uff08\u8bbe\u5907\u8bf4\u660e\u4e66\u7247\u6bb5\uff09<\/li>\n\n\n\n<li><code>resource:\/\/sop\/vibration_alarm_response<\/code>\uff08\u632f\u52a8\u544a\u8b66 SOP\uff09<br>Client \u53ef <code>resources\/list<\/code> \/ <code>resources\/read<\/code> \u83b7\u53d6\u5185\u5bb9\uff1b\u8d44\u6e90\u53d8\u5316\u8fd8\u53ef\u4ee5\u901a\u8fc7\u901a\u77e5\u673a\u5236\u63a8\u9001\uff08list_changed\u3001updated\u3001subscribe \u7b49\uff09\u3002 <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-06-18\/server\/resources?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol+2 innoq.com+2<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u5728\u5de5\u4e1a\u91cc\u5f88\u5b9e\u7528\uff1a<strong>\u8ba9 AI \u5f15\u7528\u7684\u662f\u201c\u53d7\u63a7\u77e5\u8bc6\u6e90\u201d\uff0c\u800c\u4e0d\u662f\u8ba9\u6a21\u578b\u51ed\u7a7a\u7f16 SOP<\/strong>\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Prompts\uff1a\u628a\u201c\u6807\u51c6\u4f5c\u4e1a\u63d0\u793a\u6a21\u677f\u201d\u53d8\u6210\u53ef\u53d1\u73b0\u7684\u8d44\u4ea7<\/h5>\n\n\n\n<p>\u4f8b\u5982\u5728 <code>prompts\/list<\/code> \u91cc\u66b4\u9732\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>prompt:\/\/shift_handover_report<\/code>\uff08\u4ea4\u63a5\u73ed\u62a5\u544a\u6a21\u677f\uff09<\/li>\n\n\n\n<li><code>prompt:\/\/rca_vibration<\/code>\uff08\u632f\u52a8\u95ee\u9898 RCA \u6a21\u677f\uff09<br>\u5ba2\u6237\u7aef\u53ef\u4ee5\u628a\u8fd9\u4e9b prompt \u4f5c\u4e3a\u201c\u53ef\u9009\u5de5\u4f5c\u6d41\u201d\uff0c\u8ba9\u7528\u6237\u70b9\u9009\u6267\u884c\u3002 <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-06-18\/server\/prompts?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol+1<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">6) \u4e00\u53e5\u8bdd\u603b\u7ed3\u4f60\u771f\u6b63\u8981\u5b9e\u73b0\u7684\u201c\u5de5\u7a0b\u95ed\u73af\u201d<\/h4>\n\n\n\n<p>\u7528 MCP \u8fde\u63a5 AI \u4e0e\u5e94\u7528\u7cfb\u7edf\uff0c\u672c\u8d28\u662f\u5728\u505a\u4e09\u4ef6\u4e8b\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u628a\u7cfb\u7edf\u80fd\u529b\u201c\u5de5\u5177\u5316\u201d<\/strong>\uff08tools + schema\uff09\uff0c\u8ba9 AI \u53ea\u80fd\u5728\u4f60\u5141\u8bb8\u7684\u8fb9\u754c\u5185\u64cd\u4f5c <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-06-18\/server\/tools?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol<\/a><\/li>\n\n\n\n<li><strong>\u628a\u6570\u636e\u4e0e\u6d41\u7a0b\u201c\u4e0a\u4e0b\u6587\u5316\u201d<\/strong>\uff08resources \/ prompts\uff09\uff0c\u8ba9 AI \u7684\u4f9d\u636e\u6765\u81ea\u53d7\u63a7\u6765\u6e90 <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-06-18\/server\/resources?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol+1<\/a><\/li>\n\n\n\n<li><strong>\u628a\u751f\u4ea7\u5b89\u5168\u201c\u534f\u8bae\u5316\u201d<\/strong>\uff08\u751f\u547d\u5468\u671f\u63e1\u624b + HTTP \u9274\u6743 + \u5ba1\u6279\/\u5ba1\u8ba1 + \u6297\u6ce8\u5165\uff09\uff0c\u8ba9\u5b83\u53ef\u4e0a\u7ebf\u53ef\u6cbb\u7406 <a href=\"https:\/\/modelcontextprotocol.io\/specification\/2025-03-26\/basic\/lifecycle?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol+2 OpenAI Platform+2<\/a><\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading has-text-align-center\"><strong>\u5728 ChatGPT \u91cc\u914d\u7f6e MCP Server<\/strong><\/h3>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e00\u3001\u5148\u9009\u5bf9\u6a21\u5f0f\uff1a\u4f60\u60f3\u8ba9 ChatGPT \u505a\u4ec0\u4e48\uff1f<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">A. \u5728\u804a\u5929\u91cc\u76f4\u63a5\u8c03\u7528\u4f60\u7cfb\u7edf\u7684\u5de5\u5177\uff08\u8bfb\/\u5199\u90fd\u53ef\u80fd\uff09<\/h5>\n\n\n\n<p>\u7528 <strong>ChatGPT Developer mode\uff08\u5f00\u53d1\u8005\u6a21\u5f0f\uff09<\/strong>\uff1a\u5b83\u63d0\u4f9b\u201c\u5b8c\u6574 MCP client \u652f\u6301\u201d\uff0c\u80fd\u8ba9 ChatGPT \u8c03\u7528\u4f60 MCP Server \u66b4\u9732\u7684 tools\uff08\u5305\u62ec\u5199\u64cd\u4f5c\uff09\uff0c\u4f46\u5b98\u65b9\u4e5f\u5f3a\u8c03\u5b83\u201c\u5f3a\u5927\u4f46\u5371\u9669\u201d\uff0c\u8981\u9632\u63d0\u793a\u6ce8\u5165\u3001\u5199\u9519\u6570\u636e\u7b49\u98ce\u9669\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">B. \u8ba9 ChatGPT \u628a\u4f60\u6570\u636e\u5f53\u201c\u8fde\u63a5\u5668\/\u68c0\u7d22\u6e90\u201d\uff0c\u7528\u4e8e Chat search \/ Deep research<\/h5>\n\n\n\n<p>\u6309 OpenAI \u7684\u201c\u8fde\u63a5\u5668\/\u6df1\u5ea6\u7814\u7a76\u201d\u89c4\u8303\u6765\u505a\uff1a\u4f60\u7684 MCP Server \u9700\u8981\u5b9e\u73b0 <strong><code>search<\/code><\/strong> \u548c <strong><code>fetch<\/code><\/strong> \u4e24\u4e2a\u5de5\u5177\uff0c\u6765\u7ed9 ChatGPT \u8fd4\u56de\u53ef\u5f15\u7528\u7684\u68c0\u7d22\u7ed3\u679c\u4e0e\u539f\u6587\u7247\u6bb5\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/mcp\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e8c\u3001ChatGPT \u4fa7\u600e\u4e48\u914d\uff1aDeveloper mode + \u521b\u5efa App\uff08\u6700\u5e38\u89c1\u505a\u6cd5\uff09<\/h4>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8fd9\u90e8\u5206\u662f\u201cChatGPT \u4e0e MCP Server \u8fde\u63a5\u201d\u7684\u6838\u5fc3\u914d\u7f6e\u3002<\/p>\n<\/blockquote>\n\n\n\n<h5 class=\"wp-block-heading\">0\uff09\u51c6\u5907\u6761\u4ef6\uff08\u5f88\u5173\u952e\uff09<\/h5>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u4f60\u7684 MCP Server \u5fc5\u987b\u662f\u201c\u8fdc\u7a0b\u670d\u52a1\u201d<\/strong>\uff08ChatGPT Developer mode \u521b\u5efa app \u65f6\uff0c\u652f\u6301\u7684\u534f\u8bae\u662f <strong>SSE<\/strong> \u4e0e <strong>streaming HTTP<\/strong> \/ <strong>Streamable HTTP<\/strong>\uff09\u3002\u8fd9\u610f\u5473\u7740\u4f60\u8981\u63d0\u4f9b\u4e00\u4e2a\u53ef\u88ab ChatGPT \u8bbf\u95ee\u7684 HTTPS \u7aef\u70b9\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/li>\n\n\n\n<li>\u4f60\u8981\u51b3\u5b9a\u8ba4\u8bc1\u65b9\u5f0f\uff1a<strong>OAuth \/ \u65e0\u8ba4\u8bc1 \/ \u6df7\u5408\u8ba4\u8bc1<\/strong>\uff08Mixed\uff09\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/li>\n<\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u8bf4\u660e\uff1a\u5982\u679c\u4f60\u6253\u7b97\u7528\u201c\u672c\u5730 stdio \u5b50\u8fdb\u7a0b\u201d\u90a3\u79cd MCP\uff08\u5728\u4f60\u7535\u8111\u4e0a\u8d77\u4e00\u4e2a\u8fdb\u7a0b\uff0c\u901a\u8fc7 stdin\/stdout \u901a\u4fe1\uff09\uff0c\u8fd9\u66f4\u50cf\u662f <strong>Codex CLI\/\u4f60\u81ea\u5df1\u7684\u5ba2\u6237\u7aef<\/strong>\u7684\u80fd\u529b\u8303\u56f4\uff1bChatGPT developer mode \u7684\u201c\u521b\u5efa app\u201d\u6587\u6863\u91cc\u5217\u7684\u5c31\u662f SSE\/streaming HTTP \u8fd9\u4e24\u7c7b\u8fdc\u7a0b\u534f\u8bae\u3002<a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform+1<\/a><\/p>\n<\/blockquote>\n\n\n\n<h5 class=\"wp-block-heading\">1\uff09\u6253\u5f00 Developer mode \u5f00\u5173<\/h5>\n\n\n\n<p><strong>Pro\/Plus\/Business\/Enterprise\/Edu<\/strong>\uff08Beta\uff09\u5728\u7f51\u9875\u7aef\u53ef\u7528\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform+1<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5165\u53e3 1\uff08\u5b98\u65b9\u5199\u6cd5\u4e4b\u4e00\uff09\uff1a<strong>Settings \u2192 Apps \u2192 Advanced settings \u2192 Developer mode<\/strong> <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/li>\n\n\n\n<li>\u5165\u53e3 2\uff08\u53e6\u4e00\u5904\u5b98\u65b9\u8bf4\u660e\u63d0\u5230\uff09\uff1a<strong>Settings \u2192 Connectors \u2192 Advanced \u2192 Developer mode<\/strong> <a href=\"https:\/\/platform.openai.com\/docs\/mcp\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u5982\u679c\u4f60\u662f <strong>Workspace\uff08Business\/Enterprise\/Edu\uff09<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u53ef\u80fd\u9700\u8981\u7ba1\u7406\u5458\u5148\u5728 <strong>Workspace Settings \u2192 Permissions &amp; Roles \u2192 Connected Data \u2192 Developer mode \/ Create custom MCP connectors<\/strong> \u6253\u5f00\u6743\u9650\u3002 <a href=\"https:\/\/help.openai.com\/en\/articles\/12584461-developer-mode-apps-and-full-mcp-connectors-in-chatgpt-beta\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Help Center<\/a><\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">2\uff09\u5728 ChatGPT \u91cc\u521b\u5efa\u4e00\u4e2a\u201cApp\u201d\uff08\u6307\u5411\u4f60\u7684 MCP Server\uff09<\/h5>\n\n\n\n<p>\u5728 Developer mode \u5f00\u542f\u540e\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6253\u5f00 <strong>ChatGPT Apps settings\uff08\u8bbe\u7f6e\u91cc\u7684 Apps \u9875\u9762\uff09<\/strong><\/li>\n\n\n\n<li>\u5728 Advanced settings \u65c1\u8fb9\u70b9 <strong>Create app<\/strong>\uff08\u53ea\u6709 Developer mode \u5f00\u4e86\u624d\u4f1a\u663e\u793a\uff09<\/li>\n\n\n\n<li>\u586b\u4f60\u7684 MCP Server \u4fe1\u606f\uff0c\u7136\u540e\u521b\u5efa <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform+1<\/a><\/li>\n<\/ol>\n\n\n\n<p>\u521b\u5efa\u65f6\u4f60\u901a\u5e38\u4f1a\u770b\u5230\/\u9700\u8981\u586b\u5199\u8fd9\u4e9b\u5b57\u6bb5\uff08\u4e0d\u540c\u7248\u672c UI \u5b57\u6bb5\u540d\u53ef\u80fd\u7565\u6709\u5dee\u5f02\uff0c\u4f46\u542b\u4e49\u76f8\u540c\uff09\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Endpoint \/ URL<\/strong>\uff1a\u4f60\u7684 MCP Server \u57fa\u5740\uff08SSE \u6216 streamable\/streaming HTTP\uff09<\/li>\n\n\n\n<li><strong>Protocol<\/strong>\uff1aSSE \u6216 streaming HTTP\uff08\u6587\u6863\u5199\u7684\u662f\u8fd9\u4e24\u4e2a\uff09 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/li>\n\n\n\n<li><strong>Authentication<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li><strong>OAuth<\/strong><\/li>\n\n\n\n<li><strong>No Authentication<\/strong><\/li>\n\n\n\n<li><strong>Mixed Authentication<\/strong>\uff08\u201c\u521d\u59cb\u5316\u4e0e\u5217\u5de5\u5177\u65e0\u9700\u8ba4\u8bc1\uff1b\u5177\u4f53 tool \u662f\u5426\u8d70 OAuth\/\u65e0\u8ba4\u8bc1\uff0c\u53d6\u51b3\u4e8e tool \u5143\u6570\u636e\u91cc\u7684 security scheme\u201d\uff09 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>OAuth \u7684\u7ec6\u8282\uff08\u5e38\u89c1\u8e29\u5751\u70b9\uff09\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>OpenAI \u63d0\u9192\u4f60\u786e\u8ba4 OAuth\/OIDC \u662f\u5426\u4f1a\u53d1 <strong>refresh token<\/strong>\uff1bOIDC \u573a\u666f\u5e38\u9700\u8981 <code>offline_access<\/code> scope \u624d\u80fd\u62ff\u5230 refresh token\uff0c\u4ece\u800c\u4fdd\u6301\u957f\u671f\u8fde\u63a5\u3002 <a href=\"https:\/\/help.openai.com\/en\/articles\/12584461-developer-mode-apps-and-full-mcp-connectors-in-chatgpt-beta\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Help Center<\/a><\/li>\n\n\n\n<li>Developer mode \u6587\u6863\u8fd8\u63d0\u5230\uff1aOAuth \u5982\u679c\u4f60\u63d0\u4f9b\u201c\u9759\u6001 client \u51ed\u8bc1\u201d\u5c31\u7528\u9759\u6001\u7684\uff0c\u5426\u5219\u4f1a\u7528\u52a8\u6001 client \u6ce8\u518c\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u521b\u5efa\u540e\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f60\u80fd\u5728 app \u8bbe\u7f6e\u91cc\u770b\u5230\u5b83\u4ee5 <strong>Drafts<\/strong> \u7b49\u5f62\u5f0f\u51fa\u73b0\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728 app \u8be6\u60c5\u9875\u91cc <strong>toggle \u67d0\u4e9b\u5de5\u5177\u542f\u7528\/\u7981\u7528<\/strong>\u3001\u4ee5\u53ca <strong>refresh<\/strong> \u62c9\u53d6\u6700\u65b0\u5de5\u5177\u63cf\u8ff0\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform+1<\/a><\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">3\uff09\u5728\u5bf9\u8bdd\u91cc\u542f\u7528\u5e76\u4f7f\u7528\u8fd9\u4e2a App<\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u5bf9\u8bdd\u91cc\u9009\u62e9 <strong>Developer mode<\/strong>\uff0c\u5e76\u9009\u62e9\u4f60\u521a\u521b\u5efa\u7684 app\uff1b\u4e4b\u540e ChatGPT \u5c31\u4f1a\u628a\u5b83\u5f53\u201c\u5de5\u5177\u96c6\u201d\u6765\u7528\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/li>\n\n\n\n<li>\u4e00\u822c app\/\u8fde\u63a5\u5668\u5728 ChatGPT \u91cc\u4e5f\u652f\u6301\u901a\u8fc7 <strong>@ \u63d0\u53ca<\/strong> \u6216\u8005\u70b9 <strong>+ \u2192 More<\/strong> \u628a app \u52a0\u5165\u5f53\u524d\u5bf9\u8bdd\u53ef\u7528\u5de5\u5177\uff08UI \u53ef\u80fd\u968f\u7248\u672c\u53d8\u5316\uff09\u3002 <a href=\"https:\/\/help.openai.com\/en\/articles\/11487775-connectors-in-chatgpt\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Help Center<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e09\u3001\u5982\u4f55\u9a8c\u8bc1\u201c\u8fde\u901a\u4e86\u201d\uff1a\u4ece\u534f\u8bae\u5c42\u770b\u5b83\u5e94\u8be5\u53d1\u751f\u4ec0\u4e48<\/h4>\n\n\n\n<p>\u53ea\u8981\u8fde\u901a\uff0cChatGPT\uff08\u4f5c\u4e3a MCP client\uff09\u4f1a\u8d70 MCP \u7684\u5178\u578b\u6d41\u7a0b\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>initialize<\/code> \u63e1\u624b<\/li>\n\n\n\n<li><code>tools\/list<\/code> \u62c9\u53d6\u5de5\u5177\u5217\u8868<\/li>\n\n\n\n<li>\u9700\u8981\u65f6 <code>tools\/call<\/code> \u8c03\u7528\u5de5\u5177<\/li>\n<\/ol>\n\n\n\n<p>MCP \u7684\u67b6\u6784\u8bf4\u660e\u91cc\u5c31\u660e\u786e\u8bb2\u4e86\uff1aclient \u4f1a\u5148 <code>*\/list<\/code> \u505a\u53d1\u73b0\uff08\u4f8b\u5982 <code>tools\/list<\/code>\uff09\uff0c\u518d <code>tools\/call<\/code> \u6267\u884c\u3002 <a href=\"https:\/\/modelcontextprotocol.io\/docs\/learn\/architecture?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noreferrer noopener\">Model Context Protocol+1<\/a><\/p>\n\n\n\n<p>\u4f60\u4e5f\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u65e5\u5fd7\u91cc\u91cd\u70b9\u76ef\u8fd9\u4e24\u7c7b\u8bf7\u6c42\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u662f\u5426\u771f\u7684\u6536\u5230\u4e86 <code>tools\/list<\/code><\/li>\n\n\n\n<li><code>tools\/call<\/code> \u7684\u53c2\u6570\u662f\u5426\u7b26\u5408\u4f60\u58f0\u660e\u7684 schema<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u56db\u3001\u6700\u5e38\u89c1\u7684\u201c\u914d\u7f6e\u5931\u8d25\u201d\u539f\u56e0\u6392\u67e5\u6e05\u5355<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">1\uff09ChatGPT \u4fa7\u663e\u793a\u201cUnable to load tools \/ \u5de5\u5177\u52a0\u8f7d\u5931\u8d25\u201d<\/h5>\n\n\n\n<p>\u4f18\u5148\u68c0\u67e5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>URL \u5199\u9519\u3001\u8def\u5f84\u4e0d\u5bf9\uff08streamable HTTP \u7684 endpoint\/base path \u4e0d\u4e00\u81f4\uff09<\/li>\n\n\n\n<li>\u8ba4\u8bc1\u65b9\u5f0f\u4e0d\u5339\u914d\uff08\u4f60 server \u8981 OAuth\uff0c\u4f46\u4f60\u9009\u4e86 No Auth\uff1b\u6216\u53cd\u8fc7\u6765\uff09<\/li>\n\n\n\n<li>OAuth refresh token \u6ca1\u62ff\u5230\u5bfc\u81f4\u8fc7\u4e00\u6bb5\u65f6\u95f4\u5c31\u65ad\uff08OIDC \u7f3a <code>offline_access<\/code> \u5e38\u89c1\uff09 <a href=\"https:\/\/help.openai.com\/en\/articles\/12584461-developer-mode-apps-and-full-mcp-connectors-in-chatgpt-beta\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Help Center<\/a><\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">2\uff09\u4f60\u4ee5\u4e3a\u8981\u201cBearer Token\u201d\uff0c\u4f46 ChatGPT UI \u6ca1\u5730\u65b9\u586b<\/h5>\n\n\n\n<p>\u5728 ChatGPT Developer mode \u7684\u201cCreate app\u201d\u6587\u6863\u91cc\uff0c\u5217\u51fa\u7684\u8ba4\u8bc1\u7c7b\u578b\u662f <strong>OAuth \/ No Auth \/ Mixed<\/strong>\uff0c\u5e76\u6ca1\u6709\u628a\u201c\u9759\u6001 Bearer Token\u201d\u5f53\u6210\u4e00\u4e2a\u72ec\u7acb\u9009\u9879\u660e\u8bf4\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><br>\u5b9e\u8df5\u4e0a\u901a\u5e38\u7528\u4e24\u79cd\u65b9\u5f0f\u7ed5\u5f00\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8d70 OAuth\uff08\u6700\u6807\u51c6\uff09<\/li>\n\n\n\n<li>Mixed\uff1a\u628a <code>tools\/list<\/code>\/initialize \u653e\u5f00\uff0c\u5177\u4f53\u654f\u611f\u5de5\u5177\u7528 OAuth \u4fdd\u62a4\uff08\u6309 tool \u5143\u6570\u636e\u7684 security scheme \u51b3\u5b9a\uff09 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">3\uff09\u201c\u8fde\u63a5\u5668\/\u6df1\u5ea6\u7814\u7a76\u201d\u7528\u4e0d\u4e86<\/h5>\n\n\n\n<p>\u5982\u679c\u4f60\u662f\u60f3\u8ba9\u5b83\u51fa\u73b0\u5728 ChatGPT \u7684\u201c\u8fde\u63a5\u5668\/\u6df1\u5ea6\u7814\u7a76\u201d\u5de5\u4f5c\u6d41\u91cc\uff0c\u4f60\u7684 MCP Server \u5fc5\u987b\u5b9e\u73b0 <code>search<\/code> \u4e0e <code>fetch<\/code>\uff0c\u5e76\u6309\u89c4\u8303\u8fd4\u56de\u53ef\u5f15\u7528\u7684\u7ed3\u679c\uff08\u542b canonical URL \u7528\u4e8e\u5f15\u7528\uff09\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/mcp\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e94\u3001\u4e00\u4e2a\u63a8\u8350\u7684\u6700\u5c0f\u914d\u7f6e\u7b56\u7565\uff08\u66f4\u5b89\u5168\u3001\u4e5f\u66f4\u5bb9\u6613\u4e00\u6b21\u6210\u529f\uff09<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u5148\u505a\u53ea\u8bfb<\/strong>\uff1a\u5148\u53ea\u66b4\u9732\u67e5\u8be2\u7c7b\u5de5\u5177\uff08\u4f8b\u5982 <code>searchLogs<\/code>, <code>getAssetStatus<\/code>\uff09\uff0c\u907f\u514d\u4e00\u5f00\u59cb\u5c31\u4e0a\u5199\u64cd\u4f5c\u3002Developer mode \u5b98\u65b9\u660e\u786e\u63d0\u9192\u5199\u64cd\u4f5c\u98ce\u9669\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/li>\n\n\n\n<li><strong>\u5148 No Auth \/ Mixed \u8dd1\u901a tools\/list<\/strong>\uff0c\u518d\u52a0 OAuth\uff1a\u8fd9\u6837\u4f60\u80fd\u5feb\u901f\u5206\u6e05\u662f\u201c\u534f\u8bae\/\u8def\u5f84\u95ee\u9898\u201d\u8fd8\u662f\u201c\u9274\u6743\u95ee\u9898\u201d\u3002 <a href=\"https:\/\/platform.openai.com\/docs\/guides\/developer-mode\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI Platform<\/a><\/li>\n\n\n\n<li><strong>\u5de5\u5177 schema \u505a\u5f3a\u7ea6\u675f<\/strong>\uff1a\u679a\u4e3e\u3001\u5fc5\u586b\u5b57\u6bb5\u3001\u957f\u5ea6\u9650\u5236\u3001asset_id \u683c\u5f0f\u6821\u9a8c\u7b49\uff0c\u628a\u201c\u53ef\u63a7\u6027\u201d\u5c3d\u91cf\u524d\u79fb\u5230\u5de5\u5177\u5c42\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>1) MCP \u8fde\u63a5\u7684\u201c\u7ebf\u7f06\u201d\u662f\u4ec0\u4e48\uff1aJSON-RPC + \u4e24\u79cd\u4f20\u8f93 MCP \u7684\u6838\u5fc3\u662f\uff1aAI \u5e94\u7528\uff08MCP Cl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3,8],"tags":[39,101],"class_list":["post-6695","post","type-post","status-publish","format-standard","hentry","category-it","category-tech","tag-ai","tag-old-programmer-in-ai-era"],"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"NullThought","author_link":"https:\/\/nullthought.net\/?author=1"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/nullthought.net\/?cat=3\" rel=\"category\">IT<\/a> <a href=\"https:\/\/nullthought.net\/?cat=8\" rel=\"category\">Tech<\/a>","rttpg_excerpt":"1) MCP \u8fde\u63a5\u7684\u201c\u7ebf\u7f06\u201d\u662f\u4ec0\u4e48\uff1aJSON-RPC + \u4e24\u79cd\u4f20\u8f93 MCP \u7684\u6838\u5fc3\u662f\uff1aAI \u5e94\u7528\uff08MCP Cl&hellip;","_links":{"self":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/6695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6695"}],"version-history":[{"count":3,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/6695\/revisions"}],"predecessor-version":[{"id":6698,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/6695\/revisions\/6698"}],"wp:attachment":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}