github / github/copilot-cli

Support interactive input variables (${input:...}) for plugins in GitHub Copilot CLI

未關閉
#4,042 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:mcp area:plugins triaged
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

GitHub Copilot CLI currently has no support for interactive input variables (for example, ${input:...} in .mcp.json). This makes it difficult for plugins to securely prompt users for values such as API keys, URLs, or other configuration at runtime, reducing compatibility with existing MCP configurations.

### Proposed solution

Introduce an interactive input mechanism for Copilot CLI similar to VS Code's ${input:...} support.

- Support resolving ${input:...} variables when a Copilot CLI session starts, prompting the user for required values.

- Provide a dedicated CLI configuration section (similar to Claude Code's userConfig https://code.claude.com/docs/en/plugins-reference#user-configuration) where plugins can declare user-configurable parameters that are prompted interactively and made available during execution.

For example:

```json
{
"inputs": [
{
"id": "github_token",
"type": "password",
"description": "GitHub Personal Access Token"
}
]
}

```

### Example prompts or workflows

_No response_

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

Start with the .mcp.json example and the session-start flow described in the issue, then trace how plugin configuration is currently loaded. Done means plugins can declare inputs, the CLI prompts for required values at session start, and resolved values are available during execution.

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

評估

領域
cli, security
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
冷清
描述清晰度
需要釐清
新手友好度
30/100

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

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