github / github/copilot-cli

[Feature Request] Send copilot-cli specific metadata when invoking MCP servers

未关闭
#432 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:mcp
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

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

Send copilot-cli specific metadata when invoking MCP servers

### Proposed solution

Right now, the `copilot` CLI doesn’t include any identifier when it connects to MCP servers.

Here's a sample MCP request from the `copilot` CLI
```json
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"_meta": {
"progressToken": 2
},
"name": "cool_tool_name",
"arguments": {
"foo": "bar"
}
}
}
```

Environment:
```console
> copilot --version
0.0.353
Commit: f8fd3e3
```

Meanwhile, VS Code kind of labels itself.
```json
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"_meta": {
"progressToken": "f78b107c-d8f7-415e-9acb-9a924295e3c7",
"vscode.conversationId": "4bbaa913-a8a3-4807-8b22-39b38a640d52",
"vscode.requestId": "4578b866-66a0-41fe-a345-baec275a82b2"
},
"name": "cool_tool_name",
"arguments": {
"foo": "bar"
}
}
}
```

### Example prompts or workflows

_No response_

### Additional context

_No response_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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