{"id":43666,"date":"2025-06-13T22:45:58","date_gmt":"2025-06-13T14:45:58","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/43666.html"},"modified":"2025-06-13T22:45:58","modified_gmt":"2025-06-13T14:45:58","slug":"%e4%bc%81%e4%b8%9a%e5%be%ae%e4%bf%a1%e6%9c%ba%e5%99%a8%e4%ba%ba%e6%b6%88%e6%81%af%e6%9c%8d%e5%8a%a1%e5%99%a8%e3%80%90mcp%e5%b7%a5%e5%85%b7%e3%80%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/43666.html","title":{"rendered":"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u6d88\u606f\u670d\u52a1\u5668\u3010MCP\u5de5\u5177\u3011"},"content":{"rendered":"<p>\u4e00\u4e2a\u4f7f\u7528FastMCP\u901a\u8fc7\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u53d1\u9001\u6d88\u606f\u7684\u670d\u52a1\u5668&#xff0c;\u652f\u6301\u901a\u8fc7Webhook\u8fdb\u884c\u5f02\u6b65\u901a\u4fe1\u548c\u6d88\u606f\u8ffd\u8e2a\u3002<\/p>\n<h2 id=\"wecom-bot-mcp-\u670d\u52a1\u5668\">WeCom Bot MCP \u670d\u52a1\u5668<\/h2>\n<p>\u4e00\u4e2a\u7b26\u5408 Model Context Protocol (MCP) \u7684 WeCom&#xff08;\u4f01\u4e1a\u5fae\u4fe1&#xff09;\u673a\u5668\u4eba\u670d\u52a1\u5668\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<h3 id=\"\u529f\u80fd\">\u529f\u80fd<\/h3>\n<ul>\n<li>\u652f\u6301\u591a\u79cd\u6d88\u606f\u7c7b\u578b&#xff1a;\n<ul>\n<li>\u6587\u672c\u6d88\u606f<\/li>\n<li>Markdown \u6d88\u606f<\/li>\n<li>\u56fe\u7247\u6d88\u606f&#xff08;base64&#xff09;<\/li>\n<li>\u6587\u4ef6\u6d88\u606f<\/li>\n<\/ul>\n<\/li>\n<li>&#064;\u63d0\u53ca\u652f\u6301&#xff08;\u901a\u8fc7\u7528\u6237ID\u6216\u7535\u8bdd\u53f7\u7801&#xff09;<\/li>\n<li>\u6d88\u606f\u5386\u53f2\u8bb0\u5f55\u8ffd\u8e2a<\/li>\n<li>\u53ef\u914d\u7f6e\u7684\u65e5\u5fd7\u7cfb\u7edf<\/li>\n<li>\u5b8c\u6574\u7684\u7c7b\u578b\u6ce8\u89e3<\/li>\n<li>\u57fa\u4e8e Pydantic \u7684\u6570\u636e\u9a8c\u8bc1<\/li>\n<\/ul>\n<h3 id=\"\u8981\u6c42\">\u8981\u6c42<\/h3>\n<ul>\n<li>Python 3.10&#043;<\/li>\n<li>WeCom \u673a\u5668\u4eba\u7684 Webhook URL&#xff08;\u4ece WeCom \u7fa4\u7ec4\u8bbe\u7f6e\u4e2d\u83b7\u53d6&#xff09;<\/li>\n<\/ul>\n<h3 id=\"\u5b89\u88c5\">\u5b89\u88c5<\/h3>\n<p>\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b89\u88c5 WeCom Bot MCP \u670d\u52a1\u5668&#xff1a;<\/p>\n<h4 id=\"1-\u81ea\u52a8\u5316\u5b89\u88c5&#xff08;\u63a8\u8350&#xff09;\">1. \u81ea\u52a8\u5316\u5b89\u88c5&#xff08;\u63a8\u8350&#xff09;<\/h4>\n<h5 id=\"\u4f7f\u7528-smithery&#xff08;\u9002\u7528\u4e8e-claude-desktop&#xff09;&#xff1a;\">\u4f7f\u7528 Smithery&#xff08;\u9002\u7528\u4e8e Claude Desktop&#xff09;&#xff1a;<\/h5>\n<p>npx -y &#064;smithery\/cli install wecom-bot-mcp-server &#8211;client claude <\/p>\n<\/p>\n<h5 id=\"\u4f7f\u7528-vscode-\u548c-cline-\u6269\u5c55&#xff1a;\">\u4f7f\u7528 VSCode \u548c Cline \u6269\u5c55&#xff1a;<\/h5>\n<li>\u4ece VSCode \u5e02\u573a\u5b89\u88c5\u00a0Cline \u6269\u5c55<\/li>\n<li>\u6253\u5f00\u547d\u4ee4\u9762\u677f&#xff08;Ctrl&#043;Shift&#043;P \/ Cmd&#043;Shift&#043;P&#xff09;<\/li>\n<li>\u641c\u7d22 &#034;Cline: Install Package&#034;<\/li>\n<li>\u8f93\u5165 &#034;wecom-bot-mcp-server&#034; \u5e76\u6309 Enter \u952e<\/li>\n<h4 id=\"2-\u624b\u52a8\u5b89\u88c5\">2. \u624b\u52a8\u5b89\u88c5<\/h4>\n<h5 id=\"\u4ece-pypi-\u5b89\u88c5&#xff1a;\">\u4ece PyPI \u5b89\u88c5&#xff1a;<\/h5>\n<p>pip install wecom-bot-mcp-server <\/p>\n<\/p>\n<h5 id=\"\u624b\u52a8\u914d\u7f6e-mcp&#xff1a;\">\u624b\u52a8\u914d\u7f6e MCP&#xff1a;<\/h5>\n<p>\u521b\u5efa\u6216\u66f4\u65b0\u60a8\u7684 MCP \u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p>\/\/ For Windsurf: ~\/.windsurf\/config.json<br \/>\n{<br \/>\n  &#034;mcpServers&#034;: {<br \/>\n    &#034;wecom&#034;: {<br \/>\n      &#034;command&#034;: &#034;uvx&#034;,<br \/>\n      &#034;args&#034;: [<br \/>\n        &#034;wecom-bot-mcp-server&#034;<br \/>\n      ],<br \/>\n      &#034;env&#034;: {<br \/>\n        &#034;WECOM_WEBHOOK_URL&#034;: &#034;your-webhook-url&#034;<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<h3 id=\"\u914d\u7f6e\">\u914d\u7f6e<\/h3>\n<h4 id=\"\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\">\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/h4>\n<p># Windows PowerShell $env:WECOM_WEBHOOK_URL &#061; &#034;your-webhook-url&#034; # Optional configurations $env:MCP_LOG_LEVEL &#061; &#034;DEBUG&#034; # Log levels: DEBUG, INFO, WARNING, ERROR, CRITICAL $env:MCP_LOG_FILE &#061; &#034;path\/to\/custom\/log\/file.log&#034; # Custom log file path <\/p>\n<\/p>\n<h4 id=\"\u65e5\u5fd7\u7ba1\u7406\">\u65e5\u5fd7\u7ba1\u7406<\/h4>\n<p>\u65e5\u5fd7\u7cfb\u7edf\u4f7f\u7528\u00a0platformdirs.user_log_dir()\u00a0\u8fdb\u884c\u8de8\u5e73\u53f0\u65e5\u5fd7\u6587\u4ef6\u7ba1\u7406&#xff1a;<\/p>\n<ul>\n<li>Windows:\u00a0C:\\\\Users\\\\&lt;username&gt;\\\\AppData\\\\Local\\\\hal\\\\wecom-bot-mcp-server<\/li>\n<li>Linux:\u00a0~\/.local\/share\/hal\/wecom-bot-mcp-server<\/li>\n<li>macOS:\u00a0~\/Library\/Application Support\/hal\/wecom-bot-mcp-server<\/li>\n<\/ul>\n<p>\u65e5\u5fd7\u6587\u4ef6\u540d\u4e3a\u00a0mcp_wecom.log&#xff0c;\u5e76\u5b58\u50a8\u5728\u4e0a\u8ff0\u76ee\u5f55\u4e2d\u3002<\/p>\n<h3 id=\"\u4f7f\u7528\">\u4f7f\u7528<\/h3>\n<h4 id=\"\u542f\u52a8\u670d\u52a1\u5668\">\u542f\u52a8\u670d\u52a1\u5668<\/h4>\n<p>wecom-bot-mcp-server <\/p>\n<\/p>\n<h4 id=\"\u4f7f\u7528\u793a\u4f8b&#xff08;\u4f7f\u7528-mcp&#xff09;\">\u4f7f\u7528\u793a\u4f8b&#xff08;\u4f7f\u7528 MCP&#xff09;<\/h4>\n<p># Scenario 1: Send weather information to WeCom USER: &#034;How&#039;s the weather in Shenzhen today? Send it to WeCom&#034; ASSISTANT: &#034;I&#039;ll check Shenzhen&#039;s weather and send it to WeCom&#034; await mcp.send_message( content&#061;&#034;Shenzhen Weather:\\\\n- Temperature: 25\u00b0C\\\\n- Weather: Sunny\\\\n- Air Quality: Good&#034;, msg_type&#061;&#034;markdown&#034; ) # Scenario 2: Send meeting reminder and &#064;mention relevant people USER: &#034;Send a reminder for the 3 PM project review meeting, remind Zhang San and Li Si to attend&#034; ASSISTANT: &#034;I&#039;ll send the meeting reminder&#034; await mcp.send_message( content&#061;&#034;## Project Review Meeting Reminder\\\\n\\\\nTime: Today 3:00 PM\\\\nLocation: Meeting Room A\\\\n\\\\nPlease be on time!&#034;, msg_type&#061;&#034;markdown&#034;, mentioned_list&#061;[&#034;zhangsan&#034;, &#034;lisi&#034;] ) # Scenario 3: Send a file USER: &#034;Send this weekly report to the WeCom group&#034; ASSISTANT: &#034;I&#039;ll send the weekly report&#034; await mcp.send_message( content&#061;Path(&#034;weekly_report.docx&#034;), msg_type&#061;&#034;file&#034; ) <\/p>\n<\/p>\n<h4 id=\"\u76f4\u63a5\u4f7f\u7528-api\">\u76f4\u63a5\u4f7f\u7528 API<\/h4>\n<h5 id=\"\u53d1\u9001\u6d88\u606f\">\u53d1\u9001\u6d88\u606f<\/h5>\n<p>from wecom_bot_mcp_server import mcp # Send markdown message await mcp.send_message( content&#061;&#034;**Hello World!**&#034;, msg_type&#061;&#034;markdown&#034; ) # Send text message and mention users await mcp.send_message( content&#061;&#034;Hello &#064;user1 &#064;user2&#034;, msg_type&#061;&#034;text&#034;, mentioned_list&#061;[&#034;user1&#034;, &#034;user2&#034;] ) <\/p>\n<\/p>\n<h5 id=\"\u53d1\u9001\u6587\u4ef6\">\u53d1\u9001\u6587\u4ef6<\/h5>\n<p>from wecom_bot_mcp_server import send_wecom_file # Send file await send_wecom_file(&#034;\/path\/to\/file.txt&#034;) <\/p>\n<\/p>\n<h5 id=\"\u53d1\u9001\u56fe\u7247\">\u53d1\u9001\u56fe\u7247<\/h5>\n<p>from wecom_bot_mcp_server import send_wecom_image # Send local image await send_wecom_image(&#034;\/path\/to\/image.png&#034;) # Send URL image await send_wecom_image(&#034;https:\/\/example.com\/image.png&#034;) <\/p>\n<\/p>\n<h3 id=\"\u5f00\u53d1\">\u5f00\u53d1<\/h3>\n<h4 id=\"\u8bbe\u7f6e\u5f00\u53d1\u73af\u5883\">\u8bbe\u7f6e\u5f00\u53d1\u73af\u5883<\/h4>\n<li>\u514b\u9686\u4ed3\u5e93&#xff1a;<\/li>\n<p>git clone https:\/\/github.com\/loonghao\/wecom-bot-mcp-server.git cd wecom-bot-mcp-server <\/p>\n<\/p>\n<li>\u521b\u5efa\u865a\u62df\u73af\u5883\u5e76\u5b89\u88c5\u4f9d\u8d56\u9879&#xff1a;<\/li>\n<p># Using uv (recommended) pip install uv uv venv uv pip install -e &#034;.[dev]&#034; # Or using traditional method python -m venv venv source venv\/bin\/activate # On Windows: venv\\\\Scripts\\\\activate pip install -e &#034;.[dev]&#034; <\/p>\n<\/p>\n<h4 id=\"\u6d4b\u8bd5\">\u6d4b\u8bd5<\/h4>\n<p># Using uv (recommended) uvx nox -s pytest # Or using traditional method nox -s pytest <\/p>\n<\/p>\n<h4 id=\"\u4ee3\u7801\u98ce\u683c\">\u4ee3\u7801\u98ce\u683c<\/h4>\n<p># Check code uvx nox -s lint # Automatically fix code style issues uvx nox -s lint_fix <\/p>\n<\/p>\n<h4 id=\"\u6784\u5efa\u548c\u53d1\u5e03\">\u6784\u5efa\u548c\u53d1\u5e03<\/h4>\n<p># Build the package uv build # Build and publish to PyPI uv build &amp;&amp; twine upload dist\/* <\/p>\n<\/p>\n<h3 id=\"\u9879\u76ee\u7ed3\u6784\">\u9879\u76ee\u7ed3\u6784<\/h3>\n<p>wecom-bot-mcp-server\/<br \/>\n\u251c\u2500\u2500 src\/<br \/>\n\u2502   \u2514\u2500\u2500 wecom_bot_mcp_server\/<br \/>\n\u2502       \u251c\u2500\u2500 __init__.py<br \/>\n\u2502       \u251c\u2500\u2500 server.py<br \/>\n\u2502       \u251c\u2500\u2500 message.py<br \/>\n\u2502       \u251c\u2500\u2500 file.py<br \/>\n\u2502       \u251c\u2500\u2500 image.py<br \/>\n\u2502       \u251c\u2500\u2500 utils.py<br \/>\n\u2502       \u2514\u2500\u2500 errors.py<br \/>\n\u251c\u2500\u2500 tests\/<br \/>\n\u2502   \u251c\u2500\u2500 test_server.py<br \/>\n\u2502   \u251c\u2500\u2500 test_message.py<br \/>\n\u2502   \u251c\u2500\u2500 test_file.py<br \/>\n\u2502   \u2514\u2500\u2500 test_image.py<br \/>\n\u251c\u2500\u2500 docs\/<br \/>\n\u251c\u2500\u2500 pyproject.toml<br \/>\n\u251c\u2500\u2500 noxfile.py<br \/>\n\u2514\u2500\u2500 README.md<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb583\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf9\u6b21\u3002WeComBotMCP\u670d\u52a1\u5668\u662f\u4e00\u4e2a\u57fa\u4e8eFastMCP\u6846\u67b6\u7684\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u670d\u52a1\u5668\uff0c\u652f\u6301\u901a\u8fc7Webhook\u8fdb\u884c\u5f02\u6b65\u901a\u4fe1\u548c\u6d88\u606f\u8ffd\u8e2a\u3002\u8be5\u670d\u52a1\u5668\u5b9e\u73b0\u4e86ModelContextProtocol (MCP)\uff0c\u80fd\u591f\u53d1\u9001\u591a\u79cd\u6d88\u606f\u7c7b\u578b\uff0c\u5305\u62ec\u6587\u672c\u3001Markdown\u3001\u56fe\u7247\uff08base64\uff09\u3001\u6587\u4ef6\uff0c\u5e76\u652f\u6301@\u63d0\u53ca\u529f\u80fd\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u63d0\u4f9b\u4e86\u6d88\u606f\u5386\u53f2\u8bb0\u5f55\u8ffd\u8e2a\u3001\u53ef\u914d\u7f6e\u7684\u65e5\u5fd7\u7cfb\u7edf\u3001\u5b8c\u6574\u7684\u7c7b\u578b\u6ce8\u89e3\u548c\u57fa\u4e8ePydantic\u7684\u6570\u636e\u9a8c\u8bc1\u3002\u5b89\u88c5\u65b9\u5f0f\u5305\u62ec\u81ea\u52a8\u5316\u5b89\u88c5\uff08\u63a8\u8350\u4f7f\u7528Smithery\u6216VSCode\u7684Cline\u6269\u5c55\uff09\u548c\u624b\u52a8\u5b89\u88c5\uff08\u901a\u8fc7PyPI\uff09\u3002\u670d\u52a1\u5668\u652f\u6301Py_\u4f01\u4e1a\u5fae\u4fe1mcp<\/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":[1747,43,384],"topic":[],"class_list":["post-43666","post","type-post","status-publish","format-standard","hentry","category-server","tag-1747","tag-43","tag-384"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u6d88\u606f\u670d\u52a1\u5668\u3010MCP\u5de5\u5177\u3011 - \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\/43666.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u6d88\u606f\u670d\u52a1\u5668\u3010MCP\u5de5\u5177\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb583\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf9\u6b21\u3002WeComBotMCP\u670d\u52a1\u5668\u662f\u4e00\u4e2a\u57fa\u4e8eFastMCP\u6846\u67b6\u7684\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u670d\u52a1\u5668\uff0c\u652f\u6301\u901a\u8fc7Webhook\u8fdb\u884c\u5f02\u6b65\u901a\u4fe1\u548c\u6d88\u606f\u8ffd\u8e2a\u3002\u8be5\u670d\u52a1\u5668\u5b9e\u73b0\u4e86ModelContextProtocol (MCP)\uff0c\u80fd\u591f\u53d1\u9001\u591a\u79cd\u6d88\u606f\u7c7b\u578b\uff0c\u5305\u62ec\u6587\u672c\u3001Markdown\u3001\u56fe\u7247\uff08base64\uff09\u3001\u6587\u4ef6\uff0c\u5e76\u652f\u6301@\u63d0\u53ca\u529f\u80fd\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u63d0\u4f9b\u4e86\u6d88\u606f\u5386\u53f2\u8bb0\u5f55\u8ffd\u8e2a\u3001\u53ef\u914d\u7f6e\u7684\u65e5\u5fd7\u7cfb\u7edf\u3001\u5b8c\u6574\u7684\u7c7b\u578b\u6ce8\u89e3\u548c\u57fa\u4e8ePydantic\u7684\u6570\u636e\u9a8c\u8bc1\u3002\u5b89\u88c5\u65b9\u5f0f\u5305\u62ec\u81ea\u52a8\u5316\u5b89\u88c5\uff08\u63a8\u8350\u4f7f\u7528Smithery\u6216VSCode\u7684Cline\u6269\u5c55\uff09\u548c\u624b\u52a8\u5b89\u88c5\uff08\u901a\u8fc7PyPI\uff09\u3002\u670d\u52a1\u5668\u652f\u6301Py_\u4f01\u4e1a\u5fae\u4fe1mcp\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/43666.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-13T14:45:58+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\/43666.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/43666.html\",\"name\":\"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u6d88\u606f\u670d\u52a1\u5668\u3010MCP\u5de5\u5177\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-13T14:45:58+00:00\",\"dateModified\":\"2025-06-13T14:45:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/43666.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/43666.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/43666.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u6d88\u606f\u670d\u52a1\u5668\u3010MCP\u5de5\u5177\u3011\"}]},{\"@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":"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u6d88\u606f\u670d\u52a1\u5668\u3010MCP\u5de5\u5177\u3011 - \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\/43666.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u6d88\u606f\u670d\u52a1\u5668\u3010MCP\u5de5\u5177\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb583\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf9\u6b21\u3002WeComBotMCP\u670d\u52a1\u5668\u662f\u4e00\u4e2a\u57fa\u4e8eFastMCP\u6846\u67b6\u7684\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u670d\u52a1\u5668\uff0c\u652f\u6301\u901a\u8fc7Webhook\u8fdb\u884c\u5f02\u6b65\u901a\u4fe1\u548c\u6d88\u606f\u8ffd\u8e2a\u3002\u8be5\u670d\u52a1\u5668\u5b9e\u73b0\u4e86ModelContextProtocol (MCP)\uff0c\u80fd\u591f\u53d1\u9001\u591a\u79cd\u6d88\u606f\u7c7b\u578b\uff0c\u5305\u62ec\u6587\u672c\u3001Markdown\u3001\u56fe\u7247\uff08base64\uff09\u3001\u6587\u4ef6\uff0c\u5e76\u652f\u6301@\u63d0\u53ca\u529f\u80fd\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u63d0\u4f9b\u4e86\u6d88\u606f\u5386\u53f2\u8bb0\u5f55\u8ffd\u8e2a\u3001\u53ef\u914d\u7f6e\u7684\u65e5\u5fd7\u7cfb\u7edf\u3001\u5b8c\u6574\u7684\u7c7b\u578b\u6ce8\u89e3\u548c\u57fa\u4e8ePydantic\u7684\u6570\u636e\u9a8c\u8bc1\u3002\u5b89\u88c5\u65b9\u5f0f\u5305\u62ec\u81ea\u52a8\u5316\u5b89\u88c5\uff08\u63a8\u8350\u4f7f\u7528Smithery\u6216VSCode\u7684Cline\u6269\u5c55\uff09\u548c\u624b\u52a8\u5b89\u88c5\uff08\u901a\u8fc7PyPI\uff09\u3002\u670d\u52a1\u5668\u652f\u6301Py_\u4f01\u4e1a\u5fae\u4fe1mcp","og_url":"https:\/\/www.wsisp.com\/helps\/43666.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-13T14:45:58+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\/43666.html","url":"https:\/\/www.wsisp.com\/helps\/43666.html","name":"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u6d88\u606f\u670d\u52a1\u5668\u3010MCP\u5de5\u5177\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-13T14:45:58+00:00","dateModified":"2025-06-13T14:45:58+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/43666.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/43666.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/43666.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4f01\u4e1a\u5fae\u4fe1\u673a\u5668\u4eba\u6d88\u606f\u670d\u52a1\u5668\u3010MCP\u5de5\u5177\u3011"}]},{"@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\/43666","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=43666"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/43666\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=43666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=43666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=43666"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=43666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}