{"id":39764,"date":"2025-03-31T17:00:00","date_gmt":"2025-03-31T09:00:00","guid":{"rendered":"https:\/\/17aitech.com\/?p=39764"},"modified":"2025-03-31T18:19:42","modified_gmt":"2025-03-31T10:19:42","slug":"%e3%80%90%e5%ad%a6%e4%b9%a0%e6%80%bb%e7%bb%93%e3%80%91mcp%e5%8d%8f%e8%ae%ae%e7%ae%80%e8%bf%b0%e5%8f%8amcp%e6%9c%8d%e5%8a%a1sse%e5%8d%8f%e8%ae%ae%e7%9a%84%e5%ae%9e%e6%88%98","status":"publish","type":"post","link":"https:\/\/17aitech.com\/?p=39764","title":{"rendered":"\u3010\u5b66\u4e60\u603b\u7ed3\u3011MCP\u534f\u8bae\u4e4bMCP-server(sse\u65b9\u5f0f)\u5b9e\u8df5"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_78 ez-toc-wrap-left-text counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u6587\u7ae0\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/17aitech.com\/?p=39764\/#%E8%83%8C%E6%99%AF\" >\u80cc\u666f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/17aitech.com\/?p=39764\/#%E5%9B%9E%E9%A1%BE%E9%97%AE%E9%A2%98\" >\u56de\u987e\u95ee\u9898<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/17aitech.com\/?p=39764\/#%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\" >\u89e3\u51b3\u65b9\u6848<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/17aitech.com\/?p=39764\/#MCP-server%E6%94%B9%E9%80%A0%E5%89%8D%E7%9A%84%E5%AE%9E%E7%8E%B0\" >MCP-server\u6539\u9020\u524d\u7684\u5b9e\u73b0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/17aitech.com\/?p=39764\/#MCP-server%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90\" >MCP-server\u6e90\u7801\u5206\u6790<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/17aitech.com\/?p=39764\/#MCP-server%E6%94%B9%E9%80%A0%E5%90%8E%E7%9A%84%E5%AE%9E%E7%8E%B0\" >MCP-server\u6539\u9020\u540e\u7684\u5b9e\u73b0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/17aitech.com\/?p=39764\/#%E5%AE%A2%E6%88%B7%E7%AB%AF%E4%B8%AD%E4%BD%BF%E7%94%A8\" >\u5ba2\u6237\u7aef\u4e2d\u4f7f\u7528<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/17aitech.com\/?p=39764\/#1_%E5%9C%A8cherry-studio%E4%B8%AD%E9%9B%86%E6%88%90%E4%BD%BF%E7%94%A8\" >1. \u5728cherry-studio\u4e2d\u96c6\u6210\u4f7f\u7528<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/17aitech.com\/?p=39764\/#2_%E5%9C%A8cursor%E4%B8%AD%E9%9B%86%E6%88%90%E4%BD%BF%E7%94%A8\" >2. \u5728cursor\u4e2d\u96c6\u6210\u4f7f\u7528<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/17aitech.com\/?p=39764\/#3_%E5%9C%A8cline%E4%B8%AD%E9%9B%86%E6%88%90%E4%BD%BF%E7%94%A8\" >3. \u5728cline\u4e2d\u96c6\u6210\u4f7f\u7528<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/17aitech.com\/?p=39764\/#%E6%80%BB%E7%BB%93\" >\u603b\u7ed3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/17aitech.com\/?p=39764\/#%E5%85%B6%E4%BB%96%E6%96%87%E7%AB%A0\" >\u5176\u4ed6\u6587\u7ae0<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E8%83%8C%E6%99%AF\"><\/span>\u80cc\u666f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728\u300aMCP\u534f\u8bae\u7b80\u8ff0\u4e4bMCP-server\u5b9e\u6218\u300b\u4e2d\uff0c\u6211\u4eec\u5b9e\u73b0\u4e86\u4e00\u4e2a\u672c\u5730\u7684MCP-server\uff0c\u7136\u540e\u5728\u652f\u6301MCP\u534f\u8bae\u7684\u5ba2\u6237\u7aef\u7a0b\u5e8f(\u5982cursor\u3001cherry-studio)\u4e2d\u914d\u7f6e\u8c03\u7528\u4e86\u8be5MCP-server\u3002\u672c\u7ae0\u4e3b\u8981\u63a2\u7d22\u5982\u4f55\u5c06MCP-server\u53d1\u5e03\u4e3a\u8fdc\u7a0b\u670d\u52a1\uff0c\u4f7f\u5f97\u5176\u4ed6\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528MCP-server\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%9B%9E%E9%A1%BE%E9%97%AE%E9%A2%98\"><\/span>\u56de\u987e\u95ee\u9898<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728\u4e0a\u4e00\u7ae0\uff0c\u6211\u4eec\u5728cherry-studio\u4e2d\u914d\u7f6e\u4e86\u83b7\u53d6\u5929\u6c14\u7684\u672c\u5730mcp-server\uff0c\u5173\u952e\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-json\">{\n    &quot;mcpServers&quot;: {\n        &quot;weather&quot;: {\n            &quot;command&quot;: &quot;\/Users\/deadwalk\/.local\/bin\/uv&quot;,\n            &quot;args&quot;: [\n                &quot;--directory&quot;,\n                &quot;\/Users\/deadwalk\/Code\/ai_proj_agent\/weather&quot;,\n                &quot;run&quot;,\n                &quot;weather.py&quot;\n            ]\n        }\n    }\n}<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u7684\u4e3b\u8981\u95ee\u9898\u662f\uff1aweather\u8fd9\u4e2amcp-server\u662f\u672c\u5730\u7684\uff0c\u53ea\u6709\u5f53\u524d\u672c\u5730\u7528\u6237\u624d\u80fd\u4f7f\u7528\uff0c\u7f51\u7edc\u4e0a\u7684\u5176\u4ed6\u7528\u6237\u662f\u65e0\u6cd5\u4f7f\u7528\u7684\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\"><\/span>\u89e3\u51b3\u65b9\u6848<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u6211\u4eec\u9700\u8981\u5c06MCP-server\u8fdb\u884c\u6539\u9020\uff0c\u4f7f\u5f97\u5176\u4ed6\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"MCP-server%E6%94%B9%E9%80%A0%E5%89%8D%E7%9A%84%E5%AE%9E%E7%8E%B0\"><\/span>MCP-server\u6539\u9020\u524d\u7684\u5b9e\u73b0<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>\u5bfc\u5165\u5305\u5e76\u8bbe\u7f6e\u5b9e\u4f8b<\/li>\n<\/ol>\n<pre><code class=\"language-python\">from typing import Any, Dict\nimport httpx\nfrom mcp.server.fastmcp import FastMCP\n\n# \u521d\u59cb\u5316FastMCP\u670d\u52a1\u5668\nmcp = FastMCP(&quot;weather&quot;)\n\n# \u5e38\u91cf\nBAIDU_API_BASE = &quot;https:\/\/api.map.baidu.com\/weather\/v1\/&quot;\nBAIDU_API_KEY = &quot;8HkEwz5h********&quot;<\/code><\/pre>\n<ol start=\"2\">\n<li>\u5b9e\u73b0\u5165\u53e3\u51fd\u6570\u7684\u90e8\u5206<\/li>\n<\/ol>\n<pre><code class=\"language-python\">if __name__ == &quot;__main__&quot;:\n    # \u521d\u59cb\u5316\u5e76\u8fd0\u884c\u670d\u52a1\u5668\n    mcp.run(transport=&#039;stdio&#039;)<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"MCP-server%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90\"><\/span>MCP-server\u6e90\u7801\u5206\u6790<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u901a\u8fc7\u67e5\u770bFastMCP\u7684\u6e90\u7801\uff0c\u53ef\u4ee5\u770b\u5230FastMCP\u5728\u5b9e\u4f8b\u5316\u5bf9\u8c61\u7684\u65f6\u5019\uff0c\u662f\u53ef\u4ee5\u914d\u7f6esetting\u7684<\/p>\n<pre><code class=\"language-python\">class FastMCP:\n    def __init__(\n        self, name: str | None = None, instructions: str | None = None, **settings: Any\n    ):\n        self.settings = Settings(**settings)        #  \u8fd9\u91cc\u5c31\u662f\u8bbe\u7f6e\u5b9e\u4f8b\u7684\u8bbe\u7f6e\n\n        self._mcp_server = MCPServer(\n            name=name or &quot;FastMCP&quot;,\n            instructions=instructions,\n            lifespan=lifespan_wrapper(self, self.settings.lifespan)\n            if self.settings.lifespan\n            else default_lifespan,\n        )\n    # \u4ee5\u4e0b\u5185\u5bb9\u7701\u7565<\/code><\/pre>\n<p>\u8fdb\u4e00\u6b65\u67e5\u770bsettings\u7684\u6e90\u7801\uff0c\u53ef\u4ee5\u770b\u5230setting\u4e2d\u53ef\u4ee5\u914d\u7f6ehost\u3001port\\message_path\\lifespan\u7b49\u53c2\u6570\u3002<\/p>\n<pre><code class=\"language-python\">class Settings(BaseSettings, Generic[LifespanResultT]):\n    &quot;&quot;&quot;FastMCP server settings.\n\n    All settings can be configured via environment variables with the prefix FASTMCP_.\n    For example, FASTMCP_DEBUG=true will set debug=True.\n    &quot;&quot;&quot;\n\n    model_config = SettingsConfigDict(\n        env_prefix=&quot;FASTMCP_&quot;,\n        env_file=&quot;.env&quot;,\n        extra=&quot;ignore&quot;,\n    )\n\n    # Server settings\n    debug: bool = False\n    log_level: Literal[&quot;DEBUG&quot;, &quot;INFO&quot;, &quot;WARNING&quot;, &quot;ERROR&quot;, &quot;CRITICAL&quot;] = &quot;ERROR&quot;\n\n    # HTTP settings\n    host: str = &quot;0.0.0.0&quot;\n    port: int = 8000\n    sse_path: str = &quot;\/sse&quot;\n    message_path: str = &quot;\/messages\/&quot;\n\n    # resource settings\n    warn_on_duplicate_resources: bool = True\n\n    # tool settings\n    warn_on_duplicate_tools: bool = True\n\n    # prompt settings\n    warn_on_duplicate_prompts: bool = True\n\n    dependencies: list[str] = Field(\n        default_factory=list,\n        description=&quot;List of dependencies to install in the server environment&quot;,\n    )\n\n    lifespan: (\n        Callable[[FastMCP], AbstractAsyncContextManager[LifespanResultT]] | None\n    ) = Field(None, description=&quot;Lifespan context manager&quot;)\n<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"MCP-server%E6%94%B9%E9%80%A0%E5%90%8E%E7%9A%84%E5%AE%9E%E7%8E%B0\"><\/span>MCP-server\u6539\u9020\u540e\u7684\u5b9e\u73b0<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>\u5bfc\u5165\u5305\u5e76\u8bbe\u7f6e\u5b9e\u4f8b<\/li>\n<\/ol>\n<pre><code class=\"language-python\">from typing import Any, Dict\nimport httpx\nfrom mcp.server.fastmcp import FastMCP\n\n# \u521d\u59cb\u5316FastMCP\u670d\u52a1\u5668\n# mcp = FastMCP(&quot;weather&quot;)\nmcp = FastMCP(\n    name=&quot;weather&quot;,\n    host=&quot;0.0.0.0&quot;,\n    port=8000,\n    description=&quot;\u83b7\u53d6\u6307\u5b9a\u57ce\u5e02\u7684\u5f53\u524d\u5929\u6c14\u4fe1\u606f&quot;,\n    sse_path=&#039;\/sse&#039;\n)\n\n# \u5e38\u91cf\nBAIDU_API_BASE = &quot;https:\/\/api.map.baidu.com\/weather\/v1\/&quot;\nBAIDU_API_KEY = &quot;8HkEwz5h********&quot;<\/code><\/pre>\n<ol start=\"2\">\n<li>\u5b9e\u73b0\u5165\u53e3\u51fd\u6570\u7684\u90e8\u5206<\/li>\n<\/ol>\n<pre><code class=\"language-python\">if __name__ == &quot;__main__&quot;:\n    # \u521d\u59cb\u5316\u5e76\u8fd0\u884c\u670d\u52a1\u5668\n    try:\n        print(&quot;Starting server...&quot;)\n        mcp.run(transport=&#039;sse&#039;)\n    except Exception as e:\n        print(f&quot;Error: {e}&quot;)<\/code><\/pre>\n<ol start=\"3\">\n<li>\u5728\u547d\u4ee4\u884c\u4e2d\u542f\u52a8\u670d\u52a1 <\/li>\n<\/ol>\n<pre><code class=\"language-bash\">uv run weather.py<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E5%AE%A2%E6%88%B7%E7%AB%AF%E4%B8%AD%E4%BD%BF%E7%94%A8\"><\/span>\u5ba2\u6237\u7aef\u4e2d\u4f7f\u7528<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"1_%E5%9C%A8cherry-studio%E4%B8%AD%E9%9B%86%E6%88%90%E4%BD%BF%E7%94%A8\"><\/span>1. \u5728cherry-studio\u4e2d\u96c6\u6210\u4f7f\u7528<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u5728\u5c40\u57df\u7f51\u53e6\u5916\u4e00\u53f0\u673a\u5668\u4e0a\uff0c\u6253\u5f00cherry-studio\u7684\u914d\u7f6e\uff0c\u5728MCP\u670d\u52a1\u4e2d\u914d\u7f6e\u8fde\u63a5\u5982\u4e0b\uff1b<\/p>\n<pre><code class=\"language-json\">{\n  &quot;mcpServers&quot;: {\n    &quot;weather_demo&quot;: {\n      &quot;description&quot;: &quot;\u8fd9\u662f\u4e00\u4e2aweather\u7684demo&quot;,\n      &quot;isActive&quot;: true,\n      &quot;baseUrl&quot;: &quot;http:\/\/192.168.6.164:8000\/sse&quot;\n    }\n  }\n}<\/code><\/pre>\n<p>\u5907\u6ce8\uff1a<\/p>\n<ul>\n<li>192.168.6.164\u662fmcp-server\u7684ip\u5730\u5740\uff0c\u7aef\u53e3\u4e3a8000<\/li>\n<li>\u7531\u4e8e\u6211\u4eec\u4f7f\u7528\u7684\u662fsse\u534f\u8bae\uff0c\u6240\u4ee5\u9700\u8981\u5c06baseUrl\u8bbe\u7f6e\u4e3asse\u534f\u8bae\uff0c\u5373http:\/\/192.168.6.164:8000\/sse<\/li>\n<\/ul>\n<p>\u5b9e\u9645\u5b9e\u9a8c\u6548\u679c\uff1a<\/p>\n<p><a href=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/03\/\u5c40\u57df\u7f51\u7528\u6237\u901a\u8fc7cherry-studio\u4f7f\u7528.png\" data-fancybox=\"images\" data-fancybox=\"gallery\"><img decoding=\"async\" src=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/03\/\u5c40\u57df\u7f51\u7528\u6237\u901a\u8fc7cherry-studio\u4f7f\u7528.png\" alt=\"\" \/><\/a><\/p>\n<h4><span class=\"ez-toc-section\" id=\"2_%E5%9C%A8cursor%E4%B8%AD%E9%9B%86%E6%88%90%E4%BD%BF%E7%94%A8\"><\/span>2. \u5728cursor\u4e2d\u96c6\u6210\u4f7f\u7528<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre><code class=\"language-json\">{\n  &quot;mcpServers&quot;: {\n    &quot;weather&quot;: {\n      &quot;url&quot;: &quot;http:\/\/192.168.6.164:8000\/sse&quot;\n    }\n  }\n\n}<\/code><\/pre>\n<p>\u5b9e\u9645\u5b9e\u9a8c\u6548\u679c\uff1a<\/p>\n<p><a href=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/03\/\u5c40\u57df\u7f51\u7528\u6237\u901a\u8fc7cursor\u4f7f\u7528.png\" data-fancybox=\"images\" data-fancybox=\"gallery\"><img decoding=\"async\" src=\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/03\/\u5c40\u57df\u7f51\u7528\u6237\u901a\u8fc7cursor\u4f7f\u7528.png\" alt=\"\" \/><\/a><\/p>\n<h4><span class=\"ez-toc-section\" id=\"3_%E5%9C%A8cline%E4%B8%AD%E9%9B%86%E6%88%90%E4%BD%BF%E7%94%A8\"><\/span>3. \u5728cline\u4e2d\u96c6\u6210\u4f7f\u7528<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>\u5728cline\u4e2d\u5c1d\u8bd5\u4e86\u591a\u79cd\u65b9\u5f0f\u914d\u7f6e\uff0c\u5747\u672a\u80fd\u6210\u529f\uff0c\u5728github\u4e2d\u627e\u5230\u4e86\u76f8\u5e94\u7684<a href=\"https:\/\/github.com\/cline\/cline\/issues\/2176\">issue<\/a>\uff0c\u53ef\u80fd\u9700\u8981\u5173\u6ce8\u8be5\u9879\u76ee\u540e\u7eed\u7684\u4fee\u590d\u8fdb\u5c55\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E6%80%BB%E7%BB%93\"><\/span>\u603b\u7ed3<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>\u901a\u8fc7\u5bf9mcp-server\u7684\u6539\u9020\uff0c\u5728\u5b9e\u4f8b\u5316mcp-server\u7684\u65f6\u5019\uff0c\u914d\u7f6e\u76f8\u5e94\u7684host\u3001port\uff0c\u53ef\u4ee5\u5b9e\u73b0sse\u534f\u8bae\u7684\u90e8\u7f72\u3002<\/li>\n<li>\u901a\u8fc7\u670d\u52a1\u90e8\u7f72\u4e4b\u540e\uff0c\u5176\u4ed6\u7528\u6237\u53ef\u4ee5\u5728\u652f\u6301mcp\u7684\u5ba2\u6237\u7aef\u4e2d\uff0c\u901a\u8fc7mcp-server\u7684url\u8fdb\u884c\u8c03\u7528\u3002<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"%E5%85%B6%E4%BB%96%E6%96%87%E7%AB%A0\"><\/span>\u5176\u4ed6\u6587\u7ae0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><a href=\"https:\/\/17aitech.com\/?p=39674\">\u3010\u5b66\u4e60\u603b\u7ed3\u3011MCP\u534f\u8bae\u4e4bMCP\u7b80\u8ff0<\/a><\/li>\n<li><a href=\"https:\/\/17aitech.com\/?p=39764\">\u3010\u5b66\u4e60\u603b\u7ed3\u3011MCP\u534f\u8bae\u4e4bMCP-server(sse\u65b9\u5f0f)\u5b9e\u8df5<\/a><\/li>\n<li><a href=\"https:\/\/17aitech.com\/?p=39769\">\u3010\u5b66\u4e60\u603b\u7ed3\u3011MCP\u534f\u8bae\u4e4b\u4f7f\u7528AgentSDK\u8c03\u7528MCP-server<\/a><\/li>\n<\/ul>\n<p align=\"center\">\u6b22\u8fce\u5173\u6ce8\u516c\u4f17\u53f7\u4ee5\u83b7\u5f97\u6700\u65b0\u7684\u6587\u7ae0\u548c\u65b0\u95fb<\/p>\n<p><a href=\"https:\/\/17aitech.com\/wp-content\/uploads\/2024\/09\/\u626b\u7801_\u641c\u7d22\u8054\u5408\u4f20\u64ad\u6837\u5f0f-\u767d\u8272\u7248.bmp\" data-fancybox=\"images\" data-fancybox=\"gallery\"><img decoding=\"async\" src=\"https:\/\/17aitech.com\/wp-content\/uploads\/2024\/09\/\u626b\u7801_\u641c\u7d22\u8054\u5408\u4f20\u64ad\u6837\u5f0f-\u767d\u8272\u7248.bmp\" alt=\"\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f \u5728\u300aMCP\u534f\u8bae\u7b80\u8ff0\u4e4bMCP-ser [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":39767,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"aside","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[28],"tags":[85],"class_list":["post-39764","post","type-post","status-publish","format-aside","has-post-thumbnail","hentry","category-blog","tag-mcp","post_format-post-format-aside"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u5b66\u4e60\u603b\u7ed3\u3011MCP\u534f\u8bae\u4e4bMCP-server(sse\u65b9\u5f0f)\u5b9e\u8df5 - \u4e00\u8d77AI\u6280\u672f<\/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:\/\/17aitech.com\/?p=39764\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/17aitech.com\/?p=39764\",\"url\":\"https:\/\/17aitech.com\/?p=39764\",\"name\":\"\u3010\u5b66\u4e60\u603b\u7ed3\u3011MCP\u534f\u8bae\u4e4bMCP-server(sse\u65b9\u5f0f)\u5b9e\u8df5 - \u4e00\u8d77AI\u6280\u672f\",\"isPartOf\":{\"@id\":\"https:\/\/17aitech.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/17aitech.com\/?p=39764#primaryimage\"},\"image\":{\"@id\":\"https:\/\/17aitech.com\/?p=39764#primaryimage\"},\"thumbnailUrl\":\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/03\/\u5c01\u9762-1.jpeg\",\"datePublished\":\"2025-03-31T09:00:00+00:00\",\"dateModified\":\"2025-03-31T10:19:42+00:00\",\"author\":{\"@id\":\"https:\/\/17aitech.com\/#\/schema\/person\/3d23bb6f7f115fcefc9ae7803a691739\"},\"breadcrumb\":{\"@id\":\"https:\/\/17aitech.com\/?p=39764#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/17aitech.com\/?p=39764\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/17aitech.com\/?p=39764#primaryimage\",\"url\":\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/03\/\u5c01\u9762-1.jpeg\",\"contentUrl\":\"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/03\/\u5c01\u9762-1.jpeg\",\"width\":660,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/17aitech.com\/?p=39764#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/17aitech.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u5b66\u4e60\u603b\u7ed3\u3011MCP\u534f\u8bae\u4e4bMCP-server(sse\u65b9\u5f0f)\u5b9e\u8df5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/17aitech.com\/#website\",\"url\":\"https:\/\/17aitech.com\/\",\"name\":\"\u4e00\u8d77AI\u6280\u672f\",\"description\":\"\u8ba9AI\u77e5\u8bc6\u89e6\u624b\u53ef\u53ca\",\"alternateName\":\"\u4e00\u8d77AI\u6280\u672f\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/17aitech.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/17aitech.com\/#\/schema\/person\/3d23bb6f7f115fcefc9ae7803a691739\",\"name\":\"Dongming\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/17aitech.com\/#\/schema\/person\/image\/\",\"url\":\"\/\/17aitech.com\/wp-content\/uploads\/member\/avatars\/238a0b923820dcc5.1732798681.jpg\",\"contentUrl\":\"\/\/17aitech.com\/wp-content\/uploads\/member\/avatars\/238a0b923820dcc5.1732798681.jpg\",\"caption\":\"Dongming\"},\"description\":\"\u89c1\u5929\u5730\uff0c\u89c1\u4f17\u751f\uff0c\u89c1\u81ea\u5df1\u3002\",\"sameAs\":[\"http:\/\/17aitech.com\"],\"url\":\"https:\/\/17aitech.com\/?page_id=33738&user=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u5b66\u4e60\u603b\u7ed3\u3011MCP\u534f\u8bae\u4e4bMCP-server(sse\u65b9\u5f0f)\u5b9e\u8df5 - \u4e00\u8d77AI\u6280\u672f","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:\/\/17aitech.com\/?p=39764","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/17aitech.com\/?p=39764","url":"https:\/\/17aitech.com\/?p=39764","name":"\u3010\u5b66\u4e60\u603b\u7ed3\u3011MCP\u534f\u8bae\u4e4bMCP-server(sse\u65b9\u5f0f)\u5b9e\u8df5 - \u4e00\u8d77AI\u6280\u672f","isPartOf":{"@id":"https:\/\/17aitech.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/17aitech.com\/?p=39764#primaryimage"},"image":{"@id":"https:\/\/17aitech.com\/?p=39764#primaryimage"},"thumbnailUrl":"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/03\/\u5c01\u9762-1.jpeg","datePublished":"2025-03-31T09:00:00+00:00","dateModified":"2025-03-31T10:19:42+00:00","author":{"@id":"https:\/\/17aitech.com\/#\/schema\/person\/3d23bb6f7f115fcefc9ae7803a691739"},"breadcrumb":{"@id":"https:\/\/17aitech.com\/?p=39764#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/17aitech.com\/?p=39764"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/17aitech.com\/?p=39764#primaryimage","url":"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/03\/\u5c01\u9762-1.jpeg","contentUrl":"https:\/\/17aitech.com\/wp-content\/uploads\/2025\/03\/\u5c01\u9762-1.jpeg","width":660,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/17aitech.com\/?p=39764#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/17aitech.com\/"},{"@type":"ListItem","position":2,"name":"\u3010\u5b66\u4e60\u603b\u7ed3\u3011MCP\u534f\u8bae\u4e4bMCP-server(sse\u65b9\u5f0f)\u5b9e\u8df5"}]},{"@type":"WebSite","@id":"https:\/\/17aitech.com\/#website","url":"https:\/\/17aitech.com\/","name":"\u4e00\u8d77AI\u6280\u672f","description":"\u8ba9AI\u77e5\u8bc6\u89e6\u624b\u53ef\u53ca","alternateName":"\u4e00\u8d77AI\u6280\u672f","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/17aitech.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/17aitech.com\/#\/schema\/person\/3d23bb6f7f115fcefc9ae7803a691739","name":"Dongming","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/17aitech.com\/#\/schema\/person\/image\/","url":"\/\/17aitech.com\/wp-content\/uploads\/member\/avatars\/238a0b923820dcc5.1732798681.jpg","contentUrl":"\/\/17aitech.com\/wp-content\/uploads\/member\/avatars\/238a0b923820dcc5.1732798681.jpg","caption":"Dongming"},"description":"\u89c1\u5929\u5730\uff0c\u89c1\u4f17\u751f\uff0c\u89c1\u81ea\u5df1\u3002","sameAs":["http:\/\/17aitech.com"],"url":"https:\/\/17aitech.com\/?page_id=33738&user=1"}]}},"_links":{"self":[{"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/posts\/39764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/17aitech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=39764"}],"version-history":[{"count":5,"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/posts\/39764\/revisions"}],"predecessor-version":[{"id":39786,"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/posts\/39764\/revisions\/39786"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/17aitech.com\/index.php?rest_route=\/wp\/v2\/media\/39767"}],"wp:attachment":[{"href":"https:\/\/17aitech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=39764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/17aitech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=39764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/17aitech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=39764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}