modelcontextprotocol / modelcontextprotocol/python-sdk
MCP client not able to initiate StdioServerParameters while running in Jupyter Notebook
未關閉
還沒有人認領這個 Issue。
bug
needs repro
- 主要語言
- Python
- 星號
- 24.3k
- 分支
- 4k
- 平均合併
- 1 天 1 小時
- 30 天內合併 PR
- 31
描述
while initiating StdioServerParameters in jupyter notebook there is an Exception from subprocess.Popen.
Exception is : UnsupportedOperation fileno
Same code works in idle and with quart server.
OS : windows 11
Python version: 3.11
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,在使用 Python 3.11 的 Windows 11 Jupyter Notebook 中重現 StdioServerParameters 初始化,接著將 subprocess.Popen 路徑與正常運作的 IDLE 和 Quart 案例進行比較。調查 fileno 失敗並找出涉及的 SDK 進入點;完成的標準是 notebook 案例能夠正常運作,且不會導致其他環境回歸,並具有回歸涵蓋率。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- jupyter-notebook, python
- 領域
- developer-experience
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100