产品73°

LangChain发布MCP协议支持

You won't want to miss this -- @sydneyrunkle with a detailed breakdown of LangChain's MCP revamp and...

精选理由

LangChain更新了MCP支持,新增了中断式交互和缓存功能,无状态设计让系统更高效。

LangChain已在新版本中支持MCP协议,集成在主包中可通过`uv pip install 'langchain[mcp]'`安装。新版本基于FastMCP v4构建,支持协议协商、工具名称冲突处理、连接生命周期管理等功能。新增了中断式人类交互支持和工具列表缓存功能,解决了TTFT常见痛点。新协议为无状态设计,提高了代理与服务器交互效率和可扩展性。

原文 · LangChain

You won't want to miss this -- @sydneyrunkle with a detailed breakdown of LangChain's MCP revamp and...

You won't want to miss this -- @sydneyrunkle with a detailed breakdown of LangChain's MCP revamp and support for the new, stateless spec! Sydney Runkle @sydneyrunkle ICYMI -- yesterday we released support for the new MCP protocol in @LangChain !! what do you need to know? 1. MCP support is now in the main langchain package! get started with `uv pip install 'langchain[mcp]'` 2. it's now built on top of FastMCP v4; FastMCP has ergonomic support for all things MCP (clients, servers, and apps). FastMCP handles things like protocol negotiation, tool name conflicts, connection lifecycle, transport specs, auth, and caching! 3. langchain now supports elicitation (MCP's human in the loop concept) via interrupts! 4. langchain now supports list_tools caching (so you don't have to re-fetch on every agent run; this was a common pain point for TTFT!) 5. the new protocol is stateless, which means the agent <-> server interactions are more efficient, and much more scale-able. 🔗 View Quoted Tweet 💬 0 🔄 1 ❤️ 2 👀 1005 📊 1 ⚡