github / github/copilot-cli

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

Đang mở
#4,042 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:mcp area:plugins triaged
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### 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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
cli, security
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.