{"id":115815,"date":"2026-10-13T13:16:56","date_gmt":"2026-10-13T05:16:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/115815.html"},"modified":"2026-10-13T13:16:56","modified_gmt":"2026-10-13T05:16:56","slug":"mcporter-agent-skill-%e6%a8%a1%e5%bc%8f%ef%bc%9a%e4%b8%ba%e6%af%8f%e4%b8%aa-mcp-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%bc%96%e5%86%99%e8%bd%bb%e9%87%8f%e6%8a%80%e8%83%bd%ef%bc%8c%e9%81%bf%e5%85%8d%e9%80%9a","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/115815.html","title":{"rendered":"mcporter Agent Skill \u6a21\u5f0f\uff1a\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u7f16\u5199\u8f7b\u91cf\u6280\u80fd\uff0c\u907f\u514d\u901a\u7528\u6280\u80fd\u5e26\u6765\u7684\u4e0a\u4e0b\u6587\u81a8\u80c0"},"content":{"rendered":"<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011mcporter<\/h3>\n<p class=\"gcb-project-desc\">Call MCPs via TypeScript, masquerading as simple TypeScript API. Or package them as cli.<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/mc\/mcporter<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<p>\u672c\u6587\u4ecb\u7ecd mcporter \u5b98\u65b9\u63a8\u8350\u7684 Agent Skill Pattern&#xff08;Agent \u6280\u80fd\u6a21\u5f0f&#xff09;&#xff1a;\u4e0e\u5176\u7ed9 Agent \u914d\u4e00\u4e2a\u4ec0\u4e48\u90fd\u6559\u7684\u901a\u7528 mcporter \u6280\u80fd&#xff0c;\u4e0d\u5982\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u6216\u5de5\u4f5c\u6d41\u7f16\u5199\u4e00\u4e2a\u5c0f\u800c\u4e13\u7684\u6280\u80fd\u3002\u8bfb\u5b8c\u672c\u6587&#xff0c;\u4f60\u5c06\u638c\u63e1\u56db\u6b65\u5b9e\u6218\u6d41\u7a0b\u2014\u2014\u6dfb\u52a0\u670d\u52a1\u5668\u3001\u63a2\u67e5\u5de5\u5177\u9762\u3001\u7f16\u5199 skill\u3001\u751f\u6210\u4e13\u7528 CLI&#xff0c;\u5e76\u5b66\u4f1a\u7528 allowedTools\/blockedTools \u7cbe\u786e\u6536\u7a84 Agent \u53ef\u89c1\u4e0e\u53ef\u8c03\u7528\u7684\u5de5\u5177\u8303\u56f4\u3002<\/p>\n<h3>\u6838\u5fc3\u539f\u5219&#xff1a;\u5c0f\u6280\u80fd\u4f18\u4e8e\u5927\u800c\u5168\u7684\u901a\u7528\u6280\u80fd<\/h3>\n<p>mcporter \u5728 docs\/agent-skills.md \u4e2d\u7ed9\u51fa\u7684\u7b2c\u4e00\u539f\u5219\u975e\u5e38\u660e\u786e&#xff1a;\u4f18\u5148\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u6216\u5de5\u4f5c\u6d41\u7f16\u5199\u4e00\u4e2a\u72ec\u7acb\u7684\u6280\u80fd&#xff0c;\u800c\u4e0d\u662f\u7f16\u5199\u4e00\u4e2a\u901a\u7528\u7684 mcporter \u6280\u80fd\u3002<\/p>\n<p>\u4e00\u4e2a\u805a\u7126\u7684\u6280\u80fd\u4ef7\u503c\u5728\u4e8e&#xff1a;<\/p>\n<ul>\n<li>\u4fdd\u6301 Agent \u63d0\u793a\u8bcd&#xff08;prompt&#xff09;\u5c0f\u800c\u7cbe&#xff1a;\u6280\u80fd\u6587\u4ef6\u53ea\u9700\u8981\u63cf\u8ff0\u4e0e\u5f53\u524d\u4efb\u52a1\u76f8\u5173\u7684\u5c11\u6570\u5de5\u5177&#xff0c;\u4e0d\u4f1a\u628a\u65e0\u5173\u5185\u5bb9\u585e\u8fdb\u4e0a\u4e0b\u6587&#xff1b;<\/li>\n<li>\u76f4\u63a5\u70b9\u540d\u6709\u7528\u7684\u5de5\u5177&#xff1a;\u6280\u80fd\u6b63\u6587\u53ef\u4ee5\u660e\u786e\u5199\u51fa\u8981\u8c03\u7528\u54ea\u4e2a server.tool\u3001\u4f20\u4ec0\u4e48\u53c2\u6570&#xff0c;Agent \u4e0d\u9700\u8981\u81ea\u884c\u731c\u6d4b&#xff1b;<\/li>\n<li>\u907f\u514d\u52a0\u8f7d\u65e0\u5173\u670d\u52a1\u5668\u7684 schema&#xff1a;\u5982\u679c Agent \u5f53\u524d\u4efb\u52a1\u662f\u67e5\u6587\u6863&#xff0c;\u5c31\u4e0d\u5fc5\u628a\u7ebf\u6027\u9879\u76ee\u7ba1\u7406\u3001\u6d4f\u89c8\u5668\u8c03\u8bd5\u7b49\u5176\u4ed6\u670d\u52a1\u5668\u7684\u5de5\u5177 schema \u5168\u90e8\u8f7d\u5165\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u6b63\u662f mcporter \u4ece\u8bbe\u8ba1\u4e0a\u60f3\u89c4\u907f\u7684&#034;\u5927 schema \u4e0a\u4e0b\u6587\u95ee\u9898&#034;\u2014\u2014\u901a\u7528\u6280\u80fd\u88ab\u8feb\u6559 Agent \u5982\u4f55\u53d1\u73b0\u3001\u9009\u62e9\u5e76\u8c03\u7528\u6bcf\u4e00\u4e2a\u5df2\u914d\u7f6e\u7684\u670d\u52a1\u5668&#xff0c;\u7b49\u4e8e\u628a\u5927\u578b schema \u91cd\u65b0\u642c\u56de\u63d0\u793a\u8bcd\u91cc\u3002\u800c\u6309\u670d\u52a1\u5668\u62c6\u5206\u7684\u6280\u80fd&#xff0c;\u8ba9\u6280\u80fd\u4f5c\u8005\u80fd\u9488\u5bf9\u8be5\u670d\u52a1\u5668\u63cf\u8ff0&#034;\u5b89\u5168\u4e14\u6709\u7528&#034;\u7684\u5de5\u4f5c\u6d41&#xff0c;Agent \u53ea\u9700\u8981\u7167\u505a\u3002<\/p>\n<h3>\u63a8\u8350\u6d41\u7a0b&#xff1a;\u56db\u6b65\u628a\u4e00\u4e2a MCP \u670d\u52a1\u5668\u63a5\u5165 Agent<\/h3>\n<p>\u539f\u6587\u6863\u7ed9\u51fa\u7684\u63a8\u8350\u6d41\u7a0b\u5206\u4e3a\u56db\u6b65&#xff0c;\u4e0b\u9762\u7ed3\u5408\u4ed3\u5e93\u6e90\u7801\u9010\u4e00\u5bf9\u6bcf\u4e00\u6b65\u505a\u5c55\u5f00\u8bf4\u660e\u3002<\/p>\n<h4>\u7b2c 1 \u6b65&#xff1a;\u6dfb\u52a0\u6216\u5bfc\u5165 MCP \u670d\u52a1\u5668<\/h4>\n<p>npx mcporter config add docs https:\/\/mcp.context7.com\/mcp &#8211;scope home<\/p>\n<p>\u8fd9\u6761\u547d\u4ee4\u628a\u540d\u4e3a docs \u7684\u670d\u52a1\u5668\u5199\u5165 home \u7ea7\u914d\u7f6e\u3002\u4ece src\/cli\/config\/add.ts \u7684 resolveWriteTarget \u5b9e\u73b0\u53ef\u4ee5\u770b\u5230&#xff1a;<\/p>\n<ul>\n<li>&#8211;scope home \u5199\u5165 ~\/.mcporter\/mcporter.json&#xff08;\u6216\u8bbe\u7f6e XDG_CONFIG_HOME \u65f6\u7684 $XDG_CONFIG_HOME\/mcporter\/mcporter.json&#xff09;&#xff1b;<\/li>\n<li>&#8211;scope project \u5199\u5165\u5f53\u524d\u4ed3\u5e93\u7684 config\/mcporter.json&#xff1b;<\/li>\n<li>&#8211;persist &lt;path&gt; \u4f18\u5148\u7ea7\u6700\u9ad8&#xff0c;\u53ef\u5f3a\u5236\u5199\u5165\u81ea\u5b9a\u4e49\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p>\u628a\u670d\u52a1\u5668\u653e\u5230 home \u7ea7\u914d\u7f6e\u610f\u5473\u7740\u5b83\u8de8\u9879\u76ee\u53ef\u7528&#xff0c;\u8fd9\u7b26\u5408 Agent \u573a\u666f\u4e0b&#034;\u5168\u5c40\u5de5\u5177\u968f\u65f6\u5f85\u547d&#034;\u7684\u9700\u6c42\u3002\u82e5\u4f7f\u7528 &#8211;scope project \u6216\u7701\u7565 scope&#xff08;\u9ed8\u8ba4 project&#xff09;&#xff0c;\u5219\u670d\u52a1\u5668\u53ea\u5bf9\u5f53\u524d\u4ed3\u5e93\u53ef\u89c1&#xff0c;\u9002\u5408\u4e0e\u56e2\u961f\u5171\u4eab\u3002<\/p>\n<p>config add \u8fd8\u652f\u6301\u5b8c\u6574\u7684\u76ee\u6807\u4e0e\u4f20\u8f93\u9009\u9879&#xff1a;&#8211;transport http|sse|stdio\u3001&#8211;url\u3001&#8211;command\/&#8211;stdio\u3001&#8211;env KEY&#061;value\u3001&#8211;header KEY&#061;value\u3001&#8211;description\u3001OAuth \u76f8\u5173\u53c2\u6570\u7b49&#xff0c;\u8be6\u89c1 \u914d\u7f6e\u6307\u5357 \u4e0e add.ts \u7684\u53c2\u6570\u89e3\u6790\u903b\u8f91\u3002<\/p>\n<h4>\u7b2c 2 \u6b65&#xff1a;\u63a2\u67e5\u5de5\u5177\u9762<\/h4>\n<p>\u6dfb\u52a0\u5b8c\u6210\u540e&#xff0c;\u7528\u4e24\u6761\u547d\u4ee4\u4e86\u89e3\u8be5\u670d\u52a1\u5668\u5230\u5e95\u66b4\u9732\u4e86\u54ea\u4e9b\u5de5\u5177&#xff1a;<\/p>\n<p>npx mcporter list docs &#8211;brief<br \/>\nnpx mcporter list docs &#8211;schema<\/p>\n<ul>\n<li>&#8211;brief&#xff08;\u522b\u540d &#8211;signatures&#xff09;\u53ea\u6253\u5370\u7d27\u51d1\u7684 TypeScript \u98ce\u683c\u7b7e\u540d\u4e0e\u53ef\u9009\u53c2\u6570\u6458\u8981&#xff0c;\u4e0d\u5305\u542b\u5197\u957f\u7684\u6587\u6863\u5757&#xff1b;<\/li>\n<li>&#8211;schema \u8f93\u51fa\u539f\u59cb JSON Schema&#xff0c;\u4fbf\u4e8e\u7cbe\u786e\u638c\u63e1\u6bcf\u4e2a\u5de5\u5177\u7684\u53c2\u6570\u7ed3\u6784&#xff1b;<\/li>\n<li>\u6b64\u5916\u8fd8\u6709 &#8211;all-parameters \u53ef\u5c55\u5f00\u88ab\u9690\u85cf\u7684\u53ef\u9009\u53c2\u6570\u3002<\/li>\n<\/ul>\n<p>\u4ece src\/cli\/list-flags.ts \u53ef\u4ee5\u770b\u5230&#xff0c;&#8211;brief \u4e0e &#8211;json\u3001&#8211;schema\u3001&#8211;verbose\u3001&#8211;all-parameters \u4e92\u65a5&#xff0c;\u4f7f\u7528\u65f6\u4f1a\u76f4\u63a5\u62a5\u9519&#xff0c;\u907f\u514d\u8f93\u51fa\u683c\u5f0f\u51b2\u7a81\u3002\u5217\u8868\u8f93\u51fa\u7684\u7b7e\u540d\u6837\u5f0f\u4e0e\u53c2\u6570\u8bf4\u660e\u89c4\u5219\u8be6\u89c1 Call \u8bed\u6cd5\u53c2\u8003 \u7684 &#034;Reading the CLI Signatures&#034; \u4e00\u8282&#xff1a;\u5fc5\u9700\u53c2\u6570\u4e0d\u5e26 ?&#xff0c;\u53ef\u9009\u53c2\u6570\u5e26 ? \u5e76\u7ee7\u627f\u679a\u4e3e\u5b57\u9762\u91cf&#xff0c;\u8d85\u8fc7\u4e24\u4e2a\u53ef\u9009\u53c2\u6570\u65f6\u9ed8\u8ba4\u6298\u53e0\u4e3a \/\/ optional (8): &#8230; \u6458\u8981\u3002<\/p>\n<p>\u8fd9\u4e00\u6b65\u7684\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e&#xff1a;\u6280\u80fd\u4f5c\u8005\u9700\u8981\u57fa\u4e8e\u771f\u5b9e\u7684\u5de5\u5177\u7b7e\u540d\u6765\u7f16\u5199\u6280\u80fd&#xff0c;\u800c\u4e0d\u662f\u51ed\u7a7a\u731c\u6d4b\u53c2\u6570\u540d\u2014\u2014\u7b7e\u540d\u91cc\u770b\u5230 resolve-library-id(query: string, libraryName: string)&#xff0c;\u6280\u80fd\u91cc\u5c31\u7167\u7740\u5199\u3002<\/p>\n<h4>\u7b2c 3 \u6b65&#xff1a;\u7f16\u5199\u53ea\u8c03\u7528\u76f8\u5173\u5de5\u5177\u7684\u6280\u80fd<\/h4>\n<p>\u63a2\u67e5\u5b8c\u6bd5\u540e&#xff0c;\u7f16\u5199\u4e00\u4e2a\u805a\u7126\u7684\u6280\u80fd\u6587\u4ef6\u3002\u539f\u6587\u6863\u7ed9\u51fa\u4e86\u53ef\u76f4\u63a5\u5957\u7528\u7684\u6a21\u677f&#xff1a;<\/p>\n<p>&#8212;<br \/>\nname: docs-mcp<br \/>\ndescription: Fetch package and framework docs through the configured docs MCP server.<br \/>\n&#8212;<\/p>\n<p># Docs MCP<\/p>\n<p>Use &#096;npx mcporter call docs.resolve-library-id query&#061;&lt;task&gt; libraryName&#061;&lt;name&gt;&#096;<br \/>\nto resolve a package, then call &#096;npx mcporter call docs.query-docs &#8230;&#096; with<br \/>\nthe resolved ID and docs query.<\/p>\n<p>\u6280\u80fd\u6b63\u6587\u901a\u8fc7 mcporter call \u8c03\u7528\u5de5\u5177\u3002call \u652f\u6301\u591a\u79cd\u53c2\u6570\u98ce\u683c&#xff08;\u8be6\u89c1 Tool Calling Cheatsheet \u4e0e Call \u8bed\u6cd5\u53c2\u8003&#xff09;&#xff0c;\u6280\u80fd\u4f5c\u8005\u53ef\u4ee5\u9009\u62e9\u5bf9 Agent \u6700\u53cb\u597d\u7684\u4e00\u79cd&#xff1a;<\/p>\n<table>\n<tr>\u98ce\u683c\u793a\u4f8b<\/tr>\n<tbody>\n<tr>\n<td>key&#061;value \u952e\u503c\u5bf9<\/td>\n<td>mcporter call docs.resolve-library-id query&#061;&#034;React hooks docs&#034; libraryName&#061;react<\/td>\n<\/tr>\n<tr>\n<td>\u51fd\u6570\u8c03\u7528\u5f0f&#xff08;\u8d34\u8fd1 list \u6253\u5370\u7684\u7b7e\u540d&#xff09;<\/td>\n<td>mcporter call &#039;docs.resolve-library-id(query: &#034;React hooks docs&#034;, libraryName: &#034;react&#034;)&#039;<\/td>\n<\/tr>\n<tr>\n<td>\u65e0\u6807\u7b7e\u4f4d\u7f6e\u53c2\u6570<\/td>\n<td>mcporter call &#039;docs.resolve-library-id(&#034;React hooks docs&#034;, &#034;react&#034;)&#039;<\/td>\n<\/tr>\n<tr>\n<td>JSON \u8f7d\u8377<\/td>\n<td>mcporter call docs.resolve-library-id &#8211;args &#039;{&#034;query&#034;:&#034;&#8230;&#034;,&#034;libraryName&#034;:&#034;react&#034;}&#039;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6240\u6709\u98ce\u683c\u8d70\u540c\u4e00\u6761\u6821\u9a8c\u7ba1\u7ebf&#xff08;schema \u9a71\u52a8\u7684\u7c7b\u578b\u5f3a\u5236\u3001\u5fc5\u586b\u68c0\u67e5\u3001\u679a\u4e3e\u63d0\u793a&#xff09;&#xff0c;\u56e0\u6b64\u65e0\u8bba Agent \u4e60\u60ef\u54ea\u79cd\u5199\u6cd5&#xff0c;\u884c\u4e3a\u90fd\u4e00\u81f4\u3002\u6ce8\u610f\u5b57\u7b26\u4e32\u542b\u7a7a\u683c\u6216\u9017\u53f7\u65f6&#xff0c;\u6574\u4e2a\u8868\u8fbe\u5f0f\u8981\u7528\u5355\u5f15\u53f7\u5305\u88f9&#xff0c;\u907f\u514d shell \u62c6\u8bcd\u3002<\/p>\n<p>\u6280\u80fd\u6587\u4ef6\u7684\u5177\u4f53\u5b58\u653e\u4f4d\u7f6e\u4e0e\u52a0\u8f7d\u673a\u5236\u53d6\u51b3\u4e8e Agent \u8fd0\u884c\u65f6&#xff08;Claude Code \u7684 skills \u76ee\u5f55\u3001OpenCode \u7684 rules \u7b49&#xff09;&#xff0c;mcporter \u53ea\u8d1f\u8d23\u63d0\u4f9b CLI \u4e0e\u914d\u7f6e\u652f\u6491&#xff1b;\u6280\u80fd\u6b63\u6587\u91cc\u628a&#034;\u8be5\u670d\u52a1\u5668\u4e0a\u54ea\u4e9b\u5de5\u4f5c\u6d41\u662f\u5b89\u5168\u6709\u7528\u7684&#034;\u5199\u6e05\u695a&#xff0c;\u6b63\u662f\u6280\u80fd\u4f5c\u8005\u7684\u6838\u5fc3\u804c\u8d23\u3002<\/p>\n<h4>\u7b2c 4 \u6b65&#xff1a;\u91cd\u590d\u6216\u53ef\u5171\u4eab\u7684\u5de5\u4f5c\u6d41&#xff0c;\u751f\u6210\u4e13\u7528 CLI<\/h4>\n<p>\u5982\u679c\u67d0\u4e2a\u5de5\u4f5c\u6d41\u4f1a\u88ab\u53cd\u590d\u4f7f\u7528\u6216\u9700\u8981\u5206\u4eab\u7ed9\u56e2\u961f&#xff0c;\u5c31\u4e0d\u8981\u8ba9 Agent \u6bcf\u6b21\u90fd\u62fc\u5199\u539f\u59cb\u7684 mcporter call \u8bed\u6cd5&#xff0c;\u800c\u662f\u751f\u6210\u4e00\u4e2a\u4e13\u7528 CLI&#xff1a;<\/p>\n<p>npx mcporter generate-cli docs &#8211;bundle dist\/docs-mcp.js<\/p>\n<p>generate-cli \u4f1a\u628a\u8be5\u670d\u52a1\u5668\u7684\u5de5\u5177 schema \u8f6c\u6210\u5b50\u547d\u4ee4&#xff0c;schema \u5b57\u6bb5\u53d8\u6210\u4f4d\u7f6e\u53c2\u6570\u6216 flags&#xff0c;\u751f\u6210\u4e00\u4e2a\u72ec\u7acb\u53ef\u5206\u53d1\u3001\u53ef\u6267\u884c\u3001\u81ea\u63cf\u8ff0\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002\u5e38\u7528\u9009\u9879&#xff08;\u8be6\u89c1 CLI Generator \u6587\u6863&#xff09;&#xff1a;<\/p>\n<ul>\n<li>&#8211;name &lt;name&gt;&#xff1a;\u663e\u5f0f\u6307\u5b9a CLI \u540d&#xff08;\u7701\u7565\u65f6\u4ece\u547d\u4ee4 URL \u63a8\u65ad&#xff0c;\u5982 https:\/\/mcp.context7.com\/mcp \u63a8\u65ad\u4e3a context7&#xff09;&#xff1b;<\/li>\n<li>&#8211;bundle &lt;path&gt;&#xff1a;\u6253\u5305\u4e3a\u5355\u4e2a JS \u6587\u4ef6&#xff08;\u9ed8\u8ba4\u8f93\u51fa &lt;server&gt;.ts&#xff0c;\u52a0 &#8211;minify \u53ef\u538b\u7f29&#xff09;&#xff1b;<\/li>\n<li>&#8211;compile [path]&#xff1a;\u8fdb\u4e00\u6b65\u7528 bun build &#8211;compile \u751f\u6210\u539f\u751f\u53ef\u6267\u884c\u6587\u4ef6&#xff08;\u9700 Bun&#xff09;&#xff1b;<\/li>\n<li>&#8211;runtime node|bun&#xff1a;\u9009\u62e9\u751f\u6210\u8fd0\u884c\u65f6&#xff08;\u7701\u7565\u65f6\u4f18\u5148 Bun&#xff0c;\u5176\u6b21 Node&#xff09;&#xff1b;<\/li>\n<li>&#8211;include-tools a,b \/ &#8211;exclude-tools a,b&#xff1a;\u6536\u7a84 CLI \u66b4\u9732\u7684\u5de5\u5177\u5b50\u96c6&#xff08;\u8be6\u89c1\u4e0b\u6587&#xff09;&#xff1b;<\/li>\n<li>&#8211;timeout &lt;ms&gt;&#xff1a;\u9ed8\u8ba4\u5de5\u5177\u8c03\u7528\u8d85\u65f6\u4e3a 30 \u79d2&#xff0c;\u53ef\u8986\u76d6\u3002<\/li>\n<\/ul>\n<p>\u751f\u6210\u51fa\u7684 CLI \u5d4c\u5165\u4e86\u89e3\u6790\u540e\u7684\u670d\u52a1\u5668\u5b9a\u4e49\u5feb\u7167&#xff0c;\u8fd0\u884c\u65f6\u4e0d\u4f9d\u8d56\u5916\u90e8 &#8211;config\/&#8211;server \u8986\u76d6&#xff1b;\u5de5\u5177\u53c2\u6570\u6821\u9a8c\u3001\u5e03\u5c14\u503c\u3001\u679a\u4e3e\u3001\u9ed8\u8ba4\u503c\u5747\u5728\u8c03\u7528\u524d\u5b8c\u6210&#xff0c;\u9519\u8bef\u4f1a\u5148\u4e8e\u7f51\u7edc\u8bf7\u6c42\u66b4\u9732\u3002<\/p>\n<h3>\u7528 allowedTools \/ blockedTools \u6536\u7a84 Agent \u7684\u5de5\u5177\u9762<\/h3>\n<p>\u5f53\u670d\u52a1\u5668\u66b4\u9732\u4e86\u4e0d\u5e94\u8be5\u5c55\u793a\u7ed9 Agent\u7684\u5de5\u5177&#xff08;\u5982\u7ba1\u7406\u7c7b\u3001\u8c03\u8bd5\u7c7b\u3001\u9ad8\u5371\u5199\u64cd\u4f5c&#xff09;\u65f6&#xff0c;\u5728 config\/mcporter.json&#xff08;\u6216 home \u7ea7\u914d\u7f6e&#xff09;\u4e2d\u4f7f\u7528\u5de5\u5177\u8fc7\u6ee4&#xff1a;<\/p>\n<p>{<br \/>\n  &#034;mcpServers&#034;: {<br \/>\n    &#034;docs&#034;: {<br \/>\n      &#034;url&#034;: &#034;https:\/\/mcp.context7.com\/mcp&#034;,<br \/>\n      &#034;allowedTools&#034;: [&#034;resolve-library-id&#034;, &#034;query-docs&#034;]<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p>\u6216\u4f7f\u7528\u9ed1\u540d\u5355\u5f62\u5f0f&#xff1a;<\/p>\n<p>{<br \/>\n  &#034;mcpServers&#034;: {<br \/>\n    &#034;docs&#034;: {<br \/>\n      &#034;url&#034;: &#034;https:\/\/mcp.context7.com\/mcp&#034;,<br \/>\n      &#034;blockedTools&#034;: [&#034;admin-reset&#034;, &#034;debug_tool&#034;]<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p>\u4e24\u6761\u89c4\u5219\u7684\u5173\u952e\u8bed\u4e49&#xff08;\u89c1 src\/tool-filters.ts \u4e0e \u914d\u7f6e\u6307\u5357 \u7684 Schema Reference \u8868\u683c&#xff09;&#xff1a;<\/p>\n<ul>\n<li>allowedTools&#xff08;\u522b\u540d allowed_tools&#xff09;\u662f\u7cbe\u786e\u540d\u79f0\u767d\u540d\u5355&#xff1a;\u53ea\u6709\u5217\u51fa\u7684\u5de5\u5177\u4f1a\u51fa\u73b0\u5728 mcporter list \u4e2d\u4e14\u53ef\u88ab\u8c03\u7528&#xff1b;\u7a7a\u6570\u7ec4\u8868\u793a\u963b\u65ad\u6240\u6709\u5de5\u5177&#xff1b;<\/li>\n<li>blockedTools&#xff08;\u522b\u540d blocked_tools&#xff09;\u662f\u7cbe\u786e\u540d\u79f0\u9ed1\u540d\u5355&#xff1a;\u5217\u51fa\u7684\u5de5\u5177\u4ece list \u4e2d\u9690\u85cf&#xff0c;\u5e76\u88ab call \u62d2\u7edd&#xff1b;<\/li>\n<li>\u4e24\u8005\u4e0d\u80fd\u540c\u65f6\u51fa\u73b0\u3002\u914d\u7f6e\u5c42\u5728 src\/config-schema.ts \u7528 superRefine \u76f4\u63a5\u62d2\u7edd&#034;\u540c\u65f6\u6307\u5b9a\u4e24\u8005&#034;\u7684\u914d\u7f6e&#xff1b;\u7a0b\u5e8f\u5316\u5b9a\u4e49\u5728 createRuntime \u65f6\u540c\u6837\u4f1a\u88ab validateToolFilters \u62e6\u622a\u3002<\/li>\n<\/ul>\n<p>\u8fc7\u6ee4\u7684\u5b9e\u9645\u751f\u6548\u4f4d\u7f6e\u5728\u8fd0\u884c\u65f6\u5c42&#xff08;src\/runtime.ts&#xff09;&#xff1a;<\/p>\n<ul>\n<li>listTools \u8fd4\u56de\u524d\u8c03\u7528 filterTools&#xff0c;\u767d\u540d\u5355\/\u9ed1\u540d\u5355\u76f4\u63a5\u88c1\u526a\u5de5\u5177\u5217\u8868\u2014\u2014Agent \u7684 schema \u63a2\u67e5\u6839\u672c\u770b\u4e0d\u5230\u88ab\u8fc7\u6ee4\u7684\u5de5\u5177&#xff1b;<\/li>\n<li>callTool \u5728\u53d1\u8d77\u8fde\u63a5\u4e4b\u524d\u5c31\u8c03\u7528 isToolAllowed \u6821\u9a8c&#xff0c;\u88ab\u8fc7\u6ee4\u7684\u5de5\u5177\u629b\u51fa Tool &#039;X&#039; is not accessible on server &#039;Y&#039; (blocked by configuration)&#xff0c;\u4e14\u4e0d\u4f1a\u5efa\u7acb\u4efb\u4f55\u7f51\u7edc\u8fde\u63a5\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u5728\u5b89\u5168\u4e0a\u5f88\u6709\u610f\u4e49&#xff1a;\u963b\u65ad\u53d1\u751f\u5728\u8fde\u63a5\u5efa\u7acb\u4e4b\u524d&#xff0c;\u88ab\u7981\u7528\u7684\u5de5\u5177\u8fde&#034;\u89e6\u53d1\u670d\u52a1\u5668\u7aef\u526f\u4f5c\u7528&#034;\u7684\u673a\u4f1a\u90fd\u6ca1\u6709\u3002\u6d4b\u8bd5 tests\/tool-filters.test.ts \u5b8c\u6574\u8986\u76d6\u4e86\u8fd9\u4e9b\u884c\u4e3a&#xff1a;allowlist \u88c1\u526a listTools \u7ed3\u679c\u3001\u7a7a allowlist \u8fd4\u56de\u7a7a\u5217\u8868\u3001blocklist \u5728\u8fde\u63a5\u524d\u62d2\u7edd callTool&#xff08;\u65ad\u8a00 connect \u4e0e callTool \u5747\u672a\u88ab\u8c03\u7528&#xff09;\u3001camelCase\/snake_case \u5b57\u6bb5\u89c4\u8303\u5316\u3001\u4e92\u65a5\u6821\u9a8c\u3002<\/p>\n<h3>\u8865\u5145\u8fb9\u754c&#xff1a;generate-cli \u7684\u5de5\u5177\u6536\u7a84 \u2260 \u52a8\u6001\u6388\u6743<\/h3>\n<p>generate-cli \u7684 &#8211;include-tools \/ &#8211;exclude-tools \u4e0e\u914d\u7f6e\u5c42\u7684 allowedTools\/blockedTools \u7528\u9014\u7c7b\u4f3c\u4f46\u5c42\u6b21\u4e0d\u540c&#xff1a;<\/p>\n<ul>\n<li>allowedTools\/blockedTools \u4f5c\u7528\u4e8e\u8fd0\u884c\u671f\u7684 list \u4e0e call&#xff0c;\u662f Agent \u4e0e\u811a\u672c\u6bcf\u6b21\u8bbf\u95ee\u670d\u52a1\u5668\u65f6\u7684\u5f3a\u5236\u8fc7\u6ee4&#xff1b;<\/li>\n<li>&#8211;include-tools\/&#8211;exclude-tools \u4f5c\u7528\u4e8e\u751f\u6210\u671f&#xff0c;\u9759\u6001\u88c1\u526a\u751f\u6210 CLI \u66b4\u9732\u7684\u5b50\u547d\u4ee4&#xff08;&#8211;include-tools \u4f20\u7a7a\u6216\u4e0e &#8211;exclude-tools \u540c\u65f6\u4f7f\u7528\u4f1a\u5728\u751f\u6210\u65f6\u76f4\u63a5\u62a5\u9519&#xff0c;\u89c1 src\/cli\/generate\/tool-selection.ts \u4e0e\u96c6\u6210\u6d4b\u8bd5 tests\/cli-generate-cli.integration.test.ts&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u9700\u8981\u7279\u522b\u6ce8\u610f\u7684\u662f&#xff1a;\u9759\u6001\u5de5\u5177\u6e05\u5355\u4e0d\u662f\u52a8\u6001\u6388\u6743\u3002\u751f\u6210\u51fa\u7684 CLI \u53ef\u4ee5\u8131\u79bb\u539f\u59cb\u914d\u7f6e\u5b83\u7684 MCP \u5ba2\u6237\u7aef\u72ec\u7acb\u8fd0\u884c&#xff0c;\u56e0\u6b64\u4e0d\u4f1a\u81ea\u52a8\u7ee7\u627f\u8be5\u5ba2\u6237\u7aef\u7684\u5ba1\u6279\u63d0\u793a\u3001\u5de5\u5177\u8c03\u7528\u7b56\u7565\u6216\u5ba1\u8ba1\u8f68\u8ff9\u3002\u5bf9\u9700\u8981\u9010\u8c03\u7528\u7b56\u7565\u7ba1\u63a7\u7684\u90e8\u7f72&#xff0c;\u5e94\u5c06\u751f\u6210\u547d\u4ee4\u5305\u88f9\u5728\u5916\u90e8\u7b56\u7565\u7f51\u5173\u4e4b\u540e\u2014\u2014\u7f51\u5173\u8d1f\u8d23\u89c4\u8303\u5316\u64cd\u4f5c\u3001\u8bc4\u4f30\u5f53\u524d\u7b56\u7565\u3001\u8bf7\u6c42\u5ba1\u6279\u3001\u6267\u884c\u6216\u62e6\u622a\u8c03\u7528&#xff0c;\u5e76\u6301\u4e45\u5316\u8131\u654f\u540e\u7684\u51b3\u7b56\u4e0e\u7ed3\u679c\u8bb0\u5f55&#xff08;CLI Generator \u6587\u6863 \u7ed9\u51fa\u4e86\u5b8c\u6574\u7684\u5305\u88c5\u5668\u4f2a\u4ee3\u7801&#xff09;\u3002\u76f4\u63a5\u6267\u884c\u751f\u6210\u7269\u4f1a\u7ed5\u8fc7\u8fd9\u5c42\u7b56\u7565\u8fb9\u754c\u3002<\/p>\n<h3>\u843d\u5730\u5efa\u8bae<\/h3>\n<ul>\n<li>\u4e00\u4e2a\u670d\u52a1\u5668\u4e00\u4e2a\u6280\u80fd&#xff1a;\u6280\u80fd\u540d\u76f4\u63a5\u91c7\u7528\u670d\u52a1\u5668\u540d&#xff08;\u5982 docs-mcp&#xff09;&#xff0c;\u63cf\u8ff0\u91cc\u5199\u660e\u7528\u9014&#xff0c;\u6b63\u6587\u53ea\u6559\u4e0e\u8be5\u670d\u52a1\u5668\u76f8\u5173\u7684\u5de5\u5177\u4e0e\u53c2\u6570&#xff1b;<\/li>\n<li>\u5148 list &#8211;brief \u540e\u5199\u6280\u80fd&#xff1a;\u4ee5\u771f\u5b9e\u7b7e\u540d\u4e3a\u51c6&#xff0c;\u907f\u514d\u5199\u51fa\u4e0d\u5b58\u5728\u7684\u53c2\u6570\u540d&#xff1b;<\/li>\n<li>\u7528 allowedTools \u6536\u7a84\u66b4\u9732\u9762&#xff1a;\u51e1\u662f Agent \u4e0d\u8be5\u78b0\u7684\u7ba1\u7406\/\u8c03\u8bd5\/\u9ad8\u5371\u5de5\u5177&#xff0c;\u4e00\u5f8b\u5728\u914d\u7f6e\u4e2d\u8fc7\u6ee4\u6389&#xff1b;<\/li>\n<li>\u5de5\u4f5c\u6d41\u6210\u719f\u540e\u5347\u7ea7\u4e3a CLI&#xff1a;\u9700\u8981\u53cd\u590d\u6267\u884c\u6216\u8de8\u73af\u5883\u5206\u4eab\u65f6&#xff0c;\u7528 generate-cli &#8211;bundle \u751f\u6210\u72ec\u7acb\u4ea7\u7269&#xff0c;Agent \u53ea\u9700\u8981\u8c03\u7528\u4e00\u4e2a\u547d\u4ee4\u800c\u975e\u8bb0\u5fc6\u4e00\u6574\u5957 mcporter call \u8bed\u6cd5&#xff1b;<\/li>\n<li>\u654f\u611f\u4e0e\u5b89\u5168&#xff1a;\u914d\u7f6e\u6587\u4ef6\u652f\u6301 ${VAR} \u73af\u5883\u53d8\u91cf\u5360\u4f4d\u7b26&#xff0c;\u4e0d\u8981\u628a\u5bc6\u94a5\u76f4\u63a5\u5199\u8fdb config\/mcporter.json&#xff1b;\u9700\u8981\u52a8\u6001\u7b56\u7565\u65f6\u5728\u751f\u6210 CLI \u5916\u52a0\u5305\u88c5\u7f51\u5173\u3002<\/li>\n<\/ul>\n<p>  <img loading=\"lazy\" decoding=\"async\" class=\"gcb-icon-like\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261013051655-6acdbec758f72.svg\" alt=\"\" width=\"16\" height=\"16\" \/> <span class=\"gcb-like-text\">\u8d5e<\/span>  <\/p>\n<p>   <span class=\"gcb-share-text\">\u5206\u4eab<\/span>  <\/p>\n<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011mcporter<\/h3>\n<p class=\"gcb-project-desc\">Call MCPs via TypeScript, masquerading as simple TypeScript API. Or package them as cli.<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/mc\/mcporter<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<h4 class=\"gcb-related-title\">\u76f8\u5173\u63a8\u8350<\/h4>\n<ul class=\"gcb-related-list\">\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">OpenClaw mcporter \u6280\u80fd&#xff1a;\u7528 mcporter CLI \u53d1\u73b0\u3001\u9274\u6743\u3001\u8c03\u7528\u5e76\u751f\u6210\u5916\u90e8 MCP \u670d\u52a1\u5668<\/h5>\n<p class=\"gcb-related-item-desc\">OpenClaw mcporter \u6280\u80fd&#xff1a;\u7528 mcporter CLI \u53d1\u73b0\u3001\u9274\u6743\u3001\u8c03\u7528\u5e76\u751f\u6210\u5916\u90e8 MCP \u670d\u52a1\u5668 \u672c\u7bc7\u4ee5 OpenClaw \u5185\u7f6e\u6280\u80fd\u6587\u4ef6 sk<\/p>\n<p>     <span class=\"gcb-tag\">AI \u5e94\u7528<\/span><br \/>\n     <span class=\"gcb-tag\">AI Agent<\/span><br \/>\n     <span class=\"gcb-tag\">\u4ea4\u4e92\u52a9\u624b<\/span><br \/>\n     <span class=\"gcb-tag\">\u540e\u7aef<\/span><br \/>\n     <span class=\"gcb-tag\">\u5373\u65f6\u901a\u8baf<\/span><br \/>\n     <span class=\"gcb-tag\">\u7f51\u5173<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">Skill Authoring Guide \u6df1\u5ea6\u89e3\u8bfb&#xff1a;\u4e3a Stagewise \u7f16\u7801 Agent \u7f16\u5199\u9ad8\u8d28\u91cf\u6280\u80fd<\/h5>\n<p class=\"gcb-related-item-desc\">Skill Authoring Guide \u6df1\u5ea6\u89e3\u8bfb&#xff1a;\u4e3a Stagewise \u7f16\u7801 Agent \u7f16\u5199\u9ad8\u8d28\u91cf\u6280\u80fd \u672c\u6307\u5357\u56f4\u7ed5\u5f00\u6e90\u4ed3\u5e93 Stagewise \u5185\u7f6e\u6280\u80fd<\/p>\n<p>     <span class=\"gcb-tag\">\u4eba\u5de5\u667a\u80fd<\/span><br \/>\n     <span class=\"gcb-tag\">AI Agent<\/span><br \/>\n     <span class=\"gcb-tag\">\u4ee3\u7801\u667a\u80fd\u4f53<\/span><br \/>\n     <span class=\"gcb-tag\">\u5f00\u53d1\u5de5\u5177<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\"> min-sized-rust\u4e2d\u7684\u5b57\u7b26\u4e32\u5904\u7406&#xff1a;\u907f\u514dfmt\u6a21\u5757\u5e26\u6765\u7684\u4e8c\u8fdb\u5236\u81a8\u80c0<\/h5>\n<p class=\"gcb-related-item-desc\">min sized rust\u4e2d\u7684\u5b57\u7b26\u4e32\u5904\u7406&#xff1a;\u907f\u514dfmt\u6a21\u5757\u5e26\u6765\u7684\u4e8c\u8fdb\u5236\u81a8\u80c0 \u4f60\u662f\u5426\u5728\u5f00\u53d1Rust\u5e94\u7528\u65f6\u9047\u5230\u8fc7\u4e8c\u8fdb\u5236\u4f53\u79ef\u8fc7\u5927\u7684\u95ee\u9898&#xff1f;\u7279\u522b\u662f\u5f53\u4f7f\u7528\u4e86 println<\/p>\n<p>     <span class=\"gcb-tag\">\u793a\u4f8b\u5de5\u7a0b<\/span>\n      <\/li>\n<\/ul>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0a\u4e00\u7bc7&#xff1a;<\/span><br \/>\n   Cogito v2\u9884\u89c8\u7248&#xff1a;109B MoE\u5f00\u542fAI\u6df7\u5408\u63a8\u7406\u65b0\u7eaa\u5143 <\/p>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0b\u4e00\u7bc7&#xff1a;<\/span><br \/>\n  Socket.IO Client C&#043;&#043;&#xff1a;\u73b0\u4ee3C&#043;&#043;11\u5b9e\u65f6\u901a\u4fe1\u5ba2\u6237\u7aef\u5b8c\u5168\u6307\u5357 <\/p>\n<p>\u521b\u4f5c\u58f0\u660e\uff1a\u672c\u6587\u90e8\u5206\u5185\u5bb9\u7531AI\u8f85\u52a9\u751f\u6210\uff08AIGC\uff09\uff0c\u4ec5\u4f9b\u53c2\u8003<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011mcporter Call MCPs via TypeScript, masquerading as simple TypeScript API. Or package them as cli. \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/mc\/mcporter \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d  \u672c\u6587\u4ecb\u7ecd mcporter \u5b98\u65b9\u63a8\u8350\u7684 Agent Skill Pattern&#xff08;Agent \u6280\u80fd\u6a21\u5f0f&#xff09;&amp;#<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-115815","post","type-post","status-publish","format-standard","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>mcporter Agent Skill \u6a21\u5f0f\uff1a\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u7f16\u5199\u8f7b\u91cf\u6280\u80fd\uff0c\u907f\u514d\u901a\u7528\u6280\u80fd\u5e26\u6765\u7684\u4e0a\u4e0b\u6587\u81a8\u80c0 - \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\/115815.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"mcporter Agent Skill \u6a21\u5f0f\uff1a\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u7f16\u5199\u8f7b\u91cf\u6280\u80fd\uff0c\u907f\u514d\u901a\u7528\u6280\u80fd\u5e26\u6765\u7684\u4e0a\u4e0b\u6587\u81a8\u80c0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011mcporter Call MCPs via TypeScript, masquerading as simple TypeScript API. Or package them as cli. \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/mc\/mcporter \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u672c\u6587\u4ecb\u7ecd mcporter \u5b98\u65b9\u63a8\u8350\u7684 Agent Skill Pattern&#xff08;Agent \u6280\u80fd\u6a21\u5f0f&#xff09;&amp;#\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/115815.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-13T05:16:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261013051655-6acdbec758f72.svg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115815.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/115815.html\",\"name\":\"mcporter Agent Skill \u6a21\u5f0f\uff1a\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u7f16\u5199\u8f7b\u91cf\u6280\u80fd\uff0c\u907f\u514d\u901a\u7528\u6280\u80fd\u5e26\u6765\u7684\u4e0a\u4e0b\u6587\u81a8\u80c0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-13T05:16:56+00:00\",\"dateModified\":\"2026-10-13T05:16:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/115815.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/115815.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115815.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"mcporter Agent Skill \u6a21\u5f0f\uff1a\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u7f16\u5199\u8f7b\u91cf\u6280\u80fd\uff0c\u907f\u514d\u901a\u7528\u6280\u80fd\u5e26\u6765\u7684\u4e0a\u4e0b\u6587\u81a8\u80c0\"}]},{\"@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":"mcporter Agent Skill \u6a21\u5f0f\uff1a\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u7f16\u5199\u8f7b\u91cf\u6280\u80fd\uff0c\u907f\u514d\u901a\u7528\u6280\u80fd\u5e26\u6765\u7684\u4e0a\u4e0b\u6587\u81a8\u80c0 - \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\/115815.html","og_locale":"zh_CN","og_type":"article","og_title":"mcporter Agent Skill \u6a21\u5f0f\uff1a\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u7f16\u5199\u8f7b\u91cf\u6280\u80fd\uff0c\u907f\u514d\u901a\u7528\u6280\u80fd\u5e26\u6765\u7684\u4e0a\u4e0b\u6587\u81a8\u80c0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011mcporter Call MCPs via TypeScript, masquerading as simple TypeScript API. Or package them as cli. \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/mc\/mcporter \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u672c\u6587\u4ecb\u7ecd mcporter \u5b98\u65b9\u63a8\u8350\u7684 Agent Skill Pattern&#xff08;Agent \u6280\u80fd\u6a21\u5f0f&#xff09;&amp;#","og_url":"https:\/\/www.wsisp.com\/helps\/115815.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-13T05:16:56+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261013051655-6acdbec758f72.svg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/115815.html","url":"https:\/\/www.wsisp.com\/helps\/115815.html","name":"mcporter Agent Skill \u6a21\u5f0f\uff1a\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u7f16\u5199\u8f7b\u91cf\u6280\u80fd\uff0c\u907f\u514d\u901a\u7528\u6280\u80fd\u5e26\u6765\u7684\u4e0a\u4e0b\u6587\u81a8\u80c0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-13T05:16:56+00:00","dateModified":"2026-10-13T05:16:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/115815.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/115815.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/115815.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"mcporter Agent Skill \u6a21\u5f0f\uff1a\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u7f16\u5199\u8f7b\u91cf\u6280\u80fd\uff0c\u907f\u514d\u901a\u7528\u6280\u80fd\u5e26\u6765\u7684\u4e0a\u4e0b\u6587\u81a8\u80c0"}]},{"@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\/115815","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=115815"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115815\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=115815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=115815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=115815"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=115815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}