modelcontextprotocol / modelcontextprotocol/python-sdk
[docs] How to run FastMCP with args or env vars?
未關閉
適合新手
還沒有人認領這個 Issue。
documentation
P2
ready for work
- 主要語言
- Python
- 星號
- 24.3k
- 分支
- 4k
- 平均合併
- 1 天 1 小時
- 30 天內合併 PR
- 31
描述
https://github.com/modelcontextprotocol/python-sdk/tree/main?tab=readme-ov-file#development-mode
# Development Mode
The fastest way to test and debug your server is with the MCP Inspector:
mcp dev server.py
# Add dependencies
mcp dev server.py --with pandas --with numpy
# Mount local code
mcp dev server.py --with-editable .
This didn't show how to run with args in dev mode.
Expected to see something like this:
mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://...
mcp install server.py -f .env
However this is not dev mode
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 README 的 Development Mode 部分以及現有的 mcp dev 和 mcp install 範例開始。檢查開發命令如何接受伺服器引數和環境變數,然後記錄受支援的呼叫方式,或說明限制和適當的替代方案。當新手能夠根據更新後的說明,使用所需設定執行開發伺服器時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- cli, documentation
- Issue 類型
- 文件
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 68/100