modelcontextprotocol / modelcontextprotocol/python-sdk

Support selection of authorization servers from PRM document

未關閉
#1,319 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

auth enhancement
主要語言
Python
星號
24.3k
分支
4k
平均合併
1 天 1 小時
30 天內合併 PR
31

描述

Initial Checks
Description

SDK should offer a way for developers to specify which of the authorization servers to use from the PRM document.

https://github.com/modelcontextprotocol/python-sdk/blob/07ae8c0d4e58bc0527a6898709288686ef6506dd/src/mcp/client/auth.py#L250

Right now, the first server is selected.

Example Code

Python & MCP Python SDK
Latest

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先閱讀 src/mcp/client/auth.py 約第 250 行的位置,目前這裡會選取 PRM 文件中的第一個授權伺服器。確定開發者應如何指定其偏好的伺服器,並驗證當文件中存在多個伺服器時是否會遵循該選擇。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
authentication
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。