Home›Agent Frameworks›langchain 1.4.0a3(第3アルファ版)
langchain==1.4.0a3

langchain 1.4.0a3(第3アルファ版)langchain==1.4.0a3

元記事を読むRead original articlegithub.com(新しいタブで開きます)(opens in a new tab)
AI2 点サマリ2 key points
  • langchain 1.4.0a3は、langchain.mcpにMCPAdapterを追加し、URLやローカルスクリプト、複数サーバー設定からツールを変換できるようにしました。
  • TTL対応キャッシュにより、開発者のMCP連携を効率化します。
  • langchain 1.4.0a3 adds MCPAdapter to langchain.mcp, turning URLs, local scripts, and multi-server configs into tools.
  • TTL-aware caching simplifies MCP integration for developers.

本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (github.com) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (github.com).

要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.

第3アルファ版

langchain 1.4.0a3は、1.4.0系の第3アルファ版として公開された。中心となる変更は、新しいlangchain.mcp名前空間を通じてMCPサーバーをLangChainツールへ適応させる仕組みで、MCPAdapterとクライアント側レスポンスキャッシュが要点となる。

MCPAdapter

MCPAdapterは、fastmcp.Clientが受け付ける対象をLangChainツールとして扱えるようにする。対象にはURL、ローカルスクリプト、インプロセスサーバー、複数のサーバーを指定するMCPConfig、事前に構築されたクライアントが含まれる。また、1つのクライアントの背後に複数サーバーを置く構成には、FastMCP ClientGroupが用意されている。

ツール取得とキャッシュ

MCPAdapter.list_tools(*, cache_mode="use")は、ツールを検出して適応するメソッドだ。任意でSEP-2549に基づくクライアント側レスポンスキャッシュを利用できる。cache_modeのuseは、サーバーのTTLヒントの範囲内でキャッシュ済みリストを返す。refreshはキャッシュを再生成し、bypassはキャッシュを使用せずに処理する。用途に応じて取得方法を明示的に切り替えられる構成となっている。

単一ツールの変換

as_langchain_tool(tool, client, *, elicitation=None)は、単一のMCPツールを変換するための関数で、自身でクライアントを管理する呼び出し側を対象としている。各ツールのメタデータは、そのツール上のmcp名前空間にまとめられる。これにより、複数対象を扱うMCPAdapterとは別に、管理済みクライアントと個別ツールを組み合わせる経路も提供される。

Third alpha

langchain 1.4.0a3 is the third alpha release in the 1.4.0 line, published on September 1, 2026. It focuses on the new langchain.mcp namespace, which adapts MCP servers into LangChain tools. The release matters for developers working with MCP integrations because it supports several kinds of server targets through one adapter.

MCPAdapter adapts

MCPAdapter can adapt any target accepted by fastmcp.Client. The supported targets described in the release are a URL, a local script, an in-process server, an MCPConfig that names several servers, and a pre-built client.

The namespace also supports a FastMCP ClientGroup. This represents a fleet of servers behind one client, allowing the adapter to work with a grouped multi-server target as well as individual URLs, scripts, in-process servers, or existing clients.

Client-side response caching

MCPAdapter.list_tools(*, cache_mode="use") discovers and adapts tools. It includes optional client-side response caching under SEP-2549, with three cache modes that control how the tool list is obtained.

The default use mode serves a cached list while it remains within the server’s TTL hint. The refresh mode repopulates the cache, while bypass skips the cache. These options let callers choose between using an available cached tool list, explicitly refreshing it, or avoiding the cache for a request.

Tool metadata

For callers that manage their own client, as_langchain_tool(tool, client, *, elicitation=None) converts a single MCP tool. This provides a separate path from discovering and adapting tools through MCPAdapter.list_tools.

Each adapted tool groups its tool metadata under an mcp namespace. Together, the adapter targets, ClientGroup support, cache behavior, single-tool conversion function, and namespaced metadata define the MCP-focused changes highlighted in this third alpha release.

ポコとTECHガイドPoko & TECH Guide

ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.

  1. ポコPoko1.4.0系の第3アルファで、URLやローカルスクリプト、複数サーバー設定までツールにできるんだ。これって大きいこと?It’s the third alpha in the 1.4.0 line, and it can turn URLs, local scripts, and multi-server configs into tools. Is that a big change?
  2. TECHガイドTECH Guideこの記事では、新しいlangchain.mcpの中心機能として扱われておる。いろいろな接続先をMCPAdapterという一つの入口からツール化できる点が大きいのう。The release presents this as the centerpiece of the new langchain.mcp namespace. The notable part is using one gateway, MCPAdapter, to turn several kinds of targets into tools.
  3. ポコPoko「TTL対応キャッシュ」って何?つまりどういうこと?What’s a “TTL-aware cache”? What does that actually mean?
  4. TECHガイドTECH GuideTTLはキャッシュを使える期間の目安じゃ。この仕組みでは、サーバーのTTL指定内なら保存済みのツール一覧を使えるんじゃよ。TTL is basically a time limit for cached data. Here, a saved tool list can be reused while it remains within the server’s TTL hint.
  5. ポコPokoじゃあ僕なら、URLや複数サーバー設定を渡して、使えるツールを一覧にして試してみたいな!Then I’d pass in a URL or a multi-server config, list the available tools, and start experimenting!
  6. TECHガイドTECH Guideよい使い方じゃ。ただし第3アルファ版で、キャッシュもuse、refresh、bypassで動きが違うと説明されておるから、目的に合わせて選ぶのが現実的じゃよ。That fits nicely. Just remember this is the third alpha, and the release describes different cache behavior for use, refresh, and bypass, so choose the mode that matches what you’re testing.
記事情報・収集記録Article details & collection record
出典Source
LangChain Releases公式Official
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
リリースRelease
原文言語Source language
EN
重要度の位置づけImportance in this lane
MediumMedium priority(Agent Frameworks 131件中、同等以上 95件)(95 of 131 Agent Frameworks entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
1.2 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
短命 (ニュース)Short-lived (news)

🤖Agent Frameworks の他の記事More from Agent Frameworksもっと見る →View more →

ページ上部へScroll to top