
Google Workspace MCP の承認(input_required)を agent の確認ダイアログに中継する ― stdio リレーと 60 秒タイムアウトの落とし穴Relaying Google Workspace MCP Approvals (input_required) to an Agent's Confirmation Dialog: A stdio Relay and the 60-Second Timeout Pitfall
Google Workspace のリモート MCP が返す input_required 形式の承認要求を、ローカルの stdio リレーで従来の確認ダイアログに橋渡しする実装を解説し、60 秒タイムアウトの注意点も扱う。新方式に未対応の agent でも使えるようになる。
Explains a local stdio relay that translates the input_required approval responses from Google Workspace's remote MCP servers into an agent's existing confirmation dialog, including a 60-second timeout pitfall. It helps agents lacking the new flow.
AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (qiita.com) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (qiita.com).
Google Workspace のリモート MCP サーバーが承認を求めてきたとき、手元の agent が新しい形式に対応していないと確認が通らないことがあります。この問題に対し、ローカルの stdio リレーで承認要求を従来の確認ダイアログへ橋渡しする方法が紹介されています。
GA とアクセス経路
2026 年 11 月 24 日、Google Workspace のリモート MCP サーバーが GA になりました。Gmail、Drive、Docs、Sheets、Calendar などが、製品ごとに https://<product>mcp.googleapis.com/mcp/v1 の形で提供されています。
また 2027 年 2 月 1 日以降、AI エージェントは REST API を直接呼ぶのではなく、この MCP サーバーか Workspace CLI を経由することが求められます。
承認の新形式
問題になるのが承認です。Google 側は一部のツール呼び出しをすぐには実行せず、結果として input_required を返します。これは「ユーザーに確認を取ってから再送してほしい」という要求です。
この形式は MCP 2026-07-28 のステートレスな方式(Multi Round-Trip Requests)にあたります。従来のように、サーバーからクライアントへ elicitation/create を送る方式とは別物です。
手元の agent は、従来の elicitation/create による確認ダイアログには対応していても、input_required 形式をまだ扱えない場合があります。
stdio リレーの役割
記事が示すのは、Google の MCP サーバーと agent の間にローカルの stdio リレーを挟む構成です。リレーは上流から返る input_required を下流の elicitation/create に変換して中継します。agent から見れば従来どおりの確認ダイアログが出るため、新方式に未対応の agent でも承認つきのツールを使えるようになります。
あわせて、このリレーを実装する際の 60 秒タイムアウトに関する落とし穴も取り上げられています。
検証環境と spike
検証は Claude Code(2.1.332)と @modelcontextprotocol/sdk 1.32.2 で行われました。
記事中のコードは検証用の spike で、本番利用を想定したエラー処理やトークン管理は含まれていません。実運用に取り入れる場合は、その部分を別途用意する必要があります。
Google Workspace's remote MCP servers reached general availability, and they now ask for user approval in a format some agents cannot yet handle. This explainer covers an article that bridges that gap with a small local relay, so an agent that lacks the new flow can still show its usual confirmation dialog.
Remote MCP Servers Reach GA
According to the article, Google Workspace's remote MCP servers became generally available on November 24, 2026. Gmail, Drive, Docs, Sheets, Calendar and others are each served at their own endpoint, in the form https://<product>mcp.googleapis.com/mcp/v1. The article also states that from February 1, 2027, AI agents are expected to go through either this MCP server or the Workspace CLI, rather than calling the REST API directly.
The input_required Approval Problem
The sticking point is approval. For some tool calls, Google does not execute the request immediately. It returns input_required, asking the client to confirm with the user and then resend the request.
The article explains that this belongs to the stateless format of MCP 2026-07-28, called Multi Round-Trip Requests. It differs from the older method, in which the server sends elicitation/create to the client. Many agents already support elicitation/create, which drives a confirmation dialog, but may not yet handle input_required.
A Local stdio Relay
The approach is to place a local stdio relay between Google's MCP server and the agent. The relay takes the upstream input_required response and converts it into a downstream elicitation/create request, which the agent can show as its normal confirmation dialog. The summary says this makes the approach usable even with agents that do not support the new flow. The article also covers a 60-second timeout pitfall, which its title highlights.
Spike Code, Not Production
The author verified the approach with Claude Code 2.1.332 and @modelcontextprotocol/sdk 1.32.2. The article stresses that the code is a verification spike. It does not include production-grade error handling or token management, so it should be read as a demonstration of the relay idea rather than a finished implementation.
ポコと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.
- ポコPokoGoogleのサービスをエージェントに触らせるとき、普段の使い方で何が変わるの?When I let an agent touch Google services, what actually changes in everyday use?
- TECHガイドTECH Guide一部の操作で、Google側がすぐ実行せず input_required を返して「ユーザーに確認して再送して」と求めてきます。この記事は、その承認を手元の確認ダイアログにつなぐ方法です。For some actions, Google won't just run them. It returns input_required, asking for user confirmation first. This article shows how to connect that to your agent's usual confirmation dialog.
- ポコPoko前は、そういう確認ってできなかったの?So before, confirmations like that weren't possible?
- TECHガイドTECH Guide従来は、サーバーからelicitation/createを送る方式でした。今回のinput_requiredは別の形式で、手元のagentが未対応のことがあります。以前のGoogle側の挙動までは、この記事では分かりません。Before, the server sent elicitation/create. input_required is a different format, and some agents can't handle it yet. How Google behaved earlier isn't covered in this article.
- ポコPokoじゃあ、間にリレーを挟んで新しい形を古いダイアログに翻訳するのが一番の収穫だね。So the big takeaway is a relay in the middle that translates the new format into the old dialog?
- TECHガイドTECH Guideそうですね。ただ、コードは検証用で、エラー処理やトークン管理は本番向けではありません。タイトルにある60秒タイムアウトの落とし穴も、注目したい点です。Right. But the code is just a spike, without production-grade error handling or token management. The 60-second timeout pitfall in the title is also worth a close look.
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy


