Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions internal/connect/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var allClients = []ClientDef{
ServerKey: "servers",
Supported: true,
Icon: "vscode",
ClientInfoNames: []string{"Visual Studio Code", "visual-studio-code", "vscode"},
ClientInfoNames: []string{"Visual Studio Code", "Visual Studio Code - Insiders", "visual-studio-code", "vscode"},
ReloadHint: "Run \"MCP: List Servers\" → Restart (or reload the window) in VS Code to load MCPProxy",
},
{
Expand All @@ -119,8 +119,9 @@ var allClients = []ClientDef{
// Local harness, which the "vscode" client above still serves (#1896).
//
// Presence is matched exactly against clientInfo.name: the Copilot CLI
// sends "copilot-cli", other Copilot hosts "github-copilot-developer".
ClientInfoNames: []string{"copilot-cli", "github-copilot-developer", "copilot"},
// sends "copilot-cli", VS Code's agent host "vscode-agent-host" (#1959),
// other Copilot hosts "github-copilot-developer".
ClientInfoNames: []string{"copilot-cli", "vscode-agent-host", "github-copilot-developer", "copilot"},
ReloadHint: "Reload the VS Code window (or restart Copilot CLI) to load MCPProxy",
},
{
Expand Down
7 changes: 4 additions & 3 deletions internal/connect/copilot_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ func TestConnectCopilotWritesTheCopilotUserConfig(t *testing.T) {

// Presence ("seen", calls in the last 24h) is matched exactly against the
// clientInfo.name of the MCP initialize request. The Copilot CLI sends
// "copilot-cli" and other Copilot hosts send "github-copilot-developer", so
// both have to be aliases of this client or it never shows as connected.
// "copilot-cli", VS Code's agent host "vscode-agent-host" (#1959) and other
// Copilot hosts send "github-copilot-developer", so all of them have to be
// aliases of this client or it never shows as connected.
func TestCopilotClientInfoNamesMatchWhatCopilotSends(t *testing.T) {
def := FindClient("copilot")
if def == nil {
Expand All @@ -59,7 +60,7 @@ func TestCopilotClientInfoNamesMatchWhatCopilotSends(t *testing.T) {
for _, name := range def.ClientInfoNames {
have[name] = true
}
for _, want := range []string{"copilot-cli", "github-copilot-developer"} {
for _, want := range []string{"copilot-cli", "vscode-agent-host", "github-copilot-developer"} {
if !have[want] {
t.Errorf("ClientInfoNames = %v, missing %q", def.ClientInfoNames, want)
}
Expand Down
Loading