Home›MCP / Tooling›Claude Code v2.1.231|Slack の MCP OAuth が redirect URI で弾かれる問題を修正|毎日Changelog解説
Claude Code v2.1.231|Slack の MCP OAuth が redirect URI で弾かれる問題を修正|毎日Changelog解説

Claude Code v2.1.231|Slack の MCP OAuth が redirect URI で弾かれる問題を修正|毎日Changelog解説Claude Code v2.1.231 fixes a bug where MCP servers using pre-registered OAuth…

元記事を読むRead original articleqiita.com(新しいタブで開きます)(opens in a new tab)
AI要点サマリSummary highlight

Claude Code v2.1.231 では、事前登録済み OAuth クライアントを使う MCP サーバー(Slack など)でサインインが redirect URI の不一致により失敗していたバグが修正された。

Claude Code v2.1.231 fixes a bug where MCP servers using pre-registered OAuth clients, such as Slack, failed to authenticate due to a redirect URI mismatch.

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

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

Anthropicのコーディング支援ツール「Claude Code」に、外部サービス連携に関わる不具合を解消するアップデートが届いた。最新のv2.1.231は修正1件のみのリリースで、事前登録済みのOAuthクライアントを使うMCPサーバー、代表例としてSlackで、サインインがredirect URIの不一致により失敗していた問題が修正された。

MCP(Model Context Protocol)は、AIアシスタントを外部のデータソースやツールと接続するためのオープンな仕組みで、Anthropicが提唱した。Claude CodeはこのMCPを通じてSlackなどの外部サービスと連携でき、その際の認証にはOAuthが広く用いられる。

今回の不具合の焦点となったredirect URIは、OAuth認証フローの中核をなす要素だ。ユーザーがサービス側でサインインを済ませると、認可サーバーはあらかじめ登録された遷移先(redirect URI)へ制御を戻す。この値が登録内容と一致しない場合、なりすましなどのリスクを避けるために認証は拒否される仕様になっている。

問題は、事前登録済みのOAuthクライアントを利用するタイプのMCPサーバーで顕在化していたと見られる。Slackのように、動的なクライアント登録ではなく、あらかじめクライアントIDと許可済みのredirect URIを固定して運用するサービスでは、Claude Code側が扱うURIとサービス側の登録値がずれると、サインインが通らなくなる。v2.1.231はこの不一致を解消し、該当するMCPサーバーへの接続を正常化するものだ。

MCPは公開以降、対応サーバーやクライアントが増え、開発ツールやチャット基盤との接続例が広がっている。認証周りの不整合はユーザー体験を大きく損なうだけに、こうした地道な修正は実運用での安定性を支える意味を持つ。今回のリリースは機能追加を伴わない小規模な更新だが、Slack連携を利用しているユーザーにとっては影響が大きい修正と言えそうだ。

Anthropic has shipped Claude Code v2.1.231, a small maintenance release that contains a single fix aimed at users who connect the tool to external services through the Model Context Protocol (MCP). According to the release notes, the update resolves a bug that prevented MCP servers relying on pre-registered OAuth clients from completing sign-in, with Slack cited as the representative case. The failure was traced to a redirect URI mismatch during the authentication handshake.

The issue matters because OAuth-based sign-in is the gateway to many of the integrations that make Claude Code useful in day-to-day work. When the authentication step breaks, the affected MCP server cannot be authorized at all, which means the connected service is effectively unreachable from within the client. For teams that route their workflows through Slack or similar platforms, a redirect URI problem is not a cosmetic glitch but a hard blocker on getting the connection running.

To understand the fix, it helps to recall how the OAuth authorization flow works. When a user signs in to a third-party service, the authorization server sends them back to the application at a specific address known as the redirect URI, delivering an authorization code in the process. For security reasons, that redirect URI must exactly match a value the provider recognizes; if the value presented during the flow differs from what the server expects, the request is rejected outright. This strict matching is intentional, because it prevents authorization codes from being sent to an attacker-controlled destination. The trade-off is that even minor discrepancies cause the whole flow to fail.

