{"id":81911,"date":"2026-07-25T05:03:03","date_gmt":"2026-07-24T21:03:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/81911.html"},"modified":"2026-07-25T05:03:03","modified_gmt":"2026-07-24T21:03:03","slug":"%e8%93%9d%e6%b9%96-mcp-%e5%86%85%e7%bd%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%89%93%e9%80%9a%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/81911.html","title":{"rendered":"\u84dd\u6e56 MCP \u5185\u7f51\u670d\u52a1\u5668\u6253\u901a\u65b9\u6848"},"content":{"rendered":"<h2>1. \u76ee\u6807\u548c\u524d\u63d0<\/h2>\n<p>\u76ee\u6807&#xff1a;\u628a lanhu-mcp \u4ece\u516c\u7f51 Git \u90e8\u7f72\u5230\u5185\u7f51\u670d\u52a1\u5668&#xff0c;\u5e76\u8ba9 Claude\/Codex \u901a\u8fc7\u5185\u7f51\u5730\u5740\u7a33\u5b9a\u8c03\u7528\u3002\u57fa\u4e8e lanhu.md \u53ef\u786e\u8ba4\u7684\u5173\u952e\u524d\u63d0&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u670d\u52a1\u8fdb\u7a0b\u662f lanhu_mcp_server.py&#xff0c;\u9ed8\u8ba4\u76d1\u542c 0.0.0.0:8000<\/p>\n<\/li>\n<li>\n<p>\u5ba2\u6237\u7aef\u901a\u8fc7 HTTP MCP \u63a5\u5165&#xff1a;http:\/\/&lt;host&gt;:8000\/mcp?role&#061;&#8230;&amp;name&#061;&#8230;<\/p>\n<\/li>\n<li>\n<p>\u4f9d\u8d56\u84dd\u6e56 LANHU_COOKIE<\/p>\n<\/li>\n<li>\n<p>\u670d\u52a1\u8fd0\u884c\u76ee\u5f55\u9700\u8981\u53ef\u5199 data\/messages<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>2. \u6253\u901a\u5168\u94fe\u8def&#xff08;\u5fc5\u987b\u540c\u65f6\u6ee1\u8db3&#xff09;<\/h3>\n<p>\u8981\u771f\u6b63\u201c\u6253\u901a\u201d&#xff0c;\u9700\u8981 4 \u6761\u94fe\u8def\u90fd\u901a&#xff1a;<\/p>\n<li>\n<p>\u4ee3\u7801\u94fe\u8def&#xff1a;GitHub -&gt; \u5185\u7f51 Git<\/p>\n<\/li>\n<li>\n<p>\u90e8\u7f72\u94fe\u8def&#xff1a;\u5185\u7f51 Git -&gt; \u5185\u7f51\u670d\u52a1\u5668\u8fd0\u884c<\/p>\n<\/li>\n<li>\n<p>\u8bbf\u95ee\u94fe\u8def&#xff1a;Claude\/Codex \u6240\u5728\u673a\u5668 -&gt; \u5185\u7f51 MCP \u670d\u52a1<\/p>\n<\/li>\n<li>\n<p>\u51fa\u7f51\u94fe\u8def&#xff1a;MCP \u670d\u52a1 -&gt; lanhuapp.com&#xff08;\u84dd\u6e56&#xff09;<\/p>\n<\/li>\n<p>\u4efb\u4f55\u4e00\u6761\u4e0d\u901a&#xff0c;\u90fd\u4f1a\u8868\u73b0\u4e3a\u201c\u5df2\u90e8\u7f72\u4f46\u4e0d\u53ef\u7528\u201d\u3002<\/p>\n<hr \/>\n<h3>3. \u65b9\u6848\u4e00\u89c8&#xff08;\u63a8\u8350&#xff09;<\/h3>\n<ul>\n<li>\n<p>\u4ee3\u7801&#xff1a;\u5728\u5185\u7f51 GitLab\/Gitea \u5efa\u955c\u50cf\u4ed3\u5e93&#xff08;mirror&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u8fd0\u884c&#xff1a;\u5185\u7f51 Linux \u670d\u52a1\u5668\u4f7f\u7528 venv &#043; systemd \u5e38\u9a7b<\/p>\n<\/li>\n<li>\n<p>\u5165\u53e3&#xff1a;Nginx \u53cd\u5411\u4ee3\u7406\u7edf\u4e00\u66b4\u9732 https:\/\/lanhu-mcp.&lt;corp&gt;\/mcp<\/p>\n<\/li>\n<li>\n<p>\u9274\u6743&#xff1a;\u7f51\u5173\u5c42\u52a0\u5185\u7f51\u767d\u540d\u5355 &#043; BasicAuth\/Token&#xff08;\u81f3\u5c11\u4e8c\u9009\u4e00&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u79d8\u94a5&#xff1a;LANHU_COOKIE \u4ec5\u843d\u670d\u52a1\u5668 .env&#xff0c;\u6743\u9650 600<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>4. \u5b9e\u65bd\u6b65\u9aa4<\/h3>\n<h3>4.1 \u628a Git \u4ed3\u5e93\u8fc1\u5230\u5185\u7f51<\/h3>\n<p>\u5728\u53ef\u8bbf\u95ee GitHub \u7684\u8df3\u677f\u673a\u6267\u884c\u4e00\u6b21\u955c\u50cf\u63a8\u9001&#xff1a;<\/p>\n<p>git clone &#8211;mirror https:\/\/github.com\/dsphper\/lanhu-mcp.git<br \/>\ncd lanhu-mcp.git<br \/>\ngit remote set-url &#8211;push origin git&#064;&lt;\u5185\u7f51Git\u57df\u540d&gt;:mcp\/lanhu-mcp.git<br \/>\ngit push &#8211;mirror<\/p>\n<p>\u540e\u7eed\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7528 CI \u5b9a\u65f6\u540c\u6b65&#xff08;\u4f8b\u5982\u6bcf\u665a\u4e00\u6b21&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u751f\u4ea7\u73af\u5883\u56fa\u5b9a tag\/commit&#xff0c;\u4e0d\u76f4\u63a5\u8ddf main<\/p>\n<\/li>\n<\/ul>\n<h3>4.2 \u670d\u52a1\u5668\u90e8\u7f72&#xff08;\u5185\u7f51&#xff09;<\/h3>\n<p>export APP_DIR&#061;\/opt\/lanhu-mcp<br \/>\nsudo mkdir -p $APP_DIR<br \/>\nsudo chown -R $USER:$USER $APP_DIR<\/p>\n<p>git clone git&#064;&lt;\u5185\u7f51Git\u57df\u540d&gt;:mcp\/lanhu-mcp.git $APP_DIR<br \/>\ncd $APP_DIR<br \/>\ncp .env.example .env<\/p>\n<p>\u5199\u5165 .env&#xff1a;<\/p>\n<p>LANHU_COOKIE&#061;&#034;\u4ece\u84dd\u6e56\u6d4f\u89c8\u5668\u6293\u5230\u7684\u5b8c\u6574Cookie&#034;SERVER_PORT&#061;8000<\/p>\n<p>\u5b89\u88c5\u4f9d\u8d56&#xff08;\u5efa\u8bae\u8d70\u5185\u7f51\u6e90&#xff09;&#xff1a;<\/p>\n<p>python3 -m venv venv<br \/>\nsource venv\/bin\/activate<br \/>\npython -m pip install -U pip setuptools<br \/>\npip install -r requirements.txt<br \/>\npython -m playwright install chromium<\/p>\n<p>\u51c6\u5907\u8fd0\u884c\u76ee\u5f55&#xff08;\u907f\u514d PermissionError&#xff09;&#xff1a;<\/p>\n<p>mkdir -p \/opt\/lanhu-mcp-runtime\/data\/messages<\/p>\n<h3>4.3 \u7528 systemd \u6258\u7ba1<\/h3>\n<p>\/etc\/systemd\/system\/lanhu-mcp.service&#xff1a;<\/p>\n<p>[Unit]<br \/>\nDescription&#061;Lanhu MCP Service<br \/>\nAfter&#061;network.target<\/p>\n<p>[Service]<br \/>\nType&#061;simple<br \/>\nUser&#061;&lt;\u8fd0\u884c\u7528\u6237&gt;<br \/>\nWorkingDirectory&#061;\/opt\/lanhu-mcp-runtime<br \/>\nEnvironmentFile&#061;\/opt\/lanhu-mcp\/.env<br \/>\nExecStart&#061;\/opt\/lanhu-mcp\/venv\/bin\/python \/opt\/lanhu-mcp\/lanhu_mcp_server.py<br \/>\nRestart&#061;always<br \/>\nRestartSec&#061;5<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<p>\u542f\u52a8&#xff1a;<\/p>\n<p>sudo systemctl daemon-reload<br \/>\nsudo systemctl enable &#8211;now lanhu-mcp<br \/>\nsudo systemctl status lanhu-mcp<br \/>\njournalctl -u lanhu-mcp -f<\/p>\n<p>\u65e5\u5fd7\u51fa\u73b0 Uvicorn running on http:\/\/0.0.0.0:8000 \u5373\u670d\u52a1\u542f\u52a8\u6210\u529f\u3002<\/p>\n<h3>4.4 \u5165\u53e3\u7f51\u5173&#xff08;Nginx&#xff09;<\/h3>\n<p>\u63a8\u8350\u7edf\u4e00\u66b4\u9732 HTTPS \u57df\u540d&#xff0c;\u907f\u514d\u5ba2\u6237\u7aef\u76f4\u8fde 8000 \u7aef\u53e3\u3002<\/p>\n<p>server {<br \/>\n    listen 443 ssl;<br \/>\n    server_name lanhu-mcp.&lt;corp&gt;;<\/p>\n<p>    # \u5efa\u8bae\u8865\u5145\u4f01\u4e1a\u8bc1\u4e66\u914d\u7f6e<\/p>\n<p>    location \/mcp {<br \/>\n        proxy_pass http:\/\/127.0.0.1:8000\/mcp;<br \/>\n        proxy_http_version 1.1;<br \/>\n        proxy_set_header Host $host;<br \/>\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n        proxy_set_header X-Forwarded-Proto $scheme;<\/p>\n<p>        # \u53ef\u9009&#xff1a;BasicAuth<br \/>\n        # auth_basic &#034;lanhu-mcp&#034;;<br \/>\n        # auth_basic_user_file \/etc\/nginx\/.htpasswd_lanhu_mcp;<br \/>\n    }<br \/>\n}<\/p>\n<h3>4.5 \u5ba2\u6237\u7aef\u63a5\u5165&#xff08;Claude\/Codex&#xff09;<\/h3>\n<p>\u628a\u672c\u5730 localhost:8000 \u6539\u6210\u5185\u7f51\u57df\u540d&#xff1a;<\/p>\n<p># Claude<br \/>\nclaude mcp remove lanhu &gt;\/dev\/null 2&gt;&amp;1 || true<br \/>\nclaude mcp add &#8211;transport http lanhu &#034;https:\/\/lanhu-mcp.&lt;corp&gt;\/mcp?role&#061;\u6d4b\u8bd5&amp;name&#061;&lt;\u4f60\u7684\u540d\u5b57&gt;&#034;<\/p>\n<p># Codex<br \/>\ncodex mcp remove lanhu &gt;\/dev\/null 2&gt;&amp;1 || true<br \/>\ncodex mcp add lanhu &#8211;url &#034;https:\/\/lanhu-mcp.&lt;corp&gt;\/mcp?role&#061;\u6d4b\u8bd5&amp;name&#061;&lt;\u4f60\u7684\u540d\u5b57&gt;&#034;<\/p>\n<hr \/>\n<h3>5. \u7f51\u7edc\u4e0e\u5b89\u5168\u6700\u5c0f\u68c0\u67e5\u6e05\u5355<\/h3>\n<ul>\n<li>\n<p>\u5ba2\u6237\u7aef\u673a\u5668\u53ef\u8bbf\u95ee https:\/\/lanhu-mcp.&lt;corp&gt;\/mcp<\/p>\n<\/li>\n<li>\n<p>\u670d\u52a1\u5668\u53ef\u8bbf\u95ee\u84dd\u6e56\u57df\u540d&#xff08;\u81f3\u5c11 lanhuapp.com \u76f8\u5173\u63a5\u53e3&#xff09;<\/p>\n<\/li>\n<li>\n<p>.env \u6743\u9650\u4e3a 600&#xff0c;\u76ee\u5f55\u6743\u9650\u4e0d\u66b4\u9732\u7ed9\u5176\u4ed6\u7528\u6237<\/p>\n<\/li>\n<li>\n<p>\u4e0d\u4f7f\u7528 sudo \u542f\u52a8\u670d\u52a1&#xff08;\u907f\u514d data\/messages \u5f52\u5c5e\u5f02\u5e38&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u751f\u4ea7\u56fa\u5b9a\u7248\u672c&#xff08;tag\/commit&#xff09;&#xff0c;\u5347\u7ea7\u8d70\u7070\u5ea6<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h3>6. \u5e38\u89c1\u4e0d\u901a\u70b9\u4e0e\u5904\u7406<\/h3>\n<table>\n<tr><\/tr>\n<tbody>\n<tr>\n<td>\n<p>\u73b0\u8c61<\/p>\n<\/td>\n<td>\n<p>\u6839\u56e0<\/p>\n<\/td>\n<td>\n<p>\u5904\u7406<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5ba2\u6237\u7aef\u80fd\u914d\u4e0a\u4f46\u8c03\u7528\u5931\u8d25<\/p>\n<\/td>\n<td>\n<p>\u53ea\u6253\u901a\u4e86\u5185\u7f51\u5165\u53e3&#xff0c;\u670d\u52a1\u5668\u65e0\u6cd5\u8bbf\u95ee\u84dd\u6e56<\/p>\n<\/td>\n<td>\n<p>\u653e\u901a\u670d\u52a1\u5668\u5230\u84dd\u6e56\u7684\u51fa\u7f51\u7b56\u7565\u6216\u914d\u7f6e\u4f01\u4e1a\u4ee3\u7406<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>PermissionError: data\/messages\/&#8230;json<\/p>\n<\/td>\n<td>\n<p>\u8fd0\u884c\u76ee\u5f55\u4e0d\u53ef\u5199&#xff0c;\u6216\u5386\u53f2 sudo \u6c61\u67d3<\/p>\n<\/td>\n<td>\n<p>\u56fa\u5b9a<\/p>\n<p>WorkingDirectory<\/p>\n<p>&#xff0c;\u4fee\u590d\u76ee\u5f55\u5f52\u5c5e\u540e\u91cd\u542f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>bind 0.0.0.0:8000 operation not permitted<\/p>\n<\/td>\n<td>\n<p>\u7aef\u53e3\/\u5b89\u5168\u7b56\u7565\u9650\u5236<\/p>\n<\/td>\n<td>\n<p>\u6539\u7528\u975e\u53d7\u9650\u7aef\u53e3&#xff0c;\u6216\u901a\u8fc7 Nginx \u53cd\u4ee3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Python\/\u4f9d\u8d56\u51b2\u7a81<\/p>\n<\/td>\n<td>\n<p>\u57fa\u7840\u73af\u5883\u7248\u672c\u4e0d\u4e00\u81f4<\/p>\n<\/td>\n<td>\n<p>\u56fa\u5b9a Python 3.11&#xff0c;\u91cd\u5efa venv<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Playwright \u5b89\u88c5\u5931\u8d25<\/p>\n<\/td>\n<td>\n<p>\u5185\u7f51\u65e0\u6cd5\u62c9\u6d4f\u89c8\u5668\u4f9d\u8d56<\/p>\n<\/td>\n<td>\n<p>\u914d\u7f6e\u5185\u7f51\u955c\u50cf\/\u4ee3\u7406&#xff0c;\u6216\u79bb\u7ebf\u5206\u53d1 Playwright \u6d4f\u89c8\u5668\u5305<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>7. \u9a8c\u6536\u547d\u4ee4&#xff08;\u4e0a\u7ebf\u524d&#xff09;<\/h3>\n<p># \u670d\u52a1\u5668\u4fa7<br \/>\nsystemctl status lanhu-mcp &#8211;no-pager<br \/>\ncurl -I https:\/\/lanhu-mcp.&lt;corp&gt;\/mcp<\/p>\n<p># \u5ba2\u6237\u7aef\u4fa7<br \/>\nclaude mcp list<br \/>\ncodex mcp list<\/p>\n<p>\u518d\u7528\u4e00\u4e2a\u771f\u5b9e\u84dd\u6e56\u94fe\u63a5\u8dd1\u4e00\u6b21 lanhu_get_pages \/ lanhu_get_ai_analyze_page_result&#xff0c;\u6210\u529f\u5373\u4ee3\u8868\u94fe\u8def\u95ed\u73af\u5b8c\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u76ee\u6807\u548c\u524d\u63d0\u76ee\u6807&#xff1a;\u628a lanhu-mcp \u4ece\u516c\u7f51 Git \u90e8\u7f72\u5230\u5185\u7f51\u670d\u52a1\u5668&#xff0c;\u5e76\u8ba9 Claude\/Codex \u901a\u8fc7\u5185\u7f51\u5730\u5740\u7a33\u5b9a\u8c03\u7528\u3002\u57fa\u4e8e lanhu.md \u53ef\u786e\u8ba4\u7684\u5173\u952e\u524d\u63d0&#xff1a;\u670d\u52a1\u8fdb\u7a0b\u662f lanhu_mcp_server.py&#xff0c;\u9ed8\u8ba4\u76d1\u542c 0.0.0.0:8000\u5ba2\u6237\u7aef\u901a\u8fc7 HTTP MCP \u63a5\u5165&#xff1a;http:\/\/:8000\/mcp?role&#8230;&amp;name&#8230;\u4f9d\u8d56\u84dd\u6e56 LANHU_COOKIE\u670d<\/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":[6760,43,44],"topic":[],"class_list":["post-81911","post","type-post","status-publish","format-standard","hentry","category-server","tag-6760","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u84dd\u6e56 MCP \u5185\u7f51\u670d\u52a1\u5668\u6253\u901a\u65b9\u6848 - \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\/81911.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u84dd\u6e56 MCP \u5185\u7f51\u670d\u52a1\u5668\u6253\u901a\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. \u76ee\u6807\u548c\u524d\u63d0\u76ee\u6807&#xff1a;\u628a lanhu-mcp \u4ece\u516c\u7f51 Git \u90e8\u7f72\u5230\u5185\u7f51\u670d\u52a1\u5668&#xff0c;\u5e76\u8ba9 Claude\/Codex \u901a\u8fc7\u5185\u7f51\u5730\u5740\u7a33\u5b9a\u8c03\u7528\u3002\u57fa\u4e8e lanhu.md \u53ef\u786e\u8ba4\u7684\u5173\u952e\u524d\u63d0&#xff1a;\u670d\u52a1\u8fdb\u7a0b\u662f lanhu_mcp_server.py&#xff0c;\u9ed8\u8ba4\u76d1\u542c 0.0.0.0:8000\u5ba2\u6237\u7aef\u901a\u8fc7 HTTP MCP \u63a5\u5165&#xff1a;http:\/\/:8000\/mcp?role...&amp;name...\u4f9d\u8d56\u84dd\u6e56 LANHU_COOKIE\u670d\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/81911.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-24T21:03:03+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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/81911.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/81911.html\",\"name\":\"\u84dd\u6e56 MCP \u5185\u7f51\u670d\u52a1\u5668\u6253\u901a\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-24T21:03:03+00:00\",\"dateModified\":\"2026-07-24T21:03:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/81911.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/81911.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/81911.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u84dd\u6e56 MCP \u5185\u7f51\u670d\u52a1\u5668\u6253\u901a\u65b9\u6848\"}]},{\"@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":"\u84dd\u6e56 MCP \u5185\u7f51\u670d\u52a1\u5668\u6253\u901a\u65b9\u6848 - \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\/81911.html","og_locale":"zh_CN","og_type":"article","og_title":"\u84dd\u6e56 MCP \u5185\u7f51\u670d\u52a1\u5668\u6253\u901a\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. \u76ee\u6807\u548c\u524d\u63d0\u76ee\u6807&#xff1a;\u628a lanhu-mcp \u4ece\u516c\u7f51 Git \u90e8\u7f72\u5230\u5185\u7f51\u670d\u52a1\u5668&#xff0c;\u5e76\u8ba9 Claude\/Codex \u901a\u8fc7\u5185\u7f51\u5730\u5740\u7a33\u5b9a\u8c03\u7528\u3002\u57fa\u4e8e lanhu.md \u53ef\u786e\u8ba4\u7684\u5173\u952e\u524d\u63d0&#xff1a;\u670d\u52a1\u8fdb\u7a0b\u662f lanhu_mcp_server.py&#xff0c;\u9ed8\u8ba4\u76d1\u542c 0.0.0.0:8000\u5ba2\u6237\u7aef\u901a\u8fc7 HTTP MCP \u63a5\u5165&#xff1a;http:\/\/:8000\/mcp?role...&amp;name...\u4f9d\u8d56\u84dd\u6e56 LANHU_COOKIE\u670d","og_url":"https:\/\/www.wsisp.com\/helps\/81911.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-24T21:03:03+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/81911.html","url":"https:\/\/www.wsisp.com\/helps\/81911.html","name":"\u84dd\u6e56 MCP \u5185\u7f51\u670d\u52a1\u5668\u6253\u901a\u65b9\u6848 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-24T21:03:03+00:00","dateModified":"2026-07-24T21:03:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/81911.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/81911.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/81911.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u84dd\u6e56 MCP \u5185\u7f51\u670d\u52a1\u5668\u6253\u901a\u65b9\u6848"}]},{"@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\/81911","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=81911"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/81911\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=81911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=81911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=81911"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=81911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}