github / github/copilot-cli

Support for ${input:name} in mcp.json

未关闭
#1,841 0 条评论 6 个 reaction 已指派 0 人 在 GitHub 查看
area:mcp
主要语言
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_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。