<p cms-style="font-L">梦晨 一水 发自 凹非寺</p><p cms-style="font-L">量子位 | 公众号 QbitAI</p><p cms-style="font-L">Anthropic又发大礼包!现在<font cms-style="font-L color180"><font cms-style="font-L strong-Bold color180">Claude自己就是一台服务器</font></font>。</p><p cms-style="font-L">能<font cms-style="font-L color180"><font cms-style="font-L strong-Bold color180">直连GitHub</font></font>,AI自己写代码、自己创建仓库、Push代码、创建Issue、创建分支、创建PR一条龙服务。</p><p cms-style="font-L">全程不用离开聊天界面,人类程序员只起到了提需求的作用,彻底退化成产品经理<font cms-style="font-L">(狗头)</font>。</p><div class="img_wrapper"><img src="http://f.sinaimg.cn/sinakd20241126s/662/w900h562/20241126/83f8-gif3ae7a8c138f562d1b688c0976dd7db8b.gif" cms-width="677" cms-height="422.734" id="0"/></div><p cms-style="font-L">除了访问外部资源,也可以在<font cms-style="font-L color180"><font cms-style="font-L strong-Bold color180">本地创建、读取和编辑文件和文件夹</font></font>。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/606/w900h506/20241126/1ef4-gifa6df540ba4f1c64ec9dc8f7dd5a48165.gif" cms-width="677" cms-height="380.609" id="1"/></div><p cms-style="font-L">甚至可以<font cms-style="font-L strong-Bold color180">多种能力组合</font>,先联网搜索获取资料,再把处理好的内容填入本地html文件。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/606/w900h506/20241126/4d5a-gif8ecd4de56ccdb1f45e13f70abab1c377.gif" cms-width="677" cms-height="380.609" id="2"/></div><p cms-style="font-L">看到这里,或许有人会认为,这不过是一个更为花哨的开发者版GPT插件或GPTs罢了。</p><p cms-style="font-L">但Claude的野心远不止于此——</p><p cms-style="font-L">新能力背后是一套通信协议<font cms-style="font-L strong-Bold color180">MCP</font><font cms-style="font-L">(Model Context Protocol)</font>。</p><blockquote cms-style="blockquote"><p cms-style="font-L">实现大模型应用与外部数据源和工具之间的无缝集成,帮助AI获得所需的上下文数据,生成质量更高、与任务更相关的回答。</p></blockquote><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/347/w1080h867/20241126/acc0-3c0cbf6fb194510d9a2ad16c6a9796af.png" cms-width="645" cms-height="517.781" id="3"/></div><p cms-style="font-L">就像互联网靠HTTP标准化了浏览器和服务器之间的信息交换过程,MCP协议也是标准化AI Agent和不同数据源<font cms-style="font-L">(包括内容存储库、业务工具和开发环境)</font>之间通信的一次尝试。</p><p cms-style="font-L">并且这可不是闹着玩的,Anthropic已经打算牵头把MCP协议<font cms-style="font-L color180"><font cms-style="font-L strong-Bold color180">推动成行业开放标准</font></font>了。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/88/w1080h608/20241126/c4f9-654b36dd61ed9c7212c8b4d8daf80fe2.png" cms-width="645" cms-height="363.109" id="4"/></div><p cms-style="font-L">你可能要问了,MCP听起来是个好东西,但搭建对应的服务器想必也不简单吧?</p><p cms-style="font-L">No No No,官方公告明示,最新版<font cms-style="font-L strong-Bold"><font cms-style="font-L strong-Bold color180">Claude 3.5 Sonnet自己就非常擅长架设MCP服务器</font></font>,直接完成闭环。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/30/w1080h550/20241126/2983-02a86013dfed92cf162bd3a132b15855.png" cms-width="645" cms-height="328.469" id="5"/></div><p cms-style="font-L">并且,Claude桌面版APP更新后也内置了MCP服务器支持,只需要修改配置文件、重启即可生效。</p><p cms-style="font-L">这下<font cms-style="font-L color180"><font cms-style="font-L strong-Bold color180">claude_desktop_config.json is all you need</font></font>了。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/325/w1080h845/20241126/cbb6-ebc0094a47074d263ef1ffbfc89fb9cc.png" cms-width="645" cms-height="504.641" id="6"/></div><p cms-style="font-L">首批合作伙伴、AI编程工具<font cms-style="font-L color180"><font cms-style="font-L strong-Bold color180">Replit总裁</font></font>盛赞,MCP将成为<font cms-style="font-L color180"><font cms-style="font-L strong-Bold color180">AI Agent与互联网生态之间的通用语言</font></font>。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/768/w1080h488/20241126/f1ef-e23cf22791a81ce9b4c1034718a76ffc.png" cms-width="645" cms-height="291.438" id="7"/></div><p cms-style="font-L">也有开发者表示“看起来很疯狂”,Claude在接管个人电脑之后,再次接管了服务器。自己此前光是让AI连接数据库都很费劲。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/617/w1080h337/20241126/637c-b969a67645c5b44b3a7fe9b04cc42977.png" cms-width="645" cms-height="201.25" id="8"/></div><p cms-style="font-L">不过,也有人持怀疑态度,贴出著名讽刺漫画XKCDde一集,担心MCP协议最终没有成为行业通用标准,只是会让生态更加混乱。</p><blockquote cms-style="blockquote"><p cms-style="font-L">当前情况:有14个标准在竞争。</p><p cms-style="font-L">14个‽太荒谬了!我们需要制定一个涵盖每个人使用案例的通用标准。</p><p cms-style="font-L">不久之后:现在有15个标准在竞争。</p></blockquote><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/41/w1080h561/20241126/c0c7-c42c79114a0c7bbf7dbe14d6fc04d674.png" cms-width="645" cms-height="335.031" id="9"/></div><p cms-style="font-L">那么Claude家力推的MCP协议是否有潜力一统江湖呢?</p><p cms-style="font-L">还要从协议本身的设计、性能、开放性、易用性等方面来考察。</p><p cms-style="font-L strong-Bold">即日起MCP本地可用,5分钟快速入门指南奉上</p><p cms-style="font-L">我们先来扒一扒官方公告都有哪些看点。</p><p cms-style="font-L">整体而言,公告主要介绍了<font cms-style="font-L strong-Bold color180">3点</font>:</p><ul cms-style="ul"><li cms-style="li"><p cms-style="font-L">当前LLM在应用落地方面所面临的痛点</p></li><li cms-style="li"><p cms-style="font-L">MCP通信协议提供的解决方案</p></li><li cms-style="li"><p cms-style="font-L">5分钟快速入门指南</p></li></ul><p cms-style="font-L">首先,随着大模型从纯聊天机器人走向以智能助手为代表的Agent应用,由于Agent需要的操作日益复杂,全球应用玩家们都面临一个相同的痛点——<font cms-style="font-L strong-Bold color180">数据隔离</font>。</p><p cms-style="font-L">简单说,一旦LLM应用需要访问外部数据,开发者就得写一大堆定制代码,又麻烦又重复。</p><p cms-style="font-L">这样一来,别说实现AGI了,就连构建真正互联的AI系统都难以推进。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/448/w1024h1024/20241126/5edb-933ee7e0e79cc6b96494e3a10db9b05a.jpg" cms-width="163" cms-height="163" id="10"/></div><p cms-style="font-L">面对此情此景,Anthropic带着它的MCP<font cms-style="font-L">(模型上下文协议)</font>闪亮登场了!</p><p cms-style="font-L">一句话,MCP协议就像AI系统与数据源之间的一座桥梁,允许开发者在数据源和AI工具之间建立<font cms-style="font-L strong-Bold color180">双向连接</font>。</p><p cms-style="font-L">为了更好理解,我们直接康康MCP究竟长啥样。</p><p cms-style="font-L">据了解,它采用<font cms-style="font-L strong-Bold color180">客户端-服务器架构</font>,多个服务可以连接到任何兼容的客户端。客户端可以是Claude Desktop、IDE或其他AI工具,服务器则充当适配器,暴露数据源。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/316/w1080h836/20241126/c130-9066a210e89c79d6d62caa312fa31211.png" cms-width="645" cms-height="499.266" id="11"/></div><p cms-style="font-L">其优势在于,以后不管是访问本地资源<font cms-style="font-L">(数据库、文件、服务)</font>,还是访问远程资源<font cms-style="font-L">(如Slack、GitHub API)</font>,都能用同一个协议。</p><p cms-style="font-L">而且支持的数据形式非常多样,包括文件内容、数据库记录、API响应、实时系统数据、屏幕截图和图像、日志文件等,几乎覆盖了所有类型。</p><blockquote cms-style="blockquote"><p cms-style="font-L">每个资源都由一个唯一的URI标识,可以包含文本或二进制数据。</p></blockquote><p cms-style="font-L">此外,MCP协议具有良好的<font cms-style="font-L strong-Bold color180">可扩展性</font>,还能提供:</p><ul cms-style="ul"><li cms-style="li"><p cms-style="font-L">Prompts:可以重复使用的模版和工作流程<font cms-style="font-L">(包括多步骤)</font> ;</p></li><li cms-style="li"><p cms-style="font-L">Tools:从系统操作到API集成,再到运行数据处理任务的一切工具;</p></li><li cms-style="li"><p cms-style="font-L">Transports:客户端和服务器之间通过<font cms-style="font-L strong-Bold color180">JSON-RPC 2.0</font>进行的请求、响应和通知,包括对服务器到客户端流和其它自定义传输的支持<font cms-style="font-L">(目前尚未提及WebSocket/WebRTC)</font>;</p></li><li cms-style="li"><p cms-style="font-L">Sampling:允许服务器通过客户端请求LLM完成复杂智能体行为<font cms-style="font-L">(包括评估成本优先级、速度优先级和智能优先级等)</font>;</p></li></ul><p cms-style="font-L">同时,MCP服务器还内置了安全机制,允许服务器自己控制资源,不用把API密钥给LLM提供商。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/344/w544h600/20241126/aab2-b77ea1084473f69c5f64e3d2ef73bc2f.jpg" cms-width="165" cms-height="181.984" id="12"/></div><p cms-style="font-L">不过需要提醒,目前MCP仅支持本地运行<font cms-style="font-L">(服务器需要在自己的机器上)</font>,官方正计划构建具有企业级身份验证的远程服务器支持<font cms-style="font-L">(为企业内部共享提供支持)</font>。</p><p cms-style="font-L">话不多说,我们直接开箱Anthropic这次为开发者准备的东西:</p><ul cms-style="ul"><li cms-style="li"><p cms-style="font-L">MCP协议和软件开发工具包 (SDK)</p></li><li cms-style="li"><p cms-style="font-L">Claude桌面应用程序中的本地MCP服务器支持</p></li><li cms-style="li"><p cms-style="font-L">一个MCP服务器的开源存储库</p></li></ul><p cms-style="font-L">大礼包到手,咋用呢??</p><p cms-style="font-L">别急,这里还有一份<font cms-style="font-L strong-Bold color180">「5分钟快速上手指南」</font>,我们领到的任务是:</p><blockquote cms-style="blockquote"><p cms-style="font-L">使用MCP协议,让桌面版Claude安全连接本地服务,比如SQLite数据库。</p></blockquote><p cms-style="font-L">(注意,桌面版Claude的MCP支持目前处于开发者预览阶段,仅支持连接本地运行的MCP服务器,尚不支持远程连接。)</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/529/w1080h249/20241126/8d6f-653354bdd45cf27f0d830f720a08caa8.png" cms-width="645" cms-height="148.703" id="13"/></div><p cms-style="font-L">开始之前,我们需要确保自己的macOS或Windows系统已经完成下列准备。</p><ul cms-style="ul"><li cms-style="li"><p cms-style="font-L">已安装最新版Claude Desktop</p></li><li cms-style="li"><p cms-style="font-L">Node.js v18 或更高版本</p></li><li cms-style="li"><p cms-style="font-L">检查Git</p></li><li cms-style="li"><p cms-style="font-L">检查SQLite</p></li></ul><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/509/w1080h1029/20241126/d294-3bfb46145aa649712184818ddc735972.png" cms-width="645" cms-height="614.531" id="14"/></div><p cms-style="font-L">下面我们以mac为例<font cms-style="font-L">(入门文档也提供了Windows教程)</font>,首先创建一个简单的SQLite数据库进行测试。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/54/w1080h1374/20241126/cb3e-5c0e524cb33761cbb359ba0bdb8815a6.png" cms-width="645" cms-height="820.578" id="15"/></div><p cms-style="font-L">然后配置桌面版Claude。例如,如果你已经安装了VS Code,第一步先打开以下位置的桌面应用程序。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/387/w1080h107/20241126/d926-06ddd9ce023297abc911c62d4826a257.png" cms-width="645" cms-height="63.8906" id="16"/></div><p cms-style="font-L">接下来将<font cms-style="font-L strong-Bold color180">YOUR_USERNAME</font>替换为你的实际用户名:</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/680/w1080h400/20241126/da83-ba1bd88c81cdc9cb9314d57837b2528f.png" cms-width="645" cms-height="238.875" id="17"/></div><p cms-style="font-L">替换完成后Claude就会接收到以下指令:</p><ul cms-style="ul"><li cms-style="li"><p cms-style="font-L">这里有一个名为“sqlite”的MCP服务器</p></li><li cms-style="li"><p cms-style="font-L">通过运行uvx mcp-server-sqlite启动它</p></li><li cms-style="li"><p cms-style="font-L">将其连接到测试数据库</p></li></ul><p cms-style="font-L">最终,保存文件并重新启动桌面版Claude,就可以正式享用了。</p><p cms-style="font-L">为了检查一切是否正常运行,可以输入以下咒语:</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/378/w1080h98/20241126/055c-dbb6f456dda9f0df5015265b5c0ffdc9.png" cms-width="645" cms-height="58.5156" id="18"/></div><p cms-style="font-L">铛铛铛铛,Claude最后成功查询了SQLite数据库。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/284/w1080h804/20241126/1733-7251d1339cdc69e4b937412e875f671b.png" cms-width="645" cms-height="480.156" id="19"/></div><p cms-style="font-L">除了上手简单,MCP还具有良好的<font cms-style="font-L strong-Bold color180">开放性</font>。</p><p cms-style="font-L">事实上,MCP协议的性能已经收获了首批合作伙伴的盛赞。</p><p cms-style="font-L">金融支付公司Block和数据管理解决方案供应商Apollo,已经将MCP集成进了自家系统中。</p><p cms-style="font-L">Block首席技术官Dhanji R. Prasanna表示:</p><blockquote cms-style="blockquote"><p cms-style="font-L">MCP这样的开放技术是连接AI与实际应用的桥梁,确保创新易于获取、透明,并基于合作。</p><p cms-style="font-L">我们很高兴能够合作开发一个协议,并利用它来构建具有Agent能力的系统。</p></blockquote><p cms-style="font-L">而像Zed、Replit、Codeium和Sourcegraph在内的开发应用公司,则是用MCP来进一步增强自己的AI能力,尤其是提高Agent在编码方面的理解力和完成质量。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/636/w1080h1156/20241126/d767-dc07140dffe58fbfddf98f2d3be68dd3.png" cms-width="645" cms-height="690.375" id="20"/></div><p cms-style="font-L">总之,Anthropic致力于将MCP打造成一个开源生态系统,无论是AI工具开发者,还是希望利用现有数据的企业,都可以加入进来。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/25/w1080h545/20241126/993b-b65b918c9c112a3fb5d206250c78615a.png" cms-width="645" cms-height="325.484" id="21"/></div><p cms-style="font-L">即日起,开发者都可以开始构建和测试MCP,以及现有的Claude for Work客户可以开始本地测试MCP服务器。</p><p cms-style="font-L">接下来,Anthropic计划推出更多支持工具,包括用于部署远程MCP服务器的工具包。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/176/w488h488/20241126/1739-4d2081c731ab6850b627de397c46d372.jpg" cms-width="164" cms-height="164" id="22"/></div><p cms-style="font-L strong-Bold">再融40亿美元,Claude瞄准toB市场</p><p cms-style="font-L">BTW,除了重磅推出MCP,Anthropic最近的好消息莫过于小金库又进账了。(doge)</p><p cms-style="font-L">去年给它投了40亿美元的亚马逊,这次<font cms-style="font-L color180"><font cms-style="font-L strong-Bold color180">又给了40亿美元</font></font>。其中一项重要合作内容是:</p><p cms-style="font-L">Anthropic需要使用亚马逊旗下的芯片训练和部署AI模型。</p><p cms-style="font-L">这一招,双方都打的是<font cms-style="font-L strong-Bold color180">企业客户</font>这块肥肉的主意。用Anthropic模型的企业客户较多,亚马逊希望借此扩大企业客户市场份额;而亚马逊自身也有大量企业客户,Anthropic也希望借其平台扩大模型使用。</p><p cms-style="font-L">此前有人估算,与OpenAI大部分收入来自ChatGPT应用订阅不同,<font cms-style="font-L color180"><font cms-style="font-L strong-Bold color180">Anthropic约85%的收入来自API调用</font></font>。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/103/w1080h623/20241126/e096-e926d66f77ebc9353ee7985e1062aade.png" cms-width="645" cms-height="372.062" id="23"/></div><p cms-style="font-L">在一次最新采访中,Anthropic CEO也明确表示:</p><blockquote cms-style="blockquote"><p cms-style="font-L">目前公司更看重企业市场,而不是OpenAI那样的消费市场。</p></blockquote><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/45/w1080h565/20241126/d3dc-ff21a6dc996c43e8de005edf4419c765.png" cms-width="645" cms-height="337.422" id="24"/></div><p cms-style="font-L">而回顾竞争对手们的动作,最近一周,OpenAI与谷歌忙着在竞技场排行榜较劲,不断发布最新模型检查点争第一。</p><p cms-style="font-L">Anthropic开发者关系主管公开杠了一下:</p><blockquote cms-style="blockquote"><p cms-style="font-L">Claude正在真正重要的事上进步,而其他实验室把精力花在markdown格式输出上。</p></blockquote><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/396/w1080h916/20241126/3020-adf3996207910b8b07a62e1378e01852.png" cms-width="645" cms-height="547.047" id="25"/></div><p cms-style="font-L">当时大家还不理解,什么才是“真正重要的事”。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/420/w958h262/20241126/2fb2-6da282b072e61f22c705fa05820abf6c.png" cms-width="645" cms-height="176.391" id="26"/></div><p cms-style="font-L">紧接着,Claude网页版更新了集成谷歌文档功能,但并未引起太多波澜。</p><div class="img_wrapper"><img src="https://n.sinaimg.cn/sinakd20241126s/290/w1080h810/20241126/aab8-3d59afd0d6119cef6c81037e1acbbafa.png" cms-width="645" cms-height="483.75" id="27"/></div><p cms-style="font-L">现在看来,“真正重要的事”或许就是指MCP通信协议。</p><p cms-style="font-L">而官方谷歌文档支持恐怕正是通过MCP实现的。</p><p cms-style="font-L ">官方公告:</p><p cms-style="font-L">https://www.anthropic.com/news/model-context-protocol</p><p cms-style="font-L ">GitHub:</p><p cms-style="font-L">https://github.com/modelcontextprotocol</p><p cms-style="font-L ">快速入门文档:</p><p cms-style="font-L">https://modelcontextprotocol.io/introduction</p><p cms-style="font-L ">参考链接:</p><p cms-style="font-L">[1]<font cms-style="font-L">https://twitter.com/alexalbert__/status/1861079762506252723</font></p><p cms-style="font-L">[2]https://twitter.com/alexalbert__/status/1861136466816180595</p><p cms-style="font-L">[3]https://twitter.com/skirano/status/1861081529071346161</p><p cms-style="font-L">[4]https://news.ycombinator.com/item?id=42237577</p><p cms-style="font-L">[5]https://www.tanayj.com/p/openai-and-anthropic-revenue-breakdown</p><p cms-style="font-L"></p><p cms-style="font-L align-Center"></p><p cms-style="font-L align-Center"></p> <div class="img_wrapper"><img style="border:0" width="557" src="https://n.sinaimg.cn/tech/47b4da8f/20210524/1.png" alt="" data-link=""></div>
<p style="text-indent:2em;text-align:left;">
<span style="font-family: KaiTi_GB2312,KaiTi;font-size:14px;">
(声明:本文仅代表作者观点,不代表新浪网立场。)
</span>
</p>
GPT plus 代充 只需 145
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/210549.html