The distinction that appears to sit at the center of this release is between dynamically registered and pre-registered OAuth clients. Some MCP servers support Dynamic Client Registration, in which the client and its redirect URI are negotiated on the fly. Others, including Slack, require developers to register the OAuth client ahead of time with a fixed redirect URI configured on the provider's side. In that pre-registered scenario, Claude Code needs to present the exact redirect URI that was set up in advance. The v2.1.231 changelog indicates that this is precisely where the earlier behavior went wrong, causing the mismatch and the resulting authentication failure.

For readers less familiar with the surrounding technology, MCP is an open standard introduced by Anthropic to give AI assistants a consistent way to reach external tools, data sources, and services. An MCP server exposes a capability, such as access to a messaging platform, project tracker, or database, and a client like Claude Code consumes it. Because many of those services sit behind their own identity systems, OAuth is a common part of the connection process, and correct handling of its details is a prerequisite for the ecosystem to function smoothly. As more providers publish MCP servers, edge cases in authentication like this one are likely to surface and require targeted fixes.

Claude Code itself is Anthropic's command-line coding assistant, and the company has been publishing frequent incremental releases, with version numbers advancing rapidly as small changes land. This particular build is narrow in scope, described as carrying only the one fix rather than new features, which is typical of a patch that addresses a specific compatibility problem. Users who were unable to authenticate a pre-registered OAuth MCP server, most visibly Slack, should be the primary beneficiaries once they update.

The source for this write-up is a Qiita blog that translates and annotates Anthropic's official Claude Code changelog shortly after each release, so the details here reflect the vendor's own notes as relayed through that community coverage. As always with a single-line changelog entry, the exact internal cause and the precise code path involved are not fully detailed publicly, so some of the mechanics described above are inferred from how OAuth redirect URI validation generally operates rather than spelled out in the notes.

For anyone maintaining MCP integrations, the practical takeaway is straightforward. If sign-in to a service using a pre-registered OAuth client had been failing, upgrading to v2.1.231 is the recommended step, after which it is worth confirming that the connection completes and that the redirect URI configured on the provider side still matches what the updated client sends.

ポコと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. ポコPokoSlackみたいなMCPサーバーで、redirect URIの不一致って何が起きていたの?What was going wrong with the redirect URI on MCP servers like Slack?
  2. TECHガイドTECH Guide簡単に言うとじゃな、認証後の戻り先が登録内容と合わず、サインインに失敗していたんじゃ。記事によればv2.1.231で修正されたぞ。Simply put, the post-auth return address didn’t match the registered one, so sign-in failed. According to the article, v2.1.231 fixes that.
  3. ポコPokoへえ、直ると何が嬉しいの?MCPサーバーへのサインインが通るようになるってこと?Oh, nice! Does that mean users can sign in to those MCP servers properly now?
  4. TECHガイドTECH Guideそういうことじゃ。記事の範囲では、Slackなど事前登録済みOAuthクライアントを使うMCPサーバーの認証失敗が解消されたんじゃよ。That’s the idea. The article says it resolves authentication failures for MCP servers using pre-registered OAuth clients, such as Slack.
  5. ポコPokoつまり今回は、新機能ではなく、戻り先の食い違いでログインできなかった問題を直したんだね。So this isn’t a new feature—it fixes a return-address mismatch that was blocking sign-in.
  6. TECHガイドTECH Guideその理解でよいぞ。修正はこの1件だけなので、該当するMCPサーバーのサインインが正常に進むかが見どころじゃな。Exactly. Since this release contains just this one fix, the key thing to watch is whether sign-in now completes correctly on affected MCP servers.
記事情報・収集記録Article details & collection record
出典Source
Qiita MCPコミュニティCommunity
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
ブログBlog
原文言語Source language
JA
重要度の位置づけImportance in this lane
MediumMedium priority(MCP / Tooling 122件中、同等以上 112件)(112 of 122 MCP / Tooling entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
2.1 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
中期 (チュートリアル)Medium-term (tutorial)

🔗MCP / Tooling の他の記事More from MCP / Toolingもっと見る →View more →

ページ上部へScroll to top