Grant type is hardcoded `authorization_code` for DCR
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 64/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- swift
調査の方向性
Start with Sources/MCP/Base/Authorization/OAuthClientRegistrar.swift around line 82 and trace how client metadata is assembled for dynamic client registration. Define how callers can provide additional grant types such as refresh_token, then verify that the registration request declares the configured values and supports the reported offline_access flow.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
In OAuthClientRegistrar the declared grant types for client registration are hard coded to authorization_code with no option to add additional grant types such as refresh_token. For authorization servers that require refresh_token grant type be declared during client registration, this effectively prevents clients from using refresh tokens with some authorization servers.
Both Python and Typescript MCP SDKs provide OAuthClientProvider/OAuthClientMetadata constructs to allow specifying grant types as well as other client metadata.
To Reproduce
Steps to reproduce the behavior:
- DCR with an MCP server/authz server that requires
refresh_tokendeclaration - Request
offline_accessscope during authorization - (may or may not get a refresh token depending on the authz server)
- Try to exchange the refresh token for a new access token
- Request will be rejected
Expected behavior
Provide a mechanism to specify grant types to be declared at client registration time.
Logs
n/a
Additional context
Mentioned above, but to reiterate, other official MCP SDKs (e.g. Typescript, Python, etc.) do support specifying grant types through configuration.
- 主要言語
- Swift
- スター
- 1.6k
- フォーク
- 270
- 平均マージ
- 2日 7時間
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
modelcontextprotocol/swift-sdk のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
modelcontextprotocol/swift-sdk#327 ·
メンテナーはふだん 2 日以内に返信
-
Value decoding changes data-URL-looking JSON strings into Value.data対応中かも @bitbemol が 73 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
modelcontextprotocol/swift-sdk#277 ·
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
modelcontextprotocol/swift-sdk#274 ·
メンテナーはふだん 2 日以内に返信
-
`HTTPClientTransport` fails to build on Windows: `#if !os(Linux)` guards no longer match the `EventSource` platform condition再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
modelcontextprotocol/swift-sdk#261 ·
メンテナーはふだん 2 日以内に返信
-
Client.withBatch leaves per-request tasks pending when transport.send throws対応中かも @bbdu3 が 1 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
modelcontextprotocol/swift-sdk#324 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
modelcontextprotocol/swift-sdk の issue をすべて見る
似ている issue
-
[java] TestClassWithoutTestCases: document that abstract classes and interfaces are not checkedオープン
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
VictorKildahl/cra#302 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
文件夹设置bugオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
joeseesun/qiaomu-jot#14 ·
メンテナーはふだん 1 日以内に返信