{"id":105554,"date":"2026-09-15T16:17:20","date_gmt":"2026-09-15T08:17:20","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/105554.html"},"modified":"2026-09-15T16:17:20","modified_gmt":"2026-09-15T08:17:20","slug":"ai-agent-%e5%b7%a5%e5%85%b7%e5%8f%91%e7%8e%b0%e4%b8%8e%e8%b0%83%e7%94%a8%e6%b5%81%e7%a8%8b-%e8%b7%af%e7%94%b1%e6%b3%a8%e5%86%8c%e8%a1%a8%e4%b8%8e%e5%9b%9b%e9%98%b6%e6%ae%b5%e8%b0%83","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/105554.html","title":{"rendered":"AI Agent \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392"},"content":{"rendered":"<h2>27-\u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392<\/h2>\n<h3>\u7b2c 1 \u7ae0 \u6587\u6863\u5b9a\u4f4d\u4e0e\u9605\u8bfb\u6307\u5f15<\/h3>\n<h4>1.1 \u672c\u7bc7\u5728 55 \u7bc7\u4e2d\u7684\u4f4d\u7f6e<\/h4>\n<p>\u672c\u7cfb\u5217\u56f4\u7ed5\u300aAI Agent \u667a\u80fd\u4f53\u5206\u5c42\u67b6\u6784\u5168\u666f\u56fe\u6df1\u5ea6\u62c6\u89e3\u300b\u5c55\u5f00\u3002\u524d 26 \u7bc7\u5df2\u5b8c\u6210\u8ba4\u77e5\u5c42&#xff08;17\u201324&#xff09;\u4e0e\u8fde\u63a5\u534f\u8bae\u5c42\u5b9a\u4f4d\/\u534f\u8bae\u89c4\u8303&#xff08;25\u201326&#xff09;\u3002\u672c\u7bc7\u627f\u63a5\u6e90\u6587\u6863 6.4 \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b&#xff0c;\u56de\u7b54\u4e00\u4e2a\u627f\u4e0a\u542f\u4e0b\u7684\u5de5\u7a0b\u95ee\u9898&#xff1a;\u534f\u8bae\u89c4\u8303&#xff08;26 \u7bc7&#xff09;\u5df2\u7ecf\u5b9a\u4e49\u4e86 tools\/list\u3001tools\/call \u8fd9\u4e9b\u65b9\u6cd5&#xff0c;\u4f46 Agent \u5728\u5b9e\u9645\u8fd0\u884c\u65f6&#xff0c;\u5230\u5e95\u662f\u600e\u4e48\u4ece&#034;\u4e0d\u77e5\u9053\u6709\u54ea\u4e9b\u5de5\u5177&#034;\u8d70\u5230&#034;\u7cbe\u786e\u8c03\u7528\u67d0\u4e2a\u5de5\u5177\u5e76\u62ff\u5230\u7ed3\u679c&#034;\u7684&#xff1f;<\/p>\n<ul>\n<li>25 \u7bc7&#xff1a;\u8fde\u63a5\u534f\u8bae\u5c42\u4e3a\u4ec0\u4e48\u5b58\u5728&#xff08;N\u00d7M \u2192 N&#043;M \u964d\u7ef4&#xff09;\u3002<\/li>\n<li>26 \u7bc7&#xff1a;MCP \u534f\u8bae\u672c\u8eab\u600e\u4e48\u5b9a\u4e49&#xff08;JSON-RPC\u3001\u4e09\u539f\u8bed\u3001\u4f1a\u8bdd&#xff09;\u3002<\/li>\n<li>\u672c\u7bc7&#xff1a;\u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u7684\u5b8c\u6574\u6d41\u7a0b\u7f16\u6392&#xff08;\u8def\u7531\u6ce8\u518c\u8868 &#043; \u56db\u9636\u6bb5&#xff09;\u3002<\/li>\n<li>28 \u7bc7&#xff1a;\u5178\u578b MCP Server \u8be6\u89e3&#xff08;GitHub\/\u6570\u636e\u5e93\/\u6d4f\u89c8\u5668&#xff09;\u3002<\/li>\n<li>29 \u7bc7&#xff1a;\u4ee3\u7801\u5ba1\u67e5 Agent \u6848\u4f8b &#043; MCP vs \u4f20\u7edf API &#043; \u7b2c 6 \u7ae0\u5c0f\u7ed3\u3002<\/li>\n<\/ul>\n<h4>1.2 \u672c\u7bc7\u8981\u56de\u7b54\u7684\u6838\u5fc3\u95ee\u9898<\/h4>\n<li>Agent \u5982\u4f55&#034;\u77e5\u9053&#034;\u5f53\u524d\u6709\u54ea\u4e9b\u5de5\u5177\u53ef\u7528&#xff1f;&#xff08;\u53d1\u73b0&#xff09;<\/li>\n<li>Agent \u5982\u4f55\u4ece\u591a\u4e2a Server \u4e2d\u627e\u5230&#034;\u8be5\u7528\u54ea\u4e2a Server \u7684\u54ea\u4e2a\u5de5\u5177&#034;&#xff1f;&#xff08;\u8def\u7531&#xff09;<\/li>\n<li>\u8c03\u7528\u4e00\u4e2a\u5de5\u5177\u65f6&#xff0c;\u53c2\u6570\u3001\u7ed3\u679c\u3001\u9519\u8bef\u600e\u4e48\u6d41\u8f6c&#xff1f;&#xff08;\u8c03\u7528&#xff09;<\/li>\n<li>\u591a Server \u573a\u666f\u4e0b&#xff0c;\u8def\u7531\u6ce8\u518c\u8868\u600e\u4e48\u8bbe\u8ba1\u624d\u4e0d\u4e32\u7ebf&#xff1f;&#xff08;\u6ce8\u518c\u8868&#xff09;<\/li>\n<li>\u5de5\u5177\u53d1\u73b0\/\u8c03\u7528\u5728\u771f\u5b9e\u5de5\u7a0b\u4e2d\u4f1a\u8e29\u54ea\u4e9b\u5751\u3001\u600e\u4e48\u89e3&#xff1f;&#xff08;\u6311\u6218&#xff09;<\/li>\n<h4>1.3 \u8bfb\u8005\u5bf9\u8c61\u4e0e\u524d\u7f6e<\/h4>\n<ul>\n<li>\u8bfb\u8005&#xff1a;AI \u5e94\u7528\u67b6\u6784\u5e08\u3001Agent \u5e73\u53f0\u5f00\u53d1\u8005\u3001MCP \u96c6\u6210\u5de5\u7a0b\u5e08\u3001\u5bf9&#034;AI \u5982\u4f55\u8c03\u7528\u5de5\u5177&#034;\u597d\u5947\u7684\u4ea7\u54c1\u7ecf\u7406\u3002<\/li>\n<li>\u524d\u7f6e&#xff1a;\u5efa\u8bae\u5148\u8bfb 25&#xff08;\u8fde\u63a5\u534f\u8bae\u5c42\u5b9a\u4f4d&#xff09;\u4e0e 26&#xff08;MCP \u534f\u8bae\u89c4\u8303&#xff09;&#xff1b;\u672c\u7bc7\u4f1a\u5728\u7528\u5230\u65b9\u6cd5\u540d\u65f6\u76f4\u63a5\u5f15\u7528\u5176\u5b9a\u4e49\u3002<\/li>\n<\/ul>\n<h4>1.4 \u9605\u8bfb\u65b9\u6cd5\u5efa\u8bae<\/h4>\n<ul>\n<li>\u60f3\u5feb\u901f\u7406\u89e3\u9aa8\u67b6&#xff1a;\u8bfb\u7b2c 2\u30013 \u7ae0&#xff08;\u6982\u5ff5 &#043; \u56db\u9636\u6bb5\u5168\u666f&#xff09;\u3002<\/li>\n<li>\u60f3\u843d\u5730\u5b9e\u73b0&#xff1a;\u91cd\u70b9\u8bfb\u7b2c 4\u30015\u30016\u30017 \u7ae0&#xff08;\u6ce8\u518c\u8868\/\u53d1\u73b0\/\u8c03\u7528\/\u591a Server&#xff09;\u3002<\/li>\n<li>\u60f3\u907f\u5751&#xff1a;\u8bfb\u7b2c 8 \u7ae0&#xff08;\u6280\u672f\u6311\u6218&#xff09;\u3002<\/li>\n<li>\u60f3\u76f4\u89c2\u611f\u53d7&#xff1a;\u8bfb\u7b2c 9 \u7ae0&#xff08;\u901a\u4fd7\u6848\u4f8b&#xff09;\u3002<\/li>\n<li>\u60f3\u9a8c\u6536\u6210\u679c&#xff1a;\u8bfb\u7b2c 10 \u7ae0&#xff08;\u5c0f\u7ed3\u3001\u81ea\u6d4b\u3001\u6e05\u5355&#xff09;\u3002<\/li>\n<\/ul>\n<h4>1.6 \u672c\u7bc7\u4e0e\u884c\u52a8\u5c42\u7684\u8854\u63a5<\/h4>\n<p>\u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u662f&#034;\u8ba4\u77e5\u5c42\u51b3\u5b9a\u505a\u4ec0\u4e48\u3001\u8fde\u63a5\u534f\u8bae\u5c42\u8d1f\u8d23\u600e\u4e48\u6267\u884c&#034;\u7684\u63a5\u7f1d\u5904&#xff1a;<\/p>\n<ul>\n<li>\u8ba4\u77e5\u5c42&#xff08;17\u201324 \u7bc7&#xff09;&#xff1a;Agent \u89c4\u5212\u3001\u51b3\u7b56&#xff0c;\u51b3\u5b9a&#034;\u8981\u8c03\u7528\u54ea\u4e2a\u5de5\u5177&#034;\u3002<\/li>\n<li>\u8fde\u63a5\u534f\u8bae\u5c42&#xff08;25\u201329 \u7bc7&#xff09;&#xff1a;\u63d0\u4f9b\u5de5\u5177\u6e05\u5355\u4e0e\u8c03\u7528\u901a\u9053\u3002<\/li>\n<li>\u884c\u52a8\u5c42&#xff08;30 \u7bc7\u8d77&#xff0c;\u6e90\u7b2c 7 \u7ae0&#xff09;&#xff1a;\u5de5\u5177\u80cc\u540e\u7684\u771f\u5b9e\u6267\u884c\u5668&#xff08;API\u3001\u4ee3\u7801\u6c99\u7bb1\u3001\u6570\u636e\u5e93&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u672c\u7bc7\u662f&#034;\u51b3\u7b56\u4e0e\u6267\u884c\u4e4b\u95f4\u7684\u8def\u7531\u5c42&#034;&#xff1a;\u5b83\u4e0d\u66ff Agent \u505a\u51b3\u7b56&#xff0c;\u4e5f\u4e0d\u66ff Server \u5e72\u6d3b&#xff0c;\u53ea\u4fdd\u8bc1&#034;\u51b3\u7b56\u4e86\u5c31\u80fd\u7cbe\u51c6\u3001\u53ef\u9760\u5730\u5230\u8fbe\u6b63\u786e\u7684\u6267\u884c\u8005&#034;\u3002<\/p>\n<h4>1.7 \u672c\u7bc7\u7684\u77e5\u8bc6\u5730\u56fe<\/h4>\n<p>#mermaid-svg-My0EAzqQXw4Ynhtn{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-My0EAzqQXw4Ynhtn .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-My0EAzqQXw4Ynhtn .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-My0EAzqQXw4Ynhtn .error-icon{fill:#552222;}#mermaid-svg-My0EAzqQXw4Ynhtn .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-My0EAzqQXw4Ynhtn .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-My0EAzqQXw4Ynhtn .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-My0EAzqQXw4Ynhtn .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-My0EAzqQXw4Ynhtn .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-My0EAzqQXw4Ynhtn .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-My0EAzqQXw4Ynhtn .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-My0EAzqQXw4Ynhtn .marker{fill:#333333;stroke:#333333;}#mermaid-svg-My0EAzqQXw4Ynhtn .marker.cross{stroke:#333333;}#mermaid-svg-My0EAzqQXw4Ynhtn svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-My0EAzqQXw4Ynhtn p{margin:0;}#mermaid-svg-My0EAzqQXw4Ynhtn .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-My0EAzqQXw4Ynhtn .cluster-label text{fill:#333;}#mermaid-svg-My0EAzqQXw4Ynhtn .cluster-label span{color:#333;}#mermaid-svg-My0EAzqQXw4Ynhtn .cluster-label span p{background-color:transparent;}#mermaid-svg-My0EAzqQXw4Ynhtn .label text,#mermaid-svg-My0EAzqQXw4Ynhtn span{fill:#333;color:#333;}#mermaid-svg-My0EAzqQXw4Ynhtn .node rect,#mermaid-svg-My0EAzqQXw4Ynhtn .node circle,#mermaid-svg-My0EAzqQXw4Ynhtn .node ellipse,#mermaid-svg-My0EAzqQXw4Ynhtn .node polygon,#mermaid-svg-My0EAzqQXw4Ynhtn .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-My0EAzqQXw4Ynhtn .rough-node .label text,#mermaid-svg-My0EAzqQXw4Ynhtn .node .label text,#mermaid-svg-My0EAzqQXw4Ynhtn .image-shape .label,#mermaid-svg-My0EAzqQXw4Ynhtn .icon-shape .label{text-anchor:middle;}#mermaid-svg-My0EAzqQXw4Ynhtn .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-My0EAzqQXw4Ynhtn .rough-node .label,#mermaid-svg-My0EAzqQXw4Ynhtn .node .label,#mermaid-svg-My0EAzqQXw4Ynhtn .image-shape .label,#mermaid-svg-My0EAzqQXw4Ynhtn .icon-shape .label{text-align:center;}#mermaid-svg-My0EAzqQXw4Ynhtn .node.clickable{cursor:pointer;}#mermaid-svg-My0EAzqQXw4Ynhtn .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-My0EAzqQXw4Ynhtn .arrowheadPath{fill:#333333;}#mermaid-svg-My0EAzqQXw4Ynhtn .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-My0EAzqQXw4Ynhtn .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-My0EAzqQXw4Ynhtn .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-My0EAzqQXw4Ynhtn .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-My0EAzqQXw4Ynhtn .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-My0EAzqQXw4Ynhtn .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-My0EAzqQXw4Ynhtn .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-My0EAzqQXw4Ynhtn .cluster text{fill:#333;}#mermaid-svg-My0EAzqQXw4Ynhtn .cluster span{color:#333;}#mermaid-svg-My0EAzqQXw4Ynhtn div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-My0EAzqQXw4Ynhtn .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-My0EAzqQXw4Ynhtn rect.text{fill:none;stroke-width:0;}#mermaid-svg-My0EAzqQXw4Ynhtn .icon-shape,#mermaid-svg-My0EAzqQXw4Ynhtn .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-My0EAzqQXw4Ynhtn .icon-shape p,#mermaid-svg-My0EAzqQXw4Ynhtn .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-My0EAzqQXw4Ynhtn .icon-shape .label rect,#mermaid-svg-My0EAzqQXw4Ynhtn .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-My0EAzqQXw4Ynhtn .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-My0EAzqQXw4Ynhtn .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-My0EAzqQXw4Ynhtn :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7b2c2\u7ae0 \u6838\u5fc3\u6982\u5ff5<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7b2c3\u7ae0 \u56db\u9636\u6bb5\u5168\u666f<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7b2c4\u7ae0 \u6ce8\u518c\u8868<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7b2c5\u7ae0 \u53d1\u73b0\u673a\u5236<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7b2c6\u7ae0 \u8c03\u7528\u673a\u5236<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7b2c7\u7ae0 \u591aServer<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7b2c8\u7ae0 \u6311\u6218<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7b2c9\u7ae0 \u6848\u4f8b<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7b2c10\u7ae0 \u5c0f\u7ed3<\/p>\n<p><\/span><\/p>\n<h4>1.8 \u4e0e\u6e90\u6587\u6863\u7684\u627f\u63a5\u5173\u7cfb<\/h4>\n<p>\u6e90\u6587\u6863 6.4 \u5171 44 \u884c&#xff08;2517\u20132560&#xff09;&#xff0c;\u6838\u5fc3\u662f\u4e00\u5f20\u56db\u9636\u6bb5 sequenceDiagram\u3002\u672c\u7bc7\u5c06\u5176\u62c6\u4e3a&#xff1a;<\/p>\n<table>\n<tr>\u6e90\u5185\u5bb9\u672c\u7bc7\u7ae0\u8282<\/tr>\n<tbody>\n<tr>\n<td>\u9636\u6bb51 \u521d\u59cb\u5316<\/td>\n<td>\u7b2c 3 \u7ae0 3.11\u20133.14<\/td>\n<\/tr>\n<tr>\n<td>\u9636\u6bb52 \u5de5\u5177\u53d1\u73b0<\/td>\n<td>\u7b2c 3 \u7ae0 3.15\u20133.17 &#043; \u7b2c 5 \u7ae0<\/td>\n<\/tr>\n<tr>\n<td>\u9636\u6bb53 \u6ce8\u518c\u8def\u7531<\/td>\n<td>\u7b2c 3 \u7ae0 3.18\u20133.19 &#043; \u7b2c 4 \u7ae0<\/td>\n<\/tr>\n<tr>\n<td>\u9636\u6bb54 \u5de5\u5177\u8c03\u7528<\/td>\n<td>\u7b2c 3 \u7ae0 3.20\u20133.22 &#043; \u7b2c 6 \u7ae0<\/td>\n<\/tr>\n<tr>\n<td>\u591a Server&#xff08;GitHub&#043;Slack&#xff09;<\/td>\n<td>\u7b2c 7 \u7ae0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>1.9 \u9605\u8bfb\u65f6\u957f\u4e0e\u7bc7\u5e45<\/h4>\n<ul>\n<li>\u5168\u7bc7\u7ea6 2500 \u884c\u300130&#043; \u56fe&#xff0c;\u6309 10 \u7ae0\u7ec4\u7ec7\u3002<\/li>\n<li>\u6bcf\u7ae0\u5185\u90e8\u7528\u5927\u91cf ### \u5b50\u8282\u627f\u8f7d\u6df1\u5ea6&#xff0c;\u4e0d\u589e\u52a0\u7ae0\u6570&#xff08;\u7b26\u5408\u7cfb\u5217\u89c4\u8303&#xff09;\u3002<\/li>\n<\/ul>\n<h4>1.10 \u672c\u7ae0\u5c0f\u7ed3&#xff08;\u6269\u5c55\u7248&#xff09;<\/h4>\n<p>\u672c\u7bc7\u662f&#034;\u8fde\u63a5\u534f\u8bae\u5c42&#034;\u7531\u9759\u6001\u89c4\u8303\u8d70\u5411\u52a8\u6001\u8fd0\u884c\u7684\u8f6c\u6298\u70b9&#xff1a;\u534f\u8bae\u5b9a\u4e49\u65b9\u6cd5&#xff0c;\u6d41\u7a0b\u7f16\u6392\u65b9\u6cd5\u3002\u56db\u9636\u6bb5&#xff08;\u521d\u59cb\u5316\u2192\u53d1\u73b0\u2192\u6ce8\u518c\u2192\u8c03\u7528&#xff09;\u4e0e\u8def\u7531\u6ce8\u518c\u8868&#xff0c;\u662f Agent \u5de5\u5177\u80fd\u529b\u7684&#034;\u8fd0\u884c\u65f6\u795e\u7ecf\u7cfb\u7edf&#034;\u3002\u672c\u7bc7\u8854\u63a5\u8ba4\u77e5\u5c42\u51b3\u7b56\u4e0e\u884c\u52a8\u5c42\u6267\u884c&#xff0c;\u662f&#034;\u51b3\u7b56\u4e0e\u6267\u884c\u4e4b\u95f4\u7684\u8def\u7531\u5c42&#034;\u3002<\/p>\n<hr \/>\n<h3>\u7b2c 2 \u7ae0 \u6838\u5fc3\u6982\u5ff5&#xff1a;\u53d1\u73b0\u4e0e\u8c03\u7528\u7684\u672c\u8d28<\/h3>\n<h4>2.1 \u4ece&#034;\u786c\u7f16\u7801&#034;\u5230&#034;\u52a8\u6001\u53d1\u73b0&#034;<\/h4>\n<p>\u4f20\u7edf\u96c6\u6210\u91cc&#xff0c;Agent \u8981\u7528 GitHub \u7684\u641c\u7d22\u529f\u80fd&#xff0c;\u5f00\u53d1\u8005\u5f97\u5148\u5199\u6b7b\u4e00\u6bb5\u9002\u914d\u4ee3\u7801&#xff1a;<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">search_code<\/span><span class=\"token punctuation\">(<\/span>query<span class=\"token punctuation\">,<\/span> repo<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    token <span class=\"token operator\">&#061;<\/span> get_token<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;github&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> github_api<span class=\"token punctuation\">.<\/span>search_code<span class=\"token punctuation\">(<\/span>query<span class=\"token operator\">&#061;<\/span>query<span class=\"token punctuation\">,<\/span> repo<span class=\"token operator\">&#061;<\/span>repo<span class=\"token punctuation\">,<\/span> token<span class=\"token operator\">&#061;<\/span>token<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u6bcf\u4e2a\u5de5\u5177\u3001\u6bcf\u4e2a API \u90fd\u8981\u5199\u4e00\u5957\u8fd9\u6837\u7684\u80f6\u6c34\u4ee3\u7801\u3002\u5de5\u5177\u4e00\u591a&#xff0c;\u4ee3\u7801\u91cc\u5168\u662f N\u00d7M \u7684\u9002\u914d\u7ec4\u5408\u3002MCP \u7684\u51fa\u73b0\u628a&#034;\u5199\u6b7b&#034;\u53d8\u6210&#034;\u8fd0\u884c\u65f6\u53d1\u73b0&#034;&#xff1a;<\/p>\n<p>#mermaid-svg-BZ5xOGzRfBc9yvEw{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-BZ5xOGzRfBc9yvEw .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-BZ5xOGzRfBc9yvEw .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-BZ5xOGzRfBc9yvEw .error-icon{fill:#552222;}#mermaid-svg-BZ5xOGzRfBc9yvEw .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-BZ5xOGzRfBc9yvEw .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-BZ5xOGzRfBc9yvEw .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-BZ5xOGzRfBc9yvEw .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-BZ5xOGzRfBc9yvEw .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-BZ5xOGzRfBc9yvEw .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-BZ5xOGzRfBc9yvEw .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-BZ5xOGzRfBc9yvEw .marker{fill:#333333;stroke:#333333;}#mermaid-svg-BZ5xOGzRfBc9yvEw .marker.cross{stroke:#333333;}#mermaid-svg-BZ5xOGzRfBc9yvEw svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-BZ5xOGzRfBc9yvEw p{margin:0;}#mermaid-svg-BZ5xOGzRfBc9yvEw .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-BZ5xOGzRfBc9yvEw .cluster-label text{fill:#333;}#mermaid-svg-BZ5xOGzRfBc9yvEw .cluster-label span{color:#333;}#mermaid-svg-BZ5xOGzRfBc9yvEw .cluster-label span p{background-color:transparent;}#mermaid-svg-BZ5xOGzRfBc9yvEw .label text,#mermaid-svg-BZ5xOGzRfBc9yvEw span{fill:#333;color:#333;}#mermaid-svg-BZ5xOGzRfBc9yvEw .node rect,#mermaid-svg-BZ5xOGzRfBc9yvEw .node circle,#mermaid-svg-BZ5xOGzRfBc9yvEw .node ellipse,#mermaid-svg-BZ5xOGzRfBc9yvEw .node polygon,#mermaid-svg-BZ5xOGzRfBc9yvEw .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-BZ5xOGzRfBc9yvEw .rough-node .label text,#mermaid-svg-BZ5xOGzRfBc9yvEw .node .label text,#mermaid-svg-BZ5xOGzRfBc9yvEw .image-shape .label,#mermaid-svg-BZ5xOGzRfBc9yvEw .icon-shape .label{text-anchor:middle;}#mermaid-svg-BZ5xOGzRfBc9yvEw .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-BZ5xOGzRfBc9yvEw .rough-node .label,#mermaid-svg-BZ5xOGzRfBc9yvEw .node .label,#mermaid-svg-BZ5xOGzRfBc9yvEw .image-shape .label,#mermaid-svg-BZ5xOGzRfBc9yvEw .icon-shape .label{text-align:center;}#mermaid-svg-BZ5xOGzRfBc9yvEw .node.clickable{cursor:pointer;}#mermaid-svg-BZ5xOGzRfBc9yvEw .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-BZ5xOGzRfBc9yvEw .arrowheadPath{fill:#333333;}#mermaid-svg-BZ5xOGzRfBc9yvEw .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-BZ5xOGzRfBc9yvEw .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-BZ5xOGzRfBc9yvEw .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-BZ5xOGzRfBc9yvEw .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-BZ5xOGzRfBc9yvEw .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-BZ5xOGzRfBc9yvEw .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-BZ5xOGzRfBc9yvEw .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-BZ5xOGzRfBc9yvEw .cluster text{fill:#333;}#mermaid-svg-BZ5xOGzRfBc9yvEw .cluster span{color:#333;}#mermaid-svg-BZ5xOGzRfBc9yvEw div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-BZ5xOGzRfBc9yvEw .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-BZ5xOGzRfBc9yvEw rect.text{fill:none;stroke-width:0;}#mermaid-svg-BZ5xOGzRfBc9yvEw .icon-shape,#mermaid-svg-BZ5xOGzRfBc9yvEw .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-BZ5xOGzRfBc9yvEw .icon-shape p,#mermaid-svg-BZ5xOGzRfBc9yvEw .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-BZ5xOGzRfBc9yvEw .icon-shape .label rect,#mermaid-svg-BZ5xOGzRfBc9yvEw .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-BZ5xOGzRfBc9yvEw .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-BZ5xOGzRfBc9yvEw .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-BZ5xOGzRfBc9yvEw :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u4f20\u7edf\u65b9\u5f0f<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6bcf\u4e2a\u5de5\u5177\u5199\u9002\u914d\u4ee3\u7801<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5de5\u5177\u5217\u8868\u786c\u7f16\u7801<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>API \u53d8\u66f4\u8981\u6539\u4ee3\u7801<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>MCP \u65b9\u5f0f<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Server \u58f0\u660e\u5de5\u5177<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Client \u8fd0\u884c\u65f6\u53d1\u73b0<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Schema \u81ea\u52a8\u751f\u6210\u53c2\u6570<\/p>\n<p><\/span><\/p>\n<h4>2.2 \u4e24\u4e2a\u5173\u952e\u8bcd\u7684\u5b9a\u4e49<\/h4>\n<ul>\n<li>\u5de5\u5177\u53d1\u73b0&#xff08;Tool Discovery&#xff09;&#xff1a;Client \u5728\u8fd0\u884c\u65f6\u901a\u8fc7 tools\/list \u83b7\u53d6 Server \u5f53\u524d\u63d0\u4f9b\u7684\u5de5\u5177\u6e05\u5355&#xff08;\u540d\u79f0\u3001\u63cf\u8ff0\u3001inputSchema&#xff09;\u3002Agent \u4e0d\u9700\u8981\u5728\u7f16\u8bd1\u671f\u77e5\u9053\u6709\u54ea\u4e9b\u5de5\u5177\u3002<\/li>\n<li>\u5de5\u5177\u8c03\u7528&#xff08;Tool Invocation&#xff09;&#xff1a;Agent \u4f9d\u636e\u53d1\u73b0\u7684 schema \u6784\u9020\u53c2\u6570&#xff0c;\u901a\u8fc7 tools\/call \u8ba9 Server \u6267\u884c&#xff0c;\u5e76\u62ff\u5230\u7ed3\u6784\u5316\u7ed3\u679c\u3002<\/li>\n<\/ul>\n<p>\u4e24\u8005\u5408\u5728\u4e00\u8d77&#xff0c;\u6784\u6210&#034;\u5148\u4fa6\u5bdf\u3001\u540e\u884c\u52a8&#034;\u7684\u5b8c\u6574\u95ed\u73af\u2014\u2014\u8fd9\u6b63\u662f Agent \u533a\u522b\u4e8e\u4f20\u7edf\u7a0b\u5e8f\u7684\u5173\u952e&#xff1a;\u4f20\u7edf\u7a0b\u5e8f\u8c03\u7528\u4ec0\u4e48\u51fd\u6570\u662f\u5199\u6b7b\u7684&#xff0c;Agent \u8c03\u7528\u4ec0\u4e48\u5de5\u5177\u662f\u601d\u8003\u540e\u51b3\u5b9a\u7684\u3002<\/p>\n<h4>2.3 \u53d1\u73b0\u4e0e\u8c03\u7528\u7684\u56db\u9636\u6bb5\u603b\u89c8<\/h4>\n<p>\u6e90\u6587\u6863 6.4 \u7528\u4e00\u5f20 sequenceDiagram \u5b8c\u6574\u5c55\u793a\u4e86\u4ece\u542f\u52a8\u5230\u8c03\u7528\u7684\u5168\u8fc7\u7a0b\u3002\u6211\u4eec\u628a\u5b83\u63d0\u70bc\u4e3a\u56db\u9636\u6bb5&#xff1a;<\/p>\n<p>#mermaid-svg-cBiFnh4gIEe49KJS{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-cBiFnh4gIEe49KJS .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-cBiFnh4gIEe49KJS .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-cBiFnh4gIEe49KJS .error-icon{fill:#552222;}#mermaid-svg-cBiFnh4gIEe49KJS .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-cBiFnh4gIEe49KJS .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-cBiFnh4gIEe49KJS .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-cBiFnh4gIEe49KJS .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-cBiFnh4gIEe49KJS .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-cBiFnh4gIEe49KJS .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-cBiFnh4gIEe49KJS .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-cBiFnh4gIEe49KJS .marker{fill:#333333;stroke:#333333;}#mermaid-svg-cBiFnh4gIEe49KJS .marker.cross{stroke:#333333;}#mermaid-svg-cBiFnh4gIEe49KJS svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-cBiFnh4gIEe49KJS p{margin:0;}#mermaid-svg-cBiFnh4gIEe49KJS .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-cBiFnh4gIEe49KJS .cluster-label text{fill:#333;}#mermaid-svg-cBiFnh4gIEe49KJS .cluster-label span{color:#333;}#mermaid-svg-cBiFnh4gIEe49KJS .cluster-label span p{background-color:transparent;}#mermaid-svg-cBiFnh4gIEe49KJS .label text,#mermaid-svg-cBiFnh4gIEe49KJS span{fill:#333;color:#333;}#mermaid-svg-cBiFnh4gIEe49KJS .node rect,#mermaid-svg-cBiFnh4gIEe49KJS .node circle,#mermaid-svg-cBiFnh4gIEe49KJS .node ellipse,#mermaid-svg-cBiFnh4gIEe49KJS .node polygon,#mermaid-svg-cBiFnh4gIEe49KJS .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-cBiFnh4gIEe49KJS .rough-node .label text,#mermaid-svg-cBiFnh4gIEe49KJS .node .label text,#mermaid-svg-cBiFnh4gIEe49KJS .image-shape .label,#mermaid-svg-cBiFnh4gIEe49KJS .icon-shape .label{text-anchor:middle;}#mermaid-svg-cBiFnh4gIEe49KJS .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-cBiFnh4gIEe49KJS .rough-node .label,#mermaid-svg-cBiFnh4gIEe49KJS .node .label,#mermaid-svg-cBiFnh4gIEe49KJS .image-shape .label,#mermaid-svg-cBiFnh4gIEe49KJS .icon-shape .label{text-align:center;}#mermaid-svg-cBiFnh4gIEe49KJS .node.clickable{cursor:pointer;}#mermaid-svg-cBiFnh4gIEe49KJS .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-cBiFnh4gIEe49KJS .arrowheadPath{fill:#333333;}#mermaid-svg-cBiFnh4gIEe49KJS .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-cBiFnh4gIEe49KJS .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-cBiFnh4gIEe49KJS .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-cBiFnh4gIEe49KJS .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-cBiFnh4gIEe49KJS .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-cBiFnh4gIEe49KJS .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-cBiFnh4gIEe49KJS .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-cBiFnh4gIEe49KJS .cluster text{fill:#333;}#mermaid-svg-cBiFnh4gIEe49KJS .cluster span{color:#333;}#mermaid-svg-cBiFnh4gIEe49KJS div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-cBiFnh4gIEe49KJS .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-cBiFnh4gIEe49KJS rect.text{fill:none;stroke-width:0;}#mermaid-svg-cBiFnh4gIEe49KJS .icon-shape,#mermaid-svg-cBiFnh4gIEe49KJS .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-cBiFnh4gIEe49KJS .icon-shape p,#mermaid-svg-cBiFnh4gIEe49KJS .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-cBiFnh4gIEe49KJS .icon-shape .label rect,#mermaid-svg-cBiFnh4gIEe49KJS .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-cBiFnh4gIEe49KJS .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-cBiFnh4gIEe49KJS .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-cBiFnh4gIEe49KJS :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u65b0\u5de5\u5177\u4e0a\u7ebf<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9636\u6bb51 \u521d\u59cb\u5316<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9636\u6bb52 \u5de5\u5177\u53d1\u73b0<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9636\u6bb53 \u6ce8\u518c\u8def\u7531<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9636\u6bb54 \u5de5\u5177\u8c03\u7528<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8fd4\u56de\u7ed3\u679c<\/p>\n<p><\/span><\/p>\n<ul>\n<li>\u9636\u6bb5 1 \u521d\u59cb\u5316&#xff1a;Agent \u542f\u52a8&#xff0c;Client \u4e0e\u6bcf\u4e2a Server \u5efa\u7acb\u4f1a\u8bdd&#xff08;initialize&#xff09;\u3002<\/li>\n<li>\u9636\u6bb5 2 \u5de5\u5177\u53d1\u73b0&#xff1a;Client \u5411\u5404 Server \u53d1 tools\/list&#xff0c;\u62ff\u56de\u5de5\u5177\u6e05\u5355\u3002<\/li>\n<li>\u9636\u6bb5 3 \u6ce8\u518c\u8def\u7531&#xff1a;Client \u628a&#034;\u5de5\u5177\u540d \u2192 Server&#034;\u7684\u6620\u5c04\u5199\u5165\u8def\u7531\u6ce8\u518c\u8868\u3002<\/li>\n<li>\u9636\u6bb5 4 \u5de5\u5177\u8c03\u7528&#xff1a;Agent \u53d1\u8d77 call_tool&#xff0c;Client \u67e5\u6ce8\u518c\u8868\u8def\u7531\u5230\u6b63\u786e Server \u6267\u884c\u3002<\/li>\n<\/ul>\n<h4>2.4 \u4e3a\u4ec0\u4e48\u9700\u8981\u8def\u7531\u6ce8\u518c\u8868<\/h4>\n<p>\u4e00\u4e2a Agent \u53ef\u80fd\u540c\u65f6\u8fde GitHub\u3001Slack\u3001\u6570\u636e\u5e93\u7b49\u591a\u4e2a Server&#xff0c;\u6bcf\u4e2a Server \u63d0\u4f9b\u4e00\u6279\u5de5\u5177\u3002\u5982\u679c\u6ca1\u6709\u6ce8\u518c\u8868&#xff0c;Client \u6bcf\u6b21\u90fd\u8981\u904d\u5386\u6240\u6709 Server \u627e&#034;\u54ea\u4e2a Server \u6709 search_code&#034;&#xff0c;\u4ee3\u4ef7\u9ad8\u4e14\u6613\u9519\u3002\u6ce8\u518c\u8868\u662f\u4e00\u5f20&#034;\u5de5\u5177\u8def\u7531\u8868&#034;&#xff1a;<\/p>\n<p>#mermaid-svg-AuFmGMIxCzycVPNi{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-AuFmGMIxCzycVPNi .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-AuFmGMIxCzycVPNi .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-AuFmGMIxCzycVPNi .error-icon{fill:#552222;}#mermaid-svg-AuFmGMIxCzycVPNi .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-AuFmGMIxCzycVPNi .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-AuFmGMIxCzycVPNi .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-AuFmGMIxCzycVPNi .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-AuFmGMIxCzycVPNi .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-AuFmGMIxCzycVPNi .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-AuFmGMIxCzycVPNi .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-AuFmGMIxCzycVPNi .marker{fill:#333333;stroke:#333333;}#mermaid-svg-AuFmGMIxCzycVPNi .marker.cross{stroke:#333333;}#mermaid-svg-AuFmGMIxCzycVPNi svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-AuFmGMIxCzycVPNi p{margin:0;}#mermaid-svg-AuFmGMIxCzycVPNi .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-AuFmGMIxCzycVPNi .cluster-label text{fill:#333;}#mermaid-svg-AuFmGMIxCzycVPNi .cluster-label span{color:#333;}#mermaid-svg-AuFmGMIxCzycVPNi .cluster-label span p{background-color:transparent;}#mermaid-svg-AuFmGMIxCzycVPNi .label text,#mermaid-svg-AuFmGMIxCzycVPNi span{fill:#333;color:#333;}#mermaid-svg-AuFmGMIxCzycVPNi .node rect,#mermaid-svg-AuFmGMIxCzycVPNi .node circle,#mermaid-svg-AuFmGMIxCzycVPNi .node ellipse,#mermaid-svg-AuFmGMIxCzycVPNi .node polygon,#mermaid-svg-AuFmGMIxCzycVPNi .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-AuFmGMIxCzycVPNi .rough-node .label text,#mermaid-svg-AuFmGMIxCzycVPNi .node .label text,#mermaid-svg-AuFmGMIxCzycVPNi .image-shape .label,#mermaid-svg-AuFmGMIxCzycVPNi .icon-shape .label{text-anchor:middle;}#mermaid-svg-AuFmGMIxCzycVPNi .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-AuFmGMIxCzycVPNi .rough-node .label,#mermaid-svg-AuFmGMIxCzycVPNi .node .label,#mermaid-svg-AuFmGMIxCzycVPNi .image-shape .label,#mermaid-svg-AuFmGMIxCzycVPNi .icon-shape .label{text-align:center;}#mermaid-svg-AuFmGMIxCzycVPNi .node.clickable{cursor:pointer;}#mermaid-svg-AuFmGMIxCzycVPNi .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-AuFmGMIxCzycVPNi .arrowheadPath{fill:#333333;}#mermaid-svg-AuFmGMIxCzycVPNi .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-AuFmGMIxCzycVPNi .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-AuFmGMIxCzycVPNi .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-AuFmGMIxCzycVPNi .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-AuFmGMIxCzycVPNi .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-AuFmGMIxCzycVPNi .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-AuFmGMIxCzycVPNi .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-AuFmGMIxCzycVPNi .cluster text{fill:#333;}#mermaid-svg-AuFmGMIxCzycVPNi .cluster span{color:#333;}#mermaid-svg-AuFmGMIxCzycVPNi div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-AuFmGMIxCzycVPNi .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-AuFmGMIxCzycVPNi rect.text{fill:none;stroke-width:0;}#mermaid-svg-AuFmGMIxCzycVPNi .icon-shape,#mermaid-svg-AuFmGMIxCzycVPNi .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-AuFmGMIxCzycVPNi .icon-shape p,#mermaid-svg-AuFmGMIxCzycVPNi .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-AuFmGMIxCzycVPNi .icon-shape .label rect,#mermaid-svg-AuFmGMIxCzycVPNi .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-AuFmGMIxCzycVPNi .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-AuFmGMIxCzycVPNi .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-AuFmGMIxCzycVPNi :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8def\u7531\u6ce8\u518c\u8868<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>search_code \u2192 GitHub Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>create_issue \u2192 GitHub Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>send_message \u2192 Slack Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>list_channels \u2192 Slack Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>call_tool search_code<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8def\u7531\u5230 GitHub Server<\/p>\n<p><\/span><\/p>\n<h4>2.5 \u8def\u7531\u8868 vs DNS vs \u670d\u52a1\u53d1\u73b0<\/h4>\n<p>\u53ef\u4ee5\u628a\u8def\u7531\u6ce8\u518c\u8868\u7c7b\u6bd4\u4e3a\u4e92\u8054\u7f51\u4e16\u754c\u7684 DNS&#xff1a;<\/p>\n<table>\n<tr>\u7ef4\u5ea6DNSMCP \u8def\u7531\u6ce8\u518c\u8868<\/tr>\n<tbody>\n<tr>\n<td>\u89e3\u51b3\u4ec0\u4e48<\/td>\n<td>\u57df\u540d \u2192 IP<\/td>\n<td>\u5de5\u5177\u540d \u2192 Server<\/td>\n<\/tr>\n<tr>\n<td>\u67e5\u8be2\u65b9\u5f0f<\/td>\n<td>\u89e3\u6790\u8bf7\u6c42<\/td>\n<td>tools\/call \u524d\u67e5\u8868<\/td>\n<\/tr>\n<tr>\n<td>\u66f4\u65b0\u65f6\u673a<\/td>\n<td>TTL \u8fc7\u671f\u5237\u65b0<\/td>\n<td>tools\/list \u91cd\u65b0\u62c9\u53d6<\/td>\n<\/tr>\n<tr>\n<td>\u7f13\u5b58<\/td>\n<td>\u672c\u5730 DNS \u7f13\u5b58<\/td>\n<td>Client \u5185\u5b58\u7f13\u5b58<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2.6 \u52a8\u6001\u53d1\u73b0\u7684\u4e09\u4e2a\u597d\u5904<\/h4>\n<li>\u514d\u786c\u7f16\u7801&#xff1a;\u65b0 Server \u4e0a\u7ebf&#xff0c;Agent \u65e0\u9700\u6539\u4ee3\u7801&#xff0c;\u91cd\u65b0\u53d1\u73b0\u5373\u53ef\u7528\u3002<\/li>\n<li>\u968f\u53d8\u968f\u9002\u914d&#xff1a;Server \u66f4\u65b0\u5de5\u5177\u63cf\u8ff0\u6216 schema&#xff0c;Client \u62c9\u6700\u65b0\u6e05\u5355\u81ea\u52a8\u9002\u914d\u3002<\/li>\n<li>\u80fd\u529b\u534f\u5546&#xff1a;Agent \u53ef\u4ee5\u9488\u5bf9\u6bcf\u4e2a\u5de5\u5177\u67e5\u770b inputSchema&#xff0c;\u81ea\u52a8\u6784\u9020\u5408\u6cd5\u53c2\u6570\u3002<\/li>\n<h4>2.7 \u4e00\u4e2a\u76f4\u89c9\u7c7b\u6bd4&#xff1a;\u70b9\u83dc<\/h4>\n<p>\u628a Agent \u60f3\u6210\u987e\u5ba2&#xff0c;MCP Server \u60f3\u6210\u9910\u5385&#xff1a;<\/p>\n<li>\u521d\u59cb\u5316&#xff1a;\u987e\u5ba2\u843d\u5ea7&#xff0c;\u670d\u52a1\u5458\u786e\u8ba4&#034;\u672c\u5e97\u8425\u4e1a\u3001\u652f\u6301\u626b\u7801\u70b9\u9910&#034;\u3002<\/li>\n<li>\u53d1\u73b0&#xff1a;\u987e\u5ba2\u626b\u7801\u770b\u83dc\u5355&#xff08;tools\/list&#xff09;&#xff0c;\u77e5\u9053\u6709\u54ea\u4e9b\u83dc\u3001\u6bcf\u9053\u83dc\u6709\u4ec0\u4e48\u914d\u6599&#xff08;schema&#xff09;\u3002<\/li>\n<li>\u6ce8\u518c&#xff1a;\u987e\u5ba2\u5728\u5fc3\u91cc\u8bb0\u4e0b&#034;\u8fd9\u5bb6\u5e97\u7684\u62db\u724c\u83dc\u662f\u7ea2\u70e7\u8089&#034;\u3002<\/li>\n<li>\u8c03\u7528&#xff1a;\u987e\u5ba2\u4e0b\u5355&#034;\u7ea2\u70e7\u8089&#xff0c;\u5c11\u76d0&#034;&#xff08;call_tool&#xff09;&#xff0c;\u540e\u53a8\u6309\u5355\u51fa\u83dc&#xff08;\u6267\u884c\u5e76\u8fd4\u56de\u7ed3\u679c&#xff09;\u3002<\/li>\n<p>\u5982\u679c\u987e\u5ba2\u540c\u65f6\u70b9\u4e86\u4e24\u5bb6\u9910\u5385\u7684\u5916\u5356&#xff0c;\u5fc3\u91cc\u5f97\u8bb0\u7740&#034;\u7ea2\u70e7\u8089\u6765\u81ea A \u5bb6\u3001\u62ab\u8428\u6765\u81ea B \u5bb6&#034;\u2014\u2014\u8fd9\u5c31\u662f\u8def\u7531\u6ce8\u518c\u8868\u7684\u4f5c\u7528\u3002<\/p>\n<h4>2.8 \u6838\u5fc3\u6982\u5ff5\u901f\u8bb0\u8868<\/h4>\n<table>\n<tr>\u6982\u5ff5\u4e00\u53e5\u8bdd\u5bf9\u5e94\u65b9\u6cd5<\/tr>\n<tbody>\n<tr>\n<td>\u4f1a\u8bdd\u5efa\u7acb<\/td>\n<td>\u6253\u901a\u4e0e Server \u7684\u901a\u9053<\/td>\n<td>initialize<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u5177\u53d1\u73b0<\/td>\n<td>\u83b7\u53d6\u53ef\u7528\u5de5\u5177\u6e05\u5355<\/td>\n<td>tools\/list<\/td>\n<\/tr>\n<tr>\n<td>\u8def\u7531\u6ce8\u518c<\/td>\n<td>\u5efa\u7acb\u5de5\u5177\u2192Server \u6620\u5c04<\/td>\n<td>Client \u5185\u90e8<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u5177\u8c03\u7528<\/td>\n<td>\u8ba9 Server \u6267\u884c\u5de5\u5177<\/td>\n<td>tools\/call<\/td>\n<\/tr>\n<tr>\n<td>\u7ed3\u679c\u8fd4\u56de<\/td>\n<td>\u62ff\u5230\u7ed3\u6784\u5316\u7ed3\u679c<\/td>\n<td>tools\/call \u54cd\u5e94<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2.10 \u53d1\u73b0 vs \u8c03\u7528&#xff1a;\u4e00\u6b21\u5bf9\u6bd4<\/h4>\n<table>\n<tr>\u7ef4\u5ea6\u53d1\u73b0&#xff08;Discovery&#xff09;\u8c03\u7528&#xff08;Invocation&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u65b9\u6cd5<\/td>\n<td>tools\/list<\/td>\n<td>tools\/call<\/td>\n<\/tr>\n<tr>\n<td>\u9891\u7387<\/td>\n<td>\u4f4e&#xff08;\u7f13\u5b58&#043;\u901a\u77e5&#xff09;<\/td>\n<td>\u9ad8&#xff08;\u6bcf\u6b21\u884c\u52a8&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u662f\u5426\u53ef\u5199<\/td>\n<td>\u53ea\u8bfb<\/td>\n<td>\u53ef\u8bfb\u5199<\/td>\n<\/tr>\n<tr>\n<td>\u7ed3\u679c<\/td>\n<td>\u5de5\u5177\u6e05\u5355<\/td>\n<td>\u6267\u884c\u7ed3\u679c<\/td>\n<\/tr>\n<tr>\n<td>\u5931\u8d25\u5f71\u54cd<\/td>\n<td>\u80fd\u529b\u7f3a\u5931<\/td>\n<td>\u4efb\u52a1\u5931\u8d25<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2.11 \u786c\u7f16\u7801\u65f6\u4ee3\u7684\u75db\u82e6<\/h4>\n<p>\u5047\u8bbe Agent \u8981\u63a5 3 \u4e2a\u5916\u90e8\u7cfb\u7edf&#xff0c;\u6bcf\u4e2a\u7cfb\u7edf 5 \u4e2a API&#xff0c;\u786c\u7f16\u7801\u65f6\u4ee3\u9700\u8981&#xff1a;<\/p>\n<ul>\n<li>15 \u6bb5\u9002\u914d\u4ee3\u7801\u3002<\/li>\n<li>15 \u4efd API \u6587\u6863\u7684\u4eba\u5de5\u7814\u8bfb\u3002<\/li>\n<li>\u6bcf\u6b21 API \u53d8\u66f4\u90fd\u8981\u6539\u4ee3\u7801 &#043; \u56de\u5f52\u6d4b\u8bd5\u3002<\/li>\n<li>\u65b0\u589e\u7cfb\u7edf &#061; \u91cd\u590d\u6574\u5957\u6d41\u7a0b\u3002<\/li>\n<\/ul>\n<p>MCP \u65f6\u4ee3&#xff1a;\u4e00\u5957 Client&#xff0c;Server \u58f0\u660e\u5373\u63d2\u5373\u7528\u3002\u8fd9\u5c31\u662f&#034;N\u00d7M \u2192 N&#043;M&#034;\u964d\u7ef4\u5728\u8fd0\u884c\u65f6\u7684\u4f53\u73b0\u3002<\/p>\n<h4>2.12 \u52a8\u6001\u53d1\u73b0\u7684&#034;\u8fd0\u884c\u65f6\u624d\u77e5\u9053&#034;\u610f\u5473\u7740\u4ec0\u4e48<\/h4>\n<p>&#034;\u8fd0\u884c\u65f6\u624d\u77e5\u9053\u6709\u54ea\u4e9b\u5de5\u5177&#034;\u5bf9 Agent \u67b6\u6784\u6709\u6df1\u8fdc\u5f71\u54cd&#xff1a;<\/p>\n<li>Agent \u7684\u63d0\u793a\u8bcd\u662f\u52a8\u6001\u62fc\u88c5\u7684&#xff1a;\u5de5\u5177\u6e05\u5355\u5728\u6bcf\u6b21\u4f1a\u8bdd\u5f00\u59cb\u65f6\u6ce8\u5165&#xff0c;\u800c\u975e\u5199\u6b7b\u3002<\/li>\n<li>\u80fd\u529b\u5373\u63d2\u5373\u7528&#xff1a;\u6302\u8f7d\u65b0 Server \u5c31\u80fd\u7ed9 Agent \u52a0\u80fd\u529b&#xff0c;\u65e0\u9700\u6539 Agent \u4ee3\u7801\u3002<\/li>\n<li>\u884c\u4e3a\u53ef\u6f14\u5316&#xff1a;\u540c\u4e00 Agent \u5728\u4e0d\u540c Server \u914d\u7f6e\u4e0b\u8868\u73b0\u51fa\u4e0d\u540c\u80fd\u529b\u8fb9\u754c\u3002<\/li>\n<p>#mermaid-svg-rRs9LNdqwhrBaq2d{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-rRs9LNdqwhrBaq2d .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-rRs9LNdqwhrBaq2d .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-rRs9LNdqwhrBaq2d .error-icon{fill:#552222;}#mermaid-svg-rRs9LNdqwhrBaq2d .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-rRs9LNdqwhrBaq2d .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-rRs9LNdqwhrBaq2d .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-rRs9LNdqwhrBaq2d .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-rRs9LNdqwhrBaq2d .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-rRs9LNdqwhrBaq2d .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-rRs9LNdqwhrBaq2d .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-rRs9LNdqwhrBaq2d .marker{fill:#333333;stroke:#333333;}#mermaid-svg-rRs9LNdqwhrBaq2d .marker.cross{stroke:#333333;}#mermaid-svg-rRs9LNdqwhrBaq2d svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-rRs9LNdqwhrBaq2d p{margin:0;}#mermaid-svg-rRs9LNdqwhrBaq2d .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-rRs9LNdqwhrBaq2d .cluster-label text{fill:#333;}#mermaid-svg-rRs9LNdqwhrBaq2d .cluster-label span{color:#333;}#mermaid-svg-rRs9LNdqwhrBaq2d .cluster-label span p{background-color:transparent;}#mermaid-svg-rRs9LNdqwhrBaq2d .label text,#mermaid-svg-rRs9LNdqwhrBaq2d span{fill:#333;color:#333;}#mermaid-svg-rRs9LNdqwhrBaq2d .node rect,#mermaid-svg-rRs9LNdqwhrBaq2d .node circle,#mermaid-svg-rRs9LNdqwhrBaq2d .node ellipse,#mermaid-svg-rRs9LNdqwhrBaq2d .node polygon,#mermaid-svg-rRs9LNdqwhrBaq2d .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-rRs9LNdqwhrBaq2d .rough-node .label text,#mermaid-svg-rRs9LNdqwhrBaq2d .node .label text,#mermaid-svg-rRs9LNdqwhrBaq2d .image-shape .label,#mermaid-svg-rRs9LNdqwhrBaq2d .icon-shape .label{text-anchor:middle;}#mermaid-svg-rRs9LNdqwhrBaq2d .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-rRs9LNdqwhrBaq2d .rough-node .label,#mermaid-svg-rRs9LNdqwhrBaq2d .node .label,#mermaid-svg-rRs9LNdqwhrBaq2d .image-shape .label,#mermaid-svg-rRs9LNdqwhrBaq2d .icon-shape .label{text-align:center;}#mermaid-svg-rRs9LNdqwhrBaq2d .node.clickable{cursor:pointer;}#mermaid-svg-rRs9LNdqwhrBaq2d .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-rRs9LNdqwhrBaq2d .arrowheadPath{fill:#333333;}#mermaid-svg-rRs9LNdqwhrBaq2d .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-rRs9LNdqwhrBaq2d .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-rRs9LNdqwhrBaq2d .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-rRs9LNdqwhrBaq2d .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-rRs9LNdqwhrBaq2d .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-rRs9LNdqwhrBaq2d .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-rRs9LNdqwhrBaq2d .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-rRs9LNdqwhrBaq2d .cluster text{fill:#333;}#mermaid-svg-rRs9LNdqwhrBaq2d .cluster span{color:#333;}#mermaid-svg-rRs9LNdqwhrBaq2d div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-rRs9LNdqwhrBaq2d .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-rRs9LNdqwhrBaq2d rect.text{fill:none;stroke-width:0;}#mermaid-svg-rRs9LNdqwhrBaq2d .icon-shape,#mermaid-svg-rRs9LNdqwhrBaq2d .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-rRs9LNdqwhrBaq2d .icon-shape p,#mermaid-svg-rRs9LNdqwhrBaq2d .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-rRs9LNdqwhrBaq2d .icon-shape .label rect,#mermaid-svg-rRs9LNdqwhrBaq2d .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-rRs9LNdqwhrBaq2d .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-rRs9LNdqwhrBaq2d .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-rRs9LNdqwhrBaq2d :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>Server \u914d\u7f6e<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u52a8\u6001\u53d1\u73b0<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u80fd\u529b\u5730\u56fe<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent \u63d0\u793a\u8bcd<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent \u884c\u4e3a<\/p>\n<p><\/span><\/p>\n<h4>2.13 \u70b9\u83dc\u7c7b\u6bd4\u7684\u5b8c\u6574\u7248<\/h4>\n<p>\u628a&#034;\u70b9\u83dc&#034;\u7c7b\u6bd4\u5c55\u5f00\u6210\u4e00\u5f20\u6620\u5c04\u8868&#xff1a;<\/p>\n<table>\n<tr>\u70b9\u83dc\u5de5\u5177\u8c03\u7528\u5173\u952e\u8bcd<\/tr>\n<tbody>\n<tr>\n<td>\u626b\u7801\u770b\u83dc\u5355<\/td>\n<td>tools\/list<\/td>\n<td>\u53d1\u73b0<\/td>\n<\/tr>\n<tr>\n<td>\u8bb0\u4f4f\u54ea\u5bb6\u6709\u4ec0\u4e48<\/td>\n<td>\u8def\u7531\u6ce8\u518c\u8868<\/td>\n<td>\u6ce8\u518c<\/td>\n<\/tr>\n<tr>\n<td>\u770b\u83dc\u770b\u914d\u6599<\/td>\n<td>inputSchema<\/td>\n<td>\u534f\u5546<\/td>\n<\/tr>\n<tr>\n<td>\u4e0b\u5355<\/td>\n<td>tools\/call<\/td>\n<td>\u8c03\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u540e\u53a8\u51fa\u83dc<\/td>\n<td>Server \u6267\u884c<\/td>\n<td>\u6267\u884c<\/td>\n<\/tr>\n<tr>\n<td>\u4e0a\u83dc<\/td>\n<td>\u8fd4\u56de\u7ed3\u679c<\/td>\n<td>\u53cd\u9988<\/td>\n<\/tr>\n<tr>\n<td>\u83dc\u54c1\u4e0b\u67b6<\/td>\n<td>list_changed \u901a\u77e5<\/td>\n<td>\u53d8\u66f4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2.14 \u53d1\u73b0\u4e0e\u8c03\u7528\u7684\u5faa\u73af\u5173\u7cfb<\/h4>\n<p>\u53d1\u73b0\u4e0d\u662f\u4e00\u6b21\u6027\u7684&#xff0c;\u5b83\u4e0e\u8c03\u7528\u6784\u6210\u6301\u7eed\u5faa\u73af&#xff1a;<\/p>\n<p>#mermaid-svg-xyXxZr45FeOsD4YS{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-xyXxZr45FeOsD4YS .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-xyXxZr45FeOsD4YS .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-xyXxZr45FeOsD4YS .error-icon{fill:#552222;}#mermaid-svg-xyXxZr45FeOsD4YS .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-xyXxZr45FeOsD4YS .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-xyXxZr45FeOsD4YS .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-xyXxZr45FeOsD4YS .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-xyXxZr45FeOsD4YS .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-xyXxZr45FeOsD4YS .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-xyXxZr45FeOsD4YS .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-xyXxZr45FeOsD4YS .marker{fill:#333333;stroke:#333333;}#mermaid-svg-xyXxZr45FeOsD4YS .marker.cross{stroke:#333333;}#mermaid-svg-xyXxZr45FeOsD4YS svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-xyXxZr45FeOsD4YS p{margin:0;}#mermaid-svg-xyXxZr45FeOsD4YS .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-xyXxZr45FeOsD4YS .cluster-label text{fill:#333;}#mermaid-svg-xyXxZr45FeOsD4YS .cluster-label span{color:#333;}#mermaid-svg-xyXxZr45FeOsD4YS .cluster-label span p{background-color:transparent;}#mermaid-svg-xyXxZr45FeOsD4YS .label text,#mermaid-svg-xyXxZr45FeOsD4YS span{fill:#333;color:#333;}#mermaid-svg-xyXxZr45FeOsD4YS .node rect,#mermaid-svg-xyXxZr45FeOsD4YS .node circle,#mermaid-svg-xyXxZr45FeOsD4YS .node ellipse,#mermaid-svg-xyXxZr45FeOsD4YS .node polygon,#mermaid-svg-xyXxZr45FeOsD4YS .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-xyXxZr45FeOsD4YS .rough-node .label text,#mermaid-svg-xyXxZr45FeOsD4YS .node .label text,#mermaid-svg-xyXxZr45FeOsD4YS .image-shape .label,#mermaid-svg-xyXxZr45FeOsD4YS .icon-shape .label{text-anchor:middle;}#mermaid-svg-xyXxZr45FeOsD4YS .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-xyXxZr45FeOsD4YS .rough-node .label,#mermaid-svg-xyXxZr45FeOsD4YS .node .label,#mermaid-svg-xyXxZr45FeOsD4YS .image-shape .label,#mermaid-svg-xyXxZr45FeOsD4YS .icon-shape .label{text-align:center;}#mermaid-svg-xyXxZr45FeOsD4YS .node.clickable{cursor:pointer;}#mermaid-svg-xyXxZr45FeOsD4YS .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-xyXxZr45FeOsD4YS .arrowheadPath{fill:#333333;}#mermaid-svg-xyXxZr45FeOsD4YS .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-xyXxZr45FeOsD4YS .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-xyXxZr45FeOsD4YS .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-xyXxZr45FeOsD4YS .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-xyXxZr45FeOsD4YS .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-xyXxZr45FeOsD4YS .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-xyXxZr45FeOsD4YS .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-xyXxZr45FeOsD4YS .cluster text{fill:#333;}#mermaid-svg-xyXxZr45FeOsD4YS .cluster span{color:#333;}#mermaid-svg-xyXxZr45FeOsD4YS div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-xyXxZr45FeOsD4YS .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-xyXxZr45FeOsD4YS rect.text{fill:none;stroke-width:0;}#mermaid-svg-xyXxZr45FeOsD4YS .icon-shape,#mermaid-svg-xyXxZr45FeOsD4YS .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-xyXxZr45FeOsD4YS .icon-shape p,#mermaid-svg-xyXxZr45FeOsD4YS .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-xyXxZr45FeOsD4YS .icon-shape .label rect,#mermaid-svg-xyXxZr45FeOsD4YS .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-xyXxZr45FeOsD4YS .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-xyXxZr45FeOsD4YS .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-xyXxZr45FeOsD4YS :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u65b0\u9700\u6c42<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u53d1\u73b0\u5de5\u5177<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6ce8\u518c<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8c03\u7528<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6210\u529f<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5931\u8d25-\u5de5\u5177\u4e0d\u5b58\u5728<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u4efb\u52a1\u5b8c\u6210<\/p>\n<p><\/span><\/p>\n<h4>2.15 \u6838\u5fc3\u6982\u5ff5\u603b\u7ed3\u56fe<\/h4>\n<p>#mermaid-svg-Z0cYnlJo7DIilFRn{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-Z0cYnlJo7DIilFRn .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-Z0cYnlJo7DIilFRn .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-Z0cYnlJo7DIilFRn .error-icon{fill:#552222;}#mermaid-svg-Z0cYnlJo7DIilFRn .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-Z0cYnlJo7DIilFRn .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-Z0cYnlJo7DIilFRn .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-Z0cYnlJo7DIilFRn .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-Z0cYnlJo7DIilFRn .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-Z0cYnlJo7DIilFRn .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-Z0cYnlJo7DIilFRn .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-Z0cYnlJo7DIilFRn .marker{fill:#333333;stroke:#333333;}#mermaid-svg-Z0cYnlJo7DIilFRn .marker.cross{stroke:#333333;}#mermaid-svg-Z0cYnlJo7DIilFRn svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-Z0cYnlJo7DIilFRn p{margin:0;}#mermaid-svg-Z0cYnlJo7DIilFRn .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-Z0cYnlJo7DIilFRn .cluster-label text{fill:#333;}#mermaid-svg-Z0cYnlJo7DIilFRn .cluster-label span{color:#333;}#mermaid-svg-Z0cYnlJo7DIilFRn .cluster-label span p{background-color:transparent;}#mermaid-svg-Z0cYnlJo7DIilFRn .label text,#mermaid-svg-Z0cYnlJo7DIilFRn span{fill:#333;color:#333;}#mermaid-svg-Z0cYnlJo7DIilFRn .node rect,#mermaid-svg-Z0cYnlJo7DIilFRn .node circle,#mermaid-svg-Z0cYnlJo7DIilFRn .node ellipse,#mermaid-svg-Z0cYnlJo7DIilFRn .node polygon,#mermaid-svg-Z0cYnlJo7DIilFRn .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-Z0cYnlJo7DIilFRn .rough-node .label text,#mermaid-svg-Z0cYnlJo7DIilFRn .node .label text,#mermaid-svg-Z0cYnlJo7DIilFRn .image-shape .label,#mermaid-svg-Z0cYnlJo7DIilFRn .icon-shape .label{text-anchor:middle;}#mermaid-svg-Z0cYnlJo7DIilFRn .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-Z0cYnlJo7DIilFRn .rough-node .label,#mermaid-svg-Z0cYnlJo7DIilFRn .node .label,#mermaid-svg-Z0cYnlJo7DIilFRn .image-shape .label,#mermaid-svg-Z0cYnlJo7DIilFRn .icon-shape .label{text-align:center;}#mermaid-svg-Z0cYnlJo7DIilFRn .node.clickable{cursor:pointer;}#mermaid-svg-Z0cYnlJo7DIilFRn .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-Z0cYnlJo7DIilFRn .arrowheadPath{fill:#333333;}#mermaid-svg-Z0cYnlJo7DIilFRn .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-Z0cYnlJo7DIilFRn .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-Z0cYnlJo7DIilFRn .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Z0cYnlJo7DIilFRn .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-Z0cYnlJo7DIilFRn .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Z0cYnlJo7DIilFRn .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-Z0cYnlJo7DIilFRn .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-Z0cYnlJo7DIilFRn .cluster text{fill:#333;}#mermaid-svg-Z0cYnlJo7DIilFRn .cluster span{color:#333;}#mermaid-svg-Z0cYnlJo7DIilFRn div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-Z0cYnlJo7DIilFRn .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-Z0cYnlJo7DIilFRn rect.text{fill:none;stroke-width:0;}#mermaid-svg-Z0cYnlJo7DIilFRn .icon-shape,#mermaid-svg-Z0cYnlJo7DIilFRn .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Z0cYnlJo7DIilFRn .icon-shape p,#mermaid-svg-Z0cYnlJo7DIilFRn .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-Z0cYnlJo7DIilFRn .icon-shape .label rect,#mermaid-svg-Z0cYnlJo7DIilFRn .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Z0cYnlJo7DIilFRn .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-Z0cYnlJo7DIilFRn .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-Z0cYnlJo7DIilFRn :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"nodeLabel\"><\/p>\n<p>\u672c\u7bc7\u8fd0\u884c\u65f6<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u534f\u8bae\u5b9a\u4e49 26\u7bc7<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>methods: list\/call<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u539f\u8bed: Tools<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>initialize \u5efa\u4f1a\u8bdd<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>tools\/list \u53d1\u73b0<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6ce8\u518c\u8868 \u8def\u7531<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>tools\/call \u8c03\u7528<\/p>\n<p><\/span><\/p>\n<h4>2.17 \u5de5\u5177\u8c03\u7528\u94fe\u8def\u7684\u5168\u666f\u56fe<\/h4>\n<p>\u628a\u672c\u7bc7\u6240\u6709\u6982\u5ff5\u653e\u8fdb\u4e00\u5f20\u56fe&#xff1a;<\/p>\n<p>#mermaid-svg-tMF4hEDJQPT0MvrD{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-tMF4hEDJQPT0MvrD .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-tMF4hEDJQPT0MvrD .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-tMF4hEDJQPT0MvrD .error-icon{fill:#552222;}#mermaid-svg-tMF4hEDJQPT0MvrD .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-tMF4hEDJQPT0MvrD .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-tMF4hEDJQPT0MvrD .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-tMF4hEDJQPT0MvrD .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-tMF4hEDJQPT0MvrD .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-tMF4hEDJQPT0MvrD .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-tMF4hEDJQPT0MvrD .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-tMF4hEDJQPT0MvrD .marker{fill:#333333;stroke:#333333;}#mermaid-svg-tMF4hEDJQPT0MvrD .marker.cross{stroke:#333333;}#mermaid-svg-tMF4hEDJQPT0MvrD svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-tMF4hEDJQPT0MvrD p{margin:0;}#mermaid-svg-tMF4hEDJQPT0MvrD .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-tMF4hEDJQPT0MvrD .cluster-label text{fill:#333;}#mermaid-svg-tMF4hEDJQPT0MvrD .cluster-label span{color:#333;}#mermaid-svg-tMF4hEDJQPT0MvrD .cluster-label span p{background-color:transparent;}#mermaid-svg-tMF4hEDJQPT0MvrD .label text,#mermaid-svg-tMF4hEDJQPT0MvrD span{fill:#333;color:#333;}#mermaid-svg-tMF4hEDJQPT0MvrD .node rect,#mermaid-svg-tMF4hEDJQPT0MvrD .node circle,#mermaid-svg-tMF4hEDJQPT0MvrD .node ellipse,#mermaid-svg-tMF4hEDJQPT0MvrD .node polygon,#mermaid-svg-tMF4hEDJQPT0MvrD .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-tMF4hEDJQPT0MvrD .rough-node .label text,#mermaid-svg-tMF4hEDJQPT0MvrD .node .label text,#mermaid-svg-tMF4hEDJQPT0MvrD .image-shape .label,#mermaid-svg-tMF4hEDJQPT0MvrD .icon-shape .label{text-anchor:middle;}#mermaid-svg-tMF4hEDJQPT0MvrD .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-tMF4hEDJQPT0MvrD .rough-node .label,#mermaid-svg-tMF4hEDJQPT0MvrD .node .label,#mermaid-svg-tMF4hEDJQPT0MvrD .image-shape .label,#mermaid-svg-tMF4hEDJQPT0MvrD .icon-shape .label{text-align:center;}#mermaid-svg-tMF4hEDJQPT0MvrD .node.clickable{cursor:pointer;}#mermaid-svg-tMF4hEDJQPT0MvrD .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-tMF4hEDJQPT0MvrD .arrowheadPath{fill:#333333;}#mermaid-svg-tMF4hEDJQPT0MvrD .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-tMF4hEDJQPT0MvrD .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-tMF4hEDJQPT0MvrD .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-tMF4hEDJQPT0MvrD .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-tMF4hEDJQPT0MvrD .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-tMF4hEDJQPT0MvrD .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-tMF4hEDJQPT0MvrD .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-tMF4hEDJQPT0MvrD .cluster text{fill:#333;}#mermaid-svg-tMF4hEDJQPT0MvrD .cluster span{color:#333;}#mermaid-svg-tMF4hEDJQPT0MvrD div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-tMF4hEDJQPT0MvrD .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-tMF4hEDJQPT0MvrD rect.text{fill:none;stroke-width:0;}#mermaid-svg-tMF4hEDJQPT0MvrD .icon-shape,#mermaid-svg-tMF4hEDJQPT0MvrD .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-tMF4hEDJQPT0MvrD .icon-shape p,#mermaid-svg-tMF4hEDJQPT0MvrD .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-tMF4hEDJQPT0MvrD .icon-shape .label rect,#mermaid-svg-tMF4hEDJQPT0MvrD .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-tMF4hEDJQPT0MvrD .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-tMF4hEDJQPT0MvrD .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-tMF4hEDJQPT0MvrD :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Client<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6ce8\u518c\u8868<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6821\u9a8c\u5668<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9650\u6d41\u5668<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5ba1\u8ba1<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Server A<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Server B<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7ed3\u679c\u5904\u7406<\/p>\n<p><\/span><\/p>\n<h4>2.18 \u672c\u7ae0\u5c0f\u7ed3&#xff08;\u7ec8\u7248&#xff09;<\/h4>\n<p>\u53d1\u73b0\u4e0e\u8c03\u7528\u662f Agent \u5de5\u5177\u80fd\u529b\u7684&#034;\u4e24\u6761\u817f&#034;&#xff1a;\u53d1\u73b0\u89e3\u51b3&#034;\u6709\u4ec0\u4e48\u53ef\u7528&#034;&#xff0c;\u8c03\u7528\u89e3\u51b3&#034;\u600e\u4e48\u7528\u8d77\u6765&#034;\u3002\u8def\u7531\u6ce8\u518c\u8868\u628a\u591a Server \u7684\u590d\u6742\u62d3\u6251\u6536\u655b\u4e3a\u4e00\u5f20\u53ef\u67e5\u8be2\u7684\u8868&#xff0c;\u8ba9 Agent \u7684\u8c03\u7528\u4ece&#034;\u904d\u5386\u731c&#034;\u53d8\u6210&#034;\u67e5\u8868\u76f4\u8fbe&#034;\u3002\u914d\u5957\u6821\u9a8c\u3001\u9650\u6d41\u3001\u5ba1\u8ba1\u3001\u7ed3\u679c\u5904\u7406&#xff0c;\u6784\u6210\u5b8c\u6574\u7684\u8c03\u7528\u94fe\u8def\u3002<\/p>\n<hr \/>\n<h3>\u7b2c 3 \u7ae0 \u56db\u9636\u6bb5\u6d41\u7a0b\u5168\u666f<\/h3>\n<h4>3.1 \u6e90\u6587\u6863\u65f6\u5e8f\u56fe<\/h4>\n<p>\u6e90\u6587\u6863 6.4 \u7ed9\u51fa\u5b8c\u6574\u65f6\u5e8f\u56fe&#xff0c;\u672c\u7bc7\u7b2c 3 \u7ae0\u5148\u539f\u6837\u627f\u63a5\u5e76\u9010\u6bb5\u89e3\u8bfb&#xff0c;\u7b2c 4\u20137 \u7ae0\u518d\u5206\u522b\u6df1\u62c6\u3002<\/p>\n<p>Slack MCP ServerGitHub MCP Server\u8def\u7531\u6ce8\u518c\u8868MCP ClientAgent\u8ba4\u77e5\u5c42Slack MCP ServerGitHub MCP Server\u8def\u7531\u6ce8\u518c\u8868MCP ClientAgent\u8ba4\u77e5\u5c42#mermaid-svg-x554nxnwWeqOZo8t{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-x554nxnwWeqOZo8t .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-x554nxnwWeqOZo8t .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-x554nxnwWeqOZo8t .error-icon{fill:#552222;}#mermaid-svg-x554nxnwWeqOZo8t .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-x554nxnwWeqOZo8t .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-x554nxnwWeqOZo8t .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-x554nxnwWeqOZo8t .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-x554nxnwWeqOZo8t .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-x554nxnwWeqOZo8t .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-x554nxnwWeqOZo8t .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-x554nxnwWeqOZo8t .marker{fill:#333333;stroke:#333333;}#mermaid-svg-x554nxnwWeqOZo8t .marker.cross{stroke:#333333;}#mermaid-svg-x554nxnwWeqOZo8t svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-x554nxnwWeqOZo8t p{margin:0;}#mermaid-svg-x554nxnwWeqOZo8t .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-x554nxnwWeqOZo8t text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-x554nxnwWeqOZo8t .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-x554nxnwWeqOZo8t .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-x554nxnwWeqOZo8t .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-x554nxnwWeqOZo8t .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-x554nxnwWeqOZo8t #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-x554nxnwWeqOZo8t .sequenceNumber{fill:white;}#mermaid-svg-x554nxnwWeqOZo8t #sequencenumber{fill:#333;}#mermaid-svg-x554nxnwWeqOZo8t #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-x554nxnwWeqOZo8t .messageText{fill:#333;stroke:none;}#mermaid-svg-x554nxnwWeqOZo8t .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-x554nxnwWeqOZo8t .labelText,#mermaid-svg-x554nxnwWeqOZo8t .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-x554nxnwWeqOZo8t .loopText,#mermaid-svg-x554nxnwWeqOZo8t .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-x554nxnwWeqOZo8t .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-x554nxnwWeqOZo8t .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-x554nxnwWeqOZo8t .noteText,#mermaid-svg-x554nxnwWeqOZo8t .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-x554nxnwWeqOZo8t .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-x554nxnwWeqOZo8t .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-x554nxnwWeqOZo8t .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-x554nxnwWeqOZo8t .actorPopupMenu{position:absolute;}#mermaid-svg-x554nxnwWeqOZo8t .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-x554nxnwWeqOZo8t .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-x554nxnwWeqOZo8t .actor-man circle,#mermaid-svg-x554nxnwWeqOZo8t line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-x554nxnwWeqOZo8t :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}\u9636\u6bb51&#xff1a;\u521d\u59cb\u5316\u9636\u6bb52&#xff1a;\u5de5\u5177\u53d1\u73b0search_code \u2192 ServerAcreate_issue \u2192 ServerAsend_message \u2192 ServerB\u9636\u6bb53&#xff1a;\u5de5\u5177\u8c03\u7528\u6267\u884cGitHub API\u641c\u7d22\u9636\u6bb54&#xff1a;\u5de5\u5177\u8c03\u7528&#xff08;\u53e6\u4e00\u4e2a\u5de5\u5177&#xff09;\u542f\u52a8&#xff0c;\u9700\u8981\u8fde\u63a5\u5de5\u5177initialize()\u652f\u6301tools, resources, promptsinitialize()\u652f\u6301tools, resourcestools\/list()[search_code, create_issue, list_prs, &#8230;]tools\/list()[send_message, list_channels, &#8230;]\u6ce8\u518c\u5de5\u5177\u8def\u7531\u8868call_tool(&#034;search_code&#034;, {query:&#034;auth&#034;, repo:&#034;myrepo&#034;})\u67e5\u627esearch_code \u2192 ServerAServerAtools\/call(&#034;search_code&#034;, {query:&#034;auth&#034;, repo:&#034;myrepo&#034;})\u7ed3\u679c&#xff1a;\u627e\u52305\u4e2a\u5339\u914d\u6587\u4ef6\u8fd4\u56de\u641c\u7d22\u7ed3\u679ccall_tool(&#034;send_message&#034;, {channel:&#034;\u67e5\u627esend_message \u2192 ServerBtools\/call(&#034;send_message&#034;, {&#8230;})\u6d88\u606f\u5df2\u53d1\u9001\u8fd4\u56de\u53d1\u9001\u7ed3\u679c<\/p>\n<h4>3.2 \u9636\u6bb5 1&#xff1a;\u521d\u59cb\u5316\u2014\u2014\u5efa\u4f1a\u8bdd<\/h4>\n<p>Agent \u542f\u52a8\u540e&#xff0c;\u7b2c\u4e00\u4ef6\u4e8b\u662f\u5411\u6bcf\u4e2a\u8981\u8fde\u63a5\u7684 Server \u53d1\u8d77 initialize&#xff1a;<\/p>\n<ul>\n<li>Client \u2192 ServerA&#xff1a;initialize()\u3002<\/li>\n<li>ServerA \u56de&#xff1a;\u652f\u6301 tools, resources, prompts&#xff08;\u80fd\u529b\u58f0\u660e&#xff09;\u3002<\/li>\n<li>Client \u2192 ServerB&#xff1a;initialize()\u3002<\/li>\n<li>ServerB \u56de&#xff1a;\u652f\u6301 tools, resources&#xff08;\u6ce8\u610f&#xff1a;ServerB \u6ca1\u6709\u58f0\u660e prompts&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u5173\u952e\u70b9&#xff1a;\u6bcf\u4e2a Server \u7684\u80fd\u529b\u96c6\u53ef\u80fd\u4e0d\u540c\u3002Client \u5728\u521d\u59cb\u5316\u9636\u6bb5\u5c31\u77e5\u9053&#034;\u54ea\u4e2a Server \u80fd\u5e72\u4ec0\u4e48&#034;&#xff0c;\u4e3a\u540e\u7eed\u8def\u7531\u63d0\u4f9b\u4f9d\u636e\u3002<\/p>\n<h4>3.3 \u9636\u6bb5 2&#xff1a;\u5de5\u5177\u53d1\u73b0\u2014\u2014\u62c9\u6e05\u5355<\/h4>\n<p>\u521d\u59cb\u5316\u5b8c\u6210\u540e&#xff0c;Client \u9010\u4e2a\u5411 Server \u53d1 tools\/list&#xff1a;<\/p>\n<ul>\n<li>ServerA \u8fd4\u56de&#xff1a;[search_code, create_issue, list_prs, &#8230;]\u3002<\/li>\n<li>ServerB \u8fd4\u56de&#xff1a;[send_message, list_channels, &#8230;]\u3002<\/li>\n<\/ul>\n<p>\u53d1\u73b0\u7ed3\u679c\u4e0d\u53ea\u662f\u540d\u5b57&#xff0c;\u8fd8\u5305\u62ec\u6bcf\u4e2a\u5de5\u5177\u7684 description \u4e0e inputSchema\u2014\u2014\u8fd9\u662f Agent \u540e\u7eed&#034;\u4f1a\u6b63\u786e\u8c03\u7528&#034;\u7684\u524d\u63d0\u3002<\/p>\n<h4>3.4 \u9636\u6bb5 3&#xff1a;\u6ce8\u518c\u8def\u7531\u2014\u2014\u5efa\u8868<\/h4>\n<p>Client \u628a\u53d1\u73b0\u7ed3\u679c\u5199\u5165\u8def\u7531\u6ce8\u518c\u8868&#xff1a;<\/p>\n<ul>\n<li>search_code \u2192 ServerA<\/li>\n<li>create_issue \u2192 ServerA<\/li>\n<li>send_message \u2192 ServerB<\/li>\n<\/ul>\n<p>\u4ece\u6b64\u4ee5\u540e&#xff0c;Client \u770b\u5230 call_tool(&#034;search_code&#034;, &#8230;) \u5c31\u77e5\u9053\u8be5\u627e ServerA&#xff0c;\u65e0\u9700\u518d\u904d\u5386\u3002<\/p>\n<h4>3.5 \u9636\u6bb5 4&#xff1a;\u5de5\u5177\u8c03\u7528\u2014\u2014\u6267\u884c<\/h4>\n<p>Agent \u53d1\u8d77\u8c03\u7528&#xff1a;<\/p>\n<li>call_tool(&#034;search_code&#034;, {query:&#034;auth&#034;, repo:&#034;myrepo&#034;})\u3002<\/li>\n<li>Client \u67e5\u6ce8\u518c\u8868 \u2192 \u627e\u5230 ServerA\u3002<\/li>\n<li>Client \u8f6c\u53d1 tools\/call(&#034;search_code&#034;, {&#8230;}) \u7ed9 ServerA\u3002<\/li>\n<li>ServerA \u6267\u884c GitHub API \u641c\u7d22&#xff0c;\u8fd4\u56de&#034;\u627e\u5230 5 \u4e2a\u5339\u914d\u6587\u4ef6&#034;\u3002<\/li>\n<li>Client \u628a\u7ed3\u679c\u56de\u4f20\u7ed9 Agent\u3002<\/li>\n<p>\u518d\u8c03 send_message \u65f6\u8d70\u540c\u4e00\u8def\u5f84&#xff0c;\u4f46\u8def\u7531\u5230 ServerB\u3002<\/p>\n<h4>3.6 \u56db\u9636\u6bb5\u7684\u65f6\u5e8f\u7279\u5f81<\/h4>\n<p>#mermaid-svg-FSNIzXDAFbsjiQMh{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-FSNIzXDAFbsjiQMh .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-FSNIzXDAFbsjiQMh .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-FSNIzXDAFbsjiQMh .error-icon{fill:#552222;}#mermaid-svg-FSNIzXDAFbsjiQMh .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-FSNIzXDAFbsjiQMh .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-FSNIzXDAFbsjiQMh .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-FSNIzXDAFbsjiQMh .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-FSNIzXDAFbsjiQMh .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-FSNIzXDAFbsjiQMh .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-FSNIzXDAFbsjiQMh .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-FSNIzXDAFbsjiQMh .marker{fill:#333333;stroke:#333333;}#mermaid-svg-FSNIzXDAFbsjiQMh .marker.cross{stroke:#333333;}#mermaid-svg-FSNIzXDAFbsjiQMh svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-FSNIzXDAFbsjiQMh p{margin:0;}#mermaid-svg-FSNIzXDAFbsjiQMh defs #statediagram-barbEnd{fill:#333333;stroke:#333333;}#mermaid-svg-FSNIzXDAFbsjiQMh g.stateGroup text{fill:#9370DB;stroke:none;font-size:10px;}#mermaid-svg-FSNIzXDAFbsjiQMh g.stateGroup text{fill:#333;stroke:none;font-size:10px;}#mermaid-svg-FSNIzXDAFbsjiQMh g.stateGroup .state-title{font-weight:bolder;fill:#131300;}#mermaid-svg-FSNIzXDAFbsjiQMh g.stateGroup rect{fill:#ECECFF;stroke:#9370DB;}#mermaid-svg-FSNIzXDAFbsjiQMh g.stateGroup line{stroke:#333333;stroke-width:1;}#mermaid-svg-FSNIzXDAFbsjiQMh .transition{stroke:#333333;stroke-width:1;fill:none;}#mermaid-svg-FSNIzXDAFbsjiQMh .stateGroup .composit{fill:white;border-bottom:1px;}#mermaid-svg-FSNIzXDAFbsjiQMh .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px;}#mermaid-svg-FSNIzXDAFbsjiQMh .state-note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-FSNIzXDAFbsjiQMh .state-note text{fill:black;stroke:none;font-size:10px;}#mermaid-svg-FSNIzXDAFbsjiQMh .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5;}#mermaid-svg-FSNIzXDAFbsjiQMh .edgeLabel .label rect{fill:#ECECFF;opacity:0.5;}#mermaid-svg-FSNIzXDAFbsjiQMh .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-FSNIzXDAFbsjiQMh .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-FSNIzXDAFbsjiQMh .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-FSNIzXDAFbsjiQMh .edgeLabel .label text{fill:#333;}#mermaid-svg-FSNIzXDAFbsjiQMh .label div .edgeLabel{color:#333;}#mermaid-svg-FSNIzXDAFbsjiQMh .stateLabel text{fill:#131300;font-size:10px;font-weight:bold;}#mermaid-svg-FSNIzXDAFbsjiQMh .node circle.state-start{fill:#333333;stroke:#333333;}#mermaid-svg-FSNIzXDAFbsjiQMh .node .fork-join{fill:#333333;stroke:#333333;}#mermaid-svg-FSNIzXDAFbsjiQMh .node circle.state-end{fill:#9370DB;stroke:white;stroke-width:1.5;}#mermaid-svg-FSNIzXDAFbsjiQMh .end-state-inner{fill:white;stroke-width:1.5;}#mermaid-svg-FSNIzXDAFbsjiQMh .node rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-FSNIzXDAFbsjiQMh .node polygon{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-FSNIzXDAFbsjiQMh #statediagram-barbEnd{fill:#333333;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-cluster rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-FSNIzXDAFbsjiQMh .cluster-label,#mermaid-svg-FSNIzXDAFbsjiQMh .nodeLabel{color:#131300;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-cluster rect.outer{rx:5px;ry:5px;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-state .divider{stroke:#9370DB;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-state .title-state{rx:5px;ry:5px;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-cluster.statediagram-cluster .inner{fill:white;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-cluster.statediagram-cluster-alt .inner{fill:#f0f0f0;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-cluster .inner{rx:0;ry:0;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-state rect.basic{rx:5px;ry:5px;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#f0f0f0;}#mermaid-svg-FSNIzXDAFbsjiQMh .note-edge{stroke-dasharray:5;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-note rect{fill:#fff5ad;stroke:#aaaa33;stroke-width:1px;rx:0;ry:0;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-note rect{fill:#fff5ad;stroke:#aaaa33;stroke-width:1px;rx:0;ry:0;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-note text{fill:black;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram-note .nodeLabel{color:black;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagram .edgeLabel{color:red;}#mermaid-svg-FSNIzXDAFbsjiQMh #dependencyStart,#mermaid-svg-FSNIzXDAFbsjiQMh #dependencyEnd{fill:#333333;stroke:#333333;stroke-width:1;}#mermaid-svg-FSNIzXDAFbsjiQMh .statediagramTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-FSNIzXDAFbsjiQMh :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>initialize \u6210\u529f<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>tools\/list \u8fd4\u56de<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u6ce8\u518c\u8868\u5c31\u7eea<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u65b0\u5de5\u5177\u4e0a\u7ebf\u9700\u91cd\u65b0\u53d1\u73b0<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u4f1a\u8bdd\u5173\u95ed<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u521d\u59cb\u5316<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u53d1\u73b0<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6ce8\u518c<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8c03\u7528<\/p>\n<p><\/span><\/p>\n<h4>3.7 \u56db\u9636\u6bb5\u5404\u81ea\u7684\u5931\u8d25\u70b9<\/h4>\n<table>\n<tr>\u9636\u6bb5\u5178\u578b\u5931\u8d25\u540e\u679c<\/tr>\n<tbody>\n<tr>\n<td>\u521d\u59cb\u5316<\/td>\n<td>Server \u4e0d\u652f\u6301\u534f\u8bae\u7248\u672c<\/td>\n<td>\u65e0\u6cd5\u5efa\u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td>\u53d1\u73b0<\/td>\n<td>tools\/list \u8d85\u65f6<\/td>\n<td>\u5de5\u5177\u6e05\u5355\u4e0d\u5168<\/td>\n<\/tr>\n<tr>\n<td>\u6ce8\u518c<\/td>\n<td>\u5de5\u5177\u540d\u51b2\u7a81<\/td>\n<td>\u8def\u7531\u9519\u4e71<\/td>\n<\/tr>\n<tr>\n<td>\u8c03\u7528<\/td>\n<td>\u53c2\u6570\u4e0d\u7b26\u5408 schema<\/td>\n<td>\u8c03\u7528\u5931\u8d25<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.8 \u9636\u6bb5\u8017\u65f6\u53c2\u8003<\/h4>\n<table>\n<tr>\u9636\u6bb5\u5178\u578b\u8017\u65f6\u4f18\u5316\u624b\u6bb5<\/tr>\n<tbody>\n<tr>\n<td>\u521d\u59cb\u5316<\/td>\n<td>50\u2013200ms\/Server<\/td>\n<td>\u5e76\u884c initialize<\/td>\n<\/tr>\n<tr>\n<td>\u53d1\u73b0<\/td>\n<td>10\u201350ms\/Server<\/td>\n<td>\u7f13\u5b58\u6e05\u5355<\/td>\n<\/tr>\n<tr>\n<td>\u6ce8\u518c<\/td>\n<td>&lt;1ms<\/td>\n<td>\u54c8\u5e0c\u8868<\/td>\n<\/tr>\n<tr>\n<td>\u8c03\u7528<\/td>\n<td>\u53d6\u51b3\u4e8e Server<\/td>\n<td>\u5f02\u6b65\/\u6279\u5904\u7406<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.9 \u56db\u9636\u6bb5\u5168\u666f\u901f\u8bb0<\/h4>\n<p>\u521d\u59cb\u5316\u5efa\u901a\u9053\u3001\u53d1\u73b0\u62c9\u6e05\u5355\u3001\u6ce8\u518c\u5efa\u8def\u7531\u3001\u8c03\u7528\u505a\u6267\u884c\u2014\u2014\u53d1\u73b0\u4e00\u6b21\u3001\u8c03\u7528\u591a\u6b21\u662f\u5e38\u6001&#xff1a;Agent \u542f\u52a8\u65f6\u5b8c\u6210 1\u20133 \u9636\u6bb5&#xff0c;\u8fd0\u884c\u4e2d\u53cd\u590d\u6267\u884c\u7b2c 4 \u9636\u6bb5\u3002<\/p>\n<h4>3.11 \u9636\u6bb5 1 \u6df1\u6316&#xff1a;\u521d\u59cb\u5316\u505a\u4e86\u4ec0\u4e48<\/h4>\n<p>initialize \u4e0d\u53ea\u662f&#034;\u6253\u4e2a\u62db\u547c&#034;&#xff0c;\u5b83\u5728\u4ea4\u6362\u4e09\u6837\u4e1c\u897f&#xff1a;<\/p>\n<li>\u534f\u8bae\u7248\u672c&#xff1a;Client \u4e0e Server \u5404\u62a5\u652f\u6301\u7684\u7248\u672c&#xff0c;\u53d6\u4ea4\u96c6\u3002<\/li>\n<li>\u80fd\u529b\u58f0\u660e&#xff1a;Server \u544a\u8bc9 Client \u81ea\u5df1\u652f\u6301\u54ea\u4e9b\u539f\u8bed&#xff08;tools\/resources\/prompts&#xff09;\u4e0e\u7279\u6027&#xff08;\u5982\u6d41\u5f0f\u8fdb\u5ea6&#xff09;\u3002<\/li>\n<li>\u5b9e\u73b0\u4fe1\u606f&#xff1a;Client \u4e0e Server \u5404\u62a5\u540d\u79f0\u4e0e\u7248\u672c&#xff0c;\u4fbf\u4e8e\u6392\u969c\u3002<\/li>\n<p>ServerClientServerClient#mermaid-svg-NyAqQVUMHr9tTc0b{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-NyAqQVUMHr9tTc0b .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-NyAqQVUMHr9tTc0b .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-NyAqQVUMHr9tTc0b .error-icon{fill:#552222;}#mermaid-svg-NyAqQVUMHr9tTc0b .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-NyAqQVUMHr9tTc0b .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-NyAqQVUMHr9tTc0b .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-NyAqQVUMHr9tTc0b .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-NyAqQVUMHr9tTc0b .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-NyAqQVUMHr9tTc0b .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-NyAqQVUMHr9tTc0b .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-NyAqQVUMHr9tTc0b .marker{fill:#333333;stroke:#333333;}#mermaid-svg-NyAqQVUMHr9tTc0b .marker.cross{stroke:#333333;}#mermaid-svg-NyAqQVUMHr9tTc0b svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-NyAqQVUMHr9tTc0b p{margin:0;}#mermaid-svg-NyAqQVUMHr9tTc0b .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-NyAqQVUMHr9tTc0b text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-NyAqQVUMHr9tTc0b .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-NyAqQVUMHr9tTc0b .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-NyAqQVUMHr9tTc0b .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-NyAqQVUMHr9tTc0b .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-NyAqQVUMHr9tTc0b #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-NyAqQVUMHr9tTc0b .sequenceNumber{fill:white;}#mermaid-svg-NyAqQVUMHr9tTc0b #sequencenumber{fill:#333;}#mermaid-svg-NyAqQVUMHr9tTc0b #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-NyAqQVUMHr9tTc0b .messageText{fill:#333;stroke:none;}#mermaid-svg-NyAqQVUMHr9tTc0b .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-NyAqQVUMHr9tTc0b .labelText,#mermaid-svg-NyAqQVUMHr9tTc0b .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-NyAqQVUMHr9tTc0b .loopText,#mermaid-svg-NyAqQVUMHr9tTc0b .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-NyAqQVUMHr9tTc0b .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-NyAqQVUMHr9tTc0b .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-NyAqQVUMHr9tTc0b .noteText,#mermaid-svg-NyAqQVUMHr9tTc0b .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-NyAqQVUMHr9tTc0b .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-NyAqQVUMHr9tTc0b .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-NyAqQVUMHr9tTc0b .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-NyAqQVUMHr9tTc0b .actorPopupMenu{position:absolute;}#mermaid-svg-NyAqQVUMHr9tTc0b .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-NyAqQVUMHr9tTc0b .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-NyAqQVUMHr9tTc0b .actor-man circle,#mermaid-svg-NyAqQVUMHr9tTc0b line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-NyAqQVUMHr9tTc0b :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}\u4f1a\u8bdd\u8fdb\u5165\u5c31\u7eea\u6001initialize(protocolVersion, capabilities, clientInfo)InitializeResult(protocolVersion, capabilities, serverInfo)notifications\/initialized<\/p>\n<h4>3.12 \u9636\u6bb5 1 \u6df1\u6316&#xff1a;\u80fd\u529b\u5dee\u5f02\u7684\u610f\u4e49<\/h4>\n<p>\u6e90\u65f6\u5e8f\u56fe\u4e2d ServerA \u58f0\u660e\u4e86 prompts\u3001ServerB \u6ca1\u6709\u2014\u2014\u8fd9\u4e2a\u7ec6\u8282\u5f88\u91cd\u8981&#xff1a;<\/p>\n<ul>\n<li>Client \u4f1a\u4e3a ServerA \u5f00\u653e prompts \u76f8\u5173\u80fd\u529b&#xff08;prompts\/list\u3001prompts\/get&#xff09;\u3002<\/li>\n<li>\u5bf9 ServerB&#xff0c;Client \u4e0d\u4f1a\u5c55\u793a&#034;\u6a21\u677f\u8c03\u7528&#034;\u8fd9\u7c7b\u529f\u80fd&#xff0c;\u907f\u514d Agent \u8bef\u7528\u3002<\/li>\n<\/ul>\n<p>\u80fd\u529b\u534f\u5546\u7684\u672c\u8d28\u662f\u907f\u514d\u534f\u8bae\u53cc\u65b9\u4e92\u76f8\u5047\u8bbe&#xff1a;\u4e00\u5207\u4ee5\u58f0\u660e\u4e3a\u51c6\u3002<\/p>\n<h4>3.13 \u9636\u6bb5 1 \u6df1\u6316&#xff1a;\u591a\u4e2a Server \u5e76\u884c\u521d\u59cb\u5316<\/h4>\n<p>\u591a Server \u573a\u666f\u4e0b&#xff0c;\u521d\u59cb\u5316\u5e94\u5e76\u884c\u800c\u975e\u4e32\u884c&#xff1a;<\/p>\n<p>#mermaid-svg-mXjNPB1QoVVxVxjX{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-mXjNPB1QoVVxVxjX .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-mXjNPB1QoVVxVxjX .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-mXjNPB1QoVVxVxjX .error-icon{fill:#552222;}#mermaid-svg-mXjNPB1QoVVxVxjX .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-mXjNPB1QoVVxVxjX .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-mXjNPB1QoVVxVxjX .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-mXjNPB1QoVVxVxjX .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-mXjNPB1QoVVxVxjX .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-mXjNPB1QoVVxVxjX .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-mXjNPB1QoVVxVxjX .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-mXjNPB1QoVVxVxjX .marker{fill:#333333;stroke:#333333;}#mermaid-svg-mXjNPB1QoVVxVxjX .marker.cross{stroke:#333333;}#mermaid-svg-mXjNPB1QoVVxVxjX svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-mXjNPB1QoVVxVxjX p{margin:0;}#mermaid-svg-mXjNPB1QoVVxVxjX .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-mXjNPB1QoVVxVxjX .cluster-label text{fill:#333;}#mermaid-svg-mXjNPB1QoVVxVxjX .cluster-label span{color:#333;}#mermaid-svg-mXjNPB1QoVVxVxjX .cluster-label span p{background-color:transparent;}#mermaid-svg-mXjNPB1QoVVxVxjX .label text,#mermaid-svg-mXjNPB1QoVVxVxjX span{fill:#333;color:#333;}#mermaid-svg-mXjNPB1QoVVxVxjX .node rect,#mermaid-svg-mXjNPB1QoVVxVxjX .node circle,#mermaid-svg-mXjNPB1QoVVxVxjX .node ellipse,#mermaid-svg-mXjNPB1QoVVxVxjX .node polygon,#mermaid-svg-mXjNPB1QoVVxVxjX .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-mXjNPB1QoVVxVxjX .rough-node .label text,#mermaid-svg-mXjNPB1QoVVxVxjX .node .label text,#mermaid-svg-mXjNPB1QoVVxVxjX .image-shape .label,#mermaid-svg-mXjNPB1QoVVxVxjX .icon-shape .label{text-anchor:middle;}#mermaid-svg-mXjNPB1QoVVxVxjX .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-mXjNPB1QoVVxVxjX .rough-node .label,#mermaid-svg-mXjNPB1QoVVxVxjX .node .label,#mermaid-svg-mXjNPB1QoVVxVxjX .image-shape .label,#mermaid-svg-mXjNPB1QoVVxVxjX .icon-shape .label{text-align:center;}#mermaid-svg-mXjNPB1QoVVxVxjX .node.clickable{cursor:pointer;}#mermaid-svg-mXjNPB1QoVVxVxjX .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-mXjNPB1QoVVxVxjX .arrowheadPath{fill:#333333;}#mermaid-svg-mXjNPB1QoVVxVxjX .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-mXjNPB1QoVVxVxjX .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-mXjNPB1QoVVxVxjX .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-mXjNPB1QoVVxVxjX .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-mXjNPB1QoVVxVxjX .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-mXjNPB1QoVVxVxjX .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-mXjNPB1QoVVxVxjX .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-mXjNPB1QoVVxVxjX .cluster text{fill:#333;}#mermaid-svg-mXjNPB1QoVVxVxjX .cluster span{color:#333;}#mermaid-svg-mXjNPB1QoVVxVxjX div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-mXjNPB1QoVVxVxjX .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-mXjNPB1QoVVxVxjX rect.text{fill:none;stroke-width:0;}#mermaid-svg-mXjNPB1QoVVxVxjX .icon-shape,#mermaid-svg-mXjNPB1QoVVxVxjX .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-mXjNPB1QoVVxVxjX .icon-shape p,#mermaid-svg-mXjNPB1QoVVxVxjX .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-mXjNPB1QoVVxVxjX .icon-shape .label rect,#mermaid-svg-mXjNPB1QoVVxVxjX .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-mXjNPB1QoVVxVxjX .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-mXjNPB1QoVVxVxjX .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-mXjNPB1QoVVxVxjX :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent \u542f\u52a8<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5e76\u884c initialize<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>GitHub \u5c31\u7eea<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Slack \u5c31\u7eea<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6570\u636e\u5e93\u5c31\u7eea<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5168\u90e8\u5c31\u7eea<\/p>\n<p><\/span><\/p>\n<p>\u5e76\u884c\u53ef\u628a&#034;3 \u00d7 100ms&#034;\u538b\u5230&#034;\u7ea6 100ms&#034;\u3002\u4f46\u6ce8\u610f&#xff1a;\u90e8\u5206 Server \u521d\u59cb\u5316\u5931\u8d25\u4e0d\u5e94\u963b\u65ad\u6574\u4f53\u542f\u52a8&#xff0c;\u5931\u8d25\u8005\u6807\u8bb0\u964d\u7ea7\u5373\u53ef\u3002<\/p>\n<h4>3.14 \u9636\u6bb5 1 \u6df1\u6316&#xff1a;\u521d\u59cb\u5316\u5931\u8d25\u7684\u5904\u7406<\/h4>\n<table>\n<tr>\u5931\u8d25\u539f\u56e0\u5904\u7406<\/tr>\n<tbody>\n<tr>\n<td>\u7248\u672c\u4e0d\u517c\u5bb9<\/td>\n<td>\u63d0\u793a\u5347\u7ea7 Client \u6216 Server<\/td>\n<\/tr>\n<tr>\n<td>\u8ba4\u8bc1\u5931\u8d25<\/td>\n<td>\u5f15\u5bfc\u91cd\u65b0\u6388\u6743<\/td>\n<\/tr>\n<tr>\n<td>Server \u4e0d\u5b58\u5728<\/td>\n<td>\u4ece\u8fde\u63a5\u6e05\u5355\u79fb\u9664\u5e76\u544a\u8b66<\/td>\n<\/tr>\n<tr>\n<td>\u7f51\u7edc\u4e0d\u53ef\u8fbe<\/td>\n<td>\u6807\u8bb0\u79bb\u7ebf&#xff0c;\u5b9a\u65f6\u91cd\u8bd5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.15 \u9636\u6bb5 2 \u6df1\u6316&#xff1a;\u53d1\u73b0\u7684\u5185\u5bb9\u4e0d\u6b62\u540d\u5b57<\/h4>\n<p>tools\/list \u8fd4\u56de\u7684\u6bcf\u4e2a\u5de5\u5177\u90fd\u5e26\u5b8c\u6574\u5143\u4fe1\u606f&#xff0c;Agent \u7684&#034;\u8ba4\u77e5&#034;\u4f9d\u8d56\u8fd9\u4e9b\u5143\u4fe1\u606f&#xff1a;<\/p>\n<ul>\n<li>name&#xff1a;\u8c03\u7528\u6807\u8bc6\u3002<\/li>\n<li>description&#xff1a;\u7528\u9014\u8bf4\u660e&#xff0c;\u662f Agent \u9009\u578b\u4f9d\u636e\u3002<\/li>\n<li>inputSchema&#xff1a;\u53c2\u6570\u7ed3\u6784&#xff0c;\u662f Agent \u586b\u53c2\u4f9d\u636e\u3002<\/li>\n<li>outputSchema&#xff08;\u53ef\u9009&#xff09;&#xff1a;\u8fd4\u56de\u7ed3\u6784&#xff0c;\u5e2e\u52a9 Agent \u9884\u5224\u7ed3\u679c\u3002<\/li>\n<li>annotations&#xff08;\u53ef\u9009&#xff09;&#xff1a;\u5371\u9669\u7a0b\u5ea6\u3001\u53ea\u8bfb\u6027\u7b49\u6807\u6ce8\u3002<\/li>\n<\/ul>\n<h4>3.16 \u9636\u6bb5 2 \u6df1\u6316&#xff1a;\u53d1\u73b0\u7ed3\u679c\u5982\u4f55\u53d8\u6210 Agent \u7684&#034;\u80fd\u529b\u5730\u56fe&#034;<\/h4>\n<p>Agent \u770b\u5230\u53d1\u73b0\u7ed3\u679c\u540e&#xff0c;\u4f1a\u628a\u5b83\u6298\u53e0\u8fdb\u81ea\u5df1\u7684\u63d0\u793a\u8bcd\/\u4e0a\u4e0b\u6587&#xff1a;\u201c\u5f53\u524d\u53ef\u7528\u5de5\u5177&#xff1a;GitHub \u63d0\u4f9b search_code\u3001create_issue\u2026\u2026&#xff1b;Slack \u63d0\u4f9b send_message\u2026\u2026\u201d\u3002\u8fd9\u5c31\u662f Agent&#034;\u77e5\u9053\u81ea\u5df1\u4f1a\u4ec0\u4e48&#034;\u7684\u6765\u6e90\u2014\u2014\u6ca1\u6709\u53d1\u73b0&#xff0c;Agent \u5c31\u662f&#034;\u65e0\u624b\u4e4b\u4eba&#034;\u3002<\/p>\n<h4>3.17 \u9636\u6bb5 2 \u6df1\u6316&#xff1a;\u53d1\u73b0\u7684\u9891\u7387\u63a7\u5236<\/h4>\n<table>\n<tr>\u7b56\u7565\u9002\u7528\u573a\u666f\u4ee3\u4ef7<\/tr>\n<tbody>\n<tr>\n<td>\u542f\u52a8\u4e00\u6b21<\/td>\n<td>\u5de5\u5177\u57fa\u672c\u4e0d\u53d8<\/td>\n<td>\u53ef\u80fd\u9519\u8fc7\u53d8\u66f4<\/td>\n<\/tr>\n<tr>\n<td>\u5b9a\u65f6\u5237\u65b0<\/td>\n<td>\u5de5\u5177\u4f1a\u53d8\u5316<\/td>\n<td>\u989d\u5916\u8bf7\u6c42<\/td>\n<\/tr>\n<tr>\n<td>\u901a\u77e5\u9a71\u52a8<\/td>\n<td>\u652f\u6301\u53d8\u66f4\u901a\u77e5\u7684 Server<\/td>\n<td>\u6700\u7701<\/td>\n<\/tr>\n<tr>\n<td>\u5931\u8d25\u89e6\u53d1<\/td>\n<td>\u8c03\u7528\u62a5\u4e0d\u5b58\u5728<\/td>\n<td>\u88ab\u52a8\u515c\u5e95<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.18 \u9636\u6bb5 3 \u6df1\u6316&#xff1a;\u6ce8\u518c\u8868\u4e0e&#034;\u4f1a\u8bdd&#034;\u7684\u7ed1\u5b9a<\/h4>\n<p>\u8def\u7531\u6ce8\u518c\u8868\u7684\u503c\u91cc\u4e3a\u4ec0\u4e48\u5fc5\u987b\u5e26\u4f1a\u8bdd\u53e5\u67c4&#xff1f;\u56e0\u4e3a\u540c\u4e00 Server \u53ef\u80fd\u88ab\u540c\u4e00\u4e2a Client \u4ee5\u591a\u4e2a\u8eab\u4efd\/\u6743\u9650\u5efa\u4e86\u591a\u4e2a\u4f1a\u8bdd&#xff1a;<\/p>\n<p>search_code \u2192 {server: GitHub, session: admin-s1}<br \/>\nsearch_code \u2192 {server: GitHub, session: guest-s2}<\/p>\n<p>Agent \u7528\u4ec0\u4e48\u8eab\u4efd\u8bf4\u8bdd&#xff0c;\u5c31\u8def\u7531\u5230\u54ea\u4e2a\u4f1a\u8bdd\u2014\u2014\u6ce8\u518c\u8868\u662f&#034;\u5de5\u5177 &#043; \u8eab\u4efd&#034;\u7684\u590d\u5408\u8def\u7531\u3002<\/p>\n<h4>3.19 \u9636\u6bb5 3 \u6df1\u6316&#xff1a;\u6ce8\u518c\u65f6\u673a\u4e0e\u539f\u5b50\u6027<\/h4>\n<p>\u6ce8\u518c\u5e94\u4fdd\u8bc1\u539f\u5b50\u6027&#xff1a;\u8981\u4e48\u5168\u90e8\u5de5\u5177\u6ce8\u518c\u6210\u529f&#xff0c;\u8981\u4e48\u56de\u6eda\u3002\u907f\u514d\u51fa\u73b0&#034;\u6ce8\u518c\u4e86\u4e00\u534a&#xff0c;Agent \u67e5\u8868\u53d1\u73b0\u5de5\u5177\u4e0d\u5b8c\u6574&#034;\u7684\u4e2d\u95f4\u6001\u3002\u5b9e\u8df5\u4e0a&#xff1a;\u5148\u6784\u5efa\u5b8c\u6574\u6620\u5c04&#xff0c;\u518d\u4e00\u6b21\u6027\u66ff\u6362\u65e7\u8868\u3002<\/p>\n<h4>3.20 \u9636\u6bb5 4 \u6df1\u6316&#xff1a;Agent \u5982\u4f55\u51b3\u5b9a&#034;\u8c03\u54ea\u4e2a\u5de5\u5177&#034;<\/h4>\n<p>Agent \u4e0d\u662f\u968f\u673a\u9009\u5de5\u5177&#xff0c;\u800c\u662f\u4f9d\u636e\u4efb\u52a1\u4e0e\u5de5\u5177\u63cf\u8ff0\u505a\u5339\u914d&#xff1a;<\/p>\n<li>\u4efb\u52a1&#xff1a;\u201c\u770b\u770b\u4ee3\u7801\u91cc auth \u600e\u4e48\u5b9e\u73b0\u7684\u201d\u3002<\/li>\n<li>\u5019\u9009&#xff1a;search_code&#xff08;\u641c\u4ee3\u7801&#xff09;\u3001create_issue&#xff08;\u5efa\u95ee\u9898&#xff09;\u3001list_pulls&#xff08;\u5217 PR&#xff09;\u3002<\/li>\n<li>\u5339\u914d&#xff1a;search_code \u7684 description \u6700\u8d34\u5408 \u2192 \u9009\u4e2d\u3002<\/li>\n<li>\u586b\u53c2&#xff1a;\u6309 inputSchema \u586b query&#061;\u201cauth\u201d\u3001repo&#061;\u201cmyrepo\u201d\u3002<\/li>\n<p>\u8fd9\u5c31\u662f&#034;\u80fd\u529b\u534f\u5546&#034;\u7684\u5b8c\u6574\u95ed\u73af\u2014\u2014\u63cf\u8ff0\u5199\u5f97\u8d8a\u597d&#xff0c;\u5339\u914d\u8d8a\u51c6\u3002<\/p>\n<h4>3.21 \u9636\u6bb5 4 \u6df1\u6316&#xff1a;\u4e00\u6b21\u8c03\u7528\u7684\u5b8c\u6574\u751f\u547d\u5468\u671f<\/h4>\n<p>#mermaid-svg-3FsNswZOiHI6wkv8{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-3FsNswZOiHI6wkv8 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-3FsNswZOiHI6wkv8 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-3FsNswZOiHI6wkv8 .error-icon{fill:#552222;}#mermaid-svg-3FsNswZOiHI6wkv8 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-3FsNswZOiHI6wkv8 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-3FsNswZOiHI6wkv8 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-3FsNswZOiHI6wkv8 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-3FsNswZOiHI6wkv8 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-3FsNswZOiHI6wkv8 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-3FsNswZOiHI6wkv8 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-3FsNswZOiHI6wkv8 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-3FsNswZOiHI6wkv8 .marker.cross{stroke:#333333;}#mermaid-svg-3FsNswZOiHI6wkv8 svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-3FsNswZOiHI6wkv8 p{margin:0;}#mermaid-svg-3FsNswZOiHI6wkv8 defs #statediagram-barbEnd{fill:#333333;stroke:#333333;}#mermaid-svg-3FsNswZOiHI6wkv8 g.stateGroup text{fill:#9370DB;stroke:none;font-size:10px;}#mermaid-svg-3FsNswZOiHI6wkv8 g.stateGroup text{fill:#333;stroke:none;font-size:10px;}#mermaid-svg-3FsNswZOiHI6wkv8 g.stateGroup .state-title{font-weight:bolder;fill:#131300;}#mermaid-svg-3FsNswZOiHI6wkv8 g.stateGroup rect{fill:#ECECFF;stroke:#9370DB;}#mermaid-svg-3FsNswZOiHI6wkv8 g.stateGroup line{stroke:#333333;stroke-width:1;}#mermaid-svg-3FsNswZOiHI6wkv8 .transition{stroke:#333333;stroke-width:1;fill:none;}#mermaid-svg-3FsNswZOiHI6wkv8 .stateGroup .composit{fill:white;border-bottom:1px;}#mermaid-svg-3FsNswZOiHI6wkv8 .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px;}#mermaid-svg-3FsNswZOiHI6wkv8 .state-note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-3FsNswZOiHI6wkv8 .state-note text{fill:black;stroke:none;font-size:10px;}#mermaid-svg-3FsNswZOiHI6wkv8 .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5;}#mermaid-svg-3FsNswZOiHI6wkv8 .edgeLabel .label rect{fill:#ECECFF;opacity:0.5;}#mermaid-svg-3FsNswZOiHI6wkv8 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-3FsNswZOiHI6wkv8 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-3FsNswZOiHI6wkv8 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-3FsNswZOiHI6wkv8 .edgeLabel .label text{fill:#333;}#mermaid-svg-3FsNswZOiHI6wkv8 .label div .edgeLabel{color:#333;}#mermaid-svg-3FsNswZOiHI6wkv8 .stateLabel text{fill:#131300;font-size:10px;font-weight:bold;}#mermaid-svg-3FsNswZOiHI6wkv8 .node circle.state-start{fill:#333333;stroke:#333333;}#mermaid-svg-3FsNswZOiHI6wkv8 .node .fork-join{fill:#333333;stroke:#333333;}#mermaid-svg-3FsNswZOiHI6wkv8 .node circle.state-end{fill:#9370DB;stroke:white;stroke-width:1.5;}#mermaid-svg-3FsNswZOiHI6wkv8 .end-state-inner{fill:white;stroke-width:1.5;}#mermaid-svg-3FsNswZOiHI6wkv8 .node rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-3FsNswZOiHI6wkv8 .node polygon{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-3FsNswZOiHI6wkv8 #statediagram-barbEnd{fill:#333333;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-cluster rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-3FsNswZOiHI6wkv8 .cluster-label,#mermaid-svg-3FsNswZOiHI6wkv8 .nodeLabel{color:#131300;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-cluster rect.outer{rx:5px;ry:5px;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-state .divider{stroke:#9370DB;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-state .title-state{rx:5px;ry:5px;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-cluster.statediagram-cluster .inner{fill:white;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-cluster.statediagram-cluster-alt .inner{fill:#f0f0f0;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-cluster .inner{rx:0;ry:0;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-state rect.basic{rx:5px;ry:5px;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#f0f0f0;}#mermaid-svg-3FsNswZOiHI6wkv8 .note-edge{stroke-dasharray:5;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-note rect{fill:#fff5ad;stroke:#aaaa33;stroke-width:1px;rx:0;ry:0;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-note rect{fill:#fff5ad;stroke:#aaaa33;stroke-width:1px;rx:0;ry:0;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-note text{fill:black;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram-note .nodeLabel{color:black;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagram .edgeLabel{color:red;}#mermaid-svg-3FsNswZOiHI6wkv8 #dependencyStart,#mermaid-svg-3FsNswZOiHI6wkv8 #dependencyEnd{fill:#333333;stroke:#333333;stroke-width:1;}#mermaid-svg-3FsNswZOiHI6wkv8 .statediagramTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-3FsNswZOiHI6wkv8 :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5408\u6cd5<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u4e0d\u5408\u6cd5<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u8fd4\u56de<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u8d85\u65f6<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6784\u9020\u53c2\u6570<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u672c\u5730\u6821\u9a8c<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u67e5\u6ce8\u518c\u8868<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u4fee\u6b63\u53c2\u6570<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8f6c\u53d1Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7b49\u5f85\u7ed3\u679c<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5904\u7406\u7ed3\u679c<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8d85\u65f6\u5904\u7406<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u91cd\u8bd5\u6216\u653e\u5f03<\/p>\n<p><\/span><\/p>\n<h4>3.22 \u9636\u6bb5 4 \u6df1\u6316&#xff1a;\u7ed3\u679c\u56de\u4f20\u7684\u4e24\u79cd\u5f62\u6001<\/h4>\n<li>\u6587\u672c\u7ed3\u679c&#xff1a;\u76f4\u63a5\u7ed9 Agent \u9605\u8bfb&#xff08;\u5982&#034;\u627e\u5230 5 \u4e2a\u5339\u914d\u6587\u4ef6&#034;&#xff09;\u3002<\/li>\n<li>\u7ed3\u6784\u5316\u7ed3\u679c&#xff1a;JSON\/\u8868\u683c&#xff0c;Agent \u53ef\u7ee7\u7eed\u7a0b\u5e8f\u5316\u5904\u7406\u3002<\/li>\n<li>\u8d44\u6e90\u5f15\u7528&#xff1a;\u8fd4\u56de resource URI&#xff0c;Agent \u9700\u8981\u518d\u8bfb\u4e00\u6b21\u3002<\/li>\n<p>Agent \u4f9d\u636e\u7ed3\u679c\u7c7b\u578b\u51b3\u5b9a\u4e0b\u4e00\u6b65&#xff1a;\u6587\u672c \u2192 \u878d\u5165\u63a8\u7406&#xff1b;\u7ed3\u6784\u5316 \u2192 \u53ef\u8ba1\u7b97&#xff1b;\u8d44\u6e90\u5f15\u7528 \u2192 \u4e8c\u6b21\u8bfb\u53d6\u3002<\/p>\n<h4>3.23 \u56db\u9636\u6bb5\u4e0e&#034;\u601d\u8003-\u884c\u52a8&#034;\u95ed\u73af\u7684\u6620\u5c04<\/h4>\n<p>\u628a\u56db\u9636\u6bb5\u6620\u5c04\u5230 Agent \u7684\u5b8f\u89c2\u95ed\u73af&#xff08;\u611f\u77e5-\u601d\u8003-\u884c\u52a8-\u53cd\u9988&#xff09;&#xff1a;<\/p>\n<table>\n<tr>Agent \u95ed\u73af\u56db\u9636\u6bb5\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u601d\u8003<\/td>\n<td>\u5de5\u5177\u9009\u62e9<\/td>\n<td>Agent \u51b3\u5b9a\u7528\u4ec0\u4e48\u5de5\u5177<\/td>\n<\/tr>\n<tr>\n<td>\u884c\u52a8<\/td>\n<td>\u8c03\u7528<\/td>\n<td>tools\/call \u6267\u884c<\/td>\n<\/tr>\n<tr>\n<td>\u53cd\u9988<\/td>\n<td>\u7ed3\u679c\u5904\u7406<\/td>\n<td>\u7ed3\u679c\u56de\u6d41\u63a8\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u611f\u77e5<\/td>\n<td>\u53d1\u73b0<\/td>\n<td>\u5de5\u5177\u6e05\u5355\u5373&#034;\u73af\u5883\u611f\u77e5&#034;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.24 \u56db\u9636\u6bb5\u7684\u6027\u80fd\u9884\u7b97<\/h4>\n<p>\u4e00\u6b21\u5178\u578b\u8c03\u7528&#xff08;\u672c\u5730 stdio Server&#xff09;\u7684\u603b\u5ef6\u8fdf\u6784\u6210&#xff1a;<\/p>\n<ul>\n<li>\u521d\u59cb\u5316&#xff08;\u4ec5\u9996\u6b21&#xff09;&#xff1a;50\u2013200ms\u3002<\/li>\n<li>\u67e5\u6ce8\u518c\u8868&#xff1a;&lt;1ms\u3002<\/li>\n<li>\u53c2\u6570\u6821\u9a8c&#xff1a;&lt;1ms\u3002<\/li>\n<li>\u7f51\u7edc\/\u8fdb\u7a0b\u901a\u4fe1&#xff1a;1\u20135ms\u3002<\/li>\n<li>Server \u6267\u884c&#xff1a;\u53d6\u51b3\u4e8e\u4e1a\u52a1&#xff08;1ms \u5230\u5206\u949f\u7ea7&#xff09;\u3002<\/li>\n<li>\u7ed3\u679c\u5e8f\u5217\u5316&#xff1a;&lt;1ms\u3002<\/li>\n<\/ul>\n<p>\u4f18\u5316\u6760\u6746\u5728 Server \u6267\u884c\u672c\u8eab&#xff0c;\u534f\u8bae\u5c42\u7684\u5f00\u9500\u5df2\u7ecf\u5f88\u5c0f\u3002<\/p>\n<h4>3.25 \u56db\u9636\u6bb5\u7684\u5e38\u89c1\u8bef\u533a<\/h4>\n<table>\n<tr>\u8bef\u533a\u771f\u76f8<\/tr>\n<tbody>\n<tr>\n<td>\u6bcf\u6b21\u8c03\u7528\u90fd\u91cd\u65b0\u53d1\u73b0<\/td>\n<td>\u53d1\u73b0\u4e00\u6b21&#xff0c;\u7f13\u5b58 &#043; \u901a\u77e5\u9a71\u52a8\u5237\u65b0<\/td>\n<\/tr>\n<tr>\n<td>\u6ce8\u518c\u8868\u662f\u6c38\u4e45\u4e0d\u53d8\u7684<\/td>\n<td>\u5de5\u5177\u4f1a\u53d8&#xff0c;\u9700\u5931\u6548\u673a\u5236<\/td>\n<\/tr>\n<tr>\n<td>initialize \u53ea\u662f\u63e1\u624b<\/td>\n<td>\u5b83\u8fd8\u5728\u4ea4\u6362\u80fd\u529b\u4e0e\u7248\u672c<\/td>\n<\/tr>\n<tr>\n<td>\u53c2\u6570\u4e0d\u6821\u9a8c\u76f4\u63a5\u8f6c\u53d1<\/td>\n<td>\u6821\u9a8c\u524d\u7f6e&#xff0c;\u5931\u8d25\u672c\u5730\u62e6\u622a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.27 \u9636\u6bb5 1 \u8fdb\u9636&#xff1a;\u521d\u59cb\u5316\u4e0e\u8ba4\u8bc1<\/h4>\n<p>\u8fdc\u7a0b Server \u7684 initialize \u5f80\u5f80\u4f34\u968f\u8ba4\u8bc1&#xff1a;<\/p>\n<p>ServerClientServerClient#mermaid-svg-PWINVUFGUehv90oL{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-PWINVUFGUehv90oL .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-PWINVUFGUehv90oL .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-PWINVUFGUehv90oL .error-icon{fill:#552222;}#mermaid-svg-PWINVUFGUehv90oL .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-PWINVUFGUehv90oL .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-PWINVUFGUehv90oL .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-PWINVUFGUehv90oL .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-PWINVUFGUehv90oL .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-PWINVUFGUehv90oL .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-PWINVUFGUehv90oL .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-PWINVUFGUehv90oL .marker{fill:#333333;stroke:#333333;}#mermaid-svg-PWINVUFGUehv90oL .marker.cross{stroke:#333333;}#mermaid-svg-PWINVUFGUehv90oL svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-PWINVUFGUehv90oL p{margin:0;}#mermaid-svg-PWINVUFGUehv90oL .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-PWINVUFGUehv90oL text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-PWINVUFGUehv90oL .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-PWINVUFGUehv90oL .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-PWINVUFGUehv90oL .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-PWINVUFGUehv90oL .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-PWINVUFGUehv90oL #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-PWINVUFGUehv90oL .sequenceNumber{fill:white;}#mermaid-svg-PWINVUFGUehv90oL #sequencenumber{fill:#333;}#mermaid-svg-PWINVUFGUehv90oL #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-PWINVUFGUehv90oL .messageText{fill:#333;stroke:none;}#mermaid-svg-PWINVUFGUehv90oL .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-PWINVUFGUehv90oL .labelText,#mermaid-svg-PWINVUFGUehv90oL .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-PWINVUFGUehv90oL .loopText,#mermaid-svg-PWINVUFGUehv90oL .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-PWINVUFGUehv90oL .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-PWINVUFGUehv90oL .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-PWINVUFGUehv90oL .noteText,#mermaid-svg-PWINVUFGUehv90oL .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-PWINVUFGUehv90oL .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-PWINVUFGUehv90oL .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-PWINVUFGUehv90oL .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-PWINVUFGUehv90oL .actorPopupMenu{position:absolute;}#mermaid-svg-PWINVUFGUehv90oL .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-PWINVUFGUehv90oL .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-PWINVUFGUehv90oL .actor-man circle,#mermaid-svg-PWINVUFGUehv90oL line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-PWINVUFGUehv90oL :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}initialize(\u65e0\u51ed\u8bc1)401\/\u8981\u6c42\u8ba4\u8bc1\u5f39\u6388\u6743\u6d41\u7a0b\/OAuthinitialize(\u5e26token)\u5c31\u7eea<\/p>\n<p>\u8ba4\u8bc1\u5931\u8d25\u8981\u6709\u6e05\u6670\u5f15\u5bfc&#xff0c;\u800c\u4e0d\u662f\u795e\u79d8\u62a5\u9519\u3002<\/p>\n<h4>3.28 \u9636\u6bb5 2 \u8fdb\u9636&#xff1a;\u53d1\u73b0\u4e0e\u80fd\u529b\u5730\u56fe\u7684\u751f\u6210<\/h4>\n<p>\u53d1\u73b0\u7ed3\u679c\u751f\u6210&#034;\u80fd\u529b\u5730\u56fe&#034;\u7684\u5b8c\u6574\u8fc7\u7a0b&#xff1a;<\/p>\n<li>\u62c9\u53d6\u6240\u6709 Server \u7684 tools\/list\u3002<\/li>\n<li>\u5408\u5e76\u3001\u53bb\u91cd\u3001\u51b2\u7a81\u5904\u7406\u3002<\/li>\n<li>\u6309\u6743\u9650\u8fc7\u6ee4\u3002<\/li>\n<li>\u751f\u6210 Agent \u53cb\u597d\u7684\u6e05\u5355&#xff08;\u5206\u5c42\/\u641c\u7d22&#xff09;\u3002<\/li>\n<li>\u6ce8\u5165 Agent \u4e0a\u4e0b\u6587\u3002<\/li>\n<h4>3.29 \u9636\u6bb5 3 \u8fdb\u9636&#xff1a;\u6ce8\u518c\u8868\u4e0e&#034;\u9ed8\u8ba4 Server&#034;<\/h4>\n<p>\u65e0\u51b2\u7a81\u65f6&#xff0c;\u540c\u540d\u5de5\u5177\u53ef\u8bbe\u9ed8\u8ba4 Server &#043; \u4f18\u5148\u7ea7\u3002\u6ce8\u518c\u8868\u652f\u6301&#xff1a;<\/p>\n<ul>\n<li>\u7cbe\u786e\u5339\u914d&#xff08;\u5de5\u5177\u540d\u552f\u4e00&#xff09;\u3002<\/li>\n<li>\u524d\u7f00\u5339\u914d&#xff08;namespace.tool&#xff09;\u3002<\/li>\n<li>\u9ed8\u8ba4\u8def\u7531&#xff08;\u672a\u6307\u5b9a\u65f6&#xff09;\u3002<\/li>\n<\/ul>\n<h4>3.30 \u9636\u6bb5 4 \u8fdb\u9636&#xff1a;\u8c03\u7528\u7ed3\u679c\u7684\u56db\u79cd\u8d70\u5411<\/h4>\n<table>\n<tr>\u7ed3\u679cAgent \u4e0b\u4e00\u6b65<\/tr>\n<tbody>\n<tr>\n<td>\u6210\u529f&#xff08;\u6587\u672c&#xff09;<\/td>\n<td>\u878d\u5165\u63a8\u7406\u7ee7\u7eed<\/td>\n<\/tr>\n<tr>\n<td>\u6210\u529f&#xff08;\u7ed3\u6784\u5316&#xff09;<\/td>\n<td>\u7a0b\u5e8f\u5316\u5904\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u4e1a\u52a1\u9519\u8bef&#xff08;isError&#xff09;<\/td>\n<td>\u4fee\u6b63\u91cd\u8bd5\/\u6362\u5de5\u5177<\/td>\n<\/tr>\n<tr>\n<td>\u7cfb\u7edf\u9519\u8bef<\/td>\n<td>\u4e0a\u62a5\/\u964d\u7ea7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.31 \u56db\u9636\u6bb5\u7684\u5de5\u7a0b\u5b9e\u73b0\u5206\u5de5<\/h4>\n<table>\n<tr>\u89d2\u8272\u8d1f\u8d23<\/tr>\n<tbody>\n<tr>\n<td>Agent<\/td>\n<td>\u5de5\u5177\u9009\u62e9\u4e0e\u53c2\u6570\u610f\u56fe<\/td>\n<\/tr>\n<tr>\n<td>Client<\/td>\n<td>\u53d1\u73b0\u3001\u6ce8\u518c\u3001\u8def\u7531\u3001\u6821\u9a8c<\/td>\n<\/tr>\n<tr>\n<td>\u6ce8\u518c\u8868<\/td>\n<td>\u5de5\u5177\u2192Server \u6620\u5c04<\/td>\n<\/tr>\n<tr>\n<td>Server<\/td>\n<td>\u6267\u884c\u4e0e\u8fd4\u56de<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.32 \u56db\u9636\u6bb5\u7684 SLA \u53c2\u8003<\/h4>\n<table>\n<tr>\u9636\u6bb5SLA \u76ee\u6807<\/tr>\n<tbody>\n<tr>\n<td>\u521d\u59cb\u5316<\/td>\n<td>99.9% \u6210\u529f<\/td>\n<\/tr>\n<tr>\n<td>\u53d1\u73b0<\/td>\n<td>99.9%&#xff08;\u7f13\u5b58\u515c\u5e95&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6ce8\u518c<\/td>\n<td>100%&#xff08;\u5185\u5b58\u64cd\u4f5c&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u8c03\u7528<\/td>\n<td>99.5%&#xff08;\u6309\u5de5\u5177&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.33 \u672c\u7ae0\u5c0f\u7ed3&#xff08;\u7ec8\u7248&#xff09;<\/h4>\n<p>\u56db\u9636\u6bb5\u662f\u5de5\u5177\u80fd\u529b\u7684\u5b8c\u6574\u751f\u547d\u5468\u671f&#xff1a;\u521d\u59cb\u5316\u5efa\u901a\u9053\u3001\u53d1\u73b0\u62c9\u6e05\u5355\u3001\u6ce8\u518c\u5efa\u8def\u7531\u3001\u8c03\u7528\u505a\u6267\u884c\u3002\u6df1\u6316\u8986\u76d6\u521d\u59cb\u5316\u4ea4\u6362\u5185\u5bb9\u3001\u80fd\u529b\u5dee\u5f02\u3001\u5e76\u884c\u521d\u59cb\u5316\u3001\u8ba4\u8bc1\u3001\u80fd\u529b\u5730\u56fe\u751f\u6210\u3001\u9ed8\u8ba4\u8def\u7531\u3001\u7ed3\u679c\u8d70\u5411\u3001\u5206\u5de5\u3001SLA\u2014\u2014\u6e90\u65f6\u5e8f\u56fe\u7684\u6bcf\u4e00\u6b65\u90fd\u80fd\u843d\u5230\u5de5\u7a0b\u5b9e\u8df5\u3002<\/p>\n<hr \/>\n<h3>\u7b2c 4 \u7ae0 \u8def\u7531\u6ce8\u518c\u8868\u6df1\u62c6<\/h3>\n<h4>4.1 \u8def\u7531\u6ce8\u518c\u8868\u7684\u804c\u8d23<\/h4>\n<p>\u8def\u7531\u6ce8\u518c\u8868\u662f Client \u5185\u90e8\u7684\u7ec4\u4ef6&#xff0c;\u6838\u5fc3\u804c\u8d23\u53ea\u6709\u4e00\u4e2a&#xff1a;\u7ed9\u5b9a\u5de5\u5177\u540d&#xff0c;\u8fd4\u56de\u8be5\u5de5\u5177\u6240\u5c5e\u7684 Server\u3002\u5b83\u662f\u56db\u9636\u6bb5\u4e2d&#034;\u6ce8\u518c&#034;\u9636\u6bb5\u7684\u4ea7\u7269\u3001&#034;\u8c03\u7528&#034;\u9636\u6bb5\u7684\u524d\u7f6e\u3002<\/p>\n<p>#mermaid-svg-Sn4EDZNtUjNEAVN0{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .error-icon{fill:#552222;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .marker.cross{stroke:#333333;}#mermaid-svg-Sn4EDZNtUjNEAVN0 svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-Sn4EDZNtUjNEAVN0 p{margin:0;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .cluster-label text{fill:#333;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .cluster-label span{color:#333;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .cluster-label span p{background-color:transparent;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .label text,#mermaid-svg-Sn4EDZNtUjNEAVN0 span{fill:#333;color:#333;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .node rect,#mermaid-svg-Sn4EDZNtUjNEAVN0 .node circle,#mermaid-svg-Sn4EDZNtUjNEAVN0 .node ellipse,#mermaid-svg-Sn4EDZNtUjNEAVN0 .node polygon,#mermaid-svg-Sn4EDZNtUjNEAVN0 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .rough-node .label text,#mermaid-svg-Sn4EDZNtUjNEAVN0 .node .label text,#mermaid-svg-Sn4EDZNtUjNEAVN0 .image-shape .label,#mermaid-svg-Sn4EDZNtUjNEAVN0 .icon-shape .label{text-anchor:middle;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .rough-node .label,#mermaid-svg-Sn4EDZNtUjNEAVN0 .node .label,#mermaid-svg-Sn4EDZNtUjNEAVN0 .image-shape .label,#mermaid-svg-Sn4EDZNtUjNEAVN0 .icon-shape .label{text-align:center;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .node.clickable{cursor:pointer;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .arrowheadPath{fill:#333333;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-Sn4EDZNtUjNEAVN0 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Sn4EDZNtUjNEAVN0 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-Sn4EDZNtUjNEAVN0 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .cluster text{fill:#333;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .cluster span{color:#333;}#mermaid-svg-Sn4EDZNtUjNEAVN0 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-Sn4EDZNtUjNEAVN0 rect.text{fill:none;stroke-width:0;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .icon-shape,#mermaid-svg-Sn4EDZNtUjNEAVN0 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .icon-shape p,#mermaid-svg-Sn4EDZNtUjNEAVN0 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .icon-shape .label rect,#mermaid-svg-Sn4EDZNtUjNEAVN0 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Sn4EDZNtUjNEAVN0 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-Sn4EDZNtUjNEAVN0 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-Sn4EDZNtUjNEAVN0 :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>tools\/list \u7ed3\u679c<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6ce8\u518c\u8868\u6784\u5efa<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5de5\u5177\u2192Server \u6620\u5c04<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>call_tool \u67e5\u8868<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8def\u7531\u5230\u76ee\u6807 Server<\/p>\n<p><\/span><\/p>\n<h4>4.2 \u6ce8\u518c\u8868\u7684\u6570\u636e\u7ed3\u6784<\/h4>\n<p>\u6700\u7b80\u5355\u5b9e\u73b0\u662f\u54c8\u5e0c\u8868&#xff1a;<\/p>\n<p>search_code    \u2192 {server: GitHub, session: s1}<br \/>\ncreate_issue   \u2192 {server: GitHub, session: s1}<br \/>\nsend_message   \u2192 {server: Slack, session: s2}<br \/>\nlist_channels  \u2192 {server: Slack, session: s2}<\/p>\n<p>\u503c\u91cc\u4e0d\u4ec5\u8981\u8bb0 Server \u6807\u8bc6&#xff0c;\u8fd8\u8981\u8bb0\u4f1a\u8bdd\u53e5\u67c4&#xff08;\u56e0\u4e3a\u540c\u4e00\u4e2a Server \u53ef\u80fd\u6709\u591a\u4e2a\u4f1a\u8bdd&#xff09;\u3002<\/p>\n<h4>4.3 \u6ce8\u518c\u6d41\u7a0b<\/h4>\n<p>#mermaid-svg-2IIw3a9iRh9XTV9o{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-2IIw3a9iRh9XTV9o .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-2IIw3a9iRh9XTV9o .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-2IIw3a9iRh9XTV9o .error-icon{fill:#552222;}#mermaid-svg-2IIw3a9iRh9XTV9o .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-2IIw3a9iRh9XTV9o .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-2IIw3a9iRh9XTV9o .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-2IIw3a9iRh9XTV9o .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-2IIw3a9iRh9XTV9o .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-2IIw3a9iRh9XTV9o .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-2IIw3a9iRh9XTV9o .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-2IIw3a9iRh9XTV9o .marker{fill:#333333;stroke:#333333;}#mermaid-svg-2IIw3a9iRh9XTV9o .marker.cross{stroke:#333333;}#mermaid-svg-2IIw3a9iRh9XTV9o svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-2IIw3a9iRh9XTV9o p{margin:0;}#mermaid-svg-2IIw3a9iRh9XTV9o .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-2IIw3a9iRh9XTV9o .cluster-label text{fill:#333;}#mermaid-svg-2IIw3a9iRh9XTV9o .cluster-label span{color:#333;}#mermaid-svg-2IIw3a9iRh9XTV9o .cluster-label span p{background-color:transparent;}#mermaid-svg-2IIw3a9iRh9XTV9o .label text,#mermaid-svg-2IIw3a9iRh9XTV9o span{fill:#333;color:#333;}#mermaid-svg-2IIw3a9iRh9XTV9o .node rect,#mermaid-svg-2IIw3a9iRh9XTV9o .node circle,#mermaid-svg-2IIw3a9iRh9XTV9o .node ellipse,#mermaid-svg-2IIw3a9iRh9XTV9o .node polygon,#mermaid-svg-2IIw3a9iRh9XTV9o .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-2IIw3a9iRh9XTV9o .rough-node .label text,#mermaid-svg-2IIw3a9iRh9XTV9o .node .label text,#mermaid-svg-2IIw3a9iRh9XTV9o .image-shape .label,#mermaid-svg-2IIw3a9iRh9XTV9o .icon-shape .label{text-anchor:middle;}#mermaid-svg-2IIw3a9iRh9XTV9o .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-2IIw3a9iRh9XTV9o .rough-node .label,#mermaid-svg-2IIw3a9iRh9XTV9o .node .label,#mermaid-svg-2IIw3a9iRh9XTV9o .image-shape .label,#mermaid-svg-2IIw3a9iRh9XTV9o .icon-shape .label{text-align:center;}#mermaid-svg-2IIw3a9iRh9XTV9o .node.clickable{cursor:pointer;}#mermaid-svg-2IIw3a9iRh9XTV9o .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-2IIw3a9iRh9XTV9o .arrowheadPath{fill:#333333;}#mermaid-svg-2IIw3a9iRh9XTV9o .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-2IIw3a9iRh9XTV9o .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-2IIw3a9iRh9XTV9o .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-2IIw3a9iRh9XTV9o .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-2IIw3a9iRh9XTV9o .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-2IIw3a9iRh9XTV9o .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-2IIw3a9iRh9XTV9o .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-2IIw3a9iRh9XTV9o .cluster text{fill:#333;}#mermaid-svg-2IIw3a9iRh9XTV9o .cluster span{color:#333;}#mermaid-svg-2IIw3a9iRh9XTV9o div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-2IIw3a9iRh9XTV9o .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-2IIw3a9iRh9XTV9o rect.text{fill:none;stroke-width:0;}#mermaid-svg-2IIw3a9iRh9XTV9o .icon-shape,#mermaid-svg-2IIw3a9iRh9XTV9o .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-2IIw3a9iRh9XTV9o .icon-shape p,#mermaid-svg-2IIw3a9iRh9XTV9o .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-2IIw3a9iRh9XTV9o .icon-shape .label rect,#mermaid-svg-2IIw3a9iRh9XTV9o .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-2IIw3a9iRh9XTV9o .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-2IIw3a9iRh9XTV9o .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-2IIw3a9iRh9XTV9o :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>tools\/list \u8fd4\u56de<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5de5\u5177\u540d\u5df2\u5b58\u5728?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5199\u5165\u6620\u5c04<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6765\u81ea\u540c\u4e00 Server?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u66f4\u65b0 schema\/\u63cf\u8ff0<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u51b2\u7a81\u5904\u7406: \u524d\u7f00\/\u4f18\u5148\u7ea7\/\u544a\u8b66<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6ce8\u518c\u5b8c\u6210<\/p>\n<p><\/span><\/p>\n<h4>4.4 \u5de5\u5177\u540d\u51b2\u7a81\u5904\u7406<\/h4>\n<p>\u591a Server \u573a\u666f\u4e0b&#xff0c;&#034;\u540c\u540d\u5de5\u5177&#034;\u5e76\u4e0d\u7f55\u89c1&#xff08;\u4f8b\u5982 GitHub \u548c GitLab \u90fd\u6709 list_repos&#xff09;\u3002\u5904\u7406\u7b56\u7565&#xff1a;<\/p>\n<li>\u547d\u540d\u7a7a\u95f4\u524d\u7f00&#xff1a;github.list_repos \/ gitlab.list_repos\u3002<\/li>\n<li>\u4f18\u5148\u7ea7\u8def\u7531&#xff1a;\u540c\u540d\u65f6\u6309\u914d\u7f6e\u4f18\u5148\u7ea7\u9009 Server\u3002<\/li>\n<li>\u51b2\u7a81\u544a\u8b66&#xff1a;\u8bb0\u5f55\u65e5\u5fd7&#xff0c;\u63d0\u793a\u7528\u6237\u6216 Agent \u663e\u5f0f\u6307\u5b9a\u3002<\/li>\n<h4>4.5 \u6ce8\u518c\u8868\u7684\u66f4\u65b0\u65f6\u673a<\/h4>\n<p>\u6ce8\u518c\u8868\u4e0d\u662f\u4e00\u6b21\u5efa\u597d\u5c31\u6c38\u4e0d\u53d8\u3002\u4ee5\u4e0b\u65f6\u673a\u9700\u8981\u5237\u65b0&#xff1a;<\/p>\n<ul>\n<li>Server \u63a8\u9001 notifications\/tools\/list_changed\u3002<\/li>\n<li>\u5b9a\u65f6\u91cd\u65b0 tools\/list&#xff08;\u957f\u9a7b\u4f1a\u8bdd\u5b9a\u671f\u5237\u65b0&#xff09;\u3002<\/li>\n<li>\u8c03\u7528\u5931\u8d25\u540e\u4e3b\u52a8\u91cd\u65b0\u53d1\u73b0&#xff08;\u6000\u7591\u6e05\u5355\u8fc7\u671f&#xff09;\u3002<\/li>\n<\/ul>\n<h4>4.6 \u7f13\u5b58\u4e0e\u5931\u6548<\/h4>\n<p>\u53d1\u73b0\u7ed3\u679c\u7f13\u5b58\u53ef\u7701\u5927\u91cf\u5f80\u8fd4&#xff0c;\u4f46\u5fc5\u987b\u914d\u5957\u5931\u6548\u673a\u5236&#xff1a;<\/p>\n<table>\n<tr>\u5931\u6548\u89e6\u53d1\u5904\u7406<\/tr>\n<tbody>\n<tr>\n<td>Server \u901a\u77e5\u53d8\u66f4<\/td>\n<td>\u7acb\u5373\u91cd\u65b0\u62c9\u53d6<\/td>\n<\/tr>\n<tr>\n<td>\u5b9a\u65f6\u8fc7\u671f<\/td>\n<td>TTL \u5230\u671f\u5237\u65b0<\/td>\n<\/tr>\n<tr>\n<td>\u8c03\u7528\u62a5 MethodNotFound<\/td>\n<td>\u5237\u65b0\u540e\u91cd\u8bd5\u4e00\u6b21<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>4.7 \u6ce8\u518c\u8868\u4e0e\u6743\u9650\u7684\u8054\u52a8<\/h4>\n<p>\u6ce8\u518c\u8868\u8fd8\u5e94\u8bb0\u5f55\u5de5\u5177\u7684&#034;\u5371\u9669\u7b49\u7ea7&#034;&#xff1a;<\/p>\n<p>delete_issue  \u2192 {server: GitHub, destructive: true}<br \/>\nsearch_code   \u2192 {server: GitHub, destructive: false}<\/p>\n<p>\u8c03\u7528 destructive \u5de5\u5177\u524d&#xff0c;Client \u53ef\u89e6\u53d1\u4e8c\u6b21\u786e\u8ba4\u6216\u7b56\u7565\u62e6\u622a&#xff08;\u8be6\u89c1 8 \u7ae0\u5b89\u5168\u90e8\u5206&#xff09;\u3002<\/p>\n<h4>4.8 \u6ce8\u518c\u8868\u7684\u53ef\u89c2\u6d4b\u6027<\/h4>\n<p>\u5de5\u7a0b\u4e0a\u5efa\u8bae\u5bf9\u6ce8\u518c\u8868\u6253\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u5de5\u5177\u603b\u6570\u3001Server \u6570\u3002<\/li>\n<li>\u6bcf\u6b21\u67e5\u8868\u7684\u547d\u4e2d\u7387\u3002<\/li>\n<li>\u51b2\u7a81\u6b21\u6570\u3001\u5237\u65b0\u6b21\u6570\u3002<\/li>\n<li>\u672a\u547d\u4e2d&#xff08;\u67e5\u4e0d\u5230\u5de5\u5177&#xff09;\u7684\u9519\u8bef\u6b21\u6570\u2014\u2014\u8fd9\u662f Agent \u5e7b\u89c9\u8c03\u7528\u5de5\u5177\u7684\u524d\u5146\u3002<\/li>\n<\/ul>\n<h4>4.9 \u6ce8\u518c\u8868\u5b9e\u73b0\u793a\u4f8b<\/h4>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">ToolRegistry<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">def<\/span> <span class=\"token function\">__init__<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        self<span class=\"token punctuation\">.<\/span>_map <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">}<\/span>   <span class=\"token comment\"># tool_name -&gt; (server, session, meta)<\/span><\/p>\n<p>    <span class=\"token keyword\">def<\/span> <span class=\"token function\">register<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> tool_name<span class=\"token punctuation\">,<\/span> server<span class=\"token punctuation\">,<\/span> session<span class=\"token punctuation\">,<\/span> meta<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> tool_name <span class=\"token keyword\">in<\/span> self<span class=\"token punctuation\">.<\/span>_map <span class=\"token keyword\">and<\/span> self<span class=\"token punctuation\">.<\/span>_map<span class=\"token punctuation\">[<\/span>tool_name<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">!&#061;<\/span> server<span class=\"token punctuation\">:<\/span><br \/>\n            self<span class=\"token punctuation\">.<\/span>_handle_conflict<span class=\"token punctuation\">(<\/span>tool_name<span class=\"token punctuation\">,<\/span> server<span class=\"token punctuation\">)<\/span><br \/>\n        self<span class=\"token punctuation\">.<\/span>_map<span class=\"token punctuation\">[<\/span>tool_name<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span>server<span class=\"token punctuation\">,<\/span> session<span class=\"token punctuation\">,<\/span> meta<span class=\"token punctuation\">)<\/span><\/p>\n<p>    <span class=\"token keyword\">def<\/span> <span class=\"token function\">lookup<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> tool_name<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> self<span class=\"token punctuation\">.<\/span>_map<span class=\"token punctuation\">.<\/span>get<span class=\"token punctuation\">(<\/span>tool_name<span class=\"token punctuation\">)<\/span><\/p>\n<p>    <span class=\"token keyword\">def<\/span> <span class=\"token function\">refresh<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> server<span class=\"token punctuation\">,<\/span> tools<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">for<\/span> t <span class=\"token keyword\">in<\/span> tools<span class=\"token punctuation\">:<\/span><br \/>\n            self<span class=\"token punctuation\">.<\/span>register<span class=\"token punctuation\">(<\/span>t<span class=\"token punctuation\">.<\/span>name<span class=\"token punctuation\">,<\/span> server<span class=\"token punctuation\">,<\/span> server<span class=\"token punctuation\">.<\/span>session<span class=\"token punctuation\">,<\/span> t<span class=\"token punctuation\">.<\/span>meta<span class=\"token punctuation\">)<\/span><\/p>\n<h4>4.10 \u6ce8\u518c\u8868\u6027\u80fd<\/h4>\n<p>\u67e5\u8868\u662f O(1) \u54c8\u5e0c\u67e5\u627e&#xff0c;\u6027\u80fd\u65e0\u5fe7&#xff1b;\u74f6\u9888\u5728&#034;\u5efa\u8868&#034;&#xff08;\u53d1\u73b0&#xff09;\u4e0e&#034;\u5931\u6548\u5237\u65b0&#034;\u3002\u56e0\u6b64\u5de5\u7a0b\u91cd\u70b9\u662f\u63a7\u5236\u53d1\u73b0\u9891\u7387&#xff0c;\u800c\u4e0d\u662f\u4f18\u5316\u67e5\u8868\u672c\u8eab\u3002<\/p>\n<h4>4.12 \u6ce8\u518c\u8868\u7684\u6570\u636e\u6a21\u578b&#xff08;\u5b8c\u6574\u7248&#xff09;<\/h4>\n<p>\u751f\u4ea7\u7ea7\u6ce8\u518c\u8868\u6761\u76ee\u5e94\u5305\u542b&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;tool_name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;create_issue&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;server&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;github-server&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;session_id&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;s1&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;meta&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;description&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u521b\u5efa GitHub Issue&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;input_schema&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;&#8230;&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;&#8230;&#034;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;destructive&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;read_only&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timeout_ms&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">30000<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;idempotent&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;requires_confirm&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>meta \u91cc\u7684\u6807\u6ce8\u4e0d\u53ea\u662f\u7ed9 Client \u770b&#xff0c;\u4e5f\u662f\u7ed9 Agent \u7684\u5b89\u5168\u63d0\u793a\u2014\u2014destructive&#061;true \u7684\u5de5\u5177&#xff0c;Agent \u5728\u89c4\u5212\u65f6\u5c31\u5e94\u66f4\u8c28\u614e\u3002<\/p>\n<h4>4.13 \u6ce8\u518c\u8868\u7684\u4e09\u79cd\u5b9e\u73b0\u5f62\u6001<\/h4>\n<table>\n<tr>\u5f62\u6001\u7279\u70b9\u9002\u7528<\/tr>\n<tbody>\n<tr>\n<td>\u5185\u5b58\u54c8\u5e0c\u8868<\/td>\n<td>\u6700\u5feb&#xff0c;\u8fdb\u7a0b\u5185<\/td>\n<td>\u5355 Client<\/td>\n<\/tr>\n<tr>\n<td>\u5206\u5e03\u5f0f KV<\/td>\n<td>\u8de8\u8fdb\u7a0b\u5171\u4eab<\/td>\n<td>\u591a Client \u590d\u7528\u53d1\u73b0\u7ed3\u679c<\/td>\n<\/tr>\n<tr>\n<td>\u5e26\u7248\u672c\u53f7\u5feb\u7167<\/td>\n<td>\u53ef\u56de\u6eda<\/td>\n<td>\u9700\u8981\u7070\u5ea6\/\u56de\u6eda\u7684\u573a\u666f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>4.14 \u6ce8\u518c\u8868\u4e0e&#034;\u5de5\u5177\u7f16\u6392&#034;\u7684\u533a\u522b<\/h4>\n<ul>\n<li>\u6ce8\u518c\u8868&#xff1a;\u9759\u6001\u6620\u5c04&#xff0c;\u56de\u7b54&#034;\u5de5\u5177\u5728\u54ea\u4e2a Server&#034;\u3002<\/li>\n<li>\u7f16\u6392&#xff1a;\u52a8\u6001\u51b3\u7b56&#xff0c;\u56de\u7b54&#034;\u8fd9\u6b21\u4efb\u52a1\u5148\u8c03\u54ea\u4e2a\u3001\u8c03\u5b8c\u8c03\u54ea\u4e2a&#034;\u3002<\/li>\n<\/ul>\n<p>\u4e0d\u8981\u628a\u4e24\u8005\u6df7\u4e3a\u4e00\u8c08&#xff1a;\u6ce8\u518c\u8868\u662f\u57fa\u7840\u8bbe\u65bd&#xff0c;\u7f16\u6392\u662f Agent \u667a\u80fd\u3002\u7f16\u6392\u5c42\u67e5\u6ce8\u518c\u8868\u505a\u8def\u7531&#xff0c;\u6ce8\u518c\u8868\u4e0d\u53c2\u4e0e\u4efb\u52a1\u51b3\u7b56\u3002<\/p>\n<h4>4.15 \u51b2\u7a81\u5904\u7406\u5b9e\u6218&#xff1a;\u524d\u7f00 vs \u663e\u5f0f\u9009\u62e9<\/h4>\n<p>#mermaid-svg-3dKYry8e8x8XaX5e{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-3dKYry8e8x8XaX5e .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-3dKYry8e8x8XaX5e .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-3dKYry8e8x8XaX5e .error-icon{fill:#552222;}#mermaid-svg-3dKYry8e8x8XaX5e .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-3dKYry8e8x8XaX5e .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-3dKYry8e8x8XaX5e .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-3dKYry8e8x8XaX5e .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-3dKYry8e8x8XaX5e .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-3dKYry8e8x8XaX5e .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-3dKYry8e8x8XaX5e .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-3dKYry8e8x8XaX5e .marker{fill:#333333;stroke:#333333;}#mermaid-svg-3dKYry8e8x8XaX5e .marker.cross{stroke:#333333;}#mermaid-svg-3dKYry8e8x8XaX5e svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-3dKYry8e8x8XaX5e p{margin:0;}#mermaid-svg-3dKYry8e8x8XaX5e .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-3dKYry8e8x8XaX5e .cluster-label text{fill:#333;}#mermaid-svg-3dKYry8e8x8XaX5e .cluster-label span{color:#333;}#mermaid-svg-3dKYry8e8x8XaX5e .cluster-label span p{background-color:transparent;}#mermaid-svg-3dKYry8e8x8XaX5e .label text,#mermaid-svg-3dKYry8e8x8XaX5e span{fill:#333;color:#333;}#mermaid-svg-3dKYry8e8x8XaX5e .node rect,#mermaid-svg-3dKYry8e8x8XaX5e .node circle,#mermaid-svg-3dKYry8e8x8XaX5e .node ellipse,#mermaid-svg-3dKYry8e8x8XaX5e .node polygon,#mermaid-svg-3dKYry8e8x8XaX5e .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-3dKYry8e8x8XaX5e .rough-node .label text,#mermaid-svg-3dKYry8e8x8XaX5e .node .label text,#mermaid-svg-3dKYry8e8x8XaX5e .image-shape .label,#mermaid-svg-3dKYry8e8x8XaX5e .icon-shape .label{text-anchor:middle;}#mermaid-svg-3dKYry8e8x8XaX5e .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-3dKYry8e8x8XaX5e .rough-node .label,#mermaid-svg-3dKYry8e8x8XaX5e .node .label,#mermaid-svg-3dKYry8e8x8XaX5e .image-shape .label,#mermaid-svg-3dKYry8e8x8XaX5e .icon-shape .label{text-align:center;}#mermaid-svg-3dKYry8e8x8XaX5e .node.clickable{cursor:pointer;}#mermaid-svg-3dKYry8e8x8XaX5e .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-3dKYry8e8x8XaX5e .arrowheadPath{fill:#333333;}#mermaid-svg-3dKYry8e8x8XaX5e .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-3dKYry8e8x8XaX5e .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-3dKYry8e8x8XaX5e .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-3dKYry8e8x8XaX5e .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-3dKYry8e8x8XaX5e .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-3dKYry8e8x8XaX5e .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-3dKYry8e8x8XaX5e .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-3dKYry8e8x8XaX5e .cluster text{fill:#333;}#mermaid-svg-3dKYry8e8x8XaX5e .cluster span{color:#333;}#mermaid-svg-3dKYry8e8x8XaX5e div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-3dKYry8e8x8XaX5e .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-3dKYry8e8x8XaX5e rect.text{fill:none;stroke-width:0;}#mermaid-svg-3dKYry8e8x8XaX5e .icon-shape,#mermaid-svg-3dKYry8e8x8XaX5e .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-3dKYry8e8x8XaX5e .icon-shape p,#mermaid-svg-3dKYry8e8x8XaX5e .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-3dKYry8e8x8XaX5e .icon-shape .label rect,#mermaid-svg-3dKYry8e8x8XaX5e .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-3dKYry8e8x8XaX5e .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-3dKYry8e8x8XaX5e .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-3dKYry8e8x8XaX5e :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u53d1\u73b0\u540c\u540d\u5de5\u5177<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u53ef\u52a0\u524d\u7f00?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>github.list_repos<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u81ea\u52a8\u6d88\u9664\u51b2\u7a81<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u53ef\u914d\u7f6e\u4f18\u5148\u7ea7?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6309\u4f18\u5148\u7ea7\u8def\u7531<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u544a\u8b66 &#043; Agent \u663e\u5f0f\u9009\u62e9<\/p>\n<p><\/span><\/p>\n<h4>4.16 \u6ce8\u518c\u8868\u7684\u5931\u6548\u5237\u65b0\u6d41\u7a0b<\/h4>\n<p>\u6ce8\u518c\u8868ClientServer\u6ce8\u518c\u8868ClientServer#mermaid-svg-nvVRcZV1mGxWcnqi{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-nvVRcZV1mGxWcnqi .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-nvVRcZV1mGxWcnqi .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-nvVRcZV1mGxWcnqi .error-icon{fill:#552222;}#mermaid-svg-nvVRcZV1mGxWcnqi .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-nvVRcZV1mGxWcnqi .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-nvVRcZV1mGxWcnqi .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-nvVRcZV1mGxWcnqi .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-nvVRcZV1mGxWcnqi .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-nvVRcZV1mGxWcnqi .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-nvVRcZV1mGxWcnqi .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-nvVRcZV1mGxWcnqi .marker{fill:#333333;stroke:#333333;}#mermaid-svg-nvVRcZV1mGxWcnqi .marker.cross{stroke:#333333;}#mermaid-svg-nvVRcZV1mGxWcnqi svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-nvVRcZV1mGxWcnqi p{margin:0;}#mermaid-svg-nvVRcZV1mGxWcnqi .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-nvVRcZV1mGxWcnqi text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-nvVRcZV1mGxWcnqi .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-nvVRcZV1mGxWcnqi .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-nvVRcZV1mGxWcnqi .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-nvVRcZV1mGxWcnqi .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-nvVRcZV1mGxWcnqi #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-nvVRcZV1mGxWcnqi .sequenceNumber{fill:white;}#mermaid-svg-nvVRcZV1mGxWcnqi #sequencenumber{fill:#333;}#mermaid-svg-nvVRcZV1mGxWcnqi #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-nvVRcZV1mGxWcnqi .messageText{fill:#333;stroke:none;}#mermaid-svg-nvVRcZV1mGxWcnqi .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-nvVRcZV1mGxWcnqi .labelText,#mermaid-svg-nvVRcZV1mGxWcnqi .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-nvVRcZV1mGxWcnqi .loopText,#mermaid-svg-nvVRcZV1mGxWcnqi .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-nvVRcZV1mGxWcnqi .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-nvVRcZV1mGxWcnqi .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-nvVRcZV1mGxWcnqi .noteText,#mermaid-svg-nvVRcZV1mGxWcnqi .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-nvVRcZV1mGxWcnqi .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-nvVRcZV1mGxWcnqi .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-nvVRcZV1mGxWcnqi .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-nvVRcZV1mGxWcnqi .actorPopupMenu{position:absolute;}#mermaid-svg-nvVRcZV1mGxWcnqi .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-nvVRcZV1mGxWcnqi .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-nvVRcZV1mGxWcnqi .actor-man circle,#mermaid-svg-nvVRcZV1mGxWcnqi line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-nvVRcZV1mGxWcnqi :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}notifications\/tools\/list_changed\u6807\u8bb0\u8be5 Server \u6e05\u5355\u8fc7\u671ftools\/list(\u589e\u91cf)\u53d8\u66f4\u540e\u7684\u5de5\u5177\u96c6\u66f4\u65b0\u6620\u5c04\u5237\u65b0\u5b8c\u6210<\/p>\n<h4>4.17 \u6ce8\u518c\u8868\u4e0e\u53ef\u89c2\u6d4b\u6027\u6253\u70b9<\/h4>\n<p>\u5efa\u8bae\u5bf9\u6ce8\u518c\u8868\u6253\u4ee5\u4e0b\u6307\u6807&#xff1a;<\/p>\n<ul>\n<li>\u5de5\u5177\u603b\u6570\u3001Server \u6570\u3001\u4f1a\u8bdd\u6570\u3002<\/li>\n<li>\u67e5\u8868\u547d\u4e2d\u7387&#xff08;\u672a\u547d\u4e2d\u5f80\u5f80\u662f\u5e7b\u89c9\u8c03\u7528\u7684\u4fe1\u53f7&#xff09;\u3002<\/li>\n<li>\u51b2\u7a81\u6b21\u6570\u3001\u5237\u65b0\u6b21\u6570\u3001\u5931\u6548\u6b21\u6570\u3002<\/li>\n<li>\u5e73\u5747\u67e5\u8868\u8017\u65f6&#xff08;\u6b63\u5e38\u5e94 &lt;1ms&#xff0c;\u82e5\u5347\u9ad8\u67e5\u54c8\u5e0c\u9000\u5316&#xff09;\u3002<\/li>\n<\/ul>\n<h4>4.18 \u6ce8\u518c\u8868\u7684\u5b89\u5168\u8bbe\u8ba1<\/h4>\n<li>\u5de5\u5177\u8bbf\u95ee\u63a7\u5236&#xff1a;\u672a\u6388\u6743\u5de5\u5177\u7684\u8c03\u7528\u76f4\u63a5\u62d2\u7edd\u3002<\/li>\n<li>\u4f1a\u8bdd\u9694\u79bb&#xff1a;\u4e0d\u540c\u8eab\u4efd\u4f1a\u8bdd\u6301\u6709\u4e0d\u540c\u6ce8\u518c\u8868\u3002<\/li>\n<li>\u5ba1\u8ba1&#xff1a;destructive \u5de5\u5177\u7684\u8def\u7531\u4e0e\u8c03\u7528\u5168\u8bb0\u5f55\u3002<\/li>\n<li>\u9632\u7be1\u6539&#xff1a;\u6ce8\u518c\u8868\u53ea\u5141\u8bb8 Client \u5185\u90e8\u5199\u5165\u3002<\/li>\n<h4>4.19 \u6ce8\u518c\u8868\u4e0e\u591a Server \u7684\u6545\u969c\u8054\u52a8<\/h4>\n<p>\u67d0 Server \u7194\u65ad\u540e&#xff0c;\u6ce8\u518c\u8868\u5e94\u628a\u8be5 Server \u7684\u5de5\u5177\u6807\u8bb0\u4e3a&#034;\u4e0d\u53ef\u7528&#034;&#xff1a;<\/p>\n<ul>\n<li>\u67e5\u8868\u547d\u4e2d\u4f46 Server \u4e0d\u53ef\u7528 \u2192 \u8fd4\u56de&#034;\u6682\u4e0d\u53ef\u7528&#034;\u800c\u975e\u8def\u7531\u5931\u8d25\u3002<\/li>\n<li>\u7194\u65ad\u6062\u590d\u540e\u81ea\u52a8\u6062\u590d\u53ef\u7528\u6027\u3002<\/li>\n<li>\u964d\u7ea7\u7b56\u7565&#xff1a;\u540c\u540d\u5de5\u5177\u53ef\u8def\u7531\u5230\u5907\u7528 Server\u3002<\/li>\n<\/ul>\n<h4>4.21 \u6ce8\u518c\u8868\u7684\u67e5\u8be2 API<\/h4>\n<p>Client \u7ed9\u4e0a\u5c42&#xff08;\u7f16\u6392\u5c42\/Agent&#xff09;\u66b4\u9732\u7684\u5178\u578b\u67e5\u8be2&#xff1a;<\/p>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">ToolRegistry<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">def<\/span> <span class=\"token function\">list_servers<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token builtin\">list<\/span><span class=\"token punctuation\">[<\/span><span class=\"token builtin\">str<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><br \/>\n    <span class=\"token keyword\">def<\/span> <span class=\"token function\">list_tools<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> server<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">None<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token builtin\">list<\/span><span class=\"token punctuation\">[<\/span><span class=\"token builtin\">str<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><br \/>\n    <span class=\"token keyword\">def<\/span> <span class=\"token function\">lookup<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> tool_name<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> RouteInfo <span class=\"token operator\">|<\/span> <span class=\"token boolean\">None<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><br \/>\n    <span class=\"token keyword\">def<\/span> <span class=\"token function\">search_by_keyword<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> keyword<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token builtin\">list<\/span><span class=\"token punctuation\">[<\/span>RouteInfo<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><br \/>\n    <span class=\"token keyword\">def<\/span> <span class=\"token function\">is_destructive<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> tool_name<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token builtin\">bool<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><br \/>\n    <span class=\"token keyword\">def<\/span> <span class=\"token function\">status<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> server<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> ServerStatus<span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><\/p>\n<p>search_by_keyword \u662f&#034;\u5de5\u5177\u641c\u7d22&#034;\u7684\u5e95\u5c42\u652f\u6491&#xff0c;\u4f9b Agent \u5728\u5de5\u5177\u5f88\u591a\u65f6\u505a\u63cf\u8ff0\u7ea7\u68c0\u7d22\u3002<\/p>\n<h4>4.22 \u6ce8\u518c\u8868\u4e0e\u5de5\u5177\u63cf\u8ff0\u7684\u7ba1\u7406<\/h4>\n<p>\u6ce8\u518c\u8868\u91cc\u7684\u63cf\u8ff0\u4e0d\u5e94\u53ea\u6765\u81ea Server&#xff0c;\u8fd8\u53ef\u53e0\u52a0\u5e73\u53f0\u5c42\u589e\u5f3a&#xff1a;<\/p>\n<ul>\n<li>Server \u539f\u63cf\u8ff0 &#043; \u5e73\u53f0\u8865\u5145&#xff08;\u793a\u4f8b\u3001\u5e38\u89c1\u5751&#xff09;\u3002<\/li>\n<li>\u6309 Agent \u753b\u50cf\u88c1\u526a&#xff08;\u8fd0\u7ef4 Agent \u53ea\u770b\u8fd0\u7ef4\u76f8\u5173&#xff09;\u3002<\/li>\n<li>\u7edf\u4e00\u53bb\u91cd\u3001\u7edf\u4e00\u683c\u5f0f\u3002<\/li>\n<\/ul>\n<h4>4.23 \u6ce8\u518c\u8868\u7684\u5feb\u7167\u4e0e\u56de\u6eda<\/h4>\n<p>\u53d1\u5e03\u65b0 Server\/\u65b0\u5de5\u5177\u524d&#xff0c;\u7ed9\u6ce8\u518c\u8868\u6253\u5feb\u7167&#xff1a;<\/p>\n<ul>\n<li>\u7248\u672c\u53f7 &#043; \u65f6\u95f4\u6233 &#043; \u53d8\u66f4\u8bb0\u5f55\u3002<\/li>\n<li>\u51fa\u95ee\u9898\u53ef\u4e00\u952e\u56de\u6eda\u5230\u65e7\u5feb\u7167\u3002<\/li>\n<li>\u7070\u5ea6\u573a\u666f\u6309\u5feb\u7167\u5bf9\u6bd4\u5dee\u5f02\u3002<\/li>\n<\/ul>\n<h4>4.24 \u6ce8\u518c\u8868\u4e0e CI\/CD<\/h4>\n<p>\u6ce8\u518c\u8868\u53d8\u66f4\u7eb3\u5165 CI&#xff1a;<\/p>\n<ul>\n<li>\u5951\u7ea6\u6d4b\u8bd5&#xff1a;schema \u53d8\u66f4\u68c0\u6d4b\u3002<\/li>\n<li>\u51b2\u7a81\u68c0\u6d4b&#xff1a;\u65b0\u5de5\u5177\u540d\u662f\u5426\u51b2\u7a81\u3002<\/li>\n<li>\u6743\u9650\u5ba1\u6838&#xff1a;destructive \u5de5\u5177\u9700\u5ba1\u6279\u3002<\/li>\n<li>\u53d1\u5e03\u6d41\u6c34\u7ebf&#xff1a;\u53d8\u66f4\u5148\u8d70\u7070\u5ea6\u3002<\/li>\n<\/ul>\n<h4>4.25 \u6ce8\u518c\u8868\u7684\u5bb9\u91cf\u89c4\u5212<\/h4>\n<table>\n<tr>\u89c4\u6a21\u5de5\u5177\u6570\u6ce8\u518c\u8868\u5f62\u6001<\/tr>\n<tbody>\n<tr>\n<td>\u5c0f<\/td>\n<td>&lt;50<\/td>\n<td>\u5355\u673a\u5185\u5b58<\/td>\n<\/tr>\n<tr>\n<td>\u4e2d<\/td>\n<td>50\u2013500<\/td>\n<td>\u5185\u5b58&#043;\u7f13\u5b58\u5206\u5c42<\/td>\n<\/tr>\n<tr>\n<td>\u5927<\/td>\n<td>500&#043;<\/td>\n<td>\u5206\u5e03\u5f0f&#043;\u7d22\u5f15<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>4.26 \u6ce8\u518c\u8868\u4e0e&#034;\u5de5\u5177\u4e0b\u7ebf&#034;\u6d41\u7a0b<\/h4>\n<p>\u5de5\u5177\u4e0b\u7ebf\u4e0d\u662f\u76f4\u63a5\u5220&#xff0c;\u800c\u662f\u5206\u6b65\u8d70&#xff1a;<\/p>\n<li>\u6807\u8bb0 deprecated&#xff08;\u4ecd\u53ef\u7528&#xff0c;\u544a\u8b66&#xff09;\u3002<\/li>\n<li>\u901a\u77e5 Agent \u8fc1\u79fb\u5230\u66ff\u4ee3\u5de5\u5177\u3002<\/li>\n<li>\u89c2\u5bdf\u671f\u540e\u79fb\u9664\u3002<\/li>\n<li>\u6ce8\u518c\u8868\u6e05\u7406 &#043; \u5ba1\u8ba1\u7559\u75d5\u3002<\/li>\n<p>#mermaid-svg-Tme58JJTCRUSWXHD{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-Tme58JJTCRUSWXHD .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-Tme58JJTCRUSWXHD .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-Tme58JJTCRUSWXHD .error-icon{fill:#552222;}#mermaid-svg-Tme58JJTCRUSWXHD .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-Tme58JJTCRUSWXHD .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-Tme58JJTCRUSWXHD .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-Tme58JJTCRUSWXHD .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-Tme58JJTCRUSWXHD .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-Tme58JJTCRUSWXHD .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-Tme58JJTCRUSWXHD .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-Tme58JJTCRUSWXHD .marker{fill:#333333;stroke:#333333;}#mermaid-svg-Tme58JJTCRUSWXHD .marker.cross{stroke:#333333;}#mermaid-svg-Tme58JJTCRUSWXHD svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-Tme58JJTCRUSWXHD p{margin:0;}#mermaid-svg-Tme58JJTCRUSWXHD .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-Tme58JJTCRUSWXHD .cluster-label text{fill:#333;}#mermaid-svg-Tme58JJTCRUSWXHD .cluster-label span{color:#333;}#mermaid-svg-Tme58JJTCRUSWXHD .cluster-label span p{background-color:transparent;}#mermaid-svg-Tme58JJTCRUSWXHD .label text,#mermaid-svg-Tme58JJTCRUSWXHD span{fill:#333;color:#333;}#mermaid-svg-Tme58JJTCRUSWXHD .node rect,#mermaid-svg-Tme58JJTCRUSWXHD .node circle,#mermaid-svg-Tme58JJTCRUSWXHD .node ellipse,#mermaid-svg-Tme58JJTCRUSWXHD .node polygon,#mermaid-svg-Tme58JJTCRUSWXHD .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-Tme58JJTCRUSWXHD .rough-node .label text,#mermaid-svg-Tme58JJTCRUSWXHD .node .label text,#mermaid-svg-Tme58JJTCRUSWXHD .image-shape .label,#mermaid-svg-Tme58JJTCRUSWXHD .icon-shape .label{text-anchor:middle;}#mermaid-svg-Tme58JJTCRUSWXHD .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-Tme58JJTCRUSWXHD .rough-node .label,#mermaid-svg-Tme58JJTCRUSWXHD .node .label,#mermaid-svg-Tme58JJTCRUSWXHD .image-shape .label,#mermaid-svg-Tme58JJTCRUSWXHD .icon-shape .label{text-align:center;}#mermaid-svg-Tme58JJTCRUSWXHD .node.clickable{cursor:pointer;}#mermaid-svg-Tme58JJTCRUSWXHD .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-Tme58JJTCRUSWXHD .arrowheadPath{fill:#333333;}#mermaid-svg-Tme58JJTCRUSWXHD .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-Tme58JJTCRUSWXHD .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-Tme58JJTCRUSWXHD .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Tme58JJTCRUSWXHD .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-Tme58JJTCRUSWXHD .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Tme58JJTCRUSWXHD .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-Tme58JJTCRUSWXHD .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-Tme58JJTCRUSWXHD .cluster text{fill:#333;}#mermaid-svg-Tme58JJTCRUSWXHD .cluster span{color:#333;}#mermaid-svg-Tme58JJTCRUSWXHD div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-Tme58JJTCRUSWXHD .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-Tme58JJTCRUSWXHD rect.text{fill:none;stroke-width:0;}#mermaid-svg-Tme58JJTCRUSWXHD .icon-shape,#mermaid-svg-Tme58JJTCRUSWXHD .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Tme58JJTCRUSWXHD .icon-shape p,#mermaid-svg-Tme58JJTCRUSWXHD .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-Tme58JJTCRUSWXHD .icon-shape .label rect,#mermaid-svg-Tme58JJTCRUSWXHD .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Tme58JJTCRUSWXHD .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-Tme58JJTCRUSWXHD .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-Tme58JJTCRUSWXHD :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6807\u8bb0deprecated<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8fc1\u79fb\u901a\u77e5<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u89c2\u5bdf\u671f<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u79fb\u9664<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5ba1\u8ba1\u7559\u75d5<\/p>\n<p><\/span><\/p>\n<h4>4.27 \u6ce8\u518c\u8868\u7684\u5065\u5eb7\u68c0\u67e5<\/h4>\n<ul>\n<li>\u6761\u76ee\u6570\u4e0e\u9884\u671f\u4e00\u81f4&#xff1f;<\/li>\n<li>\u6240\u6709 Server \u53ef\u8fbe&#xff1f;<\/li>\n<li>\u65e0\u8fc7\u671f\u6761\u76ee&#xff1f;<\/li>\n<li>\u547d\u4e2d\u7387\u6b63\u5e38&#xff1f;<\/li>\n<\/ul>\n<p>\u5f02\u5e38\u81ea\u52a8\u544a\u8b66&#xff0c;\u907f\u514d&#034;\u6ce8\u518c\u8868\u9759\u9ed8\u635f\u574f&#034;\u3002<\/p>\n<h4>4.28 \u672c\u7ae0\u5c0f\u7ed3&#xff08;\u7ec8\u7248&#xff09;<\/h4>\n<p>\u8def\u7531\u6ce8\u518c\u8868\u662f&#034;\u53d1\u73b0&#034;\u4e0e&#034;\u8c03\u7528&#034;\u4e4b\u95f4\u7684\u67a2\u7ebd\u3002\u6df1\u6316\u8986\u76d6\u67e5\u8be2 API\u3001\u63cf\u8ff0\u589e\u5f3a\u3001\u5feb\u7167\u56de\u6eda\u3001CI\/CD \u96c6\u6210\u3001\u5bb9\u91cf\u89c4\u5212\u3001\u4e0b\u7ebf\u6d41\u7a0b\u3001\u5065\u5eb7\u68c0\u67e5&#xff0c;\u52a0\u4e0a\u6b64\u524d\u7684\u5b8c\u6574\u6570\u636e\u6a21\u578b\u3001\u5b9e\u73b0\u5f62\u6001\u3001\u51b2\u7a81\u5904\u7406\u3001\u5931\u6548\u5237\u65b0\u3001\u53ef\u89c2\u6d4b\u3001\u5b89\u5168\u8bbe\u8ba1\u3001\u6545\u969c\u8054\u52a8\u2014\u2014\u4ece&#034;\u80fd\u7528&#034;\u5230&#034;\u751f\u4ea7\u53ef\u7528&#034;\u518d\u5230&#034;\u53ef\u6cbb\u7406&#034;\u3002<\/p>\n<hr \/>\n<h3>\u7b2c 5 \u7ae0 \u5de5\u5177\u53d1\u73b0\u673a\u5236\u6df1\u62c6<\/h3>\n<h4>5.1 tools\/list \u7684\u8fd4\u56de\u7ed3\u6784<\/h4>\n<p>tools\/list \u662f\u53d1\u73b0\u9636\u6bb5\u7684\u6838\u5fc3\u65b9\u6cd5\u3002\u5b83\u7684\u54cd\u5e94\u662f\u4e00\u4e2a\u5de5\u5177\u6570\u7ec4&#xff0c;\u6bcf\u4e2a\u5de5\u5177\u5305\u542b&#xff1a;<\/p>\n<ul>\n<li>name&#xff1a;\u5de5\u5177\u540d&#xff0c;Agent \u8c03\u7528\u65f6\u4f7f\u7528\u3002<\/li>\n<li>description&#xff1a;\u5de5\u5177\u8bf4\u660e&#xff0c;\u76f4\u63a5\u51b3\u5b9a Agent \u662f\u5426\u9009\u4e2d\u5b83\u3002<\/li>\n<li>inputSchema&#xff1a;JSON Schema&#xff0c;\u63cf\u8ff0\u53c2\u6570\u7ed3\u6784\u3002<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;jsonrpc&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;2.0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;result&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tools&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n      <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;search_code&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;description&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u5728\u6307\u5b9a\u4ed3\u5e93\u4e2d\u641c\u7d22\u4ee3\u7801&#xff0c;\u8fd4\u56de\u5339\u914d\u6587\u4ef6\u5217\u8868&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;inputSchema&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n          <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;object&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          <span class=\"token string-property property\">&#034;properties&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token string-property property\">&#034;query&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;string&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;description&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u641c\u7d22\u5173\u952e\u5b57&#034;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;repo&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;string&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;description&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u4ed3\u5e93\u540d&#034;<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n          <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          <span class=\"token string-property property\">&#034;required&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;query&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">]<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>5.2 description \u662f&#034;\u9500\u552e\u6587\u6848&#034;<\/h4>\n<p>Agent \u9762\u5bf9\u51e0\u5341\u4e0a\u767e\u4e2a\u5de5\u5177&#xff0c;\u9760 description \u51b3\u5b9a\u7528\u54ea\u4e2a\u3002\u63cf\u8ff0\u5199\u5f97\u5dee&#xff0c;\u5de5\u5177\u5c31&#034;\u5356\u4e0d\u51fa\u53bb&#034;&#xff1a;<\/p>\n<table>\n<tr>\u5199\u6cd5\u6548\u679c<\/tr>\n<tbody>\n<tr>\n<td>\u201c\u641c\u7d22\u4ee3\u7801\u201d<\/td>\n<td>\u6cdb\u6cdb&#xff0c;Agent \u96be\u5224\u65ad<\/td>\n<\/tr>\n<tr>\n<td>\u201c\u5728\u6307\u5b9a GitHub \u4ed3\u5e93\u4e2d\u6309\u5173\u952e\u5b57\u641c\u7d22\u4ee3\u7801&#xff0c;\u8fd4\u56de\u5339\u914d\u6587\u4ef6\u8def\u5f84\u5217\u8868&#xff0c;\u5e38\u7528\u4e8e\u5b9a\u4f4d\u67d0\u6bb5\u903b\u8f91\u7684\u5b9e\u73b0\u4f4d\u7f6e\u201d<\/td>\n<td>\u660e\u786e&#xff0c;Agent \u6613\u547d\u4e2d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>5.3 inputSchema \u662f&#034;\u53c2\u6570\u8bf4\u660e\u4e66&#034;<\/h4>\n<p>Schema \u8d28\u91cf\u51b3\u5b9a\u8c03\u7528\u6210\u529f\u7387\u3002\u4e09\u6761\u94c1\u5f8b&#xff1a;<\/p>\n<li>\u6bcf\u4e2a\u53c2\u6570\u5199\u6e05\u695a description\u3002<\/li>\n<li>required \u53ea\u5217\u771f\u6b63\u5fc5\u586b\u7684\u3002<\/li>\n<li>\u679a\u4e3e\u503c\u3001\u9ed8\u8ba4\u503c\u3001\u683c\u5f0f&#xff08;\u5982 email\/url&#xff09;\u5c3d\u91cf\u6807\u6ce8\u3002<\/li>\n<h4>5.4 \u53d1\u73b0\u7684\u65f6\u673a<\/h4>\n<table>\n<tr>\u65f6\u673a\u573a\u666f\u5907\u6ce8<\/tr>\n<tbody>\n<tr>\n<td>\u542f\u52a8\u65f6<\/td>\n<td>\u9996\u6b21\u8fde\u63a5<\/td>\n<td>\u5fc5\u505a<\/td>\n<\/tr>\n<tr>\n<td>\u901a\u77e5\u89e6\u53d1<\/td>\n<td>Server \u8bf4\u5de5\u5177\u53d8\u4e86<\/td>\n<td>\u589e\u91cf\u5237\u65b0<\/td>\n<\/tr>\n<tr>\n<td>\u5b9a\u65f6<\/td>\n<td>\u957f\u9a7b\u4f1a\u8bdd<\/td>\n<td>TTL \u63a7\u5236<\/td>\n<\/tr>\n<tr>\n<td>\u5931\u8d25\u540e<\/td>\n<td>\u8c03\u7528 MethodNotFound<\/td>\n<td>\u5237\u65b0\u91cd\u8bd5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>5.5 \u53d1\u73b0\u7684\u4f18\u5316&#xff1a;\u589e\u91cf\u4e0e\u7f13\u5b58<\/h4>\n<p>\u5168\u91cf tools\/list \u5728\u5de5\u5177\u591a\u3001Server \u591a\u65f6\u5f00\u9500\u4e0d\u5c0f\u3002\u4f18\u5316\u601d\u8def&#xff1a;<\/p>\n<p>#mermaid-svg-lp9swTWmuJ2ugxv2{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-lp9swTWmuJ2ugxv2 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-lp9swTWmuJ2ugxv2 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-lp9swTWmuJ2ugxv2 .error-icon{fill:#552222;}#mermaid-svg-lp9swTWmuJ2ugxv2 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-lp9swTWmuJ2ugxv2 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-lp9swTWmuJ2ugxv2 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-lp9swTWmuJ2ugxv2 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-lp9swTWmuJ2ugxv2 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-lp9swTWmuJ2ugxv2 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-lp9swTWmuJ2ugxv2 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-lp9swTWmuJ2ugxv2 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-lp9swTWmuJ2ugxv2 .marker.cross{stroke:#333333;}#mermaid-svg-lp9swTWmuJ2ugxv2 svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-lp9swTWmuJ2ugxv2 p{margin:0;}#mermaid-svg-lp9swTWmuJ2ugxv2 .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-lp9swTWmuJ2ugxv2 .cluster-label text{fill:#333;}#mermaid-svg-lp9swTWmuJ2ugxv2 .cluster-label span{color:#333;}#mermaid-svg-lp9swTWmuJ2ugxv2 .cluster-label span p{background-color:transparent;}#mermaid-svg-lp9swTWmuJ2ugxv2 .label text,#mermaid-svg-lp9swTWmuJ2ugxv2 span{fill:#333;color:#333;}#mermaid-svg-lp9swTWmuJ2ugxv2 .node rect,#mermaid-svg-lp9swTWmuJ2ugxv2 .node circle,#mermaid-svg-lp9swTWmuJ2ugxv2 .node ellipse,#mermaid-svg-lp9swTWmuJ2ugxv2 .node polygon,#mermaid-svg-lp9swTWmuJ2ugxv2 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-lp9swTWmuJ2ugxv2 .rough-node .label text,#mermaid-svg-lp9swTWmuJ2ugxv2 .node .label text,#mermaid-svg-lp9swTWmuJ2ugxv2 .image-shape .label,#mermaid-svg-lp9swTWmuJ2ugxv2 .icon-shape .label{text-anchor:middle;}#mermaid-svg-lp9swTWmuJ2ugxv2 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-lp9swTWmuJ2ugxv2 .rough-node .label,#mermaid-svg-lp9swTWmuJ2ugxv2 .node .label,#mermaid-svg-lp9swTWmuJ2ugxv2 .image-shape .label,#mermaid-svg-lp9swTWmuJ2ugxv2 .icon-shape .label{text-align:center;}#mermaid-svg-lp9swTWmuJ2ugxv2 .node.clickable{cursor:pointer;}#mermaid-svg-lp9swTWmuJ2ugxv2 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-lp9swTWmuJ2ugxv2 .arrowheadPath{fill:#333333;}#mermaid-svg-lp9swTWmuJ2ugxv2 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-lp9swTWmuJ2ugxv2 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-lp9swTWmuJ2ugxv2 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-lp9swTWmuJ2ugxv2 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-lp9swTWmuJ2ugxv2 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-lp9swTWmuJ2ugxv2 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-lp9swTWmuJ2ugxv2 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-lp9swTWmuJ2ugxv2 .cluster text{fill:#333;}#mermaid-svg-lp9swTWmuJ2ugxv2 .cluster span{color:#333;}#mermaid-svg-lp9swTWmuJ2ugxv2 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-lp9swTWmuJ2ugxv2 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-lp9swTWmuJ2ugxv2 rect.text{fill:none;stroke-width:0;}#mermaid-svg-lp9swTWmuJ2ugxv2 .icon-shape,#mermaid-svg-lp9swTWmuJ2ugxv2 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-lp9swTWmuJ2ugxv2 .icon-shape p,#mermaid-svg-lp9swTWmuJ2ugxv2 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-lp9swTWmuJ2ugxv2 .icon-shape .label rect,#mermaid-svg-lp9swTWmuJ2ugxv2 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-lp9swTWmuJ2ugxv2 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-lp9swTWmuJ2ugxv2 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-lp9swTWmuJ2ugxv2 :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9996\u6b21\u53d1\u73b0<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5168\u91cf\u62c9\u53d6&#043;\u7f13\u5b58<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8fd0\u884c\u4e2d<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Server \u901a\u77e5\u53d8\u66f4<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6309\u53d8\u66f4\u589e\u91cf\u66f4\u65b0<\/p>\n<p><\/span><\/p>\n<h4>5.6 \u53d1\u73b0\u4e0e\u6743\u9650<\/h4>\n<p>\u67d0\u4e9b Server \u7684\u5de5\u5177\u6e05\u5355\u53ef\u80fd\u56e0\u8eab\u4efd\u800c\u5f02&#xff08;\u767b\u5f55\u7528\u6237\u4e0d\u540c&#xff0c;\u53ef\u7528\u5de5\u5177\u4e0d\u540c&#xff09;\u3002Client \u5e94\u628a&#034;\u53d1\u73b0\u7ed3\u679c&#034;\u4e0e&#034;\u5f53\u524d\u8eab\u4efd&#034;\u7ed1\u5b9a\u7f13\u5b58&#xff0c;\u907f\u514d\u4e32\u6743\u9650\u3002<\/p>\n<h4>5.7 \u53d1\u73b0\u5931\u8d25\u5904\u7406<\/h4>\n<p>tools\/list \u5931\u8d25&#xff08;\u8d85\u65f6\/\u7f51\u7edc\u65ad&#xff09;\u65f6&#xff1a;<\/p>\n<li>\u82e5\u662f\u9996\u6b21&#xff1a;\u89c6\u4e3a Server \u4e0d\u53ef\u7528&#xff0c;\u964d\u7ea7\u5904\u7406\u3002<\/li>\n<li>\u82e5\u662f\u5237\u65b0&#xff1a;\u6cbf\u7528\u65e7\u7f13\u5b58&#xff0c;\u6807\u8bb0 stale\u3002<\/li>\n<li>\u8fde\u7eed\u5931\u8d25&#xff1a;\u7194\u65ad\u8be5 Server&#xff0c;\u4e0d\u518d\u53cd\u590d\u8bf7\u6c42\u3002<\/li>\n<h4>5.9 \u53d1\u73b0\u4e0e Agent \u63d0\u793a\u8bcd\u7684\u5173\u7cfb<\/h4>\n<p>\u53d1\u73b0\u7ed3\u679c\u6700\u7ec8\u4f1a\u8fdb\u5165 Agent \u7684\u4e0a\u4e0b\u6587\u3002\u5de5\u5177\u591a\u4e86\u4e4b\u540e&#xff0c;\u63d0\u793a\u8bcd\u4f1a\u81a8\u80c0&#xff1a;<\/p>\n<p>#mermaid-svg-iTkHHxJ3Ub3s8bDy{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .error-icon{fill:#552222;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .marker{fill:#333333;stroke:#333333;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .marker.cross{stroke:#333333;}#mermaid-svg-iTkHHxJ3Ub3s8bDy svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-iTkHHxJ3Ub3s8bDy p{margin:0;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .cluster-label text{fill:#333;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .cluster-label span{color:#333;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .cluster-label span p{background-color:transparent;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .label text,#mermaid-svg-iTkHHxJ3Ub3s8bDy span{fill:#333;color:#333;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .node rect,#mermaid-svg-iTkHHxJ3Ub3s8bDy .node circle,#mermaid-svg-iTkHHxJ3Ub3s8bDy .node ellipse,#mermaid-svg-iTkHHxJ3Ub3s8bDy .node polygon,#mermaid-svg-iTkHHxJ3Ub3s8bDy .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .rough-node .label text,#mermaid-svg-iTkHHxJ3Ub3s8bDy .node .label text,#mermaid-svg-iTkHHxJ3Ub3s8bDy .image-shape .label,#mermaid-svg-iTkHHxJ3Ub3s8bDy .icon-shape .label{text-anchor:middle;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .rough-node .label,#mermaid-svg-iTkHHxJ3Ub3s8bDy .node .label,#mermaid-svg-iTkHHxJ3Ub3s8bDy .image-shape .label,#mermaid-svg-iTkHHxJ3Ub3s8bDy .icon-shape .label{text-align:center;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .node.clickable{cursor:pointer;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .arrowheadPath{fill:#333333;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-iTkHHxJ3Ub3s8bDy .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-iTkHHxJ3Ub3s8bDy .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-iTkHHxJ3Ub3s8bDy .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .cluster text{fill:#333;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .cluster span{color:#333;}#mermaid-svg-iTkHHxJ3Ub3s8bDy div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-iTkHHxJ3Ub3s8bDy rect.text{fill:none;stroke-width:0;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .icon-shape,#mermaid-svg-iTkHHxJ3Ub3s8bDy .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .icon-shape p,#mermaid-svg-iTkHHxJ3Ub3s8bDy .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .icon-shape .label rect,#mermaid-svg-iTkHHxJ3Ub3s8bDy .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-iTkHHxJ3Ub3s8bDy .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-iTkHHxJ3Ub3s8bDy .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-iTkHHxJ3Ub3s8bDy :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u53d1\u73b0\u7ed3\u679c<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5de5\u5177\u63cf\u8ff0\u7cbe\u7b80<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8fdb\u5165\u7cfb\u7edf\u63d0\u793a\u8bcd<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent \u9009\u578b<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8c03\u7528<\/p>\n<p><\/span><\/p>\n<p>\u4f18\u5316\u624b\u6bb5&#xff1a;\u5bf9\u5927\u91cf\u5de5\u5177\u505a\u5206\u5c42\u63cf\u8ff0\u2014\u2014\u70ed\u95e8\u5de5\u5177\u7ed9\u5168\u63cf\u8ff0&#xff0c;\u51b7\u95e8\u5de5\u5177\u7ed9\u4e00\u53e5\u8bdd &#043; \u9700\u8981\u65f6\u518d\u5c55\u5f00\u3002<\/p>\n<h4>5.10 \u53d1\u73b0\u7ed3\u679c\u53bb\u91cd\u4e0e\u5408\u5e76<\/h4>\n<p>\u591a Server \u63d0\u4f9b\u540c\u7c7b\u5de5\u5177\u65f6&#xff0c;Client \u53ef\u4ee5&#xff1a;<\/p>\n<li>\u539f\u6837\u66b4\u9732&#xff08;Agent \u81ea\u884c\u9009\u62e9&#xff09;\u3002<\/li>\n<li>\u5408\u5e76\u6210&#034;\u7edf\u4e00\u5de5\u5177&#034;&#xff08;Client \u5185\u90e8\u8def\u7531\u5230\u4e0d\u540c Server&#xff09;\u3002<\/li>\n<li>\u6309\u573a\u666f\u6298\u53e0&#xff08;\u53ea\u66b4\u9732\u5f53\u524d\u4efb\u52a1\u76f8\u5173\u7684\u5b50\u96c6&#xff09;\u3002<\/li>\n<p>\u5408\u5e76\u5f0f\u53d1\u73b0\u5bf9 Agent \u6700\u53cb\u597d&#xff0c;\u4f46\u5bf9 Client \u5b9e\u73b0\u8981\u6c42\u9ad8\u3002<\/p>\n<h4>5.11 \u53d1\u73b0\u7684\u6743\u9650\u8fc7\u6ee4<\/h4>\n<p>Server \u6309\u8eab\u4efd\u8fd4\u56de\u4e0d\u540c\u5de5\u5177\u96c6\u65f6&#xff0c;Client \u5e94&#xff1a;<\/p>\n<ul>\n<li>\u7f13\u5b58\u4e0e\u8eab\u4efd\u7ed1\u5b9a&#xff0c;\u4e0d\u8de8\u8eab\u4efd\u5171\u4eab\u3002<\/li>\n<li>\u6743\u9650\u53d8\u66f4\u540e\u5f3a\u5236\u5237\u65b0\u3002<\/li>\n<li>\u5bf9\u964d\u6743\u5de5\u5177\u8c03\u7528\u8fd4\u56de\u660e\u786e\u9519\u8bef\u800c\u975e&#034;\u5de5\u5177\u4e0d\u5b58\u5728&#034;\u3002<\/li>\n<\/ul>\n<h4>5.12 \u53d1\u73b0\u7684\u7248\u672c\u7ba1\u7406<\/h4>\n<p>\u5de5\u5177\u4e5f\u6709\u7248\u672c&#xff1a;Server \u5347\u7ea7\u5de5\u5177\u540e&#xff0c;\u8001\u4f1a\u8bdd\u53ef\u80fd\u8fd8\u5728\u7528\u65e7 schema\u3002\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>schema \u5e26\u7248\u672c\u53f7\u6216\u54c8\u5e0c\u3002<\/li>\n<li>Client \u68c0\u6d4b\u5230\u53d8\u66f4\u65f6\u63d0\u793a&#034;\u5de5\u5177\u5df2\u66f4\u65b0&#034;\u3002<\/li>\n<li>\u65e7\u53c2\u6570\u6309\u517c\u5bb9\u89c4\u5219\u5904\u7406&#xff08;\u65b0\u5b57\u6bb5\u53ef\u9009\u3001\u5220\u5b57\u6bb5\u9700\u8fc1\u79fb&#xff09;\u3002<\/li>\n<\/ul>\n<h4>5.13 \u53d1\u73b0\u7684\u6279\u91cf\u4e0e\u5206\u9875<\/h4>\n<p>\u5de5\u5177\u6781\u591a&#xff08;\u4e0a\u767e\u4e2a&#xff09;\u65f6&#xff0c;tools\/list \u652f\u6301\u5206\u9875&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;tools\/list&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;params&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;cursor&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;next-page-key&#034;<\/span> <span class=\"token punctuation\">}<\/span> <span class=\"token punctuation\">}<\/span><\/p>\n<p>Client \u5206\u6279\u62c9\u53d6&#xff0c;\u8fb9\u62c9\u8fb9\u6ce8\u518c&#xff0c;\u907f\u514d\u4e00\u6b21\u6027\u5185\u5b58\u7206\u70b8\u3002<\/p>\n<h4>5.14 \u53d1\u73b0\u4e0e&#034;\u5de5\u5177\u641c\u7d22&#034;<\/h4>\n<p>Agent \u7aef\u53ef\u4ee5\u5185\u7f6e&#034;\u5de5\u5177\u641c\u7d22&#034;&#xff1a;\u4e0d\u628a\u5168\u90e8\u5de5\u5177\u585e\u8fdb\u4e0a\u4e0b\u6587&#xff0c;\u800c\u662f\u6309\u4efb\u52a1\u5173\u952e\u5b57\u68c0\u7d22\u63cf\u8ff0&#xff0c;\u53ea\u628a\u6700\u76f8\u5173\u7684\u51e0\u4e2a\u5de5\u5177\u7ed9\u6a21\u578b\u3002\u8fd9\u672c\u8d28\u662f\u53d1\u73b0\u7ed3\u679c\u4e4b\u4e0a\u7684\u4e8c\u7ea7\u7d22\u5f15\u3002<\/p>\n<h4>5.15 \u53d1\u73b0\u7ed3\u679c\u7684\u8d28\u91cf\u8bc4\u4f30<\/h4>\n<table>\n<tr>\u6307\u6807\u542b\u4e49\u4f18\u5316\u65b9\u5411<\/tr>\n<tbody>\n<tr>\n<td>\u5de5\u5177\u547d\u4e2d\u7387<\/td>\n<td>\u63cf\u8ff0\u662f\u5426\u8d34\u4efb\u52a1<\/td>\n<td>\u91cd\u5199 description<\/td>\n<\/tr>\n<tr>\n<td>\u53c2\u6570\u9519\u8bef\u7387<\/td>\n<td>schema \u662f\u5426\u6e05\u6670<\/td>\n<td>\u8865\u5168 inputSchema<\/td>\n<\/tr>\n<tr>\n<td>\u53d1\u73b0\u8017\u65f6<\/td>\n<td>\u6e05\u5355\u5927\u5c0f\/\u7f51\u7edc<\/td>\n<td>\u5206\u9875\/\u7f13\u5b58\/\u589e\u91cf<\/td>\n<\/tr>\n<tr>\n<td>\u5197\u4f59\u5ea6<\/td>\n<td>\u662f\u5426\u91cd\u590d<\/td>\n<td>\u5408\u5e76\/\u6298\u53e0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>5.17 \u53d1\u73b0\u7684\u65f6\u5e8f\u56fe&#xff08;\u5b8c\u6574\u7248&#xff09;<\/h4>\n<p>ServerClientAgentServerClientAgent#mermaid-svg-dZ70c3AEMpjlESaf{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-dZ70c3AEMpjlESaf .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-dZ70c3AEMpjlESaf .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-dZ70c3AEMpjlESaf .error-icon{fill:#552222;}#mermaid-svg-dZ70c3AEMpjlESaf .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-dZ70c3AEMpjlESaf .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-dZ70c3AEMpjlESaf .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-dZ70c3AEMpjlESaf .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-dZ70c3AEMpjlESaf .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-dZ70c3AEMpjlESaf .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-dZ70c3AEMpjlESaf .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-dZ70c3AEMpjlESaf .marker{fill:#333333;stroke:#333333;}#mermaid-svg-dZ70c3AEMpjlESaf .marker.cross{stroke:#333333;}#mermaid-svg-dZ70c3AEMpjlESaf svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-dZ70c3AEMpjlESaf p{margin:0;}#mermaid-svg-dZ70c3AEMpjlESaf .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-dZ70c3AEMpjlESaf text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-dZ70c3AEMpjlESaf .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-dZ70c3AEMpjlESaf .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-dZ70c3AEMpjlESaf .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-dZ70c3AEMpjlESaf .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-dZ70c3AEMpjlESaf #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-dZ70c3AEMpjlESaf .sequenceNumber{fill:white;}#mermaid-svg-dZ70c3AEMpjlESaf #sequencenumber{fill:#333;}#mermaid-svg-dZ70c3AEMpjlESaf #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-dZ70c3AEMpjlESaf .messageText{fill:#333;stroke:none;}#mermaid-svg-dZ70c3AEMpjlESaf .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-dZ70c3AEMpjlESaf .labelText,#mermaid-svg-dZ70c3AEMpjlESaf .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-dZ70c3AEMpjlESaf .loopText,#mermaid-svg-dZ70c3AEMpjlESaf .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-dZ70c3AEMpjlESaf .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-dZ70c3AEMpjlESaf .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-dZ70c3AEMpjlESaf .noteText,#mermaid-svg-dZ70c3AEMpjlESaf .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-dZ70c3AEMpjlESaf .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-dZ70c3AEMpjlESaf .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-dZ70c3AEMpjlESaf .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-dZ70c3AEMpjlESaf .actorPopupMenu{position:absolute;}#mermaid-svg-dZ70c3AEMpjlESaf .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-dZ70c3AEMpjlESaf .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-dZ70c3AEMpjlESaf .actor-man circle,#mermaid-svg-dZ70c3AEMpjlESaf line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-dZ70c3AEMpjlESaf :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}\u9700\u8981\u5de5\u5177\u6e05\u5355tools\/list\u5de5\u5177\u6570\u7ec4(\u542bschema)\u6821\u9a8c\/\u53bb\u91cd\/\u6743\u9650\u8fc7\u6ee4\u7f13\u5b58 &#043; \u6ce8\u518c\u80fd\u529b\u5730\u56fe\u5c31\u7eea<\/p>\n<h4>5.18 \u53d1\u73b0\u7ed3\u679c\u7684\u6821\u9a8c<\/h4>\n<p>\u62ff\u5230\u6e05\u5355\u540e&#xff0c;Client \u5e94\u6821\u9a8c&#xff1a;<\/p>\n<ul>\n<li>\u5de5\u5177\u540d\u5408\u6cd5\u6027&#xff08;\u547d\u540d\u89c4\u8303&#xff09;\u3002<\/li>\n<li>description \u975e\u7a7a&#xff08;\u7a7a\u63cf\u8ff0\u7684\u5de5\u5177\u5f62\u540c\u865a\u8bbe&#xff09;\u3002<\/li>\n<li>inputSchema \u662f\u5408\u6cd5 JSON Schema\u3002<\/li>\n<li>\u65e0\u91cd\u590d\u5de5\u5177\u540d\u3002<\/li>\n<\/ul>\n<p>\u4e0d\u5408\u89c4\u7684\u5de5\u5177\u6807\u8bb0\u544a\u8b66&#xff0c;\u907f\u514d&#034;\u5e26\u75c5\u4e0a\u7ebf&#034;\u3002<\/p>\n<h4>5.19 \u53d1\u73b0\u7684\u964d\u7ea7&#xff1a;\u6e05\u5355\u4e0d\u53ef\u7528\u65f6\u7684\u884c\u4e3a<\/h4>\n<p>tools\/list \u5931\u8d25\u65f6\u6309\u573a\u666f\u964d\u7ea7&#xff1a;<\/p>\n<table>\n<tr>\u573a\u666f\u884c\u4e3a<\/tr>\n<tbody>\n<tr>\n<td>\u9996\u6b21\u5931\u8d25<\/td>\n<td>\u8be5 Server \u89c6\u4e3a\u4e0d\u53ef\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u5237\u65b0\u5931\u8d25<\/td>\n<td>\u6cbf\u7528\u65e7\u7f13\u5b58&#xff08;\u6807 stale&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u8fde\u7eed\u5931\u8d25<\/td>\n<td>\u7194\u65ad &#043; \u544a\u8b66<\/td>\n<\/tr>\n<tr>\n<td>\u90e8\u5206\u5931\u8d25<\/td>\n<td>\u5df2\u6210\u529f\u7684 Server \u6b63\u5e38\u7528<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>5.20 \u53d1\u73b0\u7684\u5e42\u7b49\u6027<\/h4>\n<p>tools\/list \u662f\u53ea\u8bfb\u65b9\u6cd5&#xff0c;\u5929\u7136\u5e42\u7b49\u3002\u4f46&#034;\u53d1\u73b0\u540e\u6ce8\u518c&#034;\u8981\u9632\u91cd\u590d&#xff1a;\u540c\u4e00\u5de5\u5177\u91cd\u590d\u6ce8\u518c\u5e94\u66f4\u65b0\u800c\u975e\u8ffd\u52a0&#xff1b;\u6ce8\u518c\u8fc7\u7a0b\u652f\u6301\u91cd\u5165\u3002<\/p>\n<h4>5.21 \u53d1\u73b0\u7684\u5ba1\u8ba1<\/h4>\n<p>\u8bb0\u5f55\u53d1\u73b0\u884c\u4e3a\u672c\u8eab&#xff1a;\u8c01\u53d1\u8d77\u7684\u3001\u4f55\u65f6\u3001\u54ea\u4e2a Server\u3001\u8fd4\u56de\u591a\u5c11\u5de5\u5177\u3001\u8017\u65f6\u3002\u5ba1\u8ba1\u6570\u636e\u7528\u4e8e&#xff1a;\u8ffd\u8e2a\u6743\u9650\u5f02\u5e38\u3001\u8bc4\u4f30 Server \u7a33\u5b9a\u6027\u3001\u4f18\u5316\u53d1\u73b0\u7b56\u7565\u3002<\/p>\n<h4>5.22 \u53d1\u73b0\u7684\u6d4b\u8bd5<\/h4>\n<ul>\n<li>\u5355\u5143&#xff1a;mock Server \u8fd4\u56de\u56fa\u5b9a\u6e05\u5355&#xff0c;\u9a8c\u8bc1\u6ce8\u518c\u7ed3\u679c\u3002<\/li>\n<li>\u96c6\u6210&#xff1a;\u771f\u5b9e Server \u8054\u8c03&#xff0c;\u9a8c\u8bc1 schema \u89e3\u6790\u3002<\/li>\n<li>\u5f02\u5e38&#xff1a;Server \u8fd4\u56de\u7a7a\u6e05\u5355\/\u7578\u5f62 schema\/\u8d85\u65f6\u3002<\/li>\n<li>\u6027\u80fd&#xff1a;100 \u4e2a\u5de5\u5177\u5206\u9875\u62c9\u53d6\u7684\u8017\u65f6\u3002<\/li>\n<\/ul>\n<h4>5.23 \u53d1\u73b0\u7684\u914d\u7f6e\u9879<\/h4>\n<p><span class=\"token key atrule\">discovery<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">cache_ttl<\/span><span class=\"token punctuation\">:<\/span> 300s<br \/>\n  <span class=\"token key atrule\">refresh_on_notify<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><br \/>\n  <span class=\"token key atrule\">refresh_on_error<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><br \/>\n  <span class=\"token key atrule\">lazy_enabled<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">false<\/span><br \/>\n  <span class=\"token key atrule\">page_size<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">50<\/span><br \/>\n  <span class=\"token key atrule\">timeout_ms<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">5000<\/span><\/p>\n<h4>5.24 \u672c\u7ae0\u5c0f\u7ed3&#xff08;\u7ec8\u7248&#xff09;<\/h4>\n<p>\u53d1\u73b0\u673a\u5236\u7684\u6838\u5fc3\u662f tools\/list &#043; \u7f13\u5b58\u5931\u6548 &#043; \u5931\u8d25\u964d\u7ea7&#xff0c;\u914d\u5957\u6821\u9a8c\u3001\u5e42\u7b49\u3001\u5ba1\u8ba1\u3001\u6d4b\u8bd5\u3001\u914d\u7f6e\u3002\u6df1\u6316\u8986\u76d6\u63cf\u8ff0\u4e0e schema \u8d28\u91cf\u3001\u5206\u5c42\u63cf\u8ff0\u3001\u53bb\u91cd\u5408\u5e76\u3001\u6743\u9650\u8fc7\u6ee4\u3001\u7248\u672c\u7ba1\u7406\u3001\u5206\u9875\u3001\u5de5\u5177\u641c\u7d22\u3001\u8d28\u91cf\u8bc4\u4f30\u2014\u2014description \u4e0e inputSchema \u7684\u8d28\u91cf\u76f4\u63a5\u51b3\u5b9a\u5de5\u5177\u547d\u4e2d\u7387\u4e0e\u8c03\u7528\u6210\u529f\u7387\u3002<\/p>\n<hr \/>\n<h3>\u7b2c 6 \u7ae0 \u5de5\u5177\u8c03\u7528\u673a\u5236\u6df1\u62c6<\/h3>\n<h4>6.1 tools\/call \u7684\u8bf7\u6c42\u7ed3\u6784<\/h4>\n<p>\u8c03\u7528\u9636\u6bb5\u7684\u6838\u5fc3\u65b9\u6cd5\u662f tools\/call&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;jsonrpc&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;2.0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;tools\/call&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;params&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;search_code&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;arguments&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;query&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;auth&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;repo&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;myrepo&#034;<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>Server \u6267\u884c\u540e\u8fd4\u56de\u7ed3\u679c&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;jsonrpc&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;2.0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;result&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;content&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n      <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;text&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;text&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u627e\u52305\u4e2a\u5339\u914d\u6587\u4ef6&#034;<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;isError&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>6.2 \u8c03\u7528\u524d\u7684\u53c2\u6570\u6821\u9a8c<\/h4>\n<p>Client \u5728\u8f6c\u53d1\u524d&#xff0c;\u5e94\u5148\u7528 inputSchema \u6821\u9a8c\u53c2\u6570&#xff1a;<\/p>\n<p>#mermaid-svg-xmnxF0g9xhl94JQX{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-xmnxF0g9xhl94JQX .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-xmnxF0g9xhl94JQX .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-xmnxF0g9xhl94JQX .error-icon{fill:#552222;}#mermaid-svg-xmnxF0g9xhl94JQX .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-xmnxF0g9xhl94JQX .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-xmnxF0g9xhl94JQX .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-xmnxF0g9xhl94JQX .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-xmnxF0g9xhl94JQX .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-xmnxF0g9xhl94JQX .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-xmnxF0g9xhl94JQX .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-xmnxF0g9xhl94JQX .marker{fill:#333333;stroke:#333333;}#mermaid-svg-xmnxF0g9xhl94JQX .marker.cross{stroke:#333333;}#mermaid-svg-xmnxF0g9xhl94JQX svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-xmnxF0g9xhl94JQX p{margin:0;}#mermaid-svg-xmnxF0g9xhl94JQX .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-xmnxF0g9xhl94JQX .cluster-label text{fill:#333;}#mermaid-svg-xmnxF0g9xhl94JQX .cluster-label span{color:#333;}#mermaid-svg-xmnxF0g9xhl94JQX .cluster-label span p{background-color:transparent;}#mermaid-svg-xmnxF0g9xhl94JQX .label text,#mermaid-svg-xmnxF0g9xhl94JQX span{fill:#333;color:#333;}#mermaid-svg-xmnxF0g9xhl94JQX .node rect,#mermaid-svg-xmnxF0g9xhl94JQX .node circle,#mermaid-svg-xmnxF0g9xhl94JQX .node ellipse,#mermaid-svg-xmnxF0g9xhl94JQX .node polygon,#mermaid-svg-xmnxF0g9xhl94JQX .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-xmnxF0g9xhl94JQX .rough-node .label text,#mermaid-svg-xmnxF0g9xhl94JQX .node .label text,#mermaid-svg-xmnxF0g9xhl94JQX .image-shape .label,#mermaid-svg-xmnxF0g9xhl94JQX .icon-shape .label{text-anchor:middle;}#mermaid-svg-xmnxF0g9xhl94JQX .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-xmnxF0g9xhl94JQX .rough-node .label,#mermaid-svg-xmnxF0g9xhl94JQX .node .label,#mermaid-svg-xmnxF0g9xhl94JQX .image-shape .label,#mermaid-svg-xmnxF0g9xhl94JQX .icon-shape .label{text-align:center;}#mermaid-svg-xmnxF0g9xhl94JQX .node.clickable{cursor:pointer;}#mermaid-svg-xmnxF0g9xhl94JQX .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-xmnxF0g9xhl94JQX .arrowheadPath{fill:#333333;}#mermaid-svg-xmnxF0g9xhl94JQX .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-xmnxF0g9xhl94JQX .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-xmnxF0g9xhl94JQX .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-xmnxF0g9xhl94JQX .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-xmnxF0g9xhl94JQX .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-xmnxF0g9xhl94JQX .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-xmnxF0g9xhl94JQX .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-xmnxF0g9xhl94JQX .cluster text{fill:#333;}#mermaid-svg-xmnxF0g9xhl94JQX .cluster span{color:#333;}#mermaid-svg-xmnxF0g9xhl94JQX div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-xmnxF0g9xhl94JQX .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-xmnxF0g9xhl94JQX rect.text{fill:none;stroke-width:0;}#mermaid-svg-xmnxF0g9xhl94JQX .icon-shape,#mermaid-svg-xmnxF0g9xhl94JQX .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-xmnxF0g9xhl94JQX .icon-shape p,#mermaid-svg-xmnxF0g9xhl94JQX .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-xmnxF0g9xhl94JQX .icon-shape .label rect,#mermaid-svg-xmnxF0g9xhl94JQX .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-xmnxF0g9xhl94JQX .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-xmnxF0g9xhl94JQX .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-xmnxF0g9xhl94JQX :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent \u6784\u9020\u53c2\u6570<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6309 schema \u6821\u9a8c<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5408\u6cd5?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8def\u7531&#043;\u8c03\u7528<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8865\u5145\/\u4fee\u6b63\u53c2\u6570<\/p>\n<p><\/span><\/p>\n<p>\u6821\u9a8c\u4e0d\u8fc7\u65f6&#xff0c;Client \u8fd4\u56de\u53cb\u597d\u9519\u8bef&#xff0c;\u800c\u975e\u76f4\u63a5\u6253\u5230 Server\u3002<\/p>\n<h4>6.3 \u7ed3\u679c\u5904\u7406<\/h4>\n<p>Server \u8fd4\u56de\u7684\u5185\u5bb9\u7c7b\u578b\u591a\u6837&#xff08;text\/image\/resource&#xff09;&#xff0c;Client \u7edf\u4e00\u5305\u88c5\u540e\u4ea4\u7ed9 Agent&#xff1a;<\/p>\n<ul>\n<li>isError: false&#xff1a;\u6b63\u5e38\u7ed3\u679c&#xff0c;Agent \u7ee7\u7eed\u63a8\u7406\u3002<\/li>\n<li>isError: true&#xff1a;\u4e1a\u52a1\u9519\u8bef&#xff0c;Agent \u9700\u51b3\u5b9a\u91cd\u8bd5\u6216\u6362\u7b56\u7565\u3002<\/li>\n<\/ul>\n<h4>6.4 \u8c03\u7528\u8d85\u65f6\u4e0e\u53d6\u6d88<\/h4>\n<ul>\n<li>\u8d85\u65f6&#xff1a;\u6309\u5de5\u5177\u7c7b\u578b\u5206\u7ea7&#xff08;\u5feb\u5de5\u5177 10s\u3001\u6162\u5de5\u5177 60s&#043;&#xff09;\u3002<\/li>\n<li>\u53d6\u6d88&#xff1a;Agent \u4e2d\u9014\u53cd\u6094&#xff0c;\u53d1 notifications\/cancelled \u4e2d\u6b62\u5728\u9014\u8c03\u7528\u3002<\/li>\n<\/ul>\n<h4>6.5 \u8c03\u7528\u7684\u5e42\u7b49\u6027<\/h4>\n<p>\u5199\u64cd\u4f5c&#xff08;create_issue\u3001send_message&#xff09;\u5728\u91cd\u8bd5\u65f6\u53ef\u80fd\u91cd\u590d\u6267\u884c\u3002Server \u5e94\u652f\u6301\u5e42\u7b49\u952e&#xff0c;Client \u91cd\u8bd5\u65f6\u5e26\u4e0a\u540c\u4e00\u5e42\u7b49\u952e&#xff0c;Server \u53bb\u91cd\u3002<\/p>\n<h4>6.6 \u8c03\u7528\u94fe\u8def\u7684\u53ef\u89c2\u6d4b<\/h4>\n<p>ServerClientAgentServerClientAgent#mermaid-svg-SxXtpTXLuIvPQTCa{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-SxXtpTXLuIvPQTCa .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-SxXtpTXLuIvPQTCa .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-SxXtpTXLuIvPQTCa .error-icon{fill:#552222;}#mermaid-svg-SxXtpTXLuIvPQTCa .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-SxXtpTXLuIvPQTCa .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-SxXtpTXLuIvPQTCa .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-SxXtpTXLuIvPQTCa .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-SxXtpTXLuIvPQTCa .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-SxXtpTXLuIvPQTCa .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-SxXtpTXLuIvPQTCa .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-SxXtpTXLuIvPQTCa .marker{fill:#333333;stroke:#333333;}#mermaid-svg-SxXtpTXLuIvPQTCa .marker.cross{stroke:#333333;}#mermaid-svg-SxXtpTXLuIvPQTCa svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-SxXtpTXLuIvPQTCa p{margin:0;}#mermaid-svg-SxXtpTXLuIvPQTCa .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-SxXtpTXLuIvPQTCa text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-SxXtpTXLuIvPQTCa .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-SxXtpTXLuIvPQTCa .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-SxXtpTXLuIvPQTCa .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-SxXtpTXLuIvPQTCa .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-SxXtpTXLuIvPQTCa #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-SxXtpTXLuIvPQTCa .sequenceNumber{fill:white;}#mermaid-svg-SxXtpTXLuIvPQTCa #sequencenumber{fill:#333;}#mermaid-svg-SxXtpTXLuIvPQTCa #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-SxXtpTXLuIvPQTCa .messageText{fill:#333;stroke:none;}#mermaid-svg-SxXtpTXLuIvPQTCa .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-SxXtpTXLuIvPQTCa .labelText,#mermaid-svg-SxXtpTXLuIvPQTCa .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-SxXtpTXLuIvPQTCa .loopText,#mermaid-svg-SxXtpTXLuIvPQTCa .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-SxXtpTXLuIvPQTCa .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-SxXtpTXLuIvPQTCa .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-SxXtpTXLuIvPQTCa .noteText,#mermaid-svg-SxXtpTXLuIvPQTCa .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-SxXtpTXLuIvPQTCa .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-SxXtpTXLuIvPQTCa .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-SxXtpTXLuIvPQTCa .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-SxXtpTXLuIvPQTCa .actorPopupMenu{position:absolute;}#mermaid-svg-SxXtpTXLuIvPQTCa .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-SxXtpTXLuIvPQTCa .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-SxXtpTXLuIvPQTCa .actor-man circle,#mermaid-svg-SxXtpTXLuIvPQTCa line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-SxXtpTXLuIvPQTCa :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}call_tool(name, args)\u8bb0\u5f55 traceId\/\u8017\u65f6tools\/call\u7ed3\u679c(isError)\u8bb0\u5f55\u7ed3\u679c\/\u9519\u8bef\u7801\u8fd4\u56de<\/p>\n<h4>6.7 \u8c03\u7528\u5931\u8d25\u7684\u7c7b\u578b\u4e0e\u5904\u7406<\/h4>\n<table>\n<tr>\u9519\u8bef\u7c7b\u578b\u793a\u4f8b\u5904\u7406<\/tr>\n<tbody>\n<tr>\n<td>\u53c2\u6570\u9519\u8bef<\/td>\n<td>\u7f3a\u5fc5\u586b\u5b57\u6bb5<\/td>\n<td>\u8865\u53c2\u91cd\u8bd5<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u5177\u4e0d\u5b58\u5728<\/td>\n<td>MethodNotFound<\/td>\n<td>\u5237\u65b0\u6e05\u5355\u540e\u91cd\u8bd5<\/td>\n<\/tr>\n<tr>\n<td>Server \u9519\u8bef<\/td>\n<td>\u5185\u90e8\u5f02\u5e38<\/td>\n<td>\u4e0a\u62a5&#xff0c;\u4e0d\u81ea\u52a8\u91cd\u8bd5<\/td>\n<\/tr>\n<tr>\n<td>\u9650\u6d41<\/td>\n<td>ResourceExhausted<\/td>\n<td>\u9000\u907f\u540e\u91cd\u8bd5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>6.9 \u53c2\u6570\u6821\u9a8c\u7684\u81ea\u52a8\u5316<\/h4>\n<p>\u7406\u60f3\u60c5\u51b5\u4e0b&#xff0c;Client \u7528 JSON Schema \u6821\u9a8c\u5e93&#xff08;\u5982 Python \u7684 jsonschema\u3001JS \u7684 ajv&#xff09;\u81ea\u52a8\u6821\u9a8c&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> jsonschema<\/p>\n<p>schema <span class=\"token operator\">&#061;<\/span> tool<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;inputSchema&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\njsonschema<span class=\"token punctuation\">.<\/span>validate<span class=\"token punctuation\">(<\/span>arguments<span class=\"token punctuation\">,<\/span> schema<span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># \u4e0d\u5408\u6cd5\u629b\u5f02\u5e38<\/span><\/p>\n<p>\u6821\u9a8c\u5931\u8d25\u65f6\u8fd4\u56de\u4eba\u53ef\u8bfb\u7684\u9519\u8bef&#xff0c;Agent \u624d\u80fd\u636e\u6b64\u4fee\u6b63&#xff1a;<\/p>\n<p>\u53c2\u6570\u9519\u8bef&#xff1a;\u7f3a\u5c11\u5fc5\u586b\u5b57\u6bb5 &#034;query&#034;&#xff08;search_code \u9700\u8981 query \u548c\u53ef\u9009\u7684 repo&#xff09;<\/p>\n<h4>6.10 \u5de5\u5177\u8c03\u7528\u7684\u91cd\u8bd5\u7b56\u7565\u77e9\u9635<\/h4>\n<table>\n<tr>\u9519\u8bef\u7c7b\u578b\u662f\u5426\u91cd\u8bd5\u7b56\u7565<\/tr>\n<tbody>\n<tr>\n<td>InvalidParams<\/td>\n<td>\u5426<\/td>\n<td>\u4fee\u6b63\u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td>MethodNotFound<\/td>\n<td>\u662f(1\u6b21)<\/td>\n<td>\u5237\u65b0\u6e05\u5355<\/td>\n<\/tr>\n<tr>\n<td>InternalError<\/td>\n<td>\u5426<\/td>\n<td>\u4e0a\u62a5<\/td>\n<\/tr>\n<tr>\n<td>\u8d85\u65f6<\/td>\n<td>\u662f<\/td>\n<td>\u9000\u907f\u91cd\u8bd5<\/td>\n<\/tr>\n<tr>\n<td>\u9650\u6d41<\/td>\n<td>\u662f<\/td>\n<td>\u9000\u907f&#043;\u6296\u52a8<\/td>\n<\/tr>\n<tr>\n<td>\u7f51\u7edc\u65ad<\/td>\n<td>\u662f<\/td>\n<td>\u91cd\u8fde\u540e\u91cd\u8bd5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>6.11 \u8c03\u7528\u7684\u5e76\u53d1\u63a7\u5236<\/h4>\n<p>Agent \u53ef\u80fd\u540c\u65f6\u53d1\u8d77\u591a\u4e2a\u5de5\u5177\u8c03\u7528&#xff08;\u5e76\u884c\u7f16\u6392&#xff09;\u3002Client \u5e94&#xff1a;<\/p>\n<ul>\n<li>\u6bcf\u4e2a\u8c03\u7528\u72ec\u7acb\u8ddf\u8e2a&#xff08;request id&#xff09;\u3002<\/li>\n<li>\u6309 Server\/\u4f1a\u8bdd\u7ef4\u5ea6\u9650\u5236\u5e76\u53d1\u6570\u3002<\/li>\n<li>\u8d85\u65f6\u72ec\u7acb&#xff0c;\u4e0d\u4e92\u76f8\u963b\u585e\u3002<\/li>\n<\/ul>\n<p>#mermaid-svg-sRWY0pRnLyR8ompT{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-sRWY0pRnLyR8ompT .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-sRWY0pRnLyR8ompT .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-sRWY0pRnLyR8ompT .error-icon{fill:#552222;}#mermaid-svg-sRWY0pRnLyR8ompT .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-sRWY0pRnLyR8ompT .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-sRWY0pRnLyR8ompT .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-sRWY0pRnLyR8ompT .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-sRWY0pRnLyR8ompT .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-sRWY0pRnLyR8ompT .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-sRWY0pRnLyR8ompT .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-sRWY0pRnLyR8ompT .marker{fill:#333333;stroke:#333333;}#mermaid-svg-sRWY0pRnLyR8ompT .marker.cross{stroke:#333333;}#mermaid-svg-sRWY0pRnLyR8ompT svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-sRWY0pRnLyR8ompT p{margin:0;}#mermaid-svg-sRWY0pRnLyR8ompT .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-sRWY0pRnLyR8ompT .cluster-label text{fill:#333;}#mermaid-svg-sRWY0pRnLyR8ompT .cluster-label span{color:#333;}#mermaid-svg-sRWY0pRnLyR8ompT .cluster-label span p{background-color:transparent;}#mermaid-svg-sRWY0pRnLyR8ompT .label text,#mermaid-svg-sRWY0pRnLyR8ompT span{fill:#333;color:#333;}#mermaid-svg-sRWY0pRnLyR8ompT .node rect,#mermaid-svg-sRWY0pRnLyR8ompT .node circle,#mermaid-svg-sRWY0pRnLyR8ompT .node ellipse,#mermaid-svg-sRWY0pRnLyR8ompT .node polygon,#mermaid-svg-sRWY0pRnLyR8ompT .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-sRWY0pRnLyR8ompT .rough-node .label text,#mermaid-svg-sRWY0pRnLyR8ompT .node .label text,#mermaid-svg-sRWY0pRnLyR8ompT .image-shape .label,#mermaid-svg-sRWY0pRnLyR8ompT .icon-shape .label{text-anchor:middle;}#mermaid-svg-sRWY0pRnLyR8ompT .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-sRWY0pRnLyR8ompT .rough-node .label,#mermaid-svg-sRWY0pRnLyR8ompT .node .label,#mermaid-svg-sRWY0pRnLyR8ompT .image-shape .label,#mermaid-svg-sRWY0pRnLyR8ompT .icon-shape .label{text-align:center;}#mermaid-svg-sRWY0pRnLyR8ompT .node.clickable{cursor:pointer;}#mermaid-svg-sRWY0pRnLyR8ompT .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-sRWY0pRnLyR8ompT .arrowheadPath{fill:#333333;}#mermaid-svg-sRWY0pRnLyR8ompT .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-sRWY0pRnLyR8ompT .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-sRWY0pRnLyR8ompT .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-sRWY0pRnLyR8ompT .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-sRWY0pRnLyR8ompT .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-sRWY0pRnLyR8ompT .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-sRWY0pRnLyR8ompT .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-sRWY0pRnLyR8ompT .cluster text{fill:#333;}#mermaid-svg-sRWY0pRnLyR8ompT .cluster span{color:#333;}#mermaid-svg-sRWY0pRnLyR8ompT div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-sRWY0pRnLyR8ompT .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-sRWY0pRnLyR8ompT rect.text{fill:none;stroke-width:0;}#mermaid-svg-sRWY0pRnLyR8ompT .icon-shape,#mermaid-svg-sRWY0pRnLyR8ompT .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-sRWY0pRnLyR8ompT .icon-shape p,#mermaid-svg-sRWY0pRnLyR8ompT .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-sRWY0pRnLyR8ompT .icon-shape .label rect,#mermaid-svg-sRWY0pRnLyR8ompT .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-sRWY0pRnLyR8ompT .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-sRWY0pRnLyR8ompT .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-sRWY0pRnLyR8ompT :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5e76\u53d1\u8c03\u7528\u6c60<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>call A<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>call B<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>call C<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7ed3\u679c\u805a\u5408<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8fd4\u56de Agent<\/p>\n<p><\/span><\/p>\n<h4>6.12 \u8c03\u7528\u7684\u8fdb\u5ea6\u53cd\u9988<\/h4>\n<p>\u6162\u5de5\u5177&#xff08;\u957f\u4efb\u52a1&#xff09;\u5e94\u652f\u6301\u8fdb\u5ea6\u4e0a\u62a5&#xff1a;<\/p>\n<ul>\n<li>Server \u901a\u8fc7 notifications\/progress \u63a8\u8fdb\u5ea6\u3002<\/li>\n<li>Client \u5c55\u793a\u8fdb\u5ea6\u6216\u4f9b Agent \u5224\u65ad\u662f\u5426\u7ee7\u7eed\u7b49\u5f85\u3002<\/li>\n<li>\u8d85\u65f6\u9608\u503c\u4e0e\u8fdb\u5ea6\u6302\u94a9&#xff08;\u6709\u8fdb\u5ea6\u5c31\u7eed\u671f&#xff09;\u3002<\/li>\n<\/ul>\n<h4>6.13 \u8c03\u7528\u7ed3\u679c\u7684\u540e\u5904\u7406<\/h4>\n<p>\u7ed3\u679c\u8fd4\u56de Agent \u524d&#xff0c;Client \u53ef\u4ee5\u505a&#xff1a;<\/p>\n<li>\u8131\u654f&#xff1a;\u9690\u85cf\u5bc6\u94a5\u3001PII\u3002<\/li>\n<li>\u622a\u65ad&#xff1a;\u8d85\u957f\u7ed3\u679c\u6458\u8981\u6216\u622a\u65ad\u3002<\/li>\n<li>\u6807\u6ce8&#xff1a;\u6807\u8bb0\u6765\u6e90 Server\u3001\u53ef\u4fe1\u5ea6\u3002<\/li>\n<li>\u8f6c\u6362&#xff1a;\u7ed3\u6784\u5316\u7ed3\u679c\u8f6c\u6210 Agent \u53cb\u597d\u7684\u683c\u5f0f\u3002<\/li>\n<h4>6.14 \u8c03\u7528\u7684\u5ba1\u8ba1\u65e5\u5fd7<\/h4>\n<p>\u6bcf\u6b21\u8c03\u7528\u8bb0\u5f55&#xff1a;who&#xff08;\u4f1a\u8bdd\u8eab\u4efd&#xff09;\u3001what&#xff08;\u5de5\u5177\u540d&#xff09;\u3001args&#xff08;\u8131\u654f\u540e&#xff09;\u3001when\u3001result&#xff08;\u6458\u8981&#xff09;\u3001latency\u3001error\u3002\u5ba1\u8ba1\u65e5\u5fd7\u7528\u4e8e\u5b89\u5168\u8ffd\u6eaf\u4e0e\u8d28\u91cf\u5206\u6790\u3002<\/p>\n<h4>6.15 \u8c03\u7528\u7684\u964d\u7ea7\u94fe\u8def<\/h4>\n<p>\u5de5\u5177\u4e0d\u53ef\u7528\u65f6&#xff0c;\u6309\u4f18\u5148\u7ea7\u964d\u7ea7&#xff1a;<\/p>\n<li>\u5907\u7528 Server&#xff08;\u540c\u540d\u5de5\u5177&#xff09;\u3002<\/li>\n<li>\u7f13\u5b58\u7ed3\u679c&#xff08;\u53ea\u8bfb\u5de5\u5177&#xff09;\u3002<\/li>\n<li>\u6a21\u62df\/\u5360\u4f4d\u7ed3\u679c&#xff08;\u6d4b\u8bd5\u73af\u5883&#xff09;\u3002<\/li>\n<li>\u660e\u786e\u544a\u77e5 Agent \u4e0d\u53ef\u7528\u3002<\/li>\n<h4>6.16 \u8c03\u7528\u4e0e\u4e0a\u4e0b\u6587\u7ba1\u7406\u7684\u914d\u5408<\/h4>\n<p>\u8c03\u7528\u7ed3\u679c\u8fdb\u5165\u4e0a\u4e0b\u6587\u540e&#xff0c;\u4f1a\u5360\u7528 Token\u3002\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\u7ed3\u679c\u6458\u8981\u5316\u540e\u518d\u5165\u4e0a\u4e0b\u6587\u3002<\/li>\n<li>\u8d85\u5927\u7ed3\u679c\u5b58\u5916\u90e8&#xff0c;\u53ea\u7ed9 Agent \u5f15\u7528\u3002<\/li>\n<li>\u5386\u53f2\u8c03\u7528\u7ed3\u679c\u6309\u9700\u6dd8\u6c70\u3002<\/li>\n<\/ul>\n<h4>6.18 \u8c03\u7528\u7684\u5b8c\u6574\u65f6\u5e8f&#xff08;\u542b\u6821\u9a8c\u4e0e\u5ba1\u8ba1&#xff09;<\/h4>\n<p>Server\u6ce8\u518c\u8868ClientAgentServer\u6ce8\u518c\u8868ClientAgent#mermaid-svg-KCClHnQWLfOjFHAO{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-KCClHnQWLfOjFHAO .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-KCClHnQWLfOjFHAO .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-KCClHnQWLfOjFHAO .error-icon{fill:#552222;}#mermaid-svg-KCClHnQWLfOjFHAO .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-KCClHnQWLfOjFHAO .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-KCClHnQWLfOjFHAO .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-KCClHnQWLfOjFHAO .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-KCClHnQWLfOjFHAO .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-KCClHnQWLfOjFHAO .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-KCClHnQWLfOjFHAO .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-KCClHnQWLfOjFHAO .marker{fill:#333333;stroke:#333333;}#mermaid-svg-KCClHnQWLfOjFHAO .marker.cross{stroke:#333333;}#mermaid-svg-KCClHnQWLfOjFHAO svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-KCClHnQWLfOjFHAO p{margin:0;}#mermaid-svg-KCClHnQWLfOjFHAO .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-KCClHnQWLfOjFHAO text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-KCClHnQWLfOjFHAO .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-KCClHnQWLfOjFHAO .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-KCClHnQWLfOjFHAO .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-KCClHnQWLfOjFHAO .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-KCClHnQWLfOjFHAO #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-KCClHnQWLfOjFHAO .sequenceNumber{fill:white;}#mermaid-svg-KCClHnQWLfOjFHAO #sequencenumber{fill:#333;}#mermaid-svg-KCClHnQWLfOjFHAO #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-KCClHnQWLfOjFHAO .messageText{fill:#333;stroke:none;}#mermaid-svg-KCClHnQWLfOjFHAO .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-KCClHnQWLfOjFHAO .labelText,#mermaid-svg-KCClHnQWLfOjFHAO .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-KCClHnQWLfOjFHAO .loopText,#mermaid-svg-KCClHnQWLfOjFHAO .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-KCClHnQWLfOjFHAO .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-KCClHnQWLfOjFHAO .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-KCClHnQWLfOjFHAO .noteText,#mermaid-svg-KCClHnQWLfOjFHAO .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-KCClHnQWLfOjFHAO .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-KCClHnQWLfOjFHAO .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-KCClHnQWLfOjFHAO .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-KCClHnQWLfOjFHAO .actorPopupMenu{position:absolute;}#mermaid-svg-KCClHnQWLfOjFHAO .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-KCClHnQWLfOjFHAO .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-KCClHnQWLfOjFHAO .actor-man circle,#mermaid-svg-KCClHnQWLfOjFHAO line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-KCClHnQWLfOjFHAO :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}call_tool(name, arguments)schema \u6821\u9a8c\u67e5\u8def\u7531\u6743\u9650\u68c0\u67e5(\u4e8c\u6b21\u786e\u8ba4?)tools\/call\u7ed3\u679c\/\u9519\u8bef\u8131\u654f\/\u6458\u8981\/\u5ba1\u8ba1\u8fd4\u56de<\/p>\n<h4>6.19 \u8c03\u7528\u7684\u6743\u9650\u68c0\u67e5<\/h4>\n<p>\u8c03\u7528\u524d\u68c0\u67e5&#xff1a;<\/p>\n<li>\u8be5\u5de5\u5177\u5728\u5f53\u524d\u4f1a\u8bdd\u53ef\u7528\u5417&#xff08;\u6ce8\u518c\u8868\u6709\u5417&#xff09;\u3002<\/li>\n<li>\u662f destructive \u5417&#xff08;\u9700\u8981\u4e8c\u6b21\u786e\u8ba4\u5417&#xff09;\u3002<\/li>\n<li>\u5f53\u524d\u8eab\u4efd\u6709\u8c03\u7528\u6743\u9650\u5417&#xff08;\u7b56\u7565\u5f15\u64ce&#xff09;\u3002<\/li>\n<p>\u4efb\u4e00\u4e0d\u8fc7 \u2192 \u672c\u5730\u62e6\u622a&#xff0c;\u8fd4\u56de\u660e\u786e\u9519\u8bef&#xff0c;\u4e0d\u6253\u6270 Server\u3002<\/p>\n<h4>6.20 \u8c03\u7528\u7684\u8bf7\u6c42 ID \u4e0e\u8ffd\u8e2a<\/h4>\n<p>\u6bcf\u4e2a\u8c03\u7528\u5206\u914d\u552f\u4e00 requestId&#xff1a;<\/p>\n<ul>\n<li>\u8d2f\u7a7f Client \u2192 Server \u5168\u94fe\u8def\u3002<\/li>\n<li>\u65e5\u5fd7\u3001\u6307\u6807\u3001\u5ba1\u8ba1\u90fd\u6302 requestId\u3002<\/li>\n<li>\u7528\u6237\u53cd\u9988&#034;\u67d0\u6b21\u8c03\u7528\u51fa\u9519&#034;\u65f6\u53ef\u6309 ID \u79d2\u67e5\u3002<\/li>\n<\/ul>\n<h4>6.21 \u8c03\u7528\u7684\u7ed3\u679c\u6821\u9a8c<\/h4>\n<p>Server \u8fd4\u56de\u540e&#xff0c;Client \u6821\u9a8c&#xff1a;<\/p>\n<ul>\n<li>\u662f\u5426\u7b26\u5408 outputSchema&#xff08;\u82e5\u58f0\u660e&#xff09;\u3002<\/li>\n<li>isError \u662f\u5426\u6b63\u786e\u8bbe\u7f6e\u3002<\/li>\n<li>\u5185\u5bb9\u7c7b\u578b\u662f\u5426\u53ef\u89e3\u6790\u3002<\/li>\n<\/ul>\n<p>\u4e0d\u5408\u89c4\u7684\u7ed3\u679c\u6807\u8bb0\u544a\u8b66&#xff0c;\u9632\u6b62&#034;\u574f\u6570\u636e&#034;\u6c61\u67d3 Agent \u63a8\u7406\u3002<\/p>\n<h4>6.22 \u8c03\u7528\u7684\u6279\u91cf\u4f18\u5316<\/h4>\n<p>\u9ad8\u9891\u5c0f\u8c03\u7528\u53ef\u5408\u5e76&#xff1a;<\/p>\n<ul>\n<li>\u76f8\u540c Server \u7684\u591a\u4e2a\u72ec\u7acb\u8c03\u7528\u5e76\u884c\u53d1\u9001\u3002<\/li>\n<li>\u652f\u6301 batch \u7684 Server \u5408\u5e76\u8bf7\u6c42\u3002<\/li>\n<li>\u51cf\u5c11\u5f80\u8fd4&#xff0c;\u63d0\u5347\u541e\u5410\u3002<\/li>\n<\/ul>\n<h4>6.23 \u8c03\u7528\u7684\u6210\u672c\u63a7\u5236<\/h4>\n<ul>\n<li>\u6bcf\u5de5\u5177\/\u6bcf Server \u914d\u989d\u3002<\/li>\n<li>\u7ed3\u679c\u7f13\u5b58&#xff08;\u8bfb\u591a\u5199\u5c11\u573a\u666f&#xff09;\u3002<\/li>\n<li>\u5927\u7ed3\u679c\u6458\u8981\u5316&#xff0c;\u7701 Token \u4e0e\u5e26\u5bbd\u3002<\/li>\n<li>\u6210\u672c\u770b\u677f &#043; \u8d85\u9884\u7b97\u544a\u8b66\u3002<\/li>\n<\/ul>\n<h4>6.24 \u8c03\u7528\u7684\u6d4b\u8bd5<\/h4>\n<ul>\n<li>\u5355\u5143&#xff1a;mock Server \u9a8c\u8bc1\u6821\u9a8c\/\u8def\u7531\/\u91cd\u8bd5\u903b\u8f91\u3002<\/li>\n<li>\u96c6\u6210&#xff1a;\u771f\u5b9e Server \u8dd1\u5178\u578b\u8c03\u7528\u3002<\/li>\n<li>\u5f02\u5e38&#xff1a;\u6ce8\u5165\u8d85\u65f6\/\u9650\u6d41\/\u574f schema\u3002<\/li>\n<li>\u56de\u5f52&#xff1a;\u5de5\u5177\u66f4\u65b0\u540e\u5168\u91cf\u56de\u5f52\u8c03\u7528\u7528\u4f8b\u3002<\/li>\n<\/ul>\n<h4>6.25 \u8c03\u7528\u7684\u914d\u7f6e\u9879<\/h4>\n<p><span class=\"token key atrule\">call<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">validate_args<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><br \/>\n  <span class=\"token key atrule\">retry_max<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n  <span class=\"token key atrule\">retry_backoff<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>200ms<span class=\"token punctuation\">,<\/span> 800ms<span class=\"token punctuation\">,<\/span> 2s<span class=\"token punctuation\">]<\/span><br \/>\n  <span class=\"token key atrule\">timeout_default_ms<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10000<\/span><br \/>\n  <span class=\"token key atrule\">idempotency_key<\/span><span class=\"token punctuation\">:<\/span> auto<br \/>\n  <span class=\"token key atrule\">audit_log<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean important\">true<\/span><\/p>\n<h4>6.26 \u672c\u7ae0\u5c0f\u7ed3&#xff08;\u7ec8\u7248&#xff09;<\/h4>\n<p>\u8c03\u7528\u673a\u5236\u7684\u6838\u5fc3&#xff1a;schema \u6821\u9a8c\u524d\u7f6e\u3001\u7ed3\u679c\u7edf\u4e00\u5305\u88c5\u3001\u8d85\u65f6\/\u53d6\u6d88\u5206\u7ea7\u3001\u5199\u64cd\u4f5c\u5e42\u7b49\u3001\u5168\u94fe\u8def\u53ef\u89c2\u6d4b&#xff0c;\u914d\u5957\u6743\u9650\u68c0\u67e5\u3001\u8bf7\u6c42\u8ffd\u8e2a\u3001\u7ed3\u679c\u6821\u9a8c\u3001\u6279\u91cf\u4f18\u5316\u3001\u6210\u672c\u63a7\u5236\u3001\u6d4b\u8bd5\u3001\u914d\u7f6e\u3002\u8c03\u7528\u6210\u8d25\u7684\u4e09\u8981\u7d20&#xff1a;\u53c2\u6570\u5bf9\u4e0d\u5bf9\u3001\u8def\u7531\u51c6\u4e0d\u51c6\u3001Server \u7a33\u4e0d\u7a33\u3002<\/p>\n<hr \/>\n<h3>\u7b2c 7 \u7ae0 \u591a Server \u7ec4\u5408\u4e0e\u7f16\u6392<\/h3>\n<h4>7.1 \u591a Server \u7684\u4ef7\u503c<\/h4>\n<p>\u540c\u4e00\u4e2a Agent \u540c\u65f6\u8fde\u63a5 GitHub\u3001Slack\u3001\u6570\u636e\u5e93\u7b49\u591a\u4e2a MCP Server&#xff0c;\u5c31\u80fd\u7ec4\u5408\u51fa\u590d\u6742\u80fd\u529b&#xff1a;\u67e5\u5b8c\u4ee3\u7801&#xff08;GitHub&#xff09;\u2192 \u901a\u77e5\u56e2\u961f&#xff08;Slack&#xff09;\u2192 \u8bb0\u5f55\u6570\u636e&#xff08;\u6570\u636e\u5e93&#xff09;\u3002<\/p>\n<p>#mermaid-svg-fZKcgXSnN9iA86xi{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-fZKcgXSnN9iA86xi .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-fZKcgXSnN9iA86xi .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-fZKcgXSnN9iA86xi .error-icon{fill:#552222;}#mermaid-svg-fZKcgXSnN9iA86xi .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-fZKcgXSnN9iA86xi .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-fZKcgXSnN9iA86xi .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-fZKcgXSnN9iA86xi .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-fZKcgXSnN9iA86xi .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-fZKcgXSnN9iA86xi .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-fZKcgXSnN9iA86xi .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-fZKcgXSnN9iA86xi .marker{fill:#333333;stroke:#333333;}#mermaid-svg-fZKcgXSnN9iA86xi .marker.cross{stroke:#333333;}#mermaid-svg-fZKcgXSnN9iA86xi svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-fZKcgXSnN9iA86xi p{margin:0;}#mermaid-svg-fZKcgXSnN9iA86xi .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-fZKcgXSnN9iA86xi .cluster-label text{fill:#333;}#mermaid-svg-fZKcgXSnN9iA86xi .cluster-label span{color:#333;}#mermaid-svg-fZKcgXSnN9iA86xi .cluster-label span p{background-color:transparent;}#mermaid-svg-fZKcgXSnN9iA86xi .label text,#mermaid-svg-fZKcgXSnN9iA86xi span{fill:#333;color:#333;}#mermaid-svg-fZKcgXSnN9iA86xi .node rect,#mermaid-svg-fZKcgXSnN9iA86xi .node circle,#mermaid-svg-fZKcgXSnN9iA86xi .node ellipse,#mermaid-svg-fZKcgXSnN9iA86xi .node polygon,#mermaid-svg-fZKcgXSnN9iA86xi .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-fZKcgXSnN9iA86xi .rough-node .label text,#mermaid-svg-fZKcgXSnN9iA86xi .node .label text,#mermaid-svg-fZKcgXSnN9iA86xi .image-shape .label,#mermaid-svg-fZKcgXSnN9iA86xi .icon-shape .label{text-anchor:middle;}#mermaid-svg-fZKcgXSnN9iA86xi .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-fZKcgXSnN9iA86xi .rough-node .label,#mermaid-svg-fZKcgXSnN9iA86xi .node .label,#mermaid-svg-fZKcgXSnN9iA86xi .image-shape .label,#mermaid-svg-fZKcgXSnN9iA86xi .icon-shape .label{text-align:center;}#mermaid-svg-fZKcgXSnN9iA86xi .node.clickable{cursor:pointer;}#mermaid-svg-fZKcgXSnN9iA86xi .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-fZKcgXSnN9iA86xi .arrowheadPath{fill:#333333;}#mermaid-svg-fZKcgXSnN9iA86xi .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-fZKcgXSnN9iA86xi .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-fZKcgXSnN9iA86xi .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-fZKcgXSnN9iA86xi .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-fZKcgXSnN9iA86xi .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-fZKcgXSnN9iA86xi .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-fZKcgXSnN9iA86xi .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-fZKcgXSnN9iA86xi .cluster text{fill:#333;}#mermaid-svg-fZKcgXSnN9iA86xi .cluster span{color:#333;}#mermaid-svg-fZKcgXSnN9iA86xi div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-fZKcgXSnN9iA86xi .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-fZKcgXSnN9iA86xi rect.text{fill:none;stroke-width:0;}#mermaid-svg-fZKcgXSnN9iA86xi .icon-shape,#mermaid-svg-fZKcgXSnN9iA86xi .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-fZKcgXSnN9iA86xi .icon-shape p,#mermaid-svg-fZKcgXSnN9iA86xi .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-fZKcgXSnN9iA86xi .icon-shape .label rect,#mermaid-svg-fZKcgXSnN9iA86xi .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-fZKcgXSnN9iA86xi .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-fZKcgXSnN9iA86xi .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-fZKcgXSnN9iA86xi :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>MCP Client<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>GitHub Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Slack Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6570\u636e\u5e93 Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6587\u4ef6\u7cfb\u7edf Server<\/p>\n<p><\/span><\/p>\n<h4>7.2 \u591a Server \u7684\u7f16\u6392\u6a21\u5f0f<\/h4>\n<li>\u987a\u5e8f\u7f16\u6392&#xff1a;\u5148 A \u540e B&#xff08;\u5148\u67e5\u4ee3\u7801\u518d\u53d1\u901a\u77e5&#xff09;\u3002<\/li>\n<li>\u5e76\u884c\u7f16\u6392&#xff1a;A \u548c B \u540c\u65f6\u8c03&#xff08;\u540c\u65f6\u67e5\u591a\u4e2a\u4ed3\u5e93&#xff09;\u3002<\/li>\n<li>\u6761\u4ef6\u7f16\u6392&#xff1a;A \u6210\u529f\u624d\u8c03 B&#xff08;\u53d1\u73b0\u95ee\u9898\u624d\u5efa Issue&#xff09;\u3002<\/li>\n<h4>7.3 \u591a Server \u7684\u9694\u79bb<\/h4>\n<p>\u4e00\u4e2a Server \u6302\u4e86\u4e0d\u80fd\u62d6\u57ae\u5168\u90e8&#xff1a;<\/p>\n<ul>\n<li>\u6bcf Server \u72ec\u7acb\u4f1a\u8bdd\u3001\u72ec\u7acb\u8d85\u65f6\u3002<\/li>\n<li>\u7194\u65ad\u5668\u6309 Server \u7ef4\u5ea6\u3002<\/li>\n<li>\u8231\u58c1\u6a21\u5f0f&#xff1a;\u6bcf Server \u72ec\u7acb\u7ebf\u7a0b\u6c60\/\u961f\u5217\u3002<\/li>\n<\/ul>\n<h4>7.4 \u591a Server \u7684\u8d1f\u8f7d\u4e0e\u914d\u989d<\/h4>\n<ul>\n<li>\u6bcf Server \u72ec\u7acb\u9650\u6d41\u914d\u989d\u3002<\/li>\n<li>\u6162 Server \u7684\u8c03\u7528\u4e0d\u963b\u585e\u5feb Server\u3002<\/li>\n<li>\u8c03\u5ea6\u5668\u4f18\u5148\u6267\u884c\u5173\u952e\u8def\u5f84\u5de5\u5177\u3002<\/li>\n<\/ul>\n<h4>7.5 \u591a Server \u7ec4\u5408\u6848\u4f8b<\/h4>\n<p>DSlackGitHubClientAgentDSlackGitHubClientAgent#mermaid-svg-G1jUEEeNxsY9eQxJ{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-G1jUEEeNxsY9eQxJ .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-G1jUEEeNxsY9eQxJ .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-G1jUEEeNxsY9eQxJ .error-icon{fill:#552222;}#mermaid-svg-G1jUEEeNxsY9eQxJ .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-G1jUEEeNxsY9eQxJ .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-G1jUEEeNxsY9eQxJ .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-G1jUEEeNxsY9eQxJ .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-G1jUEEeNxsY9eQxJ .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-G1jUEEeNxsY9eQxJ .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-G1jUEEeNxsY9eQxJ .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-G1jUEEeNxsY9eQxJ .marker{fill:#333333;stroke:#333333;}#mermaid-svg-G1jUEEeNxsY9eQxJ .marker.cross{stroke:#333333;}#mermaid-svg-G1jUEEeNxsY9eQxJ svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-G1jUEEeNxsY9eQxJ p{margin:0;}#mermaid-svg-G1jUEEeNxsY9eQxJ .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-G1jUEEeNxsY9eQxJ text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-G1jUEEeNxsY9eQxJ .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-G1jUEEeNxsY9eQxJ .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-G1jUEEeNxsY9eQxJ .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-G1jUEEeNxsY9eQxJ .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-G1jUEEeNxsY9eQxJ #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-G1jUEEeNxsY9eQxJ .sequenceNumber{fill:white;}#mermaid-svg-G1jUEEeNxsY9eQxJ #sequencenumber{fill:#333;}#mermaid-svg-G1jUEEeNxsY9eQxJ #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-G1jUEEeNxsY9eQxJ .messageText{fill:#333;stroke:none;}#mermaid-svg-G1jUEEeNxsY9eQxJ .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-G1jUEEeNxsY9eQxJ .labelText,#mermaid-svg-G1jUEEeNxsY9eQxJ .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-G1jUEEeNxsY9eQxJ .loopText,#mermaid-svg-G1jUEEeNxsY9eQxJ .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-G1jUEEeNxsY9eQxJ .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-G1jUEEeNxsY9eQxJ .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-G1jUEEeNxsY9eQxJ .noteText,#mermaid-svg-G1jUEEeNxsY9eQxJ .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-G1jUEEeNxsY9eQxJ .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-G1jUEEeNxsY9eQxJ .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-G1jUEEeNxsY9eQxJ .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-G1jUEEeNxsY9eQxJ .actorPopupMenu{position:absolute;}#mermaid-svg-G1jUEEeNxsY9eQxJ .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-G1jUEEeNxsY9eQxJ .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-G1jUEEeNxsY9eQxJ .actor-man circle,#mermaid-svg-G1jUEEeNxsY9eQxJ line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-G1jUEEeNxsY9eQxJ :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}call_tool(search_code)tools\/call5 \u4e2a\u6587\u4ef6call_tool(send_message)tools\/call\u5df2\u53d1\u9001call_tool(execute_query)tools\/call<\/p>\n<h4>7.7 \u591a Server \u7684\u4f1a\u8bdd\u7ba1\u7406<\/h4>\n<p>\u6bcf\u4e2a Server \u4e00\u4e2a&#xff08;\u6216\u591a\u4e2a&#xff09;\u4f1a\u8bdd\u3002\u4f1a\u8bdd\u7ba1\u7406\u8981\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u4f1a\u8bdd\u7ea7\u914d\u7f6e\u72ec\u7acb&#xff08;\u8d85\u65f6\u3001\u6743\u9650\u3001\u9650\u6d41&#xff09;\u3002<\/li>\n<li>\u4f1a\u8bdd\u72b6\u6001\u7edf\u4e00\u8ddf\u8e2a&#xff08;connecting\/ready\/error\/closed&#xff09;\u3002<\/li>\n<li>\u6279\u91cf\u521d\u59cb\u5316\u5931\u8d25\u4e0d\u963b\u65ad\u6574\u4f53\u3002<\/li>\n<\/ul>\n<p>#mermaid-svg-YjC7OFIkHk47poMF{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-YjC7OFIkHk47poMF .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-YjC7OFIkHk47poMF .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-YjC7OFIkHk47poMF .error-icon{fill:#552222;}#mermaid-svg-YjC7OFIkHk47poMF .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-YjC7OFIkHk47poMF .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-YjC7OFIkHk47poMF .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-YjC7OFIkHk47poMF .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-YjC7OFIkHk47poMF .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-YjC7OFIkHk47poMF .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-YjC7OFIkHk47poMF .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-YjC7OFIkHk47poMF .marker{fill:#333333;stroke:#333333;}#mermaid-svg-YjC7OFIkHk47poMF .marker.cross{stroke:#333333;}#mermaid-svg-YjC7OFIkHk47poMF svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-YjC7OFIkHk47poMF p{margin:0;}#mermaid-svg-YjC7OFIkHk47poMF defs #statediagram-barbEnd{fill:#333333;stroke:#333333;}#mermaid-svg-YjC7OFIkHk47poMF g.stateGroup text{fill:#9370DB;stroke:none;font-size:10px;}#mermaid-svg-YjC7OFIkHk47poMF g.stateGroup text{fill:#333;stroke:none;font-size:10px;}#mermaid-svg-YjC7OFIkHk47poMF g.stateGroup .state-title{font-weight:bolder;fill:#131300;}#mermaid-svg-YjC7OFIkHk47poMF g.stateGroup rect{fill:#ECECFF;stroke:#9370DB;}#mermaid-svg-YjC7OFIkHk47poMF g.stateGroup line{stroke:#333333;stroke-width:1;}#mermaid-svg-YjC7OFIkHk47poMF .transition{stroke:#333333;stroke-width:1;fill:none;}#mermaid-svg-YjC7OFIkHk47poMF .stateGroup .composit{fill:white;border-bottom:1px;}#mermaid-svg-YjC7OFIkHk47poMF .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px;}#mermaid-svg-YjC7OFIkHk47poMF .state-note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-YjC7OFIkHk47poMF .state-note text{fill:black;stroke:none;font-size:10px;}#mermaid-svg-YjC7OFIkHk47poMF .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5;}#mermaid-svg-YjC7OFIkHk47poMF .edgeLabel .label rect{fill:#ECECFF;opacity:0.5;}#mermaid-svg-YjC7OFIkHk47poMF .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-YjC7OFIkHk47poMF .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-YjC7OFIkHk47poMF .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-YjC7OFIkHk47poMF .edgeLabel .label text{fill:#333;}#mermaid-svg-YjC7OFIkHk47poMF .label div .edgeLabel{color:#333;}#mermaid-svg-YjC7OFIkHk47poMF .stateLabel text{fill:#131300;font-size:10px;font-weight:bold;}#mermaid-svg-YjC7OFIkHk47poMF .node circle.state-start{fill:#333333;stroke:#333333;}#mermaid-svg-YjC7OFIkHk47poMF .node .fork-join{fill:#333333;stroke:#333333;}#mermaid-svg-YjC7OFIkHk47poMF .node circle.state-end{fill:#9370DB;stroke:white;stroke-width:1.5;}#mermaid-svg-YjC7OFIkHk47poMF .end-state-inner{fill:white;stroke-width:1.5;}#mermaid-svg-YjC7OFIkHk47poMF .node rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-YjC7OFIkHk47poMF .node polygon{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-YjC7OFIkHk47poMF #statediagram-barbEnd{fill:#333333;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-cluster rect{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-YjC7OFIkHk47poMF .cluster-label,#mermaid-svg-YjC7OFIkHk47poMF .nodeLabel{color:#131300;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-cluster rect.outer{rx:5px;ry:5px;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-state .divider{stroke:#9370DB;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-state .title-state{rx:5px;ry:5px;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-cluster.statediagram-cluster .inner{fill:white;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-cluster.statediagram-cluster-alt .inner{fill:#f0f0f0;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-cluster .inner{rx:0;ry:0;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-state rect.basic{rx:5px;ry:5px;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#f0f0f0;}#mermaid-svg-YjC7OFIkHk47poMF .note-edge{stroke-dasharray:5;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-note rect{fill:#fff5ad;stroke:#aaaa33;stroke-width:1px;rx:0;ry:0;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-note rect{fill:#fff5ad;stroke:#aaaa33;stroke-width:1px;rx:0;ry:0;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-note text{fill:black;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram-note .nodeLabel{color:black;}#mermaid-svg-YjC7OFIkHk47poMF .statediagram .edgeLabel{color:red;}#mermaid-svg-YjC7OFIkHk47poMF #dependencyStart,#mermaid-svg-YjC7OFIkHk47poMF #dependencyEnd{fill:#333333;stroke:#333333;stroke-width:1;}#mermaid-svg-YjC7OFIkHk47poMF .statediagramTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-YjC7OFIkHk47poMF :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/p>\n<p>\u8fde\u63a5<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u8fde\u63a5<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u8fde\u63a5<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>initialize<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>initialize<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>initialize<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>GitHub\u4f1a\u8bdd<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Slack\u4f1a\u8bdd<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6570\u636e\u5e93\u4f1a\u8bdd<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>GitHub\u5c31\u7eea<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Slack\u5c31\u7eea<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6570\u636e\u5e93\u5c31\u7eea<\/p>\n<p><\/span><\/p>\n<h4>7.8 \u591a Server \u7684\u7ec4\u5408\u7b56\u7565<\/h4>\n<table>\n<tr>\u7b56\u7565\u63cf\u8ff0\u6848\u4f8b<\/tr>\n<tbody>\n<tr>\n<td>\u987a\u5e8f<\/td>\n<td>\u7ed3\u679c\u4f5c\u4e3a\u4e0b\u4e00\u6b65\u8f93\u5165<\/td>\n<td>\u67e5\u4ee3\u7801\u2192\u53d1\u901a\u77e5<\/td>\n<\/tr>\n<tr>\n<td>\u5e76\u884c<\/td>\n<td>\u4e92\u4e0d\u4f9d\u8d56\u540c\u65f6\u8c03<\/td>\n<td>\u591a\u4ed3\u5e93\u540c\u65f6\u641c\u7d22<\/td>\n<\/tr>\n<tr>\n<td>\u6761\u4ef6<\/td>\n<td>\u6309\u7ed3\u679c\u51b3\u5b9a\u5206\u652f<\/td>\n<td>\u6709\u95ee\u9898\u624d\u5efa Issue<\/td>\n<\/tr>\n<tr>\n<td>\u6c47\u603b<\/td>\n<td>\u591a\u6e90\u7ed3\u679c\u805a\u5408<\/td>\n<td>\u591a\u6570\u636e\u5e93\u5bf9\u6bd4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>7.9 \u591a Server \u7684\u8def\u7531\u4f18\u5148\u7ea7<\/h4>\n<p>\u540c\u540d\u5de5\u5177\u8de8 Server \u65f6&#xff0c;\u53ef\u914d\u7f6e\u8def\u7531\u4f18\u5148\u7ea7&#xff1a;<\/p>\n<p>list_repos:<br \/>\n  &#8211; github-server (priority 1)<br \/>\n  &#8211; gitlab-server (priority 2)<\/p>\n<p>\u4f18\u5148\u8def\u7531\u5230\u4f18\u5148\u7ea7\u9ad8\u7684&#xff1b;\u5931\u8d25\u65f6\u964d\u7ea7\u5230\u4e0b\u4e00\u4f18\u5148\u7ea7\u7684 Server\u3002<\/p>\n<h4>7.10 \u591a Server \u7684\u6545\u969c\u9694\u79bb\u5b9e\u6218<\/h4>\n<p>#mermaid-svg-ZwBgKmPTH1moOCwV{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-ZwBgKmPTH1moOCwV .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-ZwBgKmPTH1moOCwV .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-ZwBgKmPTH1moOCwV .error-icon{fill:#552222;}#mermaid-svg-ZwBgKmPTH1moOCwV .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-ZwBgKmPTH1moOCwV .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-ZwBgKmPTH1moOCwV .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-ZwBgKmPTH1moOCwV .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-ZwBgKmPTH1moOCwV .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-ZwBgKmPTH1moOCwV .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-ZwBgKmPTH1moOCwV .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-ZwBgKmPTH1moOCwV .marker{fill:#333333;stroke:#333333;}#mermaid-svg-ZwBgKmPTH1moOCwV .marker.cross{stroke:#333333;}#mermaid-svg-ZwBgKmPTH1moOCwV svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-ZwBgKmPTH1moOCwV p{margin:0;}#mermaid-svg-ZwBgKmPTH1moOCwV .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-ZwBgKmPTH1moOCwV .cluster-label text{fill:#333;}#mermaid-svg-ZwBgKmPTH1moOCwV .cluster-label span{color:#333;}#mermaid-svg-ZwBgKmPTH1moOCwV .cluster-label span p{background-color:transparent;}#mermaid-svg-ZwBgKmPTH1moOCwV .label text,#mermaid-svg-ZwBgKmPTH1moOCwV span{fill:#333;color:#333;}#mermaid-svg-ZwBgKmPTH1moOCwV .node rect,#mermaid-svg-ZwBgKmPTH1moOCwV .node circle,#mermaid-svg-ZwBgKmPTH1moOCwV .node ellipse,#mermaid-svg-ZwBgKmPTH1moOCwV .node polygon,#mermaid-svg-ZwBgKmPTH1moOCwV .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-ZwBgKmPTH1moOCwV .rough-node .label text,#mermaid-svg-ZwBgKmPTH1moOCwV .node .label text,#mermaid-svg-ZwBgKmPTH1moOCwV .image-shape .label,#mermaid-svg-ZwBgKmPTH1moOCwV .icon-shape .label{text-anchor:middle;}#mermaid-svg-ZwBgKmPTH1moOCwV .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-ZwBgKmPTH1moOCwV .rough-node .label,#mermaid-svg-ZwBgKmPTH1moOCwV .node .label,#mermaid-svg-ZwBgKmPTH1moOCwV .image-shape .label,#mermaid-svg-ZwBgKmPTH1moOCwV .icon-shape .label{text-align:center;}#mermaid-svg-ZwBgKmPTH1moOCwV .node.clickable{cursor:pointer;}#mermaid-svg-ZwBgKmPTH1moOCwV .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-ZwBgKmPTH1moOCwV .arrowheadPath{fill:#333333;}#mermaid-svg-ZwBgKmPTH1moOCwV .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-ZwBgKmPTH1moOCwV .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-ZwBgKmPTH1moOCwV .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-ZwBgKmPTH1moOCwV .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-ZwBgKmPTH1moOCwV .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-ZwBgKmPTH1moOCwV .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-ZwBgKmPTH1moOCwV .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-ZwBgKmPTH1moOCwV .cluster text{fill:#333;}#mermaid-svg-ZwBgKmPTH1moOCwV .cluster span{color:#333;}#mermaid-svg-ZwBgKmPTH1moOCwV div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-ZwBgKmPTH1moOCwV .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-ZwBgKmPTH1moOCwV rect.text{fill:none;stroke-width:0;}#mermaid-svg-ZwBgKmPTH1moOCwV .icon-shape,#mermaid-svg-ZwBgKmPTH1moOCwV .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-ZwBgKmPTH1moOCwV .icon-shape p,#mermaid-svg-ZwBgKmPTH1moOCwV .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-ZwBgKmPTH1moOCwV .icon-shape .label rect,#mermaid-svg-ZwBgKmPTH1moOCwV .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-ZwBgKmPTH1moOCwV .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-ZwBgKmPTH1moOCwV .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-ZwBgKmPTH1moOCwV :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u7194\u65ad<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u6b63\u5e38<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u6b63\u5e38<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Client<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>GitHub Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Slack Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6570\u636e\u5e93 Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>GitHub \u964d\u7ea7<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7ee7\u7eed\u670d\u52a1<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7ee7\u7eed\u670d\u52a1<\/p>\n<p><\/span><\/p>\n<p>Slack \u6302\u4e86&#xff0c;GitHub \u548c\u6570\u636e\u5e93\u7167\u5e38\u5de5\u4f5c&#xff1b;Agent \u4ecd\u80fd\u5b8c\u6210&#034;\u67e5\u4ee3\u7801 &#043; \u8bb0\u5e93&#034;&#xff0c;\u53ea\u662f\u901a\u77e5\u73af\u8282\u964d\u7ea7\u4e3a&#034;\u7a0d\u540e\u91cd\u8bd5&#034;\u3002<\/p>\n<h4>7.11 \u591a Server \u7684\u914d\u989d\u7ba1\u7406<\/h4>\n<p>\u6bcf Server \u72ec\u7acb\u914d\u989d&#xff1a;<\/p>\n<ul>\n<li>\u6bcf\u5206\u949f\u8c03\u7528\u4e0a\u9650\u3002<\/li>\n<li>\u5e76\u53d1\u6570\u4e0a\u9650\u3002<\/li>\n<li>\u6570\u636e\u91cf\u4e0a\u9650\u3002<\/li>\n<\/ul>\n<p>\u8d85\u914d\u989d\u8fd4\u56de ResourceExhausted&#xff0c;\u7531\u8c03\u5ea6\u5668\u6392\u961f\u6216\u964d\u7ea7\u3002<\/p>\n<h4>7.12 \u591a Server \u7684\u53ef\u89c2\u6d4b\u805a\u5408<\/h4>\n<p>\u591a Server \u573a\u666f\u4e0b&#xff0c;\u5355 Server \u7684\u6307\u6807\u4e0d\u591f&#xff0c;\u9700\u8981\u805a\u5408\u89c6\u56fe&#xff1a;<\/p>\n<ul>\n<li>\u6309 Server \u7ef4\u5ea6\u770b\u5ef6\u8fdf\/\u9519\u8bef\u7387\/\u914d\u989d\u3002<\/li>\n<li>\u8de8 Server \u94fe\u8def\u770b\u4e00\u6b21\u4efb\u52a1\u7684\u603b\u8017\u65f6\u3002<\/li>\n<li>\u5b9a\u4f4d\u74f6\u9888 Server&#xff08;\u54ea\u4e00\u6b65\u6700\u6162&#xff09;\u3002<\/li>\n<\/ul>\n<h4>7.13 \u591a Server \u7684\u914d\u7f6e\u4e2d\u5fc3<\/h4>\n<p>\u5efa\u8bae\u7528\u914d\u7f6e\u4e2d\u5fc3\u7edf\u4e00\u7ba1\u7406&#xff1a;<\/p>\n<p><span class=\"token key atrule\">servers<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">github<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">transport<\/span><span class=\"token punctuation\">:<\/span> stdio<br \/>\n    <span class=\"token key atrule\">command<\/span><span class=\"token punctuation\">:<\/span> mcp<span class=\"token punctuation\">&#8211;<\/span>github<br \/>\n    <span class=\"token key atrule\">permissions<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span>read<span class=\"token punctuation\">,<\/span> write<span class=\"token punctuation\">]<\/span><br \/>\n  <span class=\"token key atrule\">slack<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">transport<\/span><span class=\"token punctuation\">:<\/span> http<br \/>\n    <span class=\"token key atrule\">url<\/span><span class=\"token punctuation\">:<\/span> https<span class=\"token punctuation\">:<\/span>\/\/slack<span class=\"token punctuation\">&#8211;<\/span>mcp.example.com<br \/>\n    <span class=\"token key atrule\">token_env<\/span><span class=\"token punctuation\">:<\/span> SLACK_TOKEN<br \/>\n  <span class=\"token key atrule\">database<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">transport<\/span><span class=\"token punctuation\">:<\/span> stdio<br \/>\n    <span class=\"token key atrule\">command<\/span><span class=\"token punctuation\">:<\/span> mcp<span class=\"token punctuation\">&#8211;<\/span>postgres<br \/>\n    <span class=\"token key atrule\">dsn_env<\/span><span class=\"token punctuation\">:<\/span> PG_DSN<\/p>\n<h4>7.14 \u591a Server \u7684\u7248\u672c\u534f\u540c<\/h4>\n<p>\u591a Server \u7248\u672c\u4e0d\u540c\u6b65\u65f6&#xff08;\u4e00\u4e2a v1 \u4e00\u4e2a v2&#xff09;&#xff0c;Client \u6309\u4f1a\u8bdd\u5206\u522b\u534f\u5546&#xff1a;<\/p>\n<ul>\n<li>\u6bcf\u4e2a\u4f1a\u8bdd\u72ec\u7acb protocolVersion\u3002<\/li>\n<li>\u8001\u7248\u672c Server \u7684\u529f\u80fd\u53d7\u9650\u4f46\u53ef\u7528\u3002<\/li>\n<li>\u5347\u7ea7 Server \u65f6\u7070\u5ea6\u66ff\u6362&#xff0c;\u907f\u514d\u4e00\u5200\u5207\u3002<\/li>\n<\/ul>\n<h4>7.15 \u591a Server \u7684\u6d4b\u8bd5\u7b56\u7565<\/h4>\n<ul>\n<li>\u5355 Server \u5192\u70df&#xff1a;\u5404 Server \u72ec\u7acb\u53ef\u7528\u3002<\/li>\n<li>\u7ec4\u5408\u96c6\u6210&#xff1a;\u591a Server \u8054\u5408\u8dd1\u5178\u578b\u4efb\u52a1\u3002<\/li>\n<li>\u6545\u969c\u6f14\u7ec3&#xff1a;\u6740\u4e00\u4e2a Server \u9a8c\u8bc1\u9694\u79bb\u3002<\/li>\n<li>\u5951\u7ea6\u6d4b\u8bd5&#xff1a;schema \u6f02\u79fb\u68c0\u6d4b\u3002<\/li>\n<\/ul>\n<h4>7.17 \u591a Server \u7684\u6ce8\u518c\u4e0e\u7f16\u6392\u5206\u79bb<\/h4>\n<ul>\n<li>\u6ce8\u518c\u5c42&#xff1a;\u6bcf\u4e2a Server \u72ec\u7acb\u53d1\u73b0\u3001\u6ce8\u518c\u3001\u7ef4\u62a4\u4f1a\u8bdd\u3002<\/li>\n<li>\u7f16\u6392\u5c42&#xff1a;\u8de8 Server \u7684\u4efb\u52a1\u8c03\u5ea6&#xff08;\u987a\u5e8f\/\u5e76\u884c\/\u6761\u4ef6\/\u6c47\u603b&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u6ce8\u518c\u5c42\u4fdd\u8bc1&#034;\u6bcf\u4e2a Server \u53ef\u9760\u53ef\u7528&#034;&#xff0c;\u7f16\u6392\u5c42\u4fdd\u8bc1&#034;\u591a\u4e2a Server \u534f\u540c\u6210\u4e8b&#034;\u3002\u4e24\u5c42\u89e3\u8026&#xff0c;\u6545\u969c\u57df\u6e05\u6670\u3002<\/p>\n<h4>7.18 \u591a Server \u7684\u5ef6\u8fdf\u4f18\u5316<\/h4>\n<table>\n<tr>\u4f18\u5316\u6536\u76ca<\/tr>\n<tbody>\n<tr>\n<td>\u5e76\u884c\u521d\u59cb\u5316<\/td>\n<td>\u542f\u52a8\u5feb N \u500d<\/td>\n<\/tr>\n<tr>\n<td>\u61d2\u53d1\u73b0\u51b7\u95e8 Server<\/td>\n<td>\u542f\u52a8\u4e0d\u88ab\u62d6\u7d2f<\/td>\n<\/tr>\n<tr>\n<td>\u8fde\u63a5\u6c60\u590d\u7528<\/td>\n<td>\u51cf\u5c11\u63e1\u624b<\/td>\n<\/tr>\n<tr>\n<td>\u7ed3\u679c\u7f13\u5b58<\/td>\n<td>\u8bfb\u64cd\u4f5c\u7701\u5f80\u8fd4<\/td>\n<\/tr>\n<tr>\n<td>\u5c31\u8fd1\u8def\u7531<\/td>\n<td>\u7f51\u7edc\u5ef6\u8fdf\u4f4e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>7.19 \u591a Server \u7684\u6743\u9650\u77e9\u9635<\/h4>\n<table>\n<tr>Server\u8eab\u4efdA\u8eab\u4efdB<\/tr>\n<tbody>\n<tr>\n<td>GitHub<\/td>\n<td>\u8bfb\u5199<\/td>\n<td>\u53ea\u8bfb<\/td>\n<\/tr>\n<tr>\n<td>Slack<\/td>\n<td>\u53d1\u6d88\u606f<\/td>\n<td>\u4e0d\u53ef\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u5e93<\/td>\n<td>\u67e5\u8be2<\/td>\n<td>\u67e5\u8be2&#043;\u5199<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6743\u9650\u77e9\u9635\u5e94\u5728\u6ce8\u518c\u9636\u6bb5\u843d\u5730&#xff1a;\u6bcf\u4e2a\u4f1a\u8bdd\u7684\u6ce8\u518c\u8868\u53ea\u5305\u542b\u8be5\u8eab\u4efd\u6709\u6743\u9650\u7684\u5de5\u5177\u3002<\/p>\n<h4>7.20 \u591a Server \u7684\u4f18\u96c5\u964d\u7ea7\u987a\u5e8f<\/h4>\n<p>Server \u4e0d\u53ef\u7528\u65f6&#xff0c;\u6309\u4f18\u5148\u7ea7\u964d\u7ea7&#xff1a;<\/p>\n<li>\u5907\u7528 Server&#xff08;\u540c\u540d\u5de5\u5177&#xff09;\u3002<\/li>\n<li>\u7f13\u5b58\u7ed3\u679c&#xff08;\u53ea\u8bfb\u573a\u666f&#xff09;\u3002<\/li>\n<li>\u7f16\u6392\u8c03\u6574&#xff08;\u6362\u8def\u5f84\u5b8c\u6210\u4efb\u52a1&#xff09;\u3002<\/li>\n<li>\u660e\u786e\u544a\u77e5\u7528\u6237&#xff08;\u4eba\u5de5\u515c\u5e95&#xff09;\u3002<\/li>\n<h4>7.21 \u591a Server \u7684\u5bb9\u91cf\u4e0e\u6269\u5c55<\/h4>\n<ul>\n<li>\u6c34\u5e73\u6269\u5c55&#xff1a;\u52a0 Server \u5b9e\u4f8b&#xff0c;\u6ce8\u518c\u8868\u6309\u5b9e\u4f8b\u8def\u7531\u3002<\/li>\n<li>\u5782\u76f4\u6269\u5c55&#xff1a;\u63d0\u5347\u5355 Server \u914d\u989d\u3002<\/li>\n<li>\u5206\u7247&#xff1a;\u4e0d\u540c\u5de5\u5177\u96c6\u5206\u5230\u4e0d\u540c Server\u3002<\/li>\n<\/ul>\n<h4>7.22 \u591a Server \u7684\u6d4b\u8bd5\u77e9\u9635<\/h4>\n<table>\n<tr>\u6d4b\u8bd5\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>\u5355 Server \u5192\u70df<\/td>\n<td>\u5404\u81ea\u53ef\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u7ec4\u5408\u96c6\u6210<\/td>\n<td>\u591a Server \u8054\u5408<\/td>\n<\/tr>\n<tr>\n<td>\u6545\u969c\u6ce8\u5165<\/td>\n<td>\u6740\u4e00\u4e2a\u9a8c\u8bc1\u9694\u79bb<\/td>\n<\/tr>\n<tr>\n<td>\u5e76\u53d1\u538b\u6d4b<\/td>\n<td>\u9ad8\u5e76\u53d1\u8c03\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u5951\u7ea6\u6d4b\u8bd5<\/td>\n<td>schema \u6f02\u79fb\u68c0\u6d4b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>7.23 \u672c\u7ae0\u5c0f\u7ed3&#xff08;\u7ec8\u7248&#xff09;<\/h4>\n<p>\u591a Server \u7ec4\u5408\u662f MCP&#034;\u4e00\u5957\u6807\u51c6\u8fde\u6240\u6709\u5de5\u5177&#034;\u4ef7\u503c\u7684\u96c6\u4e2d\u4f53\u73b0\u3002\u6df1\u6316\u8986\u76d6\u6ce8\u518c\u4e0e\u7f16\u6392\u5206\u79bb\u3001\u5ef6\u8fdf\u4f18\u5316\u3001\u6743\u9650\u77e9\u9635\u3001\u4f18\u96c5\u964d\u7ea7\u3001\u5bb9\u91cf\u6269\u5c55\u3001\u6d4b\u8bd5\u77e9\u9635&#xff0c;\u52a0\u4e0a\u6b64\u524d\u7684\u4f1a\u8bdd\u7ba1\u7406\u3001\u7ec4\u5408\u7b56\u7565\u3001\u8def\u7531\u4f18\u5148\u7ea7\u3001\u6545\u969c\u9694\u79bb\u3001\u914d\u989d\u7ba1\u7406\u3001\u53ef\u89c2\u6d4b\u805a\u5408\u3001\u914d\u7f6e\u4e2d\u5fc3\u3001\u7248\u672c\u534f\u540c\u2014\u2014\u7f16\u6392\u8981\u70b9&#xff1a;\u8def\u7531\u51c6\u786e\u3001\u9694\u79bb\u53ef\u9760\u3001\u914d\u989d\u516c\u5e73\u3001\u94fe\u8def\u53ef\u67e5\u3002<\/p>\n<hr \/>\n<h3>\u7b2c 8 \u7ae0 \u6280\u672f\u6311\u6218\u4e0e\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>8.1 \u6311\u6218\u603b\u89c8<\/h4>\n<p>#mermaid-svg-tWMWOQMIjqkuW2eB{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-tWMWOQMIjqkuW2eB .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-tWMWOQMIjqkuW2eB .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-tWMWOQMIjqkuW2eB .error-icon{fill:#552222;}#mermaid-svg-tWMWOQMIjqkuW2eB .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-tWMWOQMIjqkuW2eB .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-tWMWOQMIjqkuW2eB .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-tWMWOQMIjqkuW2eB .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-tWMWOQMIjqkuW2eB .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-tWMWOQMIjqkuW2eB .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-tWMWOQMIjqkuW2eB .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-tWMWOQMIjqkuW2eB .marker{fill:#333333;stroke:#333333;}#mermaid-svg-tWMWOQMIjqkuW2eB .marker.cross{stroke:#333333;}#mermaid-svg-tWMWOQMIjqkuW2eB svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-tWMWOQMIjqkuW2eB p{margin:0;}#mermaid-svg-tWMWOQMIjqkuW2eB .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-tWMWOQMIjqkuW2eB .cluster-label text{fill:#333;}#mermaid-svg-tWMWOQMIjqkuW2eB .cluster-label span{color:#333;}#mermaid-svg-tWMWOQMIjqkuW2eB .cluster-label span p{background-color:transparent;}#mermaid-svg-tWMWOQMIjqkuW2eB .label text,#mermaid-svg-tWMWOQMIjqkuW2eB span{fill:#333;color:#333;}#mermaid-svg-tWMWOQMIjqkuW2eB .node rect,#mermaid-svg-tWMWOQMIjqkuW2eB .node circle,#mermaid-svg-tWMWOQMIjqkuW2eB .node ellipse,#mermaid-svg-tWMWOQMIjqkuW2eB .node polygon,#mermaid-svg-tWMWOQMIjqkuW2eB .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-tWMWOQMIjqkuW2eB .rough-node .label text,#mermaid-svg-tWMWOQMIjqkuW2eB .node .label text,#mermaid-svg-tWMWOQMIjqkuW2eB .image-shape .label,#mermaid-svg-tWMWOQMIjqkuW2eB .icon-shape .label{text-anchor:middle;}#mermaid-svg-tWMWOQMIjqkuW2eB .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-tWMWOQMIjqkuW2eB .rough-node .label,#mermaid-svg-tWMWOQMIjqkuW2eB .node .label,#mermaid-svg-tWMWOQMIjqkuW2eB .image-shape .label,#mermaid-svg-tWMWOQMIjqkuW2eB .icon-shape .label{text-align:center;}#mermaid-svg-tWMWOQMIjqkuW2eB .node.clickable{cursor:pointer;}#mermaid-svg-tWMWOQMIjqkuW2eB .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-tWMWOQMIjqkuW2eB .arrowheadPath{fill:#333333;}#mermaid-svg-tWMWOQMIjqkuW2eB .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-tWMWOQMIjqkuW2eB .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-tWMWOQMIjqkuW2eB .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-tWMWOQMIjqkuW2eB .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-tWMWOQMIjqkuW2eB .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-tWMWOQMIjqkuW2eB .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-tWMWOQMIjqkuW2eB .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-tWMWOQMIjqkuW2eB .cluster text{fill:#333;}#mermaid-svg-tWMWOQMIjqkuW2eB .cluster span{color:#333;}#mermaid-svg-tWMWOQMIjqkuW2eB div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-tWMWOQMIjqkuW2eB .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-tWMWOQMIjqkuW2eB rect.text{fill:none;stroke-width:0;}#mermaid-svg-tWMWOQMIjqkuW2eB .icon-shape,#mermaid-svg-tWMWOQMIjqkuW2eB .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-tWMWOQMIjqkuW2eB .icon-shape p,#mermaid-svg-tWMWOQMIjqkuW2eB .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-tWMWOQMIjqkuW2eB .icon-shape .label rect,#mermaid-svg-tWMWOQMIjqkuW2eB .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-tWMWOQMIjqkuW2eB .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-tWMWOQMIjqkuW2eB .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-tWMWOQMIjqkuW2eB :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u53d1\u73b0\u98ce\u66b4<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u89e3\u6cd5: \u7f13\u5b58&#043;\u901a\u77e5<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8def\u7531\u51b2\u7a81<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u89e3\u6cd5: \u524d\u7f00&#043;\u4f18\u5148\u7ea7<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>schema \u6f02\u79fb<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u89e3\u6cd5: \u54c8\u5e0c\u6821\u9a8c&#043;\u91cd\u62c9<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8c03\u7528\u8d85\u65f6<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u89e3\u6cd5: \u5206\u7ea7\u8d85\u65f6&#043;\u91cd\u8bd5<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5199\u64cd\u4f5c\u91cd\u590d<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u89e3\u6cd5: \u5e42\u7b49\u952e<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5b89\u5168\u8d8a\u6743<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u89e3\u6cd5: \u6743\u9650\u8054\u52a8<\/p>\n<p><\/span><\/p>\n<h4>8.2 \u53d1\u73b0\u98ce\u66b4<\/h4>\n<p>\u95ee\u9898&#xff1a;\u6bcf\u4e2a Server \u9891\u7e41\u91cd\u65b0 tools\/list&#xff0c;\u9020\u6210\u5927\u91cf\u65e0\u6548\u8bf7\u6c42\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u7f13\u5b58\u6e05\u5355 &#043; TTL\u3002<\/li>\n<li>\u4f9d\u8d56 Server \u7684\u53d8\u66f4\u901a\u77e5&#xff0c;\u800c\u975e\u5b9a\u65f6\u8f6e\u8be2\u3002<\/li>\n<li>\u589e\u91cf\u66f4\u65b0\u800c\u975e\u5168\u91cf\u91cd\u62c9\u3002<\/li>\n<\/ul>\n<h4>8.3 \u8def\u7531\u51b2\u7a81<\/h4>\n<p>\u95ee\u9898&#xff1a;\u591a Server \u63d0\u4f9b\u540c\u540d\u5de5\u5177&#xff0c;\u67e5\u8868\u53ef\u80fd\u8def\u7531\u9519\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u547d\u540d\u7a7a\u95f4\u524d\u7f00&#xff08;github.list_repos&#xff09;\u3002<\/li>\n<li>\u663e\u5f0f\u6307\u5b9a\u4f18\u5148\u7ea7\u3002<\/li>\n<li>\u51b2\u7a81\u65f6\u544a\u8b66\u5e76\u8ba9 Agent \u663e\u5f0f\u9009\u62e9\u3002<\/li>\n<\/ul>\n<h4>8.4 Schema \u6f02\u79fb<\/h4>\n<p>\u95ee\u9898&#xff1a;Server \u6539\u4e86 inputSchema \u4f46 Client \u7f13\u5b58\u6ca1\u66f4\u65b0&#xff0c;\u5bfc\u81f4\u8c03\u7528\u53c2\u6570\u4e0d\u5408\u6cd5\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u4e3a schema \u8ba1\u7b97\u54c8\u5e0c&#xff0c;\u53d8\u66f4\u5373\u5237\u65b0\u3002<\/li>\n<li>\u8c03\u7528\u5931\u8d25&#xff08;InvalidParams&#xff09;\u65f6\u5f3a\u5236\u91cd\u62c9\u6e05\u5355\u3002<\/li>\n<li>Server \u4e3b\u52a8\u63a8\u9001\u53d8\u66f4\u901a\u77e5\u3002<\/li>\n<\/ul>\n<h4>8.5 \u8c03\u7528\u8d85\u65f6\u4e0e\u91cd\u8bd5\u98ce\u66b4<\/h4>\n<p>\u95ee\u9898&#xff1a;\u7f51\u7edc\u6296\u52a8\u5f15\u53d1\u6279\u91cf\u91cd\u8bd5&#xff0c;\u538b\u57ae Server\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u6307\u6570\u9000\u907f &#043; \u6296\u52a8\u3002<\/li>\n<li>\u5199\u64cd\u4f5c\u4e0d\u81ea\u52a8\u91cd\u8bd5&#xff08;\u7b49\u5e42\u952e\u9664\u5916&#xff09;\u3002<\/li>\n<li>\u7194\u65ad\u5668\u9632\u6b62\u96ea\u5d29\u3002<\/li>\n<\/ul>\n<h4>8.6 \u5b89\u5168&#xff1a;\u8d8a\u6743\u4e0e\u6ce8\u5165<\/h4>\n<p>\u95ee\u9898&#xff1a;Agent \u88ab\u8bf1\u5bfc\u8c03\u7528\u5371\u9669\u5de5\u5177&#xff0c;\u6216\u5de5\u5177\u53c2\u6570\u88ab\u6ce8\u5165\u6076\u610f\u5185\u5bb9\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u6ce8\u518c\u8868\u6807\u8bb0 destructive \u5de5\u5177&#xff0c;\u8c03\u7528\u524d\u4e8c\u6b21\u786e\u8ba4\/\u7b56\u7565\u62e6\u622a\u3002<\/li>\n<li>\u5de5\u5177\u7ed3\u679c\u4e2d\u7684\u5916\u90e8\u5185\u5bb9\u505a\u6ce8\u5165\u626b\u63cf\u3002<\/li>\n<li>\u654f\u611f\u64cd\u4f5c\u8981\u6c42 HITL&#xff08;\u4eba\u5728\u73af&#xff09;\u3002<\/li>\n<\/ul>\n<h4>8.7 \u53ef\u89c2\u6d4b\u6027<\/h4>\n<p>\u95ee\u9898&#xff1a;\u8de8 Agent\/Client\/Server \u7684\u94fe\u8def\u96be\u8ffd\u8e2a\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u5168\u94fe\u8def traceId\u3002<\/li>\n<li>\u65e5\u5fd7\u7edf\u4e00\u5b57\u6bb5&#xff08;sessionId\/method\/toolName\/latency&#xff09;\u3002<\/li>\n<li>\u6ce8\u518c\u8868\u547d\u4e2d\u7387\u3001\u53d1\u73b0\u9891\u7387\u3001\u9519\u8bef\u7801\u5206\u5e03\u7b49\u6307\u6807\u770b\u677f\u3002<\/li>\n<\/ul>\n<h4>8.8 \u6392\u969c\u51b3\u7b56\u6811<\/h4>\n<p>#mermaid-svg-hKdNgJME4XRiAM60{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-hKdNgJME4XRiAM60 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-hKdNgJME4XRiAM60 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-hKdNgJME4XRiAM60 .error-icon{fill:#552222;}#mermaid-svg-hKdNgJME4XRiAM60 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-hKdNgJME4XRiAM60 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-hKdNgJME4XRiAM60 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-hKdNgJME4XRiAM60 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-hKdNgJME4XRiAM60 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-hKdNgJME4XRiAM60 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-hKdNgJME4XRiAM60 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-hKdNgJME4XRiAM60 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-hKdNgJME4XRiAM60 .marker.cross{stroke:#333333;}#mermaid-svg-hKdNgJME4XRiAM60 svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-hKdNgJME4XRiAM60 p{margin:0;}#mermaid-svg-hKdNgJME4XRiAM60 .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-hKdNgJME4XRiAM60 .cluster-label text{fill:#333;}#mermaid-svg-hKdNgJME4XRiAM60 .cluster-label span{color:#333;}#mermaid-svg-hKdNgJME4XRiAM60 .cluster-label span p{background-color:transparent;}#mermaid-svg-hKdNgJME4XRiAM60 .label text,#mermaid-svg-hKdNgJME4XRiAM60 span{fill:#333;color:#333;}#mermaid-svg-hKdNgJME4XRiAM60 .node rect,#mermaid-svg-hKdNgJME4XRiAM60 .node circle,#mermaid-svg-hKdNgJME4XRiAM60 .node ellipse,#mermaid-svg-hKdNgJME4XRiAM60 .node polygon,#mermaid-svg-hKdNgJME4XRiAM60 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-hKdNgJME4XRiAM60 .rough-node .label text,#mermaid-svg-hKdNgJME4XRiAM60 .node .label text,#mermaid-svg-hKdNgJME4XRiAM60 .image-shape .label,#mermaid-svg-hKdNgJME4XRiAM60 .icon-shape .label{text-anchor:middle;}#mermaid-svg-hKdNgJME4XRiAM60 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-hKdNgJME4XRiAM60 .rough-node .label,#mermaid-svg-hKdNgJME4XRiAM60 .node .label,#mermaid-svg-hKdNgJME4XRiAM60 .image-shape .label,#mermaid-svg-hKdNgJME4XRiAM60 .icon-shape .label{text-align:center;}#mermaid-svg-hKdNgJME4XRiAM60 .node.clickable{cursor:pointer;}#mermaid-svg-hKdNgJME4XRiAM60 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-hKdNgJME4XRiAM60 .arrowheadPath{fill:#333333;}#mermaid-svg-hKdNgJME4XRiAM60 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-hKdNgJME4XRiAM60 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-hKdNgJME4XRiAM60 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-hKdNgJME4XRiAM60 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-hKdNgJME4XRiAM60 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-hKdNgJME4XRiAM60 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-hKdNgJME4XRiAM60 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-hKdNgJME4XRiAM60 .cluster text{fill:#333;}#mermaid-svg-hKdNgJME4XRiAM60 .cluster span{color:#333;}#mermaid-svg-hKdNgJME4XRiAM60 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-hKdNgJME4XRiAM60 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-hKdNgJME4XRiAM60 rect.text{fill:none;stroke-width:0;}#mermaid-svg-hKdNgJME4XRiAM60 .icon-shape,#mermaid-svg-hKdNgJME4XRiAM60 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-hKdNgJME4XRiAM60 .icon-shape p,#mermaid-svg-hKdNgJME4XRiAM60 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-hKdNgJME4XRiAM60 .icon-shape .label rect,#mermaid-svg-hKdNgJME4XRiAM60 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-hKdNgJME4XRiAM60 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-hKdNgJME4XRiAM60 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-hKdNgJME4XRiAM60 :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8c03\u7528\u5931\u8d25<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8def\u7531\u547d\u4e2d?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5237\u65b0\u6ce8\u518c\u8868<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u53c2\u6570\u5408\u6cd5?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6309 schema \u4fee\u6b63<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Server \u53ef\u7528?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7194\u65ad\/\u964d\u7ea7<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9519\u8bef\u7801?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6309\u7801\u5904\u7406\/\u4e0a\u62a5<\/p>\n<p><\/span><\/p>\n<h4>8.10 \u6311\u6218&#xff1a;Agent \u5e7b\u89c9\u8c03\u7528<\/h4>\n<p>\u95ee\u9898&#xff1a;Agent \u53ef\u80fd\u7f16\u9020\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u5de5\u5177\u540d&#xff08;\u5e7b\u89c9&#xff09;&#xff0c;\u6216\u5bf9\u5de5\u5177\u80fd\u529b\u8fc7\u5ea6\u60f3\u8c61\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u6ce8\u518c\u8868\u672a\u547d\u4e2d \u2192 \u8fd4\u56de&#034;\u5de5\u5177\u4e0d\u5b58\u5728&#034;\u5e76\u5217\u51fa\u53ef\u7528\u5de5\u5177&#xff0c;\u7ea0\u6b63 Agent\u3002<\/li>\n<li>\u5de5\u5177\u63cf\u8ff0\u5199\u6e05\u695a\u8fb9\u754c&#xff08;\u201c\u672c\u5de5\u5177\u53ea\u652f\u6301 X&#xff0c;\u4e0d\u652f\u6301 Y\u201d&#xff09;\u3002<\/li>\n<li>\u5bf9\u9ad8\u9891\u5e7b\u89c9\u5de5\u5177\u505a\u63d0\u793a\u8bcd\u7ea6\u675f\u3002<\/li>\n<\/ul>\n<p>#mermaid-svg-Xwhs18lvn7hm8OoZ{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-Xwhs18lvn7hm8OoZ .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-Xwhs18lvn7hm8OoZ .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-Xwhs18lvn7hm8OoZ .error-icon{fill:#552222;}#mermaid-svg-Xwhs18lvn7hm8OoZ .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-Xwhs18lvn7hm8OoZ .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-Xwhs18lvn7hm8OoZ .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-Xwhs18lvn7hm8OoZ .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-Xwhs18lvn7hm8OoZ .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-Xwhs18lvn7hm8OoZ .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-Xwhs18lvn7hm8OoZ .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-Xwhs18lvn7hm8OoZ .marker{fill:#333333;stroke:#333333;}#mermaid-svg-Xwhs18lvn7hm8OoZ .marker.cross{stroke:#333333;}#mermaid-svg-Xwhs18lvn7hm8OoZ svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-Xwhs18lvn7hm8OoZ p{margin:0;}#mermaid-svg-Xwhs18lvn7hm8OoZ .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-Xwhs18lvn7hm8OoZ .cluster-label text{fill:#333;}#mermaid-svg-Xwhs18lvn7hm8OoZ .cluster-label span{color:#333;}#mermaid-svg-Xwhs18lvn7hm8OoZ .cluster-label span p{background-color:transparent;}#mermaid-svg-Xwhs18lvn7hm8OoZ .label text,#mermaid-svg-Xwhs18lvn7hm8OoZ span{fill:#333;color:#333;}#mermaid-svg-Xwhs18lvn7hm8OoZ .node rect,#mermaid-svg-Xwhs18lvn7hm8OoZ .node circle,#mermaid-svg-Xwhs18lvn7hm8OoZ .node ellipse,#mermaid-svg-Xwhs18lvn7hm8OoZ .node polygon,#mermaid-svg-Xwhs18lvn7hm8OoZ .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-Xwhs18lvn7hm8OoZ .rough-node .label text,#mermaid-svg-Xwhs18lvn7hm8OoZ .node .label text,#mermaid-svg-Xwhs18lvn7hm8OoZ .image-shape .label,#mermaid-svg-Xwhs18lvn7hm8OoZ .icon-shape .label{text-anchor:middle;}#mermaid-svg-Xwhs18lvn7hm8OoZ .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-Xwhs18lvn7hm8OoZ .rough-node .label,#mermaid-svg-Xwhs18lvn7hm8OoZ .node .label,#mermaid-svg-Xwhs18lvn7hm8OoZ .image-shape .label,#mermaid-svg-Xwhs18lvn7hm8OoZ .icon-shape .label{text-align:center;}#mermaid-svg-Xwhs18lvn7hm8OoZ .node.clickable{cursor:pointer;}#mermaid-svg-Xwhs18lvn7hm8OoZ .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-Xwhs18lvn7hm8OoZ .arrowheadPath{fill:#333333;}#mermaid-svg-Xwhs18lvn7hm8OoZ .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-Xwhs18lvn7hm8OoZ .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-Xwhs18lvn7hm8OoZ .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Xwhs18lvn7hm8OoZ .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-Xwhs18lvn7hm8OoZ .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Xwhs18lvn7hm8OoZ .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-Xwhs18lvn7hm8OoZ .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-Xwhs18lvn7hm8OoZ .cluster text{fill:#333;}#mermaid-svg-Xwhs18lvn7hm8OoZ .cluster span{color:#333;}#mermaid-svg-Xwhs18lvn7hm8OoZ div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-Xwhs18lvn7hm8OoZ .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-Xwhs18lvn7hm8OoZ rect.text{fill:none;stroke-width:0;}#mermaid-svg-Xwhs18lvn7hm8OoZ .icon-shape,#mermaid-svg-Xwhs18lvn7hm8OoZ .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-Xwhs18lvn7hm8OoZ .icon-shape p,#mermaid-svg-Xwhs18lvn7hm8OoZ .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-Xwhs18lvn7hm8OoZ .icon-shape .label rect,#mermaid-svg-Xwhs18lvn7hm8OoZ .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-Xwhs18lvn7hm8OoZ .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-Xwhs18lvn7hm8OoZ .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-Xwhs18lvn7hm8OoZ :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent \u8c03\u7528 call_tool<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6ce8\u518c\u8868\u547d\u4e2d?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8fd4\u56de\u53ef\u7528\u5de5\u5177\u5217\u8868<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent \u91cd\u65b0\u9009\u62e9<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6b63\u5e38\u8c03\u7528<\/p>\n<p><\/span><\/p>\n<h4>8.11 \u6311\u6218&#xff1a;\u5de5\u5177\u53c2\u6570\u6ce8\u5165<\/h4>\n<p>\u95ee\u9898&#xff1a;\u5916\u90e8\u5185\u5bb9&#xff08;\u7f51\u9875\u3001\u6587\u4ef6&#xff09;\u88ab\u585e\u8fdb\u5de5\u5177\u53c2\u6570&#xff0c;\u6539\u53d8\u5de5\u5177\u884c\u4e3a&#xff08;\u63d0\u793a\u6ce8\u5165\u7684\u8fd0\u884c\u65f6\u53d8\u4f53&#xff09;\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u53c2\u6570\u6821\u9a8c\u767d\u540d\u5355&#xff08;\u679a\u4e3e\u3001\u6b63\u5219&#xff09;\u3002<\/li>\n<li>\u654f\u611f\u5b57\u6bb5&#xff08;URL\u3001\u547d\u4ee4&#xff09;\u505a\u6d88\u6bd2\u3002<\/li>\n<li>\u5de5\u5177\u7ed3\u679c\u4e2d\u7684\u5916\u90e8\u5185\u5bb9\u6807\u6ce8&#034;\u4e0d\u53ef\u4fe1&#034;&#xff0c;\u4e0d\u5165\u7cfb\u7edf\u6307\u4ee4\u533a\u3002<\/li>\n<\/ul>\n<h4>8.12 \u6311\u6218&#xff1a;\u53d1\u73b0\u4e0e\u8c03\u7528\u7684\u65f6\u5e8f\u7ade\u6001<\/h4>\n<p>\u95ee\u9898&#xff1a;\u53d1\u73b0\u540e\u5de5\u5177\u88ab\u4e0b\u67b6&#xff0c;\u6ce8\u518c\u8868\u8fd8\u6ca1\u5237\u65b0&#xff0c;\u8c03\u7528\u843d\u7a7a\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u8c03\u7528\u5931\u8d25 MethodNotFound \u2192 \u89e6\u53d1\u5237\u65b0 \u2192 \u91cd\u8bd5\u4e00\u6b21\u3002<\/li>\n<li>Server \u5728\u5de5\u5177\u53d8\u66f4\u65f6\u7acb\u5373\u63a8\u9001\u901a\u77e5\u3002<\/li>\n<li>\u6ce8\u518c\u8868\u6761\u76ee\u5e26&#034;\u83b7\u53d6\u65f6\u95f4&#034;&#xff0c;\u8d85\u9f84\u5f3a\u5236\u5237\u65b0\u3002<\/li>\n<\/ul>\n<h4>8.13 \u6311\u6218&#xff1a;\u5927\u5e76\u53d1\u4e0b\u7684\u6ce8\u518c\u8868\u4e00\u81f4<\/h4>\n<p>\u95ee\u9898&#xff1a;\u591a\u7ebf\u7a0b\/\u591a Agent \u5e76\u53d1\u8c03\u7528&#xff0c;\u6ce8\u518c\u8868\u5e76\u53d1\u8bfb\u5199\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u8bfb\u5199\u9501 \/ \u539f\u5b50\u66ff\u6362\u3002<\/li>\n<li>\u4e0d\u53ef\u53d8\u5feb\u7167 &#043; \u6307\u9488\u5207\u6362\u3002<\/li>\n<li>\u5206\u5e03\u5f0f\u573a\u666f\u7528\u7248\u672c\u53f7 CAS\u3002<\/li>\n<\/ul>\n<h4>8.14 \u6311\u6218&#xff1a;\u8de8 Server \u7684\u4e8b\u52a1<\/h4>\n<p>\u95ee\u9898&#xff1a;\u4efb\u52a1\u9700\u8981&#034;GitHub \u5efa Issue &#043; Slack \u901a\u77e5 &#043; \u6570\u636e\u5e93\u8bb0\u5f55&#034;&#xff0c;\u4e2d\u95f4\u5931\u8d25\u600e\u4e48\u529e&#xff1f;<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u8865\u507f\u4e8b\u52a1&#xff1a;\u5931\u8d25\u56de\u6eda\u5df2\u6267\u884c\u6b65\u9aa4&#xff08;\u5220\u9664\u5df2\u5efa Issue&#xff09;\u3002<\/li>\n<li>\u7f16\u6392\u5c42\u8bb0\u5f55\u4efb\u52a1\u72b6\u6001&#xff0c;\u652f\u6301\u91cd\u5165\u3002<\/li>\n<li>\u5e42\u7b49\u952e\u4fdd\u8bc1\u91cd\u590d\u6267\u884c\u4e0d\u4ea7\u751f\u526f\u4f5c\u7528\u3002<\/li>\n<\/ul>\n<p>\u6570\u636e\u5e93GitHubClientAgent\u6570\u636e\u5e93GitHubClientAgent#mermaid-svg-go6J3h2VxdlH53XL{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-go6J3h2VxdlH53XL .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-go6J3h2VxdlH53XL .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-go6J3h2VxdlH53XL .error-icon{fill:#552222;}#mermaid-svg-go6J3h2VxdlH53XL .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-go6J3h2VxdlH53XL .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-go6J3h2VxdlH53XL .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-go6J3h2VxdlH53XL .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-go6J3h2VxdlH53XL .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-go6J3h2VxdlH53XL .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-go6J3h2VxdlH53XL .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-go6J3h2VxdlH53XL .marker{fill:#333333;stroke:#333333;}#mermaid-svg-go6J3h2VxdlH53XL .marker.cross{stroke:#333333;}#mermaid-svg-go6J3h2VxdlH53XL svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-go6J3h2VxdlH53XL p{margin:0;}#mermaid-svg-go6J3h2VxdlH53XL .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-go6J3h2VxdlH53XL text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-go6J3h2VxdlH53XL .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-go6J3h2VxdlH53XL .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-go6J3h2VxdlH53XL .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-go6J3h2VxdlH53XL .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-go6J3h2VxdlH53XL #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-go6J3h2VxdlH53XL .sequenceNumber{fill:white;}#mermaid-svg-go6J3h2VxdlH53XL #sequencenumber{fill:#333;}#mermaid-svg-go6J3h2VxdlH53XL #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-go6J3h2VxdlH53XL .messageText{fill:#333;stroke:none;}#mermaid-svg-go6J3h2VxdlH53XL .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-go6J3h2VxdlH53XL .labelText,#mermaid-svg-go6J3h2VxdlH53XL .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-go6J3h2VxdlH53XL .loopText,#mermaid-svg-go6J3h2VxdlH53XL .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-go6J3h2VxdlH53XL .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-go6J3h2VxdlH53XL .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-go6J3h2VxdlH53XL .noteText,#mermaid-svg-go6J3h2VxdlH53XL .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-go6J3h2VxdlH53XL .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-go6J3h2VxdlH53XL .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-go6J3h2VxdlH53XL .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-go6J3h2VxdlH53XL .actorPopupMenu{position:absolute;}#mermaid-svg-go6J3h2VxdlH53XL .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-go6J3h2VxdlH53XL .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-go6J3h2VxdlH53XL .actor-man circle,#mermaid-svg-go6J3h2VxdlH53XL line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-go6J3h2VxdlH53XL :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}\u4efb\u52a1\u5f00\u59cbcreate_issue \u2705insert_record \u274c\u8865\u507f: close_issue\u4efb\u52a1\u5931\u8d25&#xff0c;\u5df2\u56de\u6eda<\/p>\n<h4>8.15 \u6311\u6218&#xff1a;\u53d1\u73b0\u7ed3\u679c\u8fc7\u5927<\/h4>\n<p>\u95ee\u9898&#xff1a;\u4e0a\u767e\u4e2a\u5de5\u5177\u7684\u6e05\u5355\u585e\u8fdb\u4e0a\u4e0b\u6587&#xff0c;Token \u7206\u70b8\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u5206\u9875 &#043; \u6309\u9700\u52a0\u8f7d\u3002<\/li>\n<li>\u5de5\u5177\u641c\u7d22&#xff08;\u63cf\u8ff0\u7ea7\u68c0\u7d22&#xff09;\u3002<\/li>\n<li>\u5206\u5c42\u63cf\u8ff0&#xff08;\u70ed\u95e8\u5168\u91cf\u3001\u51b7\u95e8\u6458\u8981&#xff09;\u3002<\/li>\n<\/ul>\n<h4>8.16 \u6311\u6218&#xff1a;Server \u534a\u6b7b\u72b6\u6001<\/h4>\n<p>\u95ee\u9898&#xff1a;Server \u8fdb\u7a0b\u6d3b\u7740\u4f46\u5361\u6b7b&#xff08;\u5047\u6d3b&#xff09;&#xff0c;\u8c03\u7528\u5168\u90e8\u8d85\u65f6\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u5fc3\u8df3\u63a2\u6d4b\u3002<\/li>\n<li>\u8fde\u7eed\u8d85\u65f6\u9608\u503c\u89e6\u53d1\u91cd\u542f\u3002<\/li>\n<li>\u7194\u65ad &#043; \u534a\u5f00\u63a2\u6d4b\u6062\u590d\u3002<\/li>\n<\/ul>\n<h4>8.17 \u6311\u6218&#xff1a;\u591a\u7248\u672c\u534f\u8bae\u5e76\u5b58<\/h4>\n<p>\u95ee\u9898&#xff1a;\u8001 Server \u53ea\u652f\u6301\u65e7\u534f\u8bae&#xff0c;\u65b0 Client \u9ed8\u8ba4\u65b0\u534f\u8bae\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u4f1a\u8bdd\u7ea7\u7248\u672c\u534f\u5546&#xff08;\u6bcf Server \u72ec\u7acb&#xff09;\u3002<\/li>\n<li>\u517c\u5bb9\u5c42\u9002\u914d\u65e7\u534f\u8bae\u3002<\/li>\n<li>\u5347\u7ea7\u6392\u671f\u7ba1\u7406&#xff0c;\u907f\u514d\u5f3a\u5236\u4e00\u5200\u5207\u3002<\/li>\n<\/ul>\n<h4>8.18 \u6311\u6218&#xff1a;\u5de5\u5177\u94fe\u7684\u5faa\u73af\u4f9d\u8d56<\/h4>\n<p>\u95ee\u9898&#xff1a;\u5de5\u5177 A \u7684\u7ed3\u679c\u9700\u8981\u5de5\u5177 B&#xff0c;B \u53c8\u9700\u8981 A&#xff08;\u7f16\u6392\u6b7b\u9501&#xff09;\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u7f16\u6392\u5c42\u68c0\u6d4b\u5faa\u73af\u4f9d\u8d56\u3002<\/li>\n<li>\u9650\u5236\u8c03\u7528\u6df1\u5ea6\u3002<\/li>\n<li>\u5931\u8d25\u65f6\u660e\u786e\u62a5&#034;\u4f9d\u8d56\u5faa\u73af&#034;&#xff0c;\u4e0d\u65e0\u9650\u91cd\u8bd5\u3002<\/li>\n<\/ul>\n<h4>8.19 \u6311\u6218&#xff1a;\u6210\u672c\u5931\u63a7<\/h4>\n<p>\u95ee\u9898&#xff1a;\u9ad8\u9891\u8c03\u7528\u4ea7\u751f\u5927\u91cf API \u8d39\u7528&#xff08;\u5c24\u5176 LLM \u4e0e\u5916\u90e8\u4ed8\u8d39 API&#xff09;\u3002<\/p>\n<p>\u89e3\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u6bcf Server\/\u6bcf\u5de5\u5177\u914d\u989d\u3002<\/li>\n<li>\u7ed3\u679c\u7f13\u5b58\u51cf\u5c11\u91cd\u590d\u8c03\u7528\u3002<\/li>\n<li>\u6210\u672c\u770b\u677f &#043; \u5f02\u5e38\u544a\u8b66\u3002<\/li>\n<\/ul>\n<h4>8.20 \u6311\u6218&#xff1a;\u5b89\u5168\u6027\u7eb5\u6df1\u7684\u843d\u5b9e<\/h4>\n<p>\u628a\u5b89\u5168\u843d\u5b9e\u5230\u53d1\u73b0-\u8c03\u7528\u5168\u94fe\u8def&#xff1a;<\/p>\n<table>\n<tr>\u73af\u8282\u5b89\u5168\u63aa\u65bd<\/tr>\n<tbody>\n<tr>\n<td>\u53d1\u73b0<\/td>\n<td>\u6309\u8eab\u4efd\u8fc7\u6ee4\u5de5\u5177<\/td>\n<\/tr>\n<tr>\n<td>\u6ce8\u518c<\/td>\n<td>destructive \u6807\u6ce8<\/td>\n<\/tr>\n<tr>\n<td>\u8c03\u7528<\/td>\n<td>\u53c2\u6570\u6821\u9a8c &#043; \u4e8c\u6b21\u786e\u8ba4<\/td>\n<\/tr>\n<tr>\n<td>\u7ed3\u679c<\/td>\n<td>\u8131\u654f &#043; \u6ce8\u5165\u626b\u63cf<\/td>\n<\/tr>\n<tr>\n<td>\u5ba1\u8ba1<\/td>\n<td>\u5168\u91cf\u8c03\u7528\u7559\u75d5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>8.21 \u6311\u6218&#xff1a;\u53ef\u89c2\u6d4b\u7684\u7aef\u5230\u7aef<\/h4>\n<p>#mermaid-svg-49reM8D04zms3rd9{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-49reM8D04zms3rd9 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-49reM8D04zms3rd9 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-49reM8D04zms3rd9 .error-icon{fill:#552222;}#mermaid-svg-49reM8D04zms3rd9 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-49reM8D04zms3rd9 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-49reM8D04zms3rd9 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-49reM8D04zms3rd9 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-49reM8D04zms3rd9 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-49reM8D04zms3rd9 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-49reM8D04zms3rd9 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-49reM8D04zms3rd9 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-49reM8D04zms3rd9 .marker.cross{stroke:#333333;}#mermaid-svg-49reM8D04zms3rd9 svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-49reM8D04zms3rd9 p{margin:0;}#mermaid-svg-49reM8D04zms3rd9 .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-49reM8D04zms3rd9 .cluster-label text{fill:#333;}#mermaid-svg-49reM8D04zms3rd9 .cluster-label span{color:#333;}#mermaid-svg-49reM8D04zms3rd9 .cluster-label span p{background-color:transparent;}#mermaid-svg-49reM8D04zms3rd9 .label text,#mermaid-svg-49reM8D04zms3rd9 span{fill:#333;color:#333;}#mermaid-svg-49reM8D04zms3rd9 .node rect,#mermaid-svg-49reM8D04zms3rd9 .node circle,#mermaid-svg-49reM8D04zms3rd9 .node ellipse,#mermaid-svg-49reM8D04zms3rd9 .node polygon,#mermaid-svg-49reM8D04zms3rd9 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-49reM8D04zms3rd9 .rough-node .label text,#mermaid-svg-49reM8D04zms3rd9 .node .label text,#mermaid-svg-49reM8D04zms3rd9 .image-shape .label,#mermaid-svg-49reM8D04zms3rd9 .icon-shape .label{text-anchor:middle;}#mermaid-svg-49reM8D04zms3rd9 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-49reM8D04zms3rd9 .rough-node .label,#mermaid-svg-49reM8D04zms3rd9 .node .label,#mermaid-svg-49reM8D04zms3rd9 .image-shape .label,#mermaid-svg-49reM8D04zms3rd9 .icon-shape .label{text-align:center;}#mermaid-svg-49reM8D04zms3rd9 .node.clickable{cursor:pointer;}#mermaid-svg-49reM8D04zms3rd9 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-49reM8D04zms3rd9 .arrowheadPath{fill:#333333;}#mermaid-svg-49reM8D04zms3rd9 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-49reM8D04zms3rd9 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-49reM8D04zms3rd9 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-49reM8D04zms3rd9 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-49reM8D04zms3rd9 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-49reM8D04zms3rd9 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-49reM8D04zms3rd9 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-49reM8D04zms3rd9 .cluster text{fill:#333;}#mermaid-svg-49reM8D04zms3rd9 .cluster span{color:#333;}#mermaid-svg-49reM8D04zms3rd9 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-49reM8D04zms3rd9 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-49reM8D04zms3rd9 rect.text{fill:none;stroke-width:0;}#mermaid-svg-49reM8D04zms3rd9 .icon-shape,#mermaid-svg-49reM8D04zms3rd9 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-49reM8D04zms3rd9 .icon-shape p,#mermaid-svg-49reM8D04zms3rd9 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-49reM8D04zms3rd9 .icon-shape .label rect,#mermaid-svg-49reM8D04zms3rd9 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-49reM8D04zms3rd9 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-49reM8D04zms3rd9 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-49reM8D04zms3rd9 :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent \u8c03\u7528<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Client \u6253\u70b9<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6ce8\u518c\u8868\u547d\u4e2d\u7387<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8c03\u7528\u5ef6\u8fdf<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9519\u8bef\u7801\u5206\u5e03<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u914d\u989d\u4f7f\u7528<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u770b\u677f\/\u544a\u8b66<\/p>\n<p><\/span><\/p>\n<h4>8.22 \u6311\u6218&#xff1a;\u6392\u969c\u624b\u518c\u901f\u67e5<\/h4>\n<table>\n<tr>\u75c7\u72b6\u53ef\u80fd\u539f\u56e0\u6392\u67e5\u6b65\u9aa4<\/tr>\n<tbody>\n<tr>\n<td>\u5de5\u5177\u627e\u4e0d\u5230<\/td>\n<td>\u6ce8\u518c\u8868\u8fc7\u671f<\/td>\n<td>\u5237\u65b0\u6e05\u5355<\/td>\n<\/tr>\n<tr>\n<td>\u8c03\u7528\u5168\u8d85\u65f6<\/td>\n<td>Server \u5047\u6d3b<\/td>\n<td>\u5fc3\u8df3&#043;\u91cd\u542f<\/td>\n<\/tr>\n<tr>\n<td>\u53c2\u6570\u88ab\u62d2<\/td>\n<td>schema \u6f02\u79fb<\/td>\n<td>\u91cd\u62c9\u6e05\u5355<\/td>\n<\/tr>\n<tr>\n<td>\u7ed3\u679c\u4e71\u7801<\/td>\n<td>\u7f16\u7801\u95ee\u9898<\/td>\n<td>\u68c0\u67e5 UTF-8<\/td>\n<\/tr>\n<tr>\n<td>\u5076\u53d1\u5931\u8d25<\/td>\n<td>\u7f51\u7edc\u6296\u52a8<\/td>\n<td>\u67e5\u91cd\u8bd5\u65e5\u5fd7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>8.23 \u6311\u6218&#xff1a;\u6e05\u5355&#xff08;\u6311\u6218\u5bf9\u7167&#xff09;<\/h4>\n<table>\n<tr>\u6311\u6218\u4e00\u53e5\u8bdd\u89e3\u6cd5<\/tr>\n<tbody>\n<tr>\n<td>\u53d1\u73b0\u98ce\u66b4<\/td>\n<td>\u7f13\u5b58&#043;\u901a\u77e5<\/td>\n<\/tr>\n<tr>\n<td>\u8def\u7531\u51b2\u7a81<\/td>\n<td>\u524d\u7f00&#043;\u4f18\u5148\u7ea7<\/td>\n<\/tr>\n<tr>\n<td>Schema \u6f02\u79fb<\/td>\n<td>\u54c8\u5e0c\u6821\u9a8c&#043;\u91cd\u62c9<\/td>\n<\/tr>\n<tr>\n<td>\u8c03\u7528\u8d85\u65f6<\/td>\n<td>\u5206\u7ea7\u8d85\u65f6&#043;\u9000\u907f<\/td>\n<\/tr>\n<tr>\n<td>\u5199\u64cd\u4f5c\u91cd\u590d<\/td>\n<td>\u5e42\u7b49\u952e<\/td>\n<\/tr>\n<tr>\n<td>\u5e7b\u89c9\u8c03\u7528<\/td>\n<td>\u672a\u547d\u4e2d\u8fd4\u56de\u6e05\u5355<\/td>\n<\/tr>\n<tr>\n<td>\u53c2\u6570\u6ce8\u5165<\/td>\n<td>\u767d\u540d\u5355&#043;\u6d88\u6bd2<\/td>\n<\/tr>\n<tr>\n<td>\u65f6\u5e8f\u7ade\u6001<\/td>\n<td>\u5931\u8d25\u5237\u65b0\u91cd\u8bd5<\/td>\n<\/tr>\n<tr>\n<td>\u5e76\u53d1\u4e00\u81f4<\/td>\n<td>\u539f\u5b50\u66ff\u6362<\/td>\n<\/tr>\n<tr>\n<td>\u8de8 Server \u4e8b\u52a1<\/td>\n<td>\u8865\u507f\u4e8b\u52a1<\/td>\n<\/tr>\n<tr>\n<td>\u7ed3\u679c\u8fc7\u5927<\/td>\n<td>\u5206\u9875&#043;\u6458\u8981<\/td>\n<\/tr>\n<tr>\n<td>Server \u5047\u6d3b<\/td>\n<td>\u5fc3\u8df3&#043;\u7194\u65ad<\/td>\n<\/tr>\n<tr>\n<td>\u7248\u672c\u5e76\u5b58<\/td>\n<td>\u4f1a\u8bdd\u7ea7\u534f\u5546<\/td>\n<\/tr>\n<tr>\n<td>\u5faa\u73af\u4f9d\u8d56<\/td>\n<td>\u7f16\u6392\u68c0\u6d4b<\/td>\n<\/tr>\n<tr>\n<td>\u6210\u672c\u5931\u63a7<\/td>\n<td>\u914d\u989d&#043;\u7f13\u5b58<\/td>\n<\/tr>\n<tr>\n<td>\u8d8a\u6743<\/td>\n<td>\u6743\u9650\u8054\u52a8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>8.25 \u6311\u6218&#xff1a;\u591a Server \u7684\u65f6\u949f\u4e0e\u987a\u5e8f<\/h4>\n<p>\u5206\u5e03\u5f0f\u573a\u666f\u4e0b&#xff0c;\u8de8 Server \u7684\u4e8b\u4ef6\u987a\u5e8f&#xff08;\u5148\u5efa Issue \u518d\u901a\u77e5&#xff09;\u53ef\u80fd\u56e0\u65f6\u949f\u504f\u5dee\u9519\u4e71\u3002\u89e3\u6cd5&#xff1a;\u7f16\u6392\u5c42\u7528\u903b\u8f91\u65f6\u949f\/\u5355\u8c03\u5e8f\u53f7&#xff0c;\u4e0d\u4f9d\u8d56\u5899\u949f\u6392\u5e8f&#xff1b;\u91cd\u8981\u987a\u5e8f\u64cd\u4f5c\u4e32\u884c\u5316\u3002<\/p>\n<h4>8.26 \u6311\u6218&#xff1a;\u5de5\u5177\u7ed3\u679c\u7684\u8bed\u8a00\u4e0e\u683c\u5f0f<\/h4>\n<p>Server \u8fd4\u56de\u82f1\u6587\u3001\u4e2d\u6587\u3001HTML \u6df7\u6742&#xff0c;Agent \u89e3\u6790\u6613\u9519\u3002\u89e3\u6cd5&#xff1a;Client \u7edf\u4e00\u8f6c\u7eaf\u6587\u672c\/\u6807\u51c6\u7ed3\u6784&#xff1b;Server \u58f0\u660e\u7ed3\u679c\u8bed\u8a00&#xff1b;\u8d85\u957f HTML \u8f6c\u6458\u8981\u3002<\/p>\n<h4>8.27 \u6311\u6218&#xff1a;\u914d\u989d\u7a81\u589e<\/h4>\n<p>\u4e1a\u52a1\u9ad8\u5cf0\u6240\u6709 Agent \u540c\u65f6\u8c03\u5de5\u5177&#xff0c;\u914d\u989d\u77ac\u95f4\u8017\u5c3d\u3002\u89e3\u6cd5&#xff1a;\u914d\u989d\u9884\u7559 &#043; \u4f18\u5148\u7ea7\u6392\u961f&#xff1b;\u5173\u952e\u4efb\u52a1\u4f18\u5148&#xff1b;\u4f4e\u4f18\u5148\u7ea7\u4efb\u52a1\u964d\u7ea7\u6216\u5ef6\u540e\u3002<\/p>\n<h4>8.28 \u6311\u6218&#xff1a;\u4f9d\u8d56\u5916\u90e8 API \u7684 Server \u6296\u52a8<\/h4>\n<p>GitHub Server \u672c\u8eab\u4f9d\u8d56 GitHub API&#xff0c;\u5916\u90e8\u6296\u52a8\u4f20\u5bfc\u5230\u5de5\u5177\u8c03\u7528\u3002\u89e3\u6cd5&#xff1a;Server \u4fa7\u505a\u5916\u90e8\u8c03\u7528\u7f13\u5b58\/\u7194\u65ad&#xff1b;Client \u4fa7\u5bf9\u6162 Server \u9650\u6d41&#xff1b;\u7f16\u6392\u5c42\u5bb9\u5fcd\u90e8\u5206\u5931\u8d25\u3002<\/p>\n<h4>8.29 \u6311\u6218&#xff1a;\u6d4b\u8bd5\u73af\u5883\u4e0e\u751f\u4ea7\u7684\u5de5\u5177\u5dee\u5f02<\/h4>\n<p>\u6d4b\u8bd5 Server \u548c\u751f\u4ea7 Server \u5de5\u5177\u96c6\u4e0d\u540c&#xff0c;Agent \u5728\u6d4b\u8bd5\u73af\u5883\u5b66\u5230\u7684\u884c\u4e3a\u5230\u751f\u4ea7\u5931\u6548\u3002\u89e3\u6cd5&#xff1a;\u73af\u5883\u5bf9\u9f50&#xff08;\u5de5\u5177\u96c6\u4e00\u81f4&#xff09;&#xff1b;\u5951\u7ea6\u6d4b\u8bd5\u8986\u76d6\u4e24\u73af\u5883&#xff1b;\u914d\u7f6e\u4e2d\u5fc3\u7edf\u4e00\u7ba1\u7406\u73af\u5883\u5dee\u5f02\u3002<\/p>\n<h4>8.30 \u6311\u6218&#xff1a;\u5b89\u5168\u5ba1\u8ba1\u7684\u5408\u89c4\u8981\u6c42<\/h4>\n<p>\u91d1\u878d\/\u533b\u7597\u573a\u666f\u8981\u6c42\u5de5\u5177\u8c03\u7528\u53ef\u5ba1\u8ba1\u3001\u53ef\u56de\u6eaf\u3001\u53ef\u89e3\u91ca\u3002\u89e3\u6cd5&#xff1a;\u5168\u91cf\u5ba1\u8ba1 &#043; \u7ed3\u679c\u7559\u6863&#xff1b;destructive \u64cd\u4f5c\u53cc\u4eba\u590d\u6838&#xff08;HITL&#xff09;&#xff1b;\u5b9a\u671f\u5408\u89c4\u5ba1\u67e5\u5de5\u5177\u6743\u9650\u3002<\/p>\n<h4>8.31 \u6311\u6218&#xff1a;\u672c\u7ae0\u5c0f\u7ed3&#xff08;\u7ec8\u7248&#xff09;<\/h4>\n<p>\u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u7684\u6311\u6218\u8986\u76d6\u53d1\u73b0\u6548\u7387\u3001\u8def\u7531\u51c6\u786e\u6027\u3001\u5951\u7ea6\u4e00\u81f4\u6027\u3001\u8c03\u7528\u97e7\u6027\u3001\u5b89\u5168\u3001\u53ef\u89c2\u6d4b\u3001\u6210\u672c\u3001\u4e8b\u52a1&#xff0c;\u4ee5\u53ca\u65f6\u949f\u987a\u5e8f\u3001\u8bed\u8a00\u683c\u5f0f\u3001\u914d\u989d\u7a81\u589e\u3001\u5916\u90e8\u4f9d\u8d56\u3001\u73af\u5883\u5dee\u5f02\u3001\u5408\u89c4\u5ba1\u8ba1\u3002\u89e3\u6cd5\u7ec4\u5408&#xff1a;\u7f13\u5b58&#043;\u901a\u77e5\u3001\u524d\u7f00&#043;\u4f18\u5148\u7ea7\u3001\u54c8\u5e0c\u6821\u9a8c\u3001\u9000\u907f&#043;\u5e42\u7b49\u3001\u6743\u9650\u8054\u52a8\u3001\u8865\u507f\u4e8b\u52a1\u3001\u5168\u94fe\u8def trace\u3001\u914d\u989d\u9884\u7559\u3001\u73af\u5883\u5bf9\u9f50\u3001\u5ba1\u8ba1\u7559\u6863\u3002<\/p>\n<hr \/>\n<h3>\u7b2c 9 \u7ae0 \u901a\u4fd7\u6848\u4f8b\u6df1\u5ea6\u89e3\u6790<\/h3>\n<h4>9.1 \u6848\u4f8b\u5168\u666f&#xff1a;\u667a\u80fd\u8fd0\u7ef4\u673a\u5668\u4eba<\/h4>\n<p>\u4ee5\u4e00\u4e2a&#034;\u8fd0\u7ef4\u673a\u5668\u4eba&#034;\u4e3a\u4e3b\u7ebf&#xff0c;\u6f14\u793a\u5b8c\u6574\u56db\u9636\u6bb5\u3002\u673a\u5668\u4eba\u8fde\u63a5 GitHub\u3001Slack\u3001\u6570\u636e\u5e93\u4e09\u4e2a Server&#xff0c;\u4efb\u52a1&#xff1a;\u68c0\u67e5\u7ebf\u4e0a\u4ed3\u5e93\u662f\u5426\u6709\u9ad8\u5371\u6f0f\u6d1e&#xff0c;\u6709\u5219\u5efa Issue \u5e76\u901a\u77e5\u8fd0\u7ef4\u7fa4\u3002<\/p>\n<p>Slack\u6570\u636e\u5e93GitHubMCP Client\u8fd0\u7ef4\u673a\u5668\u4ebaSlack\u6570\u636e\u5e93GitHubMCP Client\u8fd0\u7ef4\u673a\u5668\u4eba#mermaid-svg-vbbhaoaL5Bh7N2IW{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-vbbhaoaL5Bh7N2IW .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-vbbhaoaL5Bh7N2IW .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-vbbhaoaL5Bh7N2IW .error-icon{fill:#552222;}#mermaid-svg-vbbhaoaL5Bh7N2IW .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-vbbhaoaL5Bh7N2IW .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-vbbhaoaL5Bh7N2IW .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-vbbhaoaL5Bh7N2IW .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-vbbhaoaL5Bh7N2IW .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-vbbhaoaL5Bh7N2IW .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-vbbhaoaL5Bh7N2IW .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-vbbhaoaL5Bh7N2IW .marker{fill:#333333;stroke:#333333;}#mermaid-svg-vbbhaoaL5Bh7N2IW .marker.cross{stroke:#333333;}#mermaid-svg-vbbhaoaL5Bh7N2IW svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-vbbhaoaL5Bh7N2IW p{margin:0;}#mermaid-svg-vbbhaoaL5Bh7N2IW .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-vbbhaoaL5Bh7N2IW text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-vbbhaoaL5Bh7N2IW .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-vbbhaoaL5Bh7N2IW .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-vbbhaoaL5Bh7N2IW .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-vbbhaoaL5Bh7N2IW .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-vbbhaoaL5Bh7N2IW #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-vbbhaoaL5Bh7N2IW .sequenceNumber{fill:white;}#mermaid-svg-vbbhaoaL5Bh7N2IW #sequencenumber{fill:#333;}#mermaid-svg-vbbhaoaL5Bh7N2IW #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-vbbhaoaL5Bh7N2IW .messageText{fill:#333;stroke:none;}#mermaid-svg-vbbhaoaL5Bh7N2IW .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-vbbhaoaL5Bh7N2IW .labelText,#mermaid-svg-vbbhaoaL5Bh7N2IW .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-vbbhaoaL5Bh7N2IW .loopText,#mermaid-svg-vbbhaoaL5Bh7N2IW .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-vbbhaoaL5Bh7N2IW .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-vbbhaoaL5Bh7N2IW .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-vbbhaoaL5Bh7N2IW .noteText,#mermaid-svg-vbbhaoaL5Bh7N2IW .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-vbbhaoaL5Bh7N2IW .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-vbbhaoaL5Bh7N2IW .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-vbbhaoaL5Bh7N2IW .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-vbbhaoaL5Bh7N2IW .actorPopupMenu{position:absolute;}#mermaid-svg-vbbhaoaL5Bh7N2IW .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-vbbhaoaL5Bh7N2IW .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-vbbhaoaL5Bh7N2IW .actor-man circle,#mermaid-svg-vbbhaoaL5Bh7N2IW line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-vbbhaoaL5Bh7N2IW :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}\u9636\u6bb51&#043;2: \u521d\u59cb\u5316\u4e0e\u53d1\u73b0\u9636\u6bb53: \u6ce8\u518c\u9636\u6bb54: \u8c03\u7528\u542f\u52a8initialize &#043; tools\/listinitialize &#043; tools\/listinitialize &#043; tools\/list\u6ce8\u518c\u8868: search_code\u2192G, execute_query\u2192D, send_message\u2192Scall_tool(execute_query, \u67e5\u6f0f\u6d1e)tools\/call\u53d1\u73b03\u4e2a\u9ad8\u5371\u4f9d\u8d56call_tool(create_issue)tools\/callIssuecall_tool(send_message)tools\/call<\/p>\n<h4>9.2 \u6848\u4f8b\u7ec6\u8282\u4e00&#xff1a;\u53d1\u73b0\u9636\u6bb5\u7684&#034;\u83dc\u5355&#034;<\/h4>\n<p>\u673a\u5668\u4eba\u542f\u52a8\u65f6&#xff0c;\u4e09\u4e2a Server \u7684&#034;\u83dc\u5355&#034;\u957f\u8fd9\u6837&#xff1a;<\/p>\n<ul>\n<li>GitHub&#xff1a;search_code\u3001get_file_contents\u3001create_issue\u3001list_pulls\u3001merge_pull\u2026<\/li>\n<li>\u6570\u636e\u5e93&#xff1a;execute_query\u3001explain_query\u3001list_tables\u3001describe_table\u2026<\/li>\n<li>Slack&#xff1a;send_message\u3001list_channels\u3001create_channel\u2026<\/li>\n<\/ul>\n<p>\u673a\u5668\u4eba\u4e0d\u9700\u8981\u9884\u77e5\u8fd9\u4e9b\u540d\u5b57\u2014\u2014\u5b83\u8fd0\u884c\u8d77\u6765\u770b\u83dc\u5355&#xff08;tools\/list&#xff09;\u624d\u77e5\u9053\u3002<\/p>\n<h4>9.3 \u6848\u4f8b\u7ec6\u8282\u4e8c&#xff1a;\u8def\u7531\u7684&#034;\u79d2\u67e5&#034;<\/h4>\n<p>\u8c03\u7528 execute_query \u65f6&#xff0c;Client \u67e5\u6ce8\u518c\u8868\u76f4\u63a5\u547d\u4e2d\u6570\u636e\u5e93 Server&#xff0c;\u8017\u65f6 &lt;1ms\u3002\u5982\u679c\u6ca1\u6ce8\u518c\u8868&#xff0c;Client \u5f97\u95ee\u4e09\u4e2a Server&#034;\u4f60\u6709\u6ca1\u6709 execute_query&#034;&#xff0c;\u6162\u4e00\u4e2a\u6570\u91cf\u7ea7\u3002<\/p>\n<h4>9.4 \u6848\u4f8b\u7ec6\u8282\u4e09&#xff1a;schema \u5e2e\u673a\u5668\u4eba&#034;\u5b66\u4f1a\u586b\u53c2\u6570&#034;<\/h4>\n<p>\u673a\u5668\u4eba\u7b2c\u4e00\u6b21\u8c03\u7528 create_issue \u65f6&#xff0c;\u9760 inputSchema \u77e5\u9053\u8981\u586b repo\/title\/body&#xff0c;\u8fd8\u77e5\u9053 labels \u662f\u53ef\u9009\u679a\u4e3e\u3002\u8fd9\u5c31\u662f&#034;\u80fd\u529b\u534f\u5546&#034;\u2014\u2014\u4e0d\u9700\u8981\u5199\u6b7b\u8c03\u7528\u4ee3\u7801\u3002<\/p>\n<h4>9.5 \u6848\u4f8b\u7ec6\u8282\u56db&#xff1a;\u5931\u8d25\u4e0e\u91cd\u8bd5<\/h4>\n<p>\u7b2c\u4e00\u6b21\u67e5\u6570\u636e\u5e93\u8d85\u65f6&#xff08;\u6162\u67e5\u8be2&#xff09;&#xff0c;Client \u6309\u9000\u907f\u91cd\u8bd5\u4e00\u6b21\u6210\u529f\u3002\u5982\u679c\u8fde\u7eed\u5931\u8d25&#xff0c;\u7194\u65ad\u5668\u6253\u5f00&#xff0c;\u673a\u5668\u4eba\u6539\u4e3a\u964d\u7ea7\u65b9\u6848&#xff08;\u7528 GitHub \u7684 search_code \u627e\u914d\u7f6e\u786e\u8ba4&#xff09;\u3002<\/p>\n<h4>9.6 \u6848\u4f8b\u7ec6\u8282\u4e94&#xff1a;\u5b89\u5168\u95ee\u9898<\/h4>\n<p>create_issue \u662f\u5199\u64cd\u4f5c&#xff0c;\u6ce8\u518c\u8868\u6807\u8bb0\u4e3a\u975e destructive&#xff08;\u53ef\u81ea\u52a8\u6267\u884c&#xff09;&#xff1b;\u800c delete_issue\u3001merge_pull \u7b49\u7834\u574f\u6027\u64cd\u4f5c\u5219\u8981\u6c42\u4e8c\u6b21\u786e\u8ba4&#xff0c;\u9632\u6b62 Agent \u8bef\u64cd\u4f5c\u3002<\/p>\n<h4>9.7 \u5fae\u6848\u4f8b&#xff1a;\u65b0 Server \u5373\u63d2\u5373\u7528<\/h4>\n<p>\u5468\u4e94\u4e0a\u7ebf&#034;\u65e5\u5386 Server&#034;&#xff0c;\u673a\u5668\u4eba\u91cd\u65b0\u53d1\u73b0\u4e00\u6b21&#xff0c;\u6ce8\u518c\u8868\u65b0\u589e list_events\u3001create_event\u3002\u5468\u4e00\u5f00\u59cb&#xff0c;\u673a\u5668\u4eba\u5df2\u80fd&#034;\u67e5\u6f0f\u6d1e\u2192\u5efa Issue\u2192\u901a\u77e5\u2192\u987a\u624b\u521b\u5efa\u8ddf\u8fdb\u65e5\u7a0b&#034;\u2014\u2014\u96f6\u4ee3\u7801\u6539\u52a8\u3002<\/p>\n<h4>9.8 \u5fae\u6848\u4f8b&#xff1a;\u5de5\u5177\u66f4\u540d<\/h4>\n<p>GitHub Server \u628a get_file_contents \u6539\u540d\u4e3a read_file&#xff0c;\u5e76\u63a8\u9001\u53d8\u66f4\u901a\u77e5\u3002Client \u5237\u65b0\u6ce8\u518c\u8868&#xff0c;\u65e7\u540d\u8c03\u7528\u81ea\u52a8\u5931\u6548\u2014\u2014Agent \u91cd\u65b0\u53d1\u73b0\u540e\u4f7f\u7528\u65b0\u540d&#xff0c;\u5168\u7a0b\u65e0\u611f\u3002<\/p>\n<h4>9.9 \u5fae\u6848\u4f8b&#xff1a;\u6743\u9650\u5dee\u5f02<\/h4>\n<p>\u540c\u4e00 Server \u5bf9&#034;\u7ba1\u7406\u5458\u4f1a\u8bdd&#034;\u66b4\u9732 20 \u4e2a\u5de5\u5177&#xff0c;\u5bf9&#034;\u8bbf\u5ba2\u4f1a\u8bdd&#034;\u53ea\u66b4\u9732 8 \u4e2a\u3002Client \u6309\u4f1a\u8bdd\u7f13\u5b58\u4e0d\u540c\u6ce8\u518c\u8868&#xff0c;\u8bbf\u5ba2\u673a\u5668\u4eba\u6c38\u8fdc\u67e5\u4e0d\u5230\u5371\u9669\u5de5\u5177\u2014\u2014\u6743\u9650\u5728\u53d1\u73b0\u5c42\u5c31\u9694\u79bb\u4e86\u3002<\/p>\n<h4>9.10 \u53cd\u4f8b&#xff1a;\u786c\u7f16\u7801\u5de5\u5177\u540d<\/h4>\n<p>\u67d0 Agent \u4ee3\u7801\u91cc\u5199\u6b7b call_tool(&#034;get_file_contents&#034;)&#xff0c;Server \u6539\u540d\u540e\u76f4\u63a5\u62a5 MethodNotFound\u3002\u4fee\u6b63&#xff1a;Agent \u5e94\u57fa\u4e8e\u6700\u65b0\u53d1\u73b0\u7ed3\u679c\u9009\u62e9\u5de5\u5177\u540d&#xff0c;\u800c\u975e\u5199\u6b7b\u3002<\/p>\n<h4>9.11 \u53cd\u4f8b&#xff1a;\u65e0\u7f13\u5b58\u75af\u72c2\u53d1\u73b0<\/h4>\n<p>\u67d0 Client \u6bcf\u6b21\u8c03\u7528\u524d\u90fd tools\/list \u5168\u91cf\u62c9\u53d6&#xff0c;10 \u4e2a Server \u00d7 \u6bcf\u6b21 50ms &#061; 500ms \u56fa\u5b9a\u5f00\u9500\u3002\u4fee\u6b63&#xff1a;\u7f13\u5b58 &#043; TTL &#043; \u53d8\u66f4\u901a\u77e5&#xff0c;\u628a\u53d1\u73b0\u4ece&#034;\u6bcf\u6b21&#034;\u964d\u4e3a&#034;\u5fc5\u8981\u65f6&#034;\u3002<\/p>\n<h4>9.12 \u53cd\u4f8b&#xff1a;\u5ffd\u7565 isError<\/h4>\n<p>\u67d0 Agent \u628a isError: true \u7684\u7ed3\u679c\u5f53\u6210\u529f\u7ee7\u7eed\u63a8\u7406&#xff0c;\u628a&#034;\u521b\u5efa Issue \u5931\u8d25&#034;\u5f53\u6210&#034;\u5df2\u521b\u5efa&#034;&#xff0c;\u901a\u77e5\u7fa4\u8bf4\u5b8c\u6210\u4e86\u3002\u4fee\u6b63&#xff1a;Agent \u5fc5\u987b\u5148\u68c0\u67e5 isError&#xff0c;\u518d\u51b3\u5b9a\u540e\u7eed\u52a8\u4f5c\u3002<\/p>\n<h4>9.14 \u6848\u4f8b\u6df1\u62c6&#xff1a;\u591a Agent \u534f\u4f5c\u4e2d\u7684\u5171\u4eab\u6ce8\u518c\u8868<\/h4>\n<p>\u5927\u578b\u7cfb\u7edf\u91cc&#xff0c;\u591a\u4e2a Agent \u5171\u4eab\u4e00\u4e2a MCP Client \u4e0e\u8def\u7531\u6ce8\u518c\u8868&#xff08;\u5982\u5e73\u53f0\u7ea7\u7f16\u6392&#xff09;\u3002\u6b64\u65f6\u6ce8\u518c\u8868\u6210\u4e3a&#034;\u516c\u5171\u8bbe\u65bd&#034;&#xff1a;<\/p>\n<p>#mermaid-svg-IVMIHjGx2X3RuVhJ{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-IVMIHjGx2X3RuVhJ .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-IVMIHjGx2X3RuVhJ .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-IVMIHjGx2X3RuVhJ .error-icon{fill:#552222;}#mermaid-svg-IVMIHjGx2X3RuVhJ .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-IVMIHjGx2X3RuVhJ .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-IVMIHjGx2X3RuVhJ .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-IVMIHjGx2X3RuVhJ .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-IVMIHjGx2X3RuVhJ .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-IVMIHjGx2X3RuVhJ .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-IVMIHjGx2X3RuVhJ .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-IVMIHjGx2X3RuVhJ .marker{fill:#333333;stroke:#333333;}#mermaid-svg-IVMIHjGx2X3RuVhJ .marker.cross{stroke:#333333;}#mermaid-svg-IVMIHjGx2X3RuVhJ svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-IVMIHjGx2X3RuVhJ p{margin:0;}#mermaid-svg-IVMIHjGx2X3RuVhJ .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-IVMIHjGx2X3RuVhJ .cluster-label text{fill:#333;}#mermaid-svg-IVMIHjGx2X3RuVhJ .cluster-label span{color:#333;}#mermaid-svg-IVMIHjGx2X3RuVhJ .cluster-label span p{background-color:transparent;}#mermaid-svg-IVMIHjGx2X3RuVhJ .label text,#mermaid-svg-IVMIHjGx2X3RuVhJ span{fill:#333;color:#333;}#mermaid-svg-IVMIHjGx2X3RuVhJ .node rect,#mermaid-svg-IVMIHjGx2X3RuVhJ .node circle,#mermaid-svg-IVMIHjGx2X3RuVhJ .node ellipse,#mermaid-svg-IVMIHjGx2X3RuVhJ .node polygon,#mermaid-svg-IVMIHjGx2X3RuVhJ .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-IVMIHjGx2X3RuVhJ .rough-node .label text,#mermaid-svg-IVMIHjGx2X3RuVhJ .node .label text,#mermaid-svg-IVMIHjGx2X3RuVhJ .image-shape .label,#mermaid-svg-IVMIHjGx2X3RuVhJ .icon-shape .label{text-anchor:middle;}#mermaid-svg-IVMIHjGx2X3RuVhJ .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-IVMIHjGx2X3RuVhJ .rough-node .label,#mermaid-svg-IVMIHjGx2X3RuVhJ .node .label,#mermaid-svg-IVMIHjGx2X3RuVhJ .image-shape .label,#mermaid-svg-IVMIHjGx2X3RuVhJ .icon-shape .label{text-align:center;}#mermaid-svg-IVMIHjGx2X3RuVhJ .node.clickable{cursor:pointer;}#mermaid-svg-IVMIHjGx2X3RuVhJ .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-IVMIHjGx2X3RuVhJ .arrowheadPath{fill:#333333;}#mermaid-svg-IVMIHjGx2X3RuVhJ .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-IVMIHjGx2X3RuVhJ .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-IVMIHjGx2X3RuVhJ .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-IVMIHjGx2X3RuVhJ .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-IVMIHjGx2X3RuVhJ .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-IVMIHjGx2X3RuVhJ .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-IVMIHjGx2X3RuVhJ .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-IVMIHjGx2X3RuVhJ .cluster text{fill:#333;}#mermaid-svg-IVMIHjGx2X3RuVhJ .cluster span{color:#333;}#mermaid-svg-IVMIHjGx2X3RuVhJ div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-IVMIHjGx2X3RuVhJ .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-IVMIHjGx2X3RuVhJ rect.text{fill:none;stroke-width:0;}#mermaid-svg-IVMIHjGx2X3RuVhJ .icon-shape,#mermaid-svg-IVMIHjGx2X3RuVhJ .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-IVMIHjGx2X3RuVhJ .icon-shape p,#mermaid-svg-IVMIHjGx2X3RuVhJ .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-IVMIHjGx2X3RuVhJ .icon-shape .label rect,#mermaid-svg-IVMIHjGx2X3RuVhJ .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-IVMIHjGx2X3RuVhJ .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-IVMIHjGx2X3RuVhJ .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-IVMIHjGx2X3RuVhJ :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent1 \u8fd0\u7ef4<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5171\u4eab Client\/\u6ce8\u518c\u8868<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent2 \u6570\u636e\u5206\u6790<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent3 \u5ba2\u670d<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>GitHub Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Slack Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6570\u636e\u5e93 Server<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6587\u4ef6\u7cfb\u7edf Server<\/p>\n<p><\/span><\/p>\n<p>\u597d\u5904&#xff1a;\u53d1\u73b0\u4e00\u6b21\u3001\u5168\u5458\u590d\u7528&#xff1b;\u6743\u9650\u6309 Agent \u8eab\u4efd\u9694\u79bb&#xff1b;\u914d\u989d\u6309 Agent \u5206\u914d\u3002\u8fd9\u662f&#034;\u5de5\u5177\u5373\u670d\u52a1&#xff08;TaaS&#xff09;&#034;\u7684\u96cf\u5f62\u3002<\/p>\n<h4>9.15 \u6848\u4f8b\u6df1\u62c6&#xff1a;\u6ce8\u518c\u8868\u547d\u4e2d\u7387\u4e0e\u5e7b\u89c9\u9884\u9632<\/h4>\n<p>\u67d0\u5e73\u53f0\u89c2\u5bdf\u5230&#034;\u5de5\u5177\u672a\u547d\u4e2d&#034;\u9519\u8bef\u7387 12%&#xff0c;\u6392\u67e5\u53d1\u73b0&#xff1a;Agent \u5728\u4e0a\u4e0b\u6587\u91cc\u770b\u5230\u7684\u5de5\u5177\u6e05\u5355\u662f\u65e7\u7248&#xff0c;\u800c\u6ce8\u518c\u8868\u5df2\u66f4\u65b0\u3002\u4fee\u590d&#xff1a;<\/p>\n<li>\u6bcf\u6b21\u4f1a\u8bdd\u5f00\u59cb\u65f6\u5f3a\u5236\u5237\u65b0\u5de5\u5177\u6e05\u5355\u3002<\/li>\n<li>\u672a\u547d\u4e2d\u65f6\u8fd4\u56de&#034;\u5f53\u524d\u53ef\u7528\u5de5\u5177&#xff1a;\u2026&#034;\u7ea0\u6b63 Agent\u3002<\/li>\n<li>\u672a\u547d\u4e2d\u7387\u4ece 12% \u964d\u5230 0.5%\u3002<\/li>\n<p>#mermaid-svg-jUVFmPcWMWioAEqV{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-jUVFmPcWMWioAEqV .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-jUVFmPcWMWioAEqV .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-jUVFmPcWMWioAEqV .error-icon{fill:#552222;}#mermaid-svg-jUVFmPcWMWioAEqV .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-jUVFmPcWMWioAEqV .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-jUVFmPcWMWioAEqV .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-jUVFmPcWMWioAEqV .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-jUVFmPcWMWioAEqV .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-jUVFmPcWMWioAEqV .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-jUVFmPcWMWioAEqV .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-jUVFmPcWMWioAEqV .marker{fill:#333333;stroke:#333333;}#mermaid-svg-jUVFmPcWMWioAEqV .marker.cross{stroke:#333333;}#mermaid-svg-jUVFmPcWMWioAEqV svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-jUVFmPcWMWioAEqV p{margin:0;}#mermaid-svg-jUVFmPcWMWioAEqV .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-jUVFmPcWMWioAEqV .cluster-label text{fill:#333;}#mermaid-svg-jUVFmPcWMWioAEqV .cluster-label span{color:#333;}#mermaid-svg-jUVFmPcWMWioAEqV .cluster-label span p{background-color:transparent;}#mermaid-svg-jUVFmPcWMWioAEqV .label text,#mermaid-svg-jUVFmPcWMWioAEqV span{fill:#333;color:#333;}#mermaid-svg-jUVFmPcWMWioAEqV .node rect,#mermaid-svg-jUVFmPcWMWioAEqV .node circle,#mermaid-svg-jUVFmPcWMWioAEqV .node ellipse,#mermaid-svg-jUVFmPcWMWioAEqV .node polygon,#mermaid-svg-jUVFmPcWMWioAEqV .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-jUVFmPcWMWioAEqV .rough-node .label text,#mermaid-svg-jUVFmPcWMWioAEqV .node .label text,#mermaid-svg-jUVFmPcWMWioAEqV .image-shape .label,#mermaid-svg-jUVFmPcWMWioAEqV .icon-shape .label{text-anchor:middle;}#mermaid-svg-jUVFmPcWMWioAEqV .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-jUVFmPcWMWioAEqV .rough-node .label,#mermaid-svg-jUVFmPcWMWioAEqV .node .label,#mermaid-svg-jUVFmPcWMWioAEqV .image-shape .label,#mermaid-svg-jUVFmPcWMWioAEqV .icon-shape .label{text-align:center;}#mermaid-svg-jUVFmPcWMWioAEqV .node.clickable{cursor:pointer;}#mermaid-svg-jUVFmPcWMWioAEqV .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-jUVFmPcWMWioAEqV .arrowheadPath{fill:#333333;}#mermaid-svg-jUVFmPcWMWioAEqV .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-jUVFmPcWMWioAEqV .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-jUVFmPcWMWioAEqV .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-jUVFmPcWMWioAEqV .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-jUVFmPcWMWioAEqV .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-jUVFmPcWMWioAEqV .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-jUVFmPcWMWioAEqV .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-jUVFmPcWMWioAEqV .cluster text{fill:#333;}#mermaid-svg-jUVFmPcWMWioAEqV .cluster span{color:#333;}#mermaid-svg-jUVFmPcWMWioAEqV div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-jUVFmPcWMWioAEqV .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-jUVFmPcWMWioAEqV rect.text{fill:none;stroke-width:0;}#mermaid-svg-jUVFmPcWMWioAEqV .icon-shape,#mermaid-svg-jUVFmPcWMWioAEqV .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-jUVFmPcWMWioAEqV .icon-shape p,#mermaid-svg-jUVFmPcWMWioAEqV .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-jUVFmPcWMWioAEqV .icon-shape .label rect,#mermaid-svg-jUVFmPcWMWioAEqV .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-jUVFmPcWMWioAEqV .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-jUVFmPcWMWioAEqV .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-jUVFmPcWMWioAEqV :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u4fee\u590d\u524d: \u672a\u547d\u4e2d12%<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u4f1a\u8bdd\u5f00\u59cb\u5f3a\u5236\u5237\u65b0<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u672a\u547d\u4e2d\u8fd4\u56de\u6e05\u5355\u7ea0\u6b63<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u4fee\u590d\u540e: 0.5%<\/p>\n<p><\/span><\/p>\n<h4>9.16 \u6848\u4f8b\u6df1\u62c6&#xff1a;\u6162\u5de5\u5177\u7684\u8d85\u65f6\u4e0e\u8fdb\u5ea6<\/h4>\n<p>\u67d0 Agent \u8c03\u7528&#034;\u6570\u636e\u5206\u6790&#034;\u5de5\u5177&#xff0c;\u9884\u8ba1 5 \u5206\u949f\u3002\u76f4\u63a5\u56fa\u5b9a 10s \u8d85\u65f6\u5fc5\u7136\u5931\u8d25&#xff1b;\u4e0d\u8bbe\u8d85\u65f6\u53c8\u53ef\u80fd\u6302\u6b7b\u3002\u89e3\u6cd5&#xff1a;<\/p>\n<li>\u5de5\u5177 meta \u58f0\u660e timeout_ms: 360000\u3002<\/li>\n<li>Server \u6bcf 30s \u63a8\u8fdb\u5ea6\u901a\u77e5\u3002<\/li>\n<li>Client \u6309&#034;\u6700\u540e\u8fdb\u5ea6\u65f6\u95f4&#034;\u52a8\u6001\u7eed\u671f\u8d85\u65f6\u3002<\/li>\n<p>\u7ed3\u679c&#xff1a;Agent \u80fd\u8010\u5fc3\u7b49\u5f85\u957f\u4efb\u52a1&#xff0c;\u4e14\u8fdb\u5ea6\u53ef\u89c1\u3002<\/p>\n<h4>9.17 \u6848\u4f8b\u6df1\u62c6&#xff1a;\u6743\u9650\u5dee\u5f02\u4e0b\u7684\u53d1\u73b0\u9694\u79bb<\/h4>\n<p>\u540c\u4e00 GitHub Server&#xff1a;<\/p>\n<ul>\n<li>\u7ba1\u7406\u5458\u4f1a\u8bdd\u53d1\u73b0 20 \u4e2a\u5de5\u5177&#xff08;\u542b delete_repo&#xff09;\u3002<\/li>\n<li>\u53ea\u8bfb\u4f1a\u8bdd\u53d1\u73b0 8 \u4e2a\u5de5\u5177&#xff08;\u65e0\u5199\u64cd\u4f5c&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u6ce8\u518c\u8868\u6309\u4f1a\u8bdd\u9694\u79bb\u540e&#xff0c;\u53ea\u8bfb Agent \u7684\u4e0a\u4e0b\u6587\u91cc\u6839\u672c\u4e0d\u4f1a\u51fa\u73b0 delete_repo\u2014\u2014\u6743\u9650\u5728\u6e90\u5934&#xff08;\u53d1\u73b0\u5c42&#xff09;\u5c31\u88ab\u526a\u6389\u4e86&#xff0c;\u6bd4&#034;\u8c03\u7528\u65f6\u62e6\u622a&#034;\u66f4\u5b89\u5168\u3002<\/p>\n<h4>9.18 \u5fae\u6848\u4f8b&#xff1a;\u5de5\u5177\u7070\u5ea6<\/h4>\n<p>\u65b0\u5de5\u5177 ai_code_review \u5148\u5bf9 5% \u4f1a\u8bdd\u66b4\u9732&#xff0c;\u89c2\u5bdf\u8c03\u7528\u6210\u529f\u7387\u4e0e\u8017\u65f6\u3002\u7070\u5ea6\u901a\u8fc7\u540e\u5168\u91cf&#xff1b;\u6709\u95ee\u9898\u5219\u4ece\u540d\u5355\u79fb\u9664\u2014\u2014\u4e0d\u91cd\u542f Server&#xff0c;\u53ea\u6539\u53d1\u73b0\u7b56\u7565\u3002<\/p>\n<h4>9.19 \u5fae\u6848\u4f8b&#xff1a;\u5de5\u5177\u4e0b\u7ebf<\/h4>\n<p>Server \u8981\u4e0b\u67b6 legacy_export&#xff1a;\u5148\u63a8\u9001\u53d8\u66f4\u901a\u77e5 \u2192 Client \u5237\u65b0\u6ce8\u518c\u8868 \u2192 \u65e7\u5de5\u5177\u8c03\u7528\u8fd4\u56de MethodNotFound \u2192 Agent \u6539\u7528\u65b0\u5de5\u5177 export_v2\u3002\u5168\u7a0b\u5e73\u6ed1\u8fc7\u6e21\u3002<\/p>\n<h4>9.20 \u5fae\u6848\u4f8b&#xff1a;\u7f51\u7edc\u5206\u533a\u4e0b\u7684\u964d\u7ea7<\/h4>\n<p>Agent \u4e0e Slack Server \u7f51\u7edc\u5206\u533a&#xff0c;\u6ce8\u518c\u8868\u4e2d Slack \u5de5\u5177\u5168\u90e8\u6807\u8bb0&#034;\u6682\u4e0d\u53ef\u7528&#034;\u3002Agent \u6539\u4e3a&#034;\u5148\u8bb0\u65e5\u5fd7&#xff08;\u6587\u4ef6\u7cfb\u7edf Server&#xff09;&#xff0c;\u7f51\u7edc\u6062\u590d\u540e\u8865\u53d1&#034;\u2014\u2014\u7f16\u6392\u5c42\u611f\u77e5\u6ce8\u518c\u8868\u53ef\u7528\u6027&#xff0c;\u81ea\u52a8\u8d70\u964d\u7ea7\u8def\u5f84\u3002<\/p>\n<h4>9.21 \u5fae\u6848\u4f8b&#xff1a;\u591a Server \u7684\u8d1f\u8f7d\u5747\u8861<\/h4>\n<p>\u4e24\u4e2a\u6570\u636e\u5e93 Server&#xff08;\u4e3b\/\u8bfb\u526f\u672c&#xff09;\u63d0\u4f9b\u540c\u540d execute_query&#xff1a;<\/p>\n<p>execute_query \u2192 {server: db-master, weight: 10}<br \/>\nexecute_query \u2192 {server: db-replica, weight: 90}<\/p>\n<p>Client \u6309\u6743\u91cd\u8def\u7531&#xff1a;\u8bfb\u591a\u5199\u5c11&#xff0c;90% \u67e5\u8be2\u8d70\u526f\u672c\u3002\u5199\u64cd\u4f5c\u5f3a\u5236\u8d70\u4e3b\u5e93&#xff08;\u6309\u5de5\u5177 meta \u7684 read_only \u5224\u65ad&#xff09;\u3002<\/p>\n<h4>9.22 \u63a8\u6f14\u4e00&#xff1a;\u5982\u679c\u53d1\u73b0\u5ef6\u8fdf 10 \u500d<\/h4>\n<p>\u573a\u666f&#xff1a;\u5047\u8bbe tools\/list \u6bcf\u6b21\u90fd\u8981 500ms\u3002\u542f\u52a8\u65f6 3 \u4e2a Server &#061; 1.5s \u963b\u585e\u3002\u82e5\u6539\u4e3a&#034;\u61d2\u53d1\u73b0&#034;&#xff08;\u7528\u5230\u624d\u62c9&#xff09;&#xff1a;<\/p>\n<ul>\n<li>Agent \u7b2c\u4e00\u6b21\u8981\u8c03\u7528 search_code \u65f6\u624d\u62c9 GitHub \u6e05\u5355\u3002<\/li>\n<li>\u8c03\u7528\u524d\u591a\u7b49 500ms&#xff0c;\u4f46\u542f\u52a8\u4e0d\u88ab\u963b\u585e\u3002<\/li>\n<\/ul>\n<p>\u7ed3\u8bba&#xff1a;\u61d2\u53d1\u73b0\u9002\u5408&#034;\u5de5\u5177\u7528\u5f97\u5c11&#034;\u7684\u573a\u666f&#xff0c;\u9884\u53d1\u73b0\u9002\u5408&#034;\u542f\u52a8\u5c31\u8981\u7528&#034;\u7684\u573a\u666f\u3002\u5de5\u7a0b\u4e0a\u5e38\u53d6\u6298\u4e2d&#xff1a;\u9884\u53d1\u73b0\u70ed\u95e8 Server&#xff0c;\u61d2\u53d1\u73b0\u51b7\u95e8 Server\u3002<\/p>\n<h4>9.23 \u63a8\u6f14\u4e8c&#xff1a;\u5982\u679c\u6ce8\u518c\u8868\u6ca1\u6709\u5931\u6548\u673a\u5236<\/h4>\n<p>\u573a\u666f&#xff1a;Server \u628a create_issue \u6539\u540d\u4e3a create_issue_v2&#xff0c;\u6ce8\u518c\u8868\u4e0d\u5237\u65b0\u3002Agent \u7ee7\u7eed\u7528\u65e7\u540d \u2192 MethodNotFound \u2192 \u4efb\u52a1\u5931\u8d25\u3002\u5982\u679c\u6ce8\u518c\u8868\u6709&#034;\u5931\u8d25\u89e6\u53d1\u5237\u65b0&#034;\u673a\u5236&#xff1a;\u7b2c\u4e00\u6b21\u5931\u8d25 \u2192 \u5237\u65b0 \u2192 \u91cd\u8bd5\u6210\u529f\u3002\u5931\u8d25\u9a71\u52a8\u5237\u65b0\u662f\u515c\u5e95\u4fdd\u9669\u3002<\/p>\n<h4>9.24 \u63a8\u6f14\u4e09&#xff1a;\u5982\u679c\u8c03\u7528\u4e0d\u6821\u9a8c\u53c2\u6570<\/h4>\n<p>\u573a\u666f&#xff1a;Agent \u4f20\u4e86 repo \u4f46\u6f0f\u4e86 query&#xff08;search_code \u5fc5\u586b&#xff09;\u3002\u4e0d\u6821\u9a8c\u76f4\u63a5\u8f6c\u53d1 \u2192 Server \u62a5 InvalidParams \u2192 Agent \u518d\u4fee\u6b63 \u2192 \u591a\u4e00\u6b21\u5f80\u8fd4\u3002\u82e5 Client \u672c\u5730\u6821\u9a8c&#xff1a;\u76f4\u63a5\u63d0\u793a&#034;\u7f3a query&#034;&#xff0c;Agent \u4e00\u6b21\u4fee\u6b63\u5230\u4f4d\u3002\u6821\u9a8c\u524d\u7f6e\u7701\u4e00\u6b21\u5f80\u8fd4\u3002<\/p>\n<h4>9.25 \u63a8\u6f14\u56db&#xff1a;\u5982\u679c\u6240\u6709 Server \u5171\u7528\u4e00\u4e2a\u4f1a\u8bdd<\/h4>\n<p>\u573a\u666f&#xff1a;\u628a GitHub \u548c Slack \u585e\u8fdb\u540c\u4e00\u4f1a\u8bdd&#xff0c;\u5de5\u5177\u6e05\u5355\u6df7\u5728\u4e00\u8d77\u3002\u95ee\u9898&#xff1a;\u6743\u9650\u65e0\u6cd5\u533a\u5206&#xff08;GitHub \u7684\u5199\u6743\u9650\u6cc4\u9732\u7ed9 Slack \u573a\u666f&#xff09;\u3001\u914d\u989d\u65e0\u6cd5\u72ec\u7acb\u3001\u6545\u969c\u4e92\u76f8\u7275\u8fde\u3002\u4f1a\u8bdd\u9694\u79bb\u662f\u5b89\u5168\u5e95\u7ebf\u2014\u2014\u4e00\u4e2a Server \u4e00\u4e2a\u4f1a\u8bdd\u3002<\/p>\n<h4>9.26 \u53cd\u4f8b&#xff1a;\u628a\u53d1\u73b0\u7ed3\u679c\u5199\u6b7b\u5728\u63d0\u793a\u8bcd\u91cc<\/h4>\n<p>\u67d0\u56e2\u961f\u628a\u5de5\u5177\u6e05\u5355\u624b\u5de5\u5199\u8fdb\u7cfb\u7edf\u63d0\u793a\u8bcd&#xff0c;Server \u66f4\u65b0\u540e\u63d0\u793a\u8bcd\u6ca1\u540c\u6b65 \u2192 Agent \u7528\u65e7\u5de5\u5177\u540d \u2192 \u5168\u90e8 MethodNotFound\u3002\u4fee\u6b63&#xff1a;\u6e05\u5355\u5fc5\u987b\u6765\u81ea\u8fd0\u884c\u65f6\u53d1\u73b0&#xff0c;\u63d0\u793a\u8bcd\u53ea\u63cf\u8ff0&#034;\u600e\u4e48\u9009\u5de5\u5177&#034;&#xff0c;\u4e0d\u5199\u6b7b\u5de5\u5177\u540d\u3002<\/p>\n<h4>9.27 \u53cd\u4f8b&#xff1a;\u6ce8\u518c\u8868\u7528\u7ebf\u6027\u626b\u63cf<\/h4>\n<p>\u5de5\u5177 200 \u4e2a\u3001Server 10 \u4e2a&#xff0c;\u6bcf\u6b21\u8c03\u7528\u7ebf\u6027\u626b\u4e00\u904d &#061; 2000 \u6b21\u6bd4\u8f83\u3002\u867d\u7136\u73b0\u4ee3 CPU \u4e0b\u4e5f\u4e0d\u6162&#xff0c;\u4f46\u54c8\u5e0c\u8868 O(1) \u662f\u5e95\u7ebf\u5de5\u7a0b\u7d20\u517b&#xff0c;\u4e14\u626b\u63cf\u4ee3\u7801\u5bb9\u6613\u5f15\u5165\u987a\u5e8f bug\u3002<\/p>\n<h4>9.28 \u53cd\u4f8b&#xff1a;\u8c03\u7528\u7ed3\u679c\u5168\u91cf\u5165\u4e0a\u4e0b\u6587<\/h4>\n<p>\u6bcf\u6b21\u8c03\u7528\u7ed3\u679c\u539f\u6837\u585e\u8fdb\u4e0a\u4e0b\u6587&#xff0c;20 \u6b21\u8c03\u7528\u540e Token \u7206\u6389\u3002\u4fee\u6b63&#xff1a;\u7ed3\u679c\u6458\u8981\u5316\u3001\u53ea\u4fdd\u7559\u5173\u952e\u5b57\u6bb5\u3001\u957f\u7ed3\u679c\u5916\u90e8\u5b58\u50a8\u3002<\/p>\n<h4>9.29 \u53cd\u4f8b&#xff1a;\u8d85\u65f6\u4e00\u5200\u5207<\/h4>\n<p>\u6240\u6709\u5de5\u5177\u7edf\u4e00 10s \u8d85\u65f6&#xff1a;\u6162\u5de5\u5177&#xff08;\u6570\u636e\u5206\u6790&#xff09;\u5fc5\u5931\u8d25&#xff0c;\u5feb\u5de5\u5177&#xff08;\u67e5\u8868&#xff09;\u6d6a\u8d39\u7b49\u5f85\u3002\u4fee\u6b63&#xff1a;\u6309\u5de5\u5177 meta \u5206\u7ea7\u8d85\u65f6\u3002<\/p>\n<h4>9.30 \u6848\u4f8b\u5e93\u603b\u7ed3<\/h4>\n<p>\u672c\u7bc7\u6848\u4f8b\u8986\u76d6&#xff1a;\u56db\u9636\u6bb5\u4e3b\u6848\u4f8b&#xff08;\u8fd0\u7ef4\u673a\u5668\u4eba&#xff09;\u3001\u5171\u4eab\u6ce8\u518c\u8868\u3001\u547d\u4e2d\u7387\u4f18\u5316\u3001\u6162\u5de5\u5177\u8d85\u65f6\u3001\u6743\u9650\u9694\u79bb\u3001\u5de5\u5177\u7070\u5ea6\/\u4e0b\u7ebf\u3001\u7f51\u7edc\u964d\u7ea7\u3001\u8d1f\u8f7d\u5747\u8861\u3001\u56db\u63a8\u6f14\u3001\u516d\u53cd\u4f8b\u3002\u7ed3\u8bba&#xff1a;\u53d1\u73b0\u4e0e\u8c03\u7528\u7684\u6210\u8d25&#xff0c;80% \u53d6\u51b3\u4e8e\u6ce8\u518c\u8868\u8bbe\u8ba1\u4e0e\u63cf\u8ff0\u8d28\u91cf&#xff0c;20% \u53d6\u51b3\u4e8e\u9519\u8bef\u5904\u7406\u4e0e\u964d\u7ea7\u3002<\/p>\n<h4>9.32 \u6848\u4f8b&#xff1a;\u8de8\u7cfb\u7edf\u5de5\u4f5c\u6d41&#034;\u4ee3\u7801\u5ba1\u67e5\u5230\u53d1\u5e03&#034;<\/h4>\n<p>Slack\u6570\u636e\u5e93GitHubClientAgentSlack\u6570\u636e\u5e93GitHubClientAgent#mermaid-svg-LWb6In3VHYgDb4rS{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-LWb6In3VHYgDb4rS .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-LWb6In3VHYgDb4rS .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-LWb6In3VHYgDb4rS .error-icon{fill:#552222;}#mermaid-svg-LWb6In3VHYgDb4rS .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-LWb6In3VHYgDb4rS .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-LWb6In3VHYgDb4rS .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-LWb6In3VHYgDb4rS .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-LWb6In3VHYgDb4rS .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-LWb6In3VHYgDb4rS .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-LWb6In3VHYgDb4rS .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-LWb6In3VHYgDb4rS .marker{fill:#333333;stroke:#333333;}#mermaid-svg-LWb6In3VHYgDb4rS .marker.cross{stroke:#333333;}#mermaid-svg-LWb6In3VHYgDb4rS svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-LWb6In3VHYgDb4rS p{margin:0;}#mermaid-svg-LWb6In3VHYgDb4rS .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-LWb6In3VHYgDb4rS text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-LWb6In3VHYgDb4rS .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-LWb6In3VHYgDb4rS .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-LWb6In3VHYgDb4rS .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-LWb6In3VHYgDb4rS .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-LWb6In3VHYgDb4rS #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-LWb6In3VHYgDb4rS .sequenceNumber{fill:white;}#mermaid-svg-LWb6In3VHYgDb4rS #sequencenumber{fill:#333;}#mermaid-svg-LWb6In3VHYgDb4rS #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-LWb6In3VHYgDb4rS .messageText{fill:#333;stroke:none;}#mermaid-svg-LWb6In3VHYgDb4rS .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-LWb6In3VHYgDb4rS .labelText,#mermaid-svg-LWb6In3VHYgDb4rS .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-LWb6In3VHYgDb4rS .loopText,#mermaid-svg-LWb6In3VHYgDb4rS .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-LWb6In3VHYgDb4rS .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-LWb6In3VHYgDb4rS .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-LWb6In3VHYgDb4rS .noteText,#mermaid-svg-LWb6In3VHYgDb4rS .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-LWb6In3VHYgDb4rS .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-LWb6In3VHYgDb4rS .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-LWb6In3VHYgDb4rS .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-LWb6In3VHYgDb4rS .actorPopupMenu{position:absolute;}#mermaid-svg-LWb6In3VHYgDb4rS .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-LWb6In3VHYgDb4rS .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-LWb6In3VHYgDb4rS .actor-man circle,#mermaid-svg-LWb6In3VHYgDb4rS line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-LWb6In3VHYgDb4rS :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}call_tool(list_pulls)tools\/callPRcall_tool(get_file_contents)tools\/call\u4ee3\u7801\u5185\u5bb9call_tool(execute_query, \u67e5\u5386\u53f2\u7f3a\u9677\u7387)tools\/call\u7f3a\u9677\u7387 3.2%call_tool(create_review_comment)tools\/call\u8bc4\u8bba\u5df2\u52a0call_tool(send_message)tools\/call\u5df2\u901a\u77e5\u8bc4\u5ba1\u4eba<\/p>\n<p>\u4eae\u70b9&#xff1a;Agent \u5728\u4e00\u6b21\u4efb\u52a1\u91cc\u6a2a\u8de8 3 \u4e2a Server\u30015 \u6b21\u8c03\u7528&#xff0c;\u5168\u90e8\u9760\u6ce8\u518c\u8868\u8def\u7531 &#043; schema \u586b\u53c2&#xff0c;\u65e0\u4e00\u884c\u786c\u7f16\u7801\u3002<\/p>\n<h4>9.33 \u6848\u4f8b&#xff1a;\u53d1\u73b0\u7ed3\u679c\u9a71\u52a8 Agent \u63d0\u793a\u8bcd<\/h4>\n<p>\u67d0 Agent \u7684\u7cfb\u7edf\u63d0\u793a\u8bcd\u5728\u4f1a\u8bdd\u5f00\u59cb\u65f6\u81ea\u52a8\u62fc\u88c5\u5de5\u5177\u6e05\u5355&#xff1a;<\/p>\n<p>\u5f53\u524d\u53ef\u7528\u5de5\u5177&#xff1a;<br \/>\n&#8211; GitHub: search_code(\u641c\u7d22\u4ee3\u7801), create_issue(\u521b\u5efaIssue)&#8230;<br \/>\n&#8211; Slack: send_message(\u53d1\u9001\u6d88\u606f)&#8230;<br \/>\n&#8211; \u6570\u636e\u5e93: execute_query(\u6267\u884c\u67e5\u8be2)&#8230;<br \/>\n\u8bf7\u6839\u636e\u4efb\u52a1\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u3002<\/p>\n<p>\u5de5\u5177\u6e05\u5355\u968f\u53d1\u73b0\u7ed3\u679c\u52a8\u6001\u53d8\u5316\u2014\u2014\u8fd9\u662f&#034;\u80fd\u529b\u5730\u56fe&#034;\u6700\u76f4\u63a5\u7684\u843d\u5730\u3002<\/p>\n<h4>9.34 \u6848\u4f8b&#xff1a;\u6ce8\u518c\u8868\u672a\u547d\u4e2d\u7684\u515c\u5e95\u4f53\u9a8c<\/h4>\n<p>Agent \u5e7b\u89c9\u8c03\u7528 delete_repo&#xff08;\u6ce8\u518c\u8868\u65e0\u6b64\u5de5\u5177&#xff0c;\u6216\u6743\u9650\u4e0d\u8db3&#xff09;&#xff0c;Client \u8fd4\u56de&#xff1a;<\/p>\n<p>\u5de5\u5177 delete_repo \u4e0d\u5b58\u5728\u6216\u4e0d\u53ef\u7528\u3002\u5f53\u524d\u53ef\u7528\u5de5\u5177&#xff1a;<br \/>\n&#8211; search_code, create_issue, list_pulls, &#8230;<br \/>\n\u8bf7\u4ece\u53ef\u7528\u5de5\u5177\u4e2d\u9009\u62e9\u3002<\/p>\n<p>Agent \u636e\u6b64\u7ea0\u6b63\u884c\u4e3a&#xff0c;\u4efb\u52a1\u7ee7\u7eed\u800c\u975e\u4e2d\u65ad\u2014\u2014\u672a\u547d\u4e2d\u515c\u5e95\u662f Agent \u9c81\u68d2\u6027\u7684\u5173\u952e\u4e00\u73af\u3002<\/p>\n<h4>9.35 \u6848\u4f8b&#xff1a;\u6162\u5de5\u5177\u7684\u8fdb\u5ea6\u6761<\/h4>\n<p>&#034;\u6570\u636e\u5206\u6790&#034;\u5de5\u5177\u8fd0\u884c 4 \u5206\u949f&#xff0c;Server \u6bcf 30s \u63a8\u8fdb\u5ea6&#xff1a;<\/p>\n<p>[\u8fdb\u5ea6 25%] \u6b63\u5728\u6e05\u6d17\u6570\u636e&#8230;<br \/>\n[\u8fdb\u5ea6 50%] \u6b63\u5728\u8ba1\u7b97\u6307\u6807&#8230;<br \/>\n[\u8fdb\u5ea6 100%] \u5206\u6790\u5b8c\u6210<\/p>\n<p>Agent \u770b\u5230\u8fdb\u5ea6\u540e\u9009\u62e9\u7ee7\u7eed\u7b49\u5f85&#xff1b;Client \u4f9d\u636e&#034;\u6709\u8fdb\u5ea6&#034;\u52a8\u6001\u7eed\u671f\u8d85\u65f6\u3002\u7528\u6237\u4e5f\u80fd\u770b\u5230\u900f\u660e\u8fdb\u5c55\u3002<\/p>\n<h4>9.36 \u5fae\u6848\u4f8b&#xff1a;\u5de5\u5177\u641c\u7d22\u5728 200 \u4e2a\u5de5\u5177\u4e2d\u627e&#034;\u53d1\u90ae\u4ef6&#034;<\/h4>\n<p>Agent \u4e0d\u628a 200 \u4e2a\u5de5\u5177\u5168\u585e\u4e0a\u4e0b\u6587&#xff0c;\u800c\u662f\u641c\u7d22&#034;\u53d1\u90ae\u4ef6&#034;&#xff1a;<\/p>\n<p>search(&#034;\u53d1\u90ae\u4ef6&#034;) \u2192 [send_email(SMTP), send_slack_dm(\u901a\u77e5)]<\/p>\n<p>\u53ea\u628a\u547d\u4e2d\u5de5\u5177\u7684\u63cf\u8ff0\u7ed9\u6a21\u578b&#xff0c;Token \u7701 90%&#xff0c;\u9009\u578b\u66f4\u51c6\u3002<\/p>\n<h4>9.37 \u5fae\u6848\u4f8b&#xff1a;\u7070\u5ea6 5% \u66b4\u9732\u65b0\u5de5\u5177<\/h4>\n<p>ai_summarize \u5de5\u5177\u5148\u5bf9 5% \u4f1a\u8bdd\u66b4\u9732&#xff0c;A\/B \u89c2\u5bdf\u8c03\u7528\u6210\u529f\u7387\u4e0e\u8017\u65f6\u3002\u901a\u8fc7\u540e\u5168\u91cf&#xff1b;\u5931\u8d25\u5219\u56de\u6eda\u540d\u5355\u2014\u2014\u53d1\u73b0\u5c42\u7070\u5ea6\u6bd4\u90e8\u7f72\u7070\u5ea6\u66f4\u8f7b\u91cf\u3002<\/p>\n<h4>9.38 \u5fae\u6848\u4f8b&#xff1a;\u65ad\u7ebf\u91cd\u8fde\u540e\u5de5\u5177\u7eed\u7528<\/h4>\n<p>Agent \u4e0e Server \u65ad\u7ebf&#xff0c;\u91cd\u8fde\u540e\u91cd\u65b0 initialize &#043; tools\/list&#xff0c;\u6ce8\u518c\u8868\u5237\u65b0\u3002\u6b63\u5728\u8fdb\u884c\u7684\u4efb\u52a1\u7528&#034;\u5e42\u7b49\u952e &#043; \u4efb\u52a1\u72b6\u6001&#034;\u7eed\u8dd1&#xff0c;\u4e0d\u91cd\u590d\u6267\u884c\u5199\u64cd\u4f5c\u3002<\/p>\n<h4>9.39 \u63a8\u6f14\u4e94&#xff1a;\u5982\u679c\u53d1\u73b0\u5168\u90e8\u8d70\u61d2\u52a0\u8f7d<\/h4>\n<p>\u573a\u666f&#xff1a;Agent \u542f\u52a8\u4e0d\u505a\u4efb\u4f55\u53d1\u73b0&#xff0c;\u7528\u5230\u624d\u62c9\u5bf9\u5e94 Server \u6e05\u5355\u3002\u597d\u5904&#xff1a;\u542f\u52a8\u79d2\u5f00\u3002\u4ee3\u4ef7&#xff1a;\u9996\u6b21\u8c03\u7528\u6162\u3002\u7ed3\u8bba&#xff1a;\u6df7\u5408\u7b56\u7565\u6700\u4f18\u2014\u2014\u70ed\u95e8 Server \u9884\u53d1\u73b0&#xff0c;\u51b7\u95e8\u61d2\u53d1\u73b0\u3002<\/p>\n<h4>9.40 \u63a8\u6f14\u516d&#xff1a;\u5982\u679c\u6ce8\u518c\u8868\u547d\u4e2d\u7387 80%<\/h4>\n<p>\u573a\u666f&#xff1a;20% \u8c03\u7528\u672a\u547d\u4e2d&#xff0c;\u6bcf\u6b21\u90fd\u8981&#034;\u67e5\u8868\u5931\u8d25\u2192\u5237\u65b0\u2192\u91cd\u8bd5&#034;\u3002\u4efb\u52a1\u8017\u65f6\u5e73\u5747 &#043;40%\u3002\u7ed3\u8bba&#xff1a;\u6ce8\u518c\u8868\u547d\u4e2d\u7387\u662f\u6838\u5fc3\u5065\u5eb7\u6307\u6807&#xff0c;\u4f4e\u4e8e 99% \u5c31\u8981\u6392\u67e5\u6e05\u5355\u540c\u6b65\u95ee\u9898\u3002<\/p>\n<h4>9.41 \u53cd\u4f8b&#xff1a;\u4e0d\u533a\u5206\u8eab\u4efd\u7f13\u5b58\u6e05\u5355<\/h4>\n<p>\u67d0 Client \u628a\u7ba1\u7406\u5458\u4f1a\u8bdd\u7684\u6e05\u5355\u7f13\u5b58\u7ed9\u8bbf\u5ba2\u4f1a\u8bdd\u7528 \u2192 \u8bbf\u5ba2\u770b\u5230\u4e86\u5371\u9669\u5de5\u5177\u540d \u2192 \u5c1d\u8bd5\u8c03\u7528\u88ab\u62d2\u3002\u4fee\u6b63&#xff1a;\u7f13\u5b58\u4e0e\u8eab\u4efd\u7ed1\u5b9a\u3002<\/p>\n<h4>9.42 \u53cd\u4f8b&#xff1a;\u5ffd\u7565\u5de5\u5177\u4e0b\u7ebf\u901a\u77e5<\/h4>\n<p>Server \u63a8\u9001\u4e86 list_changed&#xff0c;Client \u6ca1\u5904\u7406 \u2192 \u65e7\u5de5\u5177\u8c03\u7528\u5931\u8d25\u7387\u4e0a\u5347\u3002\u4fee\u6b63&#xff1a;\u5b9e\u73b0\u53d8\u66f4\u901a\u77e5\u5904\u7406\u3002<\/p>\n<h4>9.43 \u53cd\u4f8b&#xff1a;\u5ba1\u8ba1\u65e5\u5fd7\u4e3a\u7a7a<\/h4>\n<p>\u51fa\u4e86\u5b89\u5168\u4e8b\u6545\u60f3\u8ffd\u8d23&#xff0c;\u53d1\u73b0\u6ca1\u6709\u8c03\u7528\u5ba1\u8ba1\u3002\u4fee\u6b63&#xff1a;\u542f\u7528\u5168\u91cf\u5ba1\u8ba1&#xff08;who\/what\/when\/args \u8131\u654f&#xff09;\u3002<\/p>\n<h4>9.44 \u6848\u4f8b\u5e93\u603b\u7ed3&#xff08;\u7ec8\u7248&#xff09;<\/h4>\n<p>\u6848\u4f8b\u8986\u76d6&#xff1a;\u56db\u9636\u6bb5\u4e3b\u6848\u4f8b\u3001\u8de8\u7cfb\u7edf\u5de5\u4f5c\u6d41\u3001\u52a8\u6001\u63d0\u793a\u8bcd\u3001\u672a\u547d\u4e2d\u515c\u5e95\u3001\u6162\u5de5\u5177\u8fdb\u5ea6\u3001\u5de5\u5177\u641c\u7d22\u3001\u7070\u5ea6\u66b4\u9732\u3001\u65ad\u7ebf\u7eed\u7528\u3001\u516d\u63a8\u6f14\u3001\u516b\u53cd\u4f8b\u3002\u7ed3\u8bba&#xff1a;\u53d1\u73b0\u4e0e\u8c03\u7528\u7684\u6210\u8d25&#xff0c;80% \u53d6\u51b3\u4e8e\u6ce8\u518c\u8868\u8bbe\u8ba1\u4e0e\u63cf\u8ff0\u8d28\u91cf&#xff0c;20% \u53d6\u51b3\u4e8e\u9519\u8bef\u5904\u7406\u4e0e\u964d\u7ea7\u3002<\/p>\n<h4>9.45 \u672c\u7ae0\u5c0f\u7ed3&#xff08;\u7ec8\u7248&#xff09;<\/h4>\n<p>\u901a\u8fc7\u8fd0\u7ef4\u673a\u5668\u4eba\u6848\u4f8b&#xff0c;\u56db\u9636\u6bb5\u6d41\u7a0b\u4ece\u62bd\u8c61\u53d8\u5177\u4f53&#xff1a;\u521d\u59cb\u5316\u8fde\u83dc\u5355\u3001\u53d1\u73b0\u770b\u83dc\u5355\u3001\u6ce8\u518c\u8bb0\u83dc\u5355\u3001\u8c03\u7528\u70b9\u83dc\u3002\u6df1\u6316\u8986\u76d6\u8de8\u7cfb\u7edf\u5de5\u4f5c\u6d41\u3001\u52a8\u6001\u63d0\u793a\u8bcd\u3001\u672a\u547d\u4e2d\u515c\u5e95\u3001\u8fdb\u5ea6\u53cd\u9988\u3001\u5de5\u5177\u641c\u7d22\u3001\u7070\u5ea6\u3001\u65ad\u7ebf\u7eed\u7528\u3001\u516d\u63a8\u6f14\u3001\u516b\u53cd\u4f8b\u2014\u2014\u52a8\u6001\u53d1\u73b0\u7684\u4e09\u5927\u4ef7\u503c&#xff08;\u5373\u63d2\u5373\u7528\/\u53d8\u66f4\u65e0\u611f\/\u6743\u9650\u9694\u79bb&#xff09;\u4e0e\u5b8c\u6574\u907f\u5751\u6e05\u5355\u3002<\/p>\n<hr \/>\n<h3>\u7b2c 10 \u7ae0 \u672c\u7ae0\u5c0f\u7ed3\u4e0e\u5168\u94fe\u8def\u8854\u63a5<\/h3>\n<h4>10.1 \u6838\u5fc3\u8981\u70b9\u56de\u987e<\/h4>\n<li>\u56db\u9636\u6bb5&#xff1a;\u521d\u59cb\u5316\u2192\u53d1\u73b0\u2192\u6ce8\u518c\u2192\u8c03\u7528\u3002<\/li>\n<li>\u8def\u7531\u6ce8\u518c\u8868&#xff1a;\u5de5\u5177\u540d\u2192Server&#043;\u4f1a\u8bdd\u7684\u6620\u5c04&#xff0c;\u8c03\u7528\u524d\u67e5\u8868\u76f4\u8fbe\u3002<\/li>\n<li>\u53d1\u73b0\u8d28\u91cf&#xff1a;description \u4e0e inputSchema \u51b3\u5b9a\u5de5\u5177\u547d\u4e2d\u7387\u3002<\/li>\n<li>\u8c03\u7528\u6210\u8d25&#xff1a;\u53c2\u6570\u6821\u9a8c\u3001\u7ed3\u679c\u5904\u7406\u3001\u8d85\u65f6\/\u53d6\u6d88\u3001\u5e42\u7b49\u3002<\/li>\n<li>\u591a Server&#xff1a;\u7ec4\u5408\u51fa\u590d\u6742\u80fd\u529b&#xff0c;\u4f46\u9700\u9694\u79bb\u4e0e\u914d\u989d\u3002<\/li>\n<li>\u6311\u6218\u89e3\u6cd5&#xff1a;\u7f13\u5b58\u3001\u524d\u7f00\u3001\u54c8\u5e0c\u6821\u9a8c\u3001\u9000\u907f\u3001\u6743\u9650\u8054\u52a8\u3001trace\u3002<\/li>\n<h4>10.2 \u4e0e 25\/26 \u7bc7\u7684\u8854\u63a5<\/h4>\n<ul>\n<li>25 \u7bc7\u7ed9\u4e86\u8fde\u63a5\u534f\u8bae\u5c42\u7684&#034;\u9aa8\u67b6&#034;&#xff08;\u4e3a\u4ec0\u4e48\u6709\u8fd9\u5c42\u3001\u8c01\u6765\u7ba1&#xff09;\u3002<\/li>\n<li>26 \u7bc7\u7ed9\u4e86\u534f\u8bae&#034;\u8bed\u6cd5&#034;&#xff08;\u6d88\u606f\u3001\u65b9\u6cd5\u3001\u539f\u8bed&#xff09;\u3002<\/li>\n<li>\u672c\u7bc7\u7ed9\u4e86\u8fd0\u884c\u65f6&#034;\u7f16\u821e&#034;&#xff08;\u53d1\u73b0\u4e0e\u8c03\u7528\u7684\u6d41\u7a0b\u7f16\u6392&#xff09;\u3002<\/li>\n<li>28 \u7bc7\u5c06\u6df1\u5165\u4e09\u4e2a\u5178\u578b Server \u7684&#034;\u5de5\u5177\u6811&#034;\u957f\u4ec0\u4e48\u6837\u3002<\/li>\n<\/ul>\n<h4>10.3 \u81ea\u6d4b\u9898<\/h4>\n<li>\u56db\u9636\u6bb5\u5206\u522b\u662f\u4ec0\u4e48&#xff1f;\u6bcf\u9636\u6bb5\u7684\u5173\u952e\u65b9\u6cd5&#xff1f;<\/li>\n<li>\u8def\u7531\u6ce8\u518c\u8868\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898&#xff1f;\u51b2\u7a81\u600e\u4e48\u5904\u7406&#xff1f;<\/li>\n<li>description \u4e3a\u4ec0\u4e48\u91cd\u8981&#xff1f;\u4e3e\u4f8b\u8bf4\u660e\u3002<\/li>\n<li>\u5199\u64cd\u4f5c\u91cd\u8bd5\u600e\u4e48\u907f\u514d\u91cd\u590d\u6267\u884c&#xff1f;<\/li>\n<li>\u591a Server \u573a\u666f\u5982\u4f55\u505a\u6545\u969c\u9694\u79bb&#xff1f;<\/li>\n<h4>10.4 \u5de5\u7a0b\u68c0\u67e5\u5355<\/h4>\n<ul>\n<li class=\"task-list-item\"> \u542f\u52a8\u65f6\u5bf9\u6240\u6709 Server \u5b8c\u6210 initialize \u4e0e tools\/list\u3002<\/li>\n<li class=\"task-list-item\"> \u6ce8\u518c\u8868\u8986\u76d6\u5168\u90e8\u5de5\u5177&#xff0c;\u51b2\u7a81\u5df2\u5904\u7406\u3002<\/li>\n<li class=\"task-list-item\"> \u7f13\u5b58 &#043; TTL &#043; \u53d8\u66f4\u901a\u77e5\u5df2\u914d\u7f6e\u3002<\/li>\n<li class=\"task-list-item\"> \u8c03\u7528\u524d\u6309 schema \u6821\u9a8c\u53c2\u6570\u3002<\/li>\n<li class=\"task-list-item\"> \u5199\u64cd\u4f5c\u652f\u6301\u5e42\u7b49\u952e\u3002<\/li>\n<li class=\"task-list-item\"> \u7194\u65ad\/\u8231\u58c1\/\u9650\u6d41\u6309 Server \u7ef4\u5ea6\u914d\u7f6e\u3002<\/li>\n<li class=\"task-list-item\"> trace \u8986\u76d6\u53d1\u73b0\u4e0e\u8c03\u7528\u5168\u94fe\u8def\u3002<\/li>\n<li class=\"task-list-item\"> destructive \u5de5\u5177\u4e8c\u6b21\u786e\u8ba4\u5df2\u542f\u7528\u3002<\/li>\n<\/ul>\n<h4>10.6 \u56db\u9636\u6bb5\u901f\u8bb0\u5361<\/h4>\n<table>\n<tr>\u9636\u6bb5\u52a8\u4f5c\u5173\u952e\u65b9\u6cd5\u4e00\u53e5\u8bdd<\/tr>\n<tbody>\n<tr>\n<td>\u521d\u59cb\u5316<\/td>\n<td>\u5efa\u4f1a\u8bdd<\/td>\n<td>initialize<\/td>\n<td>\u6253\u901a\u901a\u9053<\/td>\n<\/tr>\n<tr>\n<td>\u53d1\u73b0<\/td>\n<td>\u62c9\u6e05\u5355<\/td>\n<td>tools\/list<\/td>\n<td>\u770b\u83dc\u5355<\/td>\n<\/tr>\n<tr>\n<td>\u6ce8\u518c<\/td>\n<td>\u5efa\u8def\u7531<\/td>\n<td>Client \u5185\u90e8<\/td>\n<td>\u8bb0\u83dc\u5355<\/td>\n<\/tr>\n<tr>\n<td>\u8c03\u7528<\/td>\n<td>\u6267\u884c<\/td>\n<td>tools\/call<\/td>\n<td>\u70b9\u83dc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>10.7 \u5173\u952e\u8bbe\u8ba1\u51b3\u7b56\u6e05\u5355&#xff08;ADR \u98ce\u683c&#xff09;<\/h4>\n<table>\n<tr>\u51b3\u7b56\u70b9\u9009\u9879\u5efa\u8bae<\/tr>\n<tbody>\n<tr>\n<td>\u53d1\u73b0\u65f6\u673a<\/td>\n<td>\u542f\u52a8\/\u61d2\/\u5b9a\u65f6\/\u901a\u77e5<\/td>\n<td>\u901a\u77e5\u9a71\u52a8&#043;\u542f\u52a8\u9884\u53d1\u73b0<\/td>\n<\/tr>\n<tr>\n<td>\u6ce8\u518c\u8868\u5b58\u50a8<\/td>\n<td>\u5185\u5b58\/\u5206\u5e03\u5f0f<\/td>\n<td>\u5355 Client \u5185\u5b58\u5373\u53ef<\/td>\n<\/tr>\n<tr>\n<td>\u51b2\u7a81\u5904\u7406<\/td>\n<td>\u524d\u7f00\/\u4f18\u5148\u7ea7\/\u544a\u8b66<\/td>\n<td>\u524d\u7f00\u4f18\u5148<\/td>\n<\/tr>\n<tr>\n<td>\u8d85\u65f6\u7b56\u7565<\/td>\n<td>\u7edf\u4e00\/\u5206\u7ea7<\/td>\n<td>\u6309\u5de5\u5177 meta \u5206\u7ea7<\/td>\n<\/tr>\n<tr>\n<td>\u91cd\u8bd5\u7b56\u7565<\/td>\n<td>\u7edf\u4e00\/\u6309\u9519\u8bef<\/td>\n<td>\u6309\u9519\u8bef\u7c7b\u578b\u77e9\u9635<\/td>\n<\/tr>\n<tr>\n<td>\u5199\u64cd\u4f5c\u5e42\u7b49<\/td>\n<td>\u652f\u6301\/\u4e0d\u652f\u6301<\/td>\n<td>\u5fc5\u987b\u652f\u6301<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>10.8 \u5e38\u89c1\u9762\u8bd5\u9898<\/h4>\n<li>MCP \u5982\u4f55\u89e3\u51b3 N\u00d7M \u9002\u914d\u95ee\u9898&#xff1f;<\/li>\n<li>tools\/list \u4e0e tools\/call \u7684\u5173\u7cfb&#xff1f;<\/li>\n<li>\u8def\u7531\u6ce8\u518c\u8868\u91cc\u5b58\u4ec0\u4e48&#xff1f;\u4e3a\u4ec0\u4e48\u5e26\u4f1a\u8bdd&#xff1f;<\/li>\n<li>\u4e24\u4e2a Server \u6709\u540c\u540d\u5de5\u5177\u600e\u4e48\u5904\u7406&#xff1f;<\/li>\n<li>Server \u6539\u4e86\u5de5\u5177 schema&#xff0c;Client \u600e\u4e48\u611f\u77e5&#xff1f;<\/li>\n<li>\u5199\u64cd\u4f5c\u91cd\u8bd5\u5982\u4f55\u907f\u514d\u91cd\u590d&#xff1f;<\/li>\n<li>\u591a Server \u573a\u666f\u5982\u4f55\u505a\u6545\u969c\u9694\u79bb&#xff1f;<\/li>\n<li>\u5982\u4f55\u9632\u6b62 Agent \u5e7b\u89c9\u8c03\u7528\u4e0d\u5b58\u5728\u7684\u5de5\u5177&#xff1f;<\/li>\n<h4>10.9 FAQ<\/h4>\n<p>Q1&#xff1a;\u53d1\u73b0\u4e00\u6b21\u8fd8\u662f\u6bcf\u6b21\u90fd\u53d1\u73b0&#xff1f;<br \/>\n\u7f13\u5b58 &#043; \u901a\u77e5\u9a71\u52a8\u5237\u65b0&#xff1b;\u5931\u8d25\u65f6\u5f3a\u5236\u5237\u65b0\u515c\u5e95\u3002<\/p>\n<p>Q2&#xff1a;\u6ce8\u518c\u8868\u653e Client \u8fd8\u662f\u72ec\u7acb\u670d\u52a1&#xff1f;<br \/>\n\u5c0f\u573a\u666f Client \u5185&#xff1b;\u5e73\u53f0\u7ea7\u53ef\u72ec\u7acb\u670d\u52a1\u5171\u4eab\u3002<\/p>\n<p>Q3&#xff1a;\u540c\u540d\u5de5\u5177\u4e00\u5b9a\u51b2\u7a81\u5417&#xff1f;<br \/>\n\u4e0d\u4e00\u5b9a&#xff0c;\u53ef\u5408\u5e76\/\u6298\u53e0&#xff1b;\u51b2\u7a81\u65f6\u524d\u7f00\u6216\u4f18\u5148\u7ea7\u3002<\/p>\n<p>Q4&#xff1a;\u8c03\u7528\u5931\u8d25\u5c31\u91cd\u8bd5&#xff1f;<br \/>\n\u770b\u9519\u8bef\u7c7b\u578b&#xff1a;\u53c2\u6570\u9519\u4e0d\u91cd\u8bd5&#xff0c;\u7f51\u7edc\/\u9650\u6d41\u9000\u907f\u91cd\u8bd5\u3002<\/p>\n<p>Q5&#xff1a;Server \u6302\u4e86\u600e\u4e48\u529e&#xff1f;<br \/>\n\u7194\u65ad &#043; \u964d\u7ea7 &#043; \u5907\u7528 Server&#xff1b;\u7f16\u6392\u5c42\u611f\u77e5\u53ef\u7528\u6027\u3002<\/p>\n<h4>10.10 \u7aef\u5230\u7aef\u793a\u4f8b&#xff1a;\u4e00\u6b21\u5b8c\u6574\u7684&#034;\u67e5\u6f0f\u6d1e\u5e76\u901a\u77e5&#034;<\/h4>\n<p>SlackGitHub\u6570\u636e\u5e93\u6ce8\u518c\u8868ClientAgent\u7528\u6237SlackGitHub\u6570\u636e\u5e93\u6ce8\u518c\u8868ClientAgent\u7528\u6237#mermaid-svg-Dy4qnSb7SmsyABtu{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-Dy4qnSb7SmsyABtu .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-Dy4qnSb7SmsyABtu .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-Dy4qnSb7SmsyABtu .error-icon{fill:#552222;}#mermaid-svg-Dy4qnSb7SmsyABtu .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-Dy4qnSb7SmsyABtu .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-Dy4qnSb7SmsyABtu .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-Dy4qnSb7SmsyABtu .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-Dy4qnSb7SmsyABtu .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-Dy4qnSb7SmsyABtu .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-Dy4qnSb7SmsyABtu .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-Dy4qnSb7SmsyABtu .marker{fill:#333333;stroke:#333333;}#mermaid-svg-Dy4qnSb7SmsyABtu .marker.cross{stroke:#333333;}#mermaid-svg-Dy4qnSb7SmsyABtu svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-Dy4qnSb7SmsyABtu p{margin:0;}#mermaid-svg-Dy4qnSb7SmsyABtu .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-Dy4qnSb7SmsyABtu text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-Dy4qnSb7SmsyABtu .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-Dy4qnSb7SmsyABtu .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-Dy4qnSb7SmsyABtu .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-Dy4qnSb7SmsyABtu .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-Dy4qnSb7SmsyABtu #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-Dy4qnSb7SmsyABtu .sequenceNumber{fill:white;}#mermaid-svg-Dy4qnSb7SmsyABtu #sequencenumber{fill:#333;}#mermaid-svg-Dy4qnSb7SmsyABtu #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-Dy4qnSb7SmsyABtu .messageText{fill:#333;stroke:none;}#mermaid-svg-Dy4qnSb7SmsyABtu .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-Dy4qnSb7SmsyABtu .labelText,#mermaid-svg-Dy4qnSb7SmsyABtu .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-Dy4qnSb7SmsyABtu .loopText,#mermaid-svg-Dy4qnSb7SmsyABtu .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-Dy4qnSb7SmsyABtu .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-Dy4qnSb7SmsyABtu .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-Dy4qnSb7SmsyABtu .noteText,#mermaid-svg-Dy4qnSb7SmsyABtu .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-Dy4qnSb7SmsyABtu .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-Dy4qnSb7SmsyABtu .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-Dy4qnSb7SmsyABtu .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-Dy4qnSb7SmsyABtu .actorPopupMenu{position:absolute;}#mermaid-svg-Dy4qnSb7SmsyABtu .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-Dy4qnSb7SmsyABtu .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-Dy4qnSb7SmsyABtu .actor-man circle,#mermaid-svg-Dy4qnSb7SmsyABtu line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-Dy4qnSb7SmsyABtu :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}\u68c0\u67e5\u7ebf\u4e0a\u9ad8\u5371\u6f0f\u6d1e\u542f\u52a8\/\u53d1\u73b0\/\u6ce8\u518c(\u82e5\u672a\u5c31\u7eea)initialize &#043; tools\/listinitialize &#043; tools\/listinitialize &#043; tools\/list\u6ce8\u518c\u5168\u90e8\u5de5\u5177call_tool(execute_query, \u67e5\u6f0f\u6d1e)\u547d\u4e2d \u2192 \u6570\u636e\u5e93tools\/call3 \u4e2a\u9ad8\u5371\u4f9d\u8d56call_tool(create_issue, \u5efaIssue)tools\/callIssuecall_tool(send_message, \u901a\u77e5\u7fa4)tools\/call\u5df2\u53d1\u9001\u5168\u90e8\u5b8c\u6210\u5df2\u5efaIssue\u5e76\u901a\u77e5<\/p>\n<h4>10.11 \u5ea6\u91cf\u6307\u6807<\/h4>\n<table>\n<tr>\u6307\u6807\u76ee\u6807\u6d4b\u91cf\u70b9<\/tr>\n<tbody>\n<tr>\n<td>\u6ce8\u518c\u8868\u547d\u4e2d\u7387<\/td>\n<td>&gt;99.5%<\/td>\n<td>Client<\/td>\n<\/tr>\n<tr>\n<td>\u53d1\u73b0\u8017\u65f6<\/td>\n<td>&lt;100ms<\/td>\n<td>Client<\/td>\n<\/tr>\n<tr>\n<td>\u8c03\u7528\u6210\u529f\u7387<\/td>\n<td>&gt;99%<\/td>\n<td>Client<\/td>\n<\/tr>\n<tr>\n<td>\u672a\u547d\u4e2d\u7387<\/td>\n<td>&lt;1%<\/td>\n<td>Client<\/td>\n<\/tr>\n<tr>\n<td>\u5e73\u5747\u8c03\u7528\u5ef6\u8fdf<\/td>\n<td>\u6309\u5de5\u5177<\/td>\n<td>Server<\/td>\n<\/tr>\n<tr>\n<td>\u7194\u65ad\u6b21\u6570<\/td>\n<td>\u6781\u5c11<\/td>\n<td>Client<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>10.12 \u5de5\u7a0b\u843d\u5730\u5efa\u8bae&#xff08;\u6309\u4f18\u5148\u7ea7&#xff09;<\/h4>\n<li>P0&#xff1a;\u56db\u9636\u6bb5\u8dd1\u901a\u3001\u6ce8\u518c\u8868\u6b63\u786e\u8def\u7531\u3002<\/li>\n<li>P0&#xff1a;\u53c2\u6570\u6821\u9a8c\u524d\u7f6e\u3001\u9519\u8bef\u5904\u7406\u77e9\u9635\u3002<\/li>\n<li>P1&#xff1a;\u7f13\u5b58 &#043; \u901a\u77e5\u5237\u65b0\u3001\u5e42\u7b49\u952e\u3002<\/li>\n<li>P1&#xff1a;\u7194\u65ad\/\u8231\u58c1\/\u914d\u989d&#xff08;\u591a Server&#xff09;\u3002<\/li>\n<li>P2&#xff1a;\u5168\u94fe\u8def trace\u3001\u6307\u6807\u770b\u677f\u3002<\/li>\n<li>P2&#xff1a;\u5de5\u5177\u7070\u5ea6\u3001\u6210\u672c\u63a7\u5236\u3002<\/li>\n<h4>10.13 \u53cd\u6a21\u5f0f\u901f\u67e5<\/h4>\n<table>\n<tr>\u53cd\u6a21\u5f0f\u4fee\u6b63<\/tr>\n<tbody>\n<tr>\n<td>\u6bcf\u6b21\u8c03\u7528\u90fd\u53d1\u73b0<\/td>\n<td>\u7f13\u5b58&#043;\u901a\u77e5<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u5177\u540d\u5199\u6b7b<\/td>\n<td>\u52a8\u6001\u53d1\u73b0<\/td>\n<\/tr>\n<tr>\n<td>\u5ffd\u7565 isError<\/td>\n<td>\u68c0\u67e5\u7ed3\u679c<\/td>\n<\/tr>\n<tr>\n<td>\u7edf\u4e00\u8d85\u65f6<\/td>\n<td>\u5206\u7ea7\u8d85\u65f6<\/td>\n<\/tr>\n<tr>\n<td>\u65e0\u5e42\u7b49\u952e<\/td>\n<td>\u5199\u64cd\u4f5c\u5e42\u7b49<\/td>\n<\/tr>\n<tr>\n<td>\u5168\u91cf\u5165\u4e0a\u4e0b\u6587<\/td>\n<td>\u6458\u8981\u5316<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>10.14 \u672f\u8bed\u7ec8\u8868<\/h4>\n<table>\n<tr>\u672f\u8bed\u5b9a\u4e49<\/tr>\n<tbody>\n<tr>\n<td>Discovery<\/td>\n<td>\u5de5\u5177\u53d1\u73b0<\/td>\n<\/tr>\n<tr>\n<td>Invocation<\/td>\n<td>\u5de5\u5177\u8c03\u7528<\/td>\n<\/tr>\n<tr>\n<td>Registry<\/td>\n<td>\u8def\u7531\u6ce8\u518c\u8868<\/td>\n<\/tr>\n<tr>\n<td>Schema<\/td>\n<td>\u53c2\u6570\u7ed3\u6784\u63cf\u8ff0<\/td>\n<\/tr>\n<tr>\n<td>Capability<\/td>\n<td>\u80fd\u529b\u58f0\u660e<\/td>\n<\/tr>\n<tr>\n<td>Idempotency<\/td>\n<td>\u5e42\u7b49\u6027<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>10.15 \u672c\u7bc7\u8d21\u732e<\/h4>\n<p>\u6e90 6.4 \u6269\u5c55&#xff1a;\u6838\u5fc3\u6982\u5ff5\u3001\u56db\u9636\u6bb5\u6df1\u6316\u3001\u6ce8\u518c\u8868\u6df1\u62c6\u3001\u53d1\u73b0\/\u8c03\u7528\u673a\u5236\u3001\u591a Server \u7f16\u6392\u300116&#043; \u6311\u6218\u3001\u6848\u4f8b\u5e93&#xff08;1 \u4e3b\u6848\u4f8b &#043; 10 \u6df1\u62c6\/\u5fae\u6848\u4f8b &#043; 4 \u63a8\u6f14 &#043; 6 \u53cd\u4f8b&#xff09;\u3002<\/p>\n<h4>10.16 \u8854\u63a5\u4e0b\u7bc7<\/h4>\n<p>\u7b2c 28 \u7bc7\u8bb2\u5178\u578b MCP Server \u8be6\u89e3&#xff08;\u6e90 6.5&#xff09;&#xff1a;GitHub\/\u6570\u636e\u5e93\/\u6d4f\u89c8\u5668\u7684\u5de5\u5177\u6811\u957f\u4ec0\u4e48\u6837&#xff0c;\u628a\u672c\u7bc7\u7684&#034;\u53d1\u73b0\u7ed3\u679c&#034;\u843d\u6210\u5177\u4f53\u6e05\u5355\u3002<\/p>\n<h4>10.17 \u91d1\u53e5<\/h4>\n<p>\u53d1\u73b0\u89e3\u51b3&#034;\u6709\u4ec0\u4e48\u53ef\u7528&#034;&#xff0c;\u8c03\u7528\u89e3\u51b3&#034;\u600e\u4e48\u7528\u8d77\u6765&#034;&#xff0c;\u6ce8\u518c\u8868\u89e3\u51b3&#034;\u627e\u8c01\u7528&#034;\u3002<\/p>\n<h4>10.18 \u65b0\u4eba\u8ba1\u5212<\/h4>\n<p>\u8bfb 2\u21923\u21924 \u7406\u89e3\u6d41\u7a0b&#xff1b;\u8dd1 9 \u7ae0\u8fd0\u7ef4\u673a\u5668\u4eba\u6848\u4f8b&#xff1b;\u7528 10.12 \u6e05\u5355\u843d\u5730\u3002<\/p>\n<h4>10.19 \u6027\u80fd\u8c03\u4f18<\/h4>\n<p>\u7f13\u5b58\u3001\u61d2\u53d1\u73b0\u3001\u5e76\u884c\u521d\u59cb\u5316\u3001\u7ed3\u679c\u6458\u8981\u3001\u5de5\u5177\u641c\u7d22\u3002<\/p>\n<h4>10.20 \u5b89\u5168\u52a0\u56fa<\/h4>\n<p>\u6743\u9650\u8fc7\u6ee4\u3001destructive \u6807\u6ce8\u3001\u53c2\u6570\u6821\u9a8c\u3001\u6ce8\u5165\u626b\u63cf\u3001\u5ba1\u8ba1\u3002<\/p>\n<h4>10.21 \u6545\u969c\u6f14\u7ec3<\/h4>\n<p>\u6740 Server\u3001\u65ad\u7f51\u7edc\u3001\u6539 schema\u3001\u8d85\u65f6\u6ce8\u5165\u3001\u9650\u6d41\u89e6\u53d1\u3002<\/p>\n<h4>10.22 \u68c0\u67e5\u5355\u603b\u8868<\/h4>\n<p>\u521d\u59cb\u5316\/\u53d1\u73b0\/\u6ce8\u518c\/\u8c03\u7528\/\u9694\u79bb\/\u914d\u989d\/\u53ef\u89c2\u6d4b\/\u5b89\u5168&#xff08;25 \u7bc7 9 \u6269\u5c55&#xff09;\u3002<\/p>\n<h4>10.23 \u901f\u8bb0\u5361 v2<\/h4>\n<p>\u56db\u9636\u6bb5\u3001\u4e09\u8981\u7d20&#xff08;\u53c2\u6570\/\u8def\u7531\/Server&#xff09;\u3001\u53cc\u4fdd\u969c&#xff08;\u7f13\u5b58\/\u5e42\u7b49&#xff09;\u3002<\/p>\n<h4>10.24 \u7ed3\u8bed<\/h4>\n<p>\u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u662f Agent&#034;\u957f\u51fa\u53cc\u624b&#034;\u7684\u8fc7\u7a0b&#xff1a;\u534f\u8bae\u7ed9\u4e86\u624b&#xff0c;\u6d41\u7a0b\u8ba9\u624b\u542c\u8bdd\u3002\u4e0b\u4e00\u7bc7\u770b\u4e09\u53ea\u5178\u578b\u7684\u624b\u957f\u4ec0\u4e48\u6837\u3002<\/p>\n<h4>10.25 \u4e0e\u884c\u52a8\u5c42&#xff08;\u7b2c 7 \u7ae0&#xff09;\u7684\u8854\u63a5<\/h4>\n<p>\u6e90\u6587\u6863\u7b2c 7 \u7ae0&#xff08;\u884c\u52a8\u5c42&#xff0c;30 \u7bc7\u8d77&#xff09;\u8bb2\u5de5\u5177\u80cc\u540e\u7684\u771f\u5b9e\u6267\u884c\u5668&#xff1a;API \u8c03\u7528\u3001\u4ee3\u7801\u6c99\u7bb1\u3001\u6570\u636e\u5e93\u64cd\u4f5c\u7b49\u3002\u672c\u7bc7\u7684&#034;\u8c03\u7528&#034;\u662f\u534f\u8bae\u5c42\u9762\u7684\u6d41\u8f6c&#xff0c;\u884c\u52a8\u5c42\u7684&#034;\u6267\u884c&#034;\u662f\u4e1a\u52a1\u5c42\u9762\u7684\u843d\u5730\u2014\u2014\u4e24\u8005\u901a\u8fc7 tools\/call \u65e0\u7f1d\u8854\u63a5&#xff1a;Client \u8def\u7531\u5230\u4f4d&#xff0c;Server \u5185\u90e8\u518d\u628a\u8c03\u7528\u8f6c\u6210\u771f\u5b9e\u7684\u6267\u884c\u5668\u52a8\u4f5c\u3002<\/p>\n<h4>10.26 \u5168\u94fe\u8def\u901f\u89c8&#xff08;\u4e00\u7bc7\u770b\u61c2&#xff09;<\/h4>\n<p>#mermaid-svg-F5lnXCPfLTHfqBmL{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-F5lnXCPfLTHfqBmL .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-F5lnXCPfLTHfqBmL .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-F5lnXCPfLTHfqBmL .error-icon{fill:#552222;}#mermaid-svg-F5lnXCPfLTHfqBmL .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-F5lnXCPfLTHfqBmL .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-F5lnXCPfLTHfqBmL .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-F5lnXCPfLTHfqBmL .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-F5lnXCPfLTHfqBmL .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-F5lnXCPfLTHfqBmL .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-F5lnXCPfLTHfqBmL .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-F5lnXCPfLTHfqBmL .marker{fill:#333333;stroke:#333333;}#mermaid-svg-F5lnXCPfLTHfqBmL .marker.cross{stroke:#333333;}#mermaid-svg-F5lnXCPfLTHfqBmL svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-F5lnXCPfLTHfqBmL p{margin:0;}#mermaid-svg-F5lnXCPfLTHfqBmL .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-F5lnXCPfLTHfqBmL .cluster-label text{fill:#333;}#mermaid-svg-F5lnXCPfLTHfqBmL .cluster-label span{color:#333;}#mermaid-svg-F5lnXCPfLTHfqBmL .cluster-label span p{background-color:transparent;}#mermaid-svg-F5lnXCPfLTHfqBmL .label text,#mermaid-svg-F5lnXCPfLTHfqBmL span{fill:#333;color:#333;}#mermaid-svg-F5lnXCPfLTHfqBmL .node rect,#mermaid-svg-F5lnXCPfLTHfqBmL .node circle,#mermaid-svg-F5lnXCPfLTHfqBmL .node ellipse,#mermaid-svg-F5lnXCPfLTHfqBmL .node polygon,#mermaid-svg-F5lnXCPfLTHfqBmL .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-F5lnXCPfLTHfqBmL .rough-node .label text,#mermaid-svg-F5lnXCPfLTHfqBmL .node .label text,#mermaid-svg-F5lnXCPfLTHfqBmL .image-shape .label,#mermaid-svg-F5lnXCPfLTHfqBmL .icon-shape .label{text-anchor:middle;}#mermaid-svg-F5lnXCPfLTHfqBmL .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-F5lnXCPfLTHfqBmL .rough-node .label,#mermaid-svg-F5lnXCPfLTHfqBmL .node .label,#mermaid-svg-F5lnXCPfLTHfqBmL .image-shape .label,#mermaid-svg-F5lnXCPfLTHfqBmL .icon-shape .label{text-align:center;}#mermaid-svg-F5lnXCPfLTHfqBmL .node.clickable{cursor:pointer;}#mermaid-svg-F5lnXCPfLTHfqBmL .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-F5lnXCPfLTHfqBmL .arrowheadPath{fill:#333333;}#mermaid-svg-F5lnXCPfLTHfqBmL .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-F5lnXCPfLTHfqBmL .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-F5lnXCPfLTHfqBmL .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-F5lnXCPfLTHfqBmL .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-F5lnXCPfLTHfqBmL .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-F5lnXCPfLTHfqBmL .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-F5lnXCPfLTHfqBmL .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-F5lnXCPfLTHfqBmL .cluster text{fill:#333;}#mermaid-svg-F5lnXCPfLTHfqBmL .cluster span{color:#333;}#mermaid-svg-F5lnXCPfLTHfqBmL div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-F5lnXCPfLTHfqBmL .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-F5lnXCPfLTHfqBmL rect.text{fill:none;stroke-width:0;}#mermaid-svg-F5lnXCPfLTHfqBmL .icon-shape,#mermaid-svg-F5lnXCPfLTHfqBmL .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-F5lnXCPfLTHfqBmL .icon-shape p,#mermaid-svg-F5lnXCPfLTHfqBmL .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-F5lnXCPfLTHfqBmL .icon-shape .label rect,#mermaid-svg-F5lnXCPfLTHfqBmL .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-F5lnXCPfLTHfqBmL .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-F5lnXCPfLTHfqBmL .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-F5lnXCPfLTHfqBmL :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u662f<\/p>\n<p><\/span><span class=\"edgeLabel\"><\/p>\n<p>\u5426<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent\u51b3\u7b56<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u9009\u62e9\u5de5\u5177<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>call_tool<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6ce8\u518c\u8868\u8def\u7531<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Server\u6267\u884c<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7ed3\u679c\u56de\u4f20<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>Agent\u63a8\u7406<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7ee7\u7eed?<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u4efb\u52a1\u5b8c\u6210<\/p>\n<p><\/span><\/p>\n<h4>10.27 \u5173\u952e\u6210\u529f\u56e0\u7d20&#xff08;CSF&#xff09;<\/h4>\n<li>\u63cf\u8ff0\u8d28\u91cf&#xff1a;\u5de5\u5177\u88ab\u6b63\u786e\u9009\u4e2d\u3002<\/li>\n<li>Schema \u8d28\u91cf&#xff1a;\u53c2\u6570\u4e00\u6b21\u586b\u5bf9\u3002<\/li>\n<li>\u6ce8\u518c\u8868\u51c6\u786e&#xff1a;\u8def\u7531\u4e0d\u4e32\u7ebf\u3002<\/li>\n<li>\u9519\u8bef\u5904\u7406&#xff1a;\u5931\u8d25\u53ef\u6062\u590d\u3002<\/li>\n<li>\u5b89\u5168\u7eb5\u6df1&#xff1a;\u8d8a\u6743\u88ab\u62e6\u622a\u3002<\/li>\n<h4>10.28 \u56e2\u961f\u534f\u4f5c\u5206\u5de5<\/h4>\n<table>\n<tr>\u89d2\u8272\u804c\u8d23<\/tr>\n<tbody>\n<tr>\n<td>Server \u5f00\u53d1\u8005<\/td>\n<td>\u5199\u597d description\/schema<\/td>\n<\/tr>\n<tr>\n<td>Client \u5f00\u53d1\u8005<\/td>\n<td>\u6ce8\u518c\u8868\/\u6821\u9a8c\/\u91cd\u8bd5<\/td>\n<\/tr>\n<tr>\n<td>\u5e73\u53f0\u8fd0\u7ef4<\/td>\n<td>\u914d\u989d\/\u7070\u5ea6\/\u53ef\u89c2\u6d4b<\/td>\n<\/tr>\n<tr>\n<td>Agent \u5de5\u7a0b\u5e08<\/td>\n<td>\u5de5\u5177\u9009\u62e9\u4e0e\u7f16\u6392<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>10.29 \u7248\u672c\u6f14\u8fdb\u5efa\u8bae<\/h4>\n<ul>\n<li>v1&#xff1a;\u5355 Server&#xff0c;\u8dd1\u901a\u56db\u9636\u6bb5\u3002<\/li>\n<li>v2&#xff1a;\u591a Server &#043; \u6ce8\u518c\u8868 &#043; \u7f13\u5b58\u3002<\/li>\n<li>v3&#xff1a;\u7194\u65ad\/\u914d\u989d\/\u7070\u5ea6\/\u53ef\u89c2\u6d4b\u3002<\/li>\n<li>v4&#xff1a;\u5de5\u5177\u641c\u7d22 &#043; \u6210\u672c\u63a7\u5236 &#043; \u6cbb\u7406\u3002<\/li>\n<\/ul>\n<h4>10.30 \u672c\u7bc7\u91d1\u53e5\u6c47\u603b<\/h4>\n<ul>\n<li>\u53d1\u73b0\u89e3\u51b3&#034;\u6709\u4ec0\u4e48\u53ef\u7528&#034;&#xff0c;\u8c03\u7528\u89e3\u51b3&#034;\u600e\u4e48\u7528\u8d77\u6765&#034;\u3002<\/li>\n<li>\u63cf\u8ff0\u662f\u5de5\u5177\u7684\u9500\u552e\u6587\u6848&#xff0c;schema \u662f\u53c2\u6570\u8bf4\u660e\u4e66\u3002<\/li>\n<li>\u6ce8\u518c\u8868\u8ba9\u8c03\u7528\u4ece&#034;\u904d\u5386\u731c&#034;\u53d8\u6210&#034;\u67e5\u8868\u76f4\u8fbe&#034;\u3002<\/li>\n<\/ul>\n<h4>10.32 \u901f\u8bb0\u5361 v3<\/h4>\n<ul>\n<li>\u56db\u9636\u6bb5&#xff1a;\u521d\u59cb\u5316\/\u53d1\u73b0\/\u6ce8\u518c\/\u8c03\u7528\u3002<\/li>\n<li>\u4e09\u8981\u7d20&#xff1a;\u53c2\u6570\u5bf9\u3001\u8def\u7531\u51c6\u3001Server \u7a33\u3002<\/li>\n<li>\u53cc\u4fdd\u969c&#xff1a;\u7f13\u5b58\u5237\u65b0\u3001\u5e42\u7b49\u91cd\u8bd5\u3002<\/li>\n<li>\u4e00\u5e95\u7ebf&#xff1a;\u6743\u9650\u8fc7\u6ee4\u3001\u5ba1\u8ba1\u7559\u75d5\u3002<\/li>\n<\/ul>\n<h4>10.33 \u7ed3\u8bed<\/h4>\n<p>\u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u662f Agent&#034;\u957f\u51fa\u53cc\u624b&#034;\u7684\u8fc7\u7a0b&#xff1a;\u534f\u8bae\u7ed9\u4e86\u624b&#xff0c;\u6d41\u7a0b\u8ba9\u624b\u542c\u8bdd\u3002\u8def\u7531\u6ce8\u518c\u8868\u662f\u8fd9\u53cc\u624b\u7684\u795e\u7ecf\u4e2d\u67a2\u2014\u2014\u67e5\u8868\u5373\u8fbe\u3001\u5931\u8d25\u53ef\u6551\u3001\u8d8a\u6743\u88ab\u62e6\u3002\u4e0b\u4e00\u7bc7\u770b\u4e09\u53ea\u5178\u578b\u7684\u624b&#xff08;GitHub\/\u6570\u636e\u5e93\/\u6d4f\u89c8\u5668 Server&#xff09;\u957f\u4ec0\u4e48\u6837\u3002<\/p>\n<h4>10.35 \u672f\u8bed\u5bf9\u7167<\/h4>\n<table>\n<tr>\u4e2d\u6587English\u5907\u6ce8<\/tr>\n<tbody>\n<tr>\n<td>\u5de5\u5177\u53d1\u73b0<\/td>\n<td>Tool Discovery<\/td>\n<td>tools\/list<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u5177\u8c03\u7528<\/td>\n<td>Tool Invocation<\/td>\n<td>tools\/call<\/td>\n<\/tr>\n<tr>\n<td>\u8def\u7531\u6ce8\u518c\u8868<\/td>\n<td>Routing Registry<\/td>\n<td>\u5de5\u5177\u2192Server<\/td>\n<\/tr>\n<tr>\n<td>\u80fd\u529b\u534f\u5546<\/td>\n<td>Capability Negotiation<\/td>\n<td>schema \u586b\u53c2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>10.36 \u4e09\u5206\u949f\u56de\u987e<\/h4>\n<li>\u56db\u9636\u6bb5&#xff1a;\u521d\u59cb\u5316\u2192\u53d1\u73b0\u2192\u6ce8\u518c\u2192\u8c03\u7528\u3002<\/li>\n<li>\u6ce8\u518c\u8868&#xff1a;\u5de5\u5177\u540d\u2192Server&#043;\u4f1a\u8bdd\u3002<\/li>\n<li>\u63cf\u8ff0\u4e0e schema&#xff1a;Agent \u9009\u578b\u4e0e\u586b\u53c2\u7684\u4f9d\u636e\u3002<\/li>\n<li>\u6210\u8d25\u4e09\u8981\u7d20&#xff1a;\u53c2\u6570\u5bf9\u3001\u8def\u7531\u51c6\u3001Server \u7a33\u3002<\/li>\n<h4>10.37 \u7ed3\u8bed<\/h4>\n<p>\u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u662f Agent&#034;\u957f\u51fa\u53cc\u624b&#034;\u7684\u8fc7\u7a0b&#xff1a;\u534f\u8bae\u7ed9\u4e86\u624b&#xff0c;\u6d41\u7a0b\u8ba9\u624b\u542c\u8bdd\u3002\u8def\u7531\u6ce8\u518c\u8868\u662f\u795e\u7ecf\u4e2d\u67a2\u2014\u2014\u67e5\u8868\u5373\u8fbe\u3001\u5931\u8d25\u53ef\u6551\u3001\u8d8a\u6743\u88ab\u62e6\u3002\u4e0b\u4e00\u7bc7\u770b\u4e09\u53ea\u5178\u578b\u7684\u624b&#xff08;GitHub\/\u6570\u636e\u5e93\/\u6d4f\u89c8\u5668 Server&#xff09;\u957f\u4ec0\u4e48\u6837\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>27-\u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392<br \/>\n\u7b2c 1 \u7ae0 \u6587\u6863\u5b9a\u4f4d\u4e0e\u9605\u8bfb\u6307\u5f15<br \/>\n1.1 \u672c\u7bc7\u5728 55 \u7bc7\u4e2d\u7684\u4f4d\u7f6e<br \/>\n\u672c\u7cfb\u5217\u56f4\u7ed5\u300aAI Agent \u667a\u80fd\u4f53\u5206\u5c42\u67b6\u6784\u5168\u666f\u56fe\u6df1\u5ea6\u62c6\u89e3\u300b\u5c55\u5f00\u3002\u524d 26 \u7bc7\u5df2\u5b8c\u6210\u8ba4\u77e5\u5c42&#xff08;17\u201324&#xff09;\u4e0e\u8fde\u63a5\u534f\u8bae\u5c42\u5b9a\u4f4d\/\u534f\u8bae\u89c4\u8303&#xff08;25\u201326&#xff09;\u3002\u672c\u7bc7\u627f\u63a5\u6e90\u6587\u6863 6.4 \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b&#xff0c;\u56de\u7b54\u4e00\u4e2a\u627f\u4e0a\u542f\u4e0b\u7684\u5de5\u7a0b\u95ee\u9898&#xff1a;\u534f\u8bae\u89c4\u8303&#xff08;26 \u7bc7&#xff09;\u5df2\u7ecf\u5b9a\u4e49<\/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":[11973,11970,11971,11972,71],"topic":[],"class_list":["post-105554","post","type-post","status-publish","format-standard","hentry","category-server","tag-11973","tag-11970","tag-11971","tag-11972","tag-ai-agent"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AI Agent \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392 - \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\/105554.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AI Agent \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"27-\u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392 \u7b2c 1 \u7ae0 \u6587\u6863\u5b9a\u4f4d\u4e0e\u9605\u8bfb\u6307\u5f15 1.1 \u672c\u7bc7\u5728 55 \u7bc7\u4e2d\u7684\u4f4d\u7f6e \u672c\u7cfb\u5217\u56f4\u7ed5\u300aAI Agent \u667a\u80fd\u4f53\u5206\u5c42\u67b6\u6784\u5168\u666f\u56fe\u6df1\u5ea6\u62c6\u89e3\u300b\u5c55\u5f00\u3002\u524d 26 \u7bc7\u5df2\u5b8c\u6210\u8ba4\u77e5\u5c42&#xff08;17\u201324&#xff09;\u4e0e\u8fde\u63a5\u534f\u8bae\u5c42\u5b9a\u4f4d\/\u534f\u8bae\u89c4\u8303&#xff08;25\u201326&#xff09;\u3002\u672c\u7bc7\u627f\u63a5\u6e90\u6587\u6863 6.4 \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b&#xff0c;\u56de\u7b54\u4e00\u4e2a\u627f\u4e0a\u542f\u4e0b\u7684\u5de5\u7a0b\u95ee\u9898&#xff1a;\u534f\u8bae\u89c4\u8303&#xff08;26 \u7bc7&#xff09;\u5df2\u7ecf\u5b9a\u4e49\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/105554.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-15T08:17:20+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"109 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/105554.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/105554.html\",\"name\":\"AI Agent \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-15T08:17:20+00:00\",\"dateModified\":\"2026-09-15T08:17:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/105554.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/105554.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/105554.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI Agent \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392\"}]},{\"@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":"AI Agent \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392 - \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\/105554.html","og_locale":"zh_CN","og_type":"article","og_title":"AI Agent \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"27-\u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392 \u7b2c 1 \u7ae0 \u6587\u6863\u5b9a\u4f4d\u4e0e\u9605\u8bfb\u6307\u5f15 1.1 \u672c\u7bc7\u5728 55 \u7bc7\u4e2d\u7684\u4f4d\u7f6e \u672c\u7cfb\u5217\u56f4\u7ed5\u300aAI Agent \u667a\u80fd\u4f53\u5206\u5c42\u67b6\u6784\u5168\u666f\u56fe\u6df1\u5ea6\u62c6\u89e3\u300b\u5c55\u5f00\u3002\u524d 26 \u7bc7\u5df2\u5b8c\u6210\u8ba4\u77e5\u5c42&#xff08;17\u201324&#xff09;\u4e0e\u8fde\u63a5\u534f\u8bae\u5c42\u5b9a\u4f4d\/\u534f\u8bae\u89c4\u8303&#xff08;25\u201326&#xff09;\u3002\u672c\u7bc7\u627f\u63a5\u6e90\u6587\u6863 6.4 \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b&#xff0c;\u56de\u7b54\u4e00\u4e2a\u627f\u4e0a\u542f\u4e0b\u7684\u5de5\u7a0b\u95ee\u9898&#xff1a;\u534f\u8bae\u89c4\u8303&#xff08;26 \u7bc7&#xff09;\u5df2\u7ecf\u5b9a\u4e49","og_url":"https:\/\/www.wsisp.com\/helps\/105554.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-15T08:17:20+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"109 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/105554.html","url":"https:\/\/www.wsisp.com\/helps\/105554.html","name":"AI Agent \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-15T08:17:20+00:00","dateModified":"2026-09-15T08:17:20+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/105554.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/105554.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/105554.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"AI Agent \u5de5\u5177\u53d1\u73b0\u4e0e\u8c03\u7528\u6d41\u7a0b\u2014\u2014\u8def\u7531\u6ce8\u518c\u8868\u4e0e\u56db\u9636\u6bb5\u8c03\u7528\u7f16\u6392"}]},{"@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\/105554","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=105554"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/105554\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=105554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=105554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=105554"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=105554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}