Proposal: export urlElicitationMiddleware
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start in mcp/client.go and read urlElicitationMiddleware, including its TODO about exporting it. Compare the proposed exported middleware, a ClientOptions option, and the alternative decoding helper before settling the public API. Done means clients can handle -32042 elicitations without decoding the error data themselves.
索引モデルが issue の本文から書いたものです。
説明
Checklist
- I searched the existing issues, and this has not been reported before.
- This is a real problem that I ran into myself, using the latest release of the SDK.
- I ran into it in a production system, not in a toy example, a benchmark, or an automated or AI-driven scan of the code.
- I (a human) examined the relevant SDK code, and wrote or reviewed every line of this report. It is not unreviewed AI output.
- This report is brief and concise, and sticks to the facts needed to understand the problem.
What problem are you trying to solve?
Our client handles URL mode elicitations in its ElicitationHandler. On 2026-07-28 the input requests of a tool result reach that handler. On 2025-11-25 a -32042 error does not: CallTool returns the *jsonrpc.Error, so we decode its elicitations data ourselves to get the same ElicitParams.
urlElicitationMiddleware in mcp/client.go already turns -32042 into handler calls, but it is unexported (see its TODO(rfindley) about exporting it). It returns a handler error wrapped, so it also works for a client that can't wait in-process: our handler returns an error carrying the URL and we pause the task for a person.
Where did you hit this?
kagent's Go ADK agent runtime relays an MCP server's URL elicitation to the person as an A2A input-required task (kagent-dev/kagent#3500).
What would help?
Export the middleware, e.g. func URLElicitationMiddleware() Middleware, or an option on ClientOptions that installs it. A smaller alternative: an exported helper that decodes -32042 data into []*ElicitParams, the inverse of URLElicitationRequiredError.
AI assistance: used to check the SDK code paths and draft this report.
- 主要言語
- Go
- スター
- 5.3k
- フォーク
- 607
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 80
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
modelcontextprotocol/go-sdk のほかの issue
-
Expose generic `SendNotification` on `ServerSession` for custom protocol extensions再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンneeds investigation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
modelcontextprotocol/go-sdk#745 · コメント 13 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
mcp: ClientSession.CallTool omits Mcp-Param-* headers unless the tool is in the ListTools cache, so a call without a prior tools/list is rejected対応中かも @huynle-dev が 2 日前に担当しました。 オープン
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
modelcontextprotocol/go-sdk#1481 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
mcp: list_changed can only be broadcast; a server cannot notify one session (2026-07-28 subscriptions/listen)対応中かも @huynle-dev が 2 日前に担当しました。 オープン
難易度 4/5 1〜2日 初心者へのやさしさ 32/100
modelcontextprotocol/go-sdk#1480 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
mcp: Client.Connect falls back to initialize after a 401 on server/discover, running the authorization flow twice対応中かも @kerthans が 14 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
modelcontextprotocol/go-sdk#1423 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
jsonrpc: decimal and exponent integer IDs still lose precision after #1401対応中かも @skosovsky が 19 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
modelcontextprotocol/go-sdk#1404 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
modelcontextprotocol/go-sdk の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Azure/aztfexport#690 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kubecost/ibm-finops-agent#289 ·
メンテナーはふだん 2 日以内に返信
-
ai-driven-fuzzing bug Minor
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
linagora/cozy-stack#5162 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
prometheus/prometheus-mcp#213 ·
メンテナーはふだん 3 日以内に返信
-
Deleting a client-role keycloak_generic_role_mapper removes all roles of that client from the scope mapping対応中かも @albarkauss が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
keycloak/terraform-provider-keycloak#1786 ·
メンテナーはふだん 5 日以内に返信