Support for ${input:name} in mcp.json
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the bug
Now that the cli supports loading mcp server configuration from `.vscode/mcp.json` it's a problem it does not support asking for inputs. It makes the feature kind of useless because now I have to commit my secrets if I want to share the server configurations with my colleagues.
### Affected version
GitHub Copilot CLI 0.0.421. Run 'copilot update' to check for updates.
### Steps to reproduce the behavior
Start copilot in a folder with a mcp-json with ${input:____}.
Example:
```
{
"servers": {
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "${input:context7_api_key}"
}
},
},
"inputs": [
{
"id": "context7_api_key",
"type": "promptString",
"description": "api key",
"password": true
}
]
}
```
### Expected behavior
Ask the user for input or look for a separate file containing secrets
### Additional context
_No response_
貢獻指南
研究方向
先閱讀 `.vscode/mcp.json` 中的設定範例,以及本 issue 中描述的 `inputs` 區段。追蹤 CLI 如何載入 MCP 伺服器設定,並確認應如何取得 `${input:name}` 值,包括密碼輸入或獨立的 secrets 檔案;當共用設定不再需要提交 secrets 時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- vscode
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100