Skip to content

sailro/CopilotCliIde

Repository files navigation

Copilot CLI IDE Bridge for Visual Studio

Build status

A Visual Studio extension that enables GitHub Copilot CLI to interact with Visual Studio via the /ide command — the same way it works with VS Code.

copilot-cli with VS ide support

Getting Started

Prerequisites

  • Visual Studio 2022 (v17.x) or Visual Studio 2026 (v18.x)
  • GitHub Copilot CLI installed
  • An active Copilot subscription
  • .NET 10.0 SDK (for the MCP server process)

Build & Install

# Clone and build (requires MSBuild from VS — not dotnet build)
git clone https://github.com/sailro/CopilotCliIde
msbuild src/CopilotCliIde/CopilotCliIde.csproj /p:Configuration=Debug

# The .vsix is produced at:
# src/CopilotCliIde/bin/Debug/CopilotCliIde.vsix

Note: The MCP server is automatically published and bundled into the VSIX during the build.

Double-click the .vsix to install, or use F5 in Visual Studio to debug in the experimental instance.

Usage

  1. Open a solution in Visual Studio — the extension activates automatically
  2. Open Copilot CLI in a terminal, with the working directory matching the solution folder
  3. Run /ide in Copilot CLI — it discovers Visual Studio and connects
$ copilot
> /ide
  ✓ Connected to Visual Studio (CopilotCliIde)

Once connected, the agent can query solution info, see your selection in real time, propose diffs with Accept/Reject, and check diagnostics from the Error List.

Diagnostics

The extension logs all bridge activity to a dedicated "Copilot CLI IDE" pane in the VS Output Window (View → Output). Each log entry is timestamped and includes:

  • MCP tool calls received from Copilot CLI (e.g., get_selection, open_diff, read_file)
  • Push notifications sent to the CLI (e.g., selection changes, diagnostics updates)

This real-time log is useful for debugging connectivity issues, verifying that the CLI can see your edits, and monitoring the bridge during active sessions.

output pane in VS

Protocol

For full protocol details — discovery, transport, MCP tools, push notifications, and schemas — see doc/protocol.md.

License

MIT

About

Enables GitHub Copilot CLI to interact with Visual Studio via the /ide command

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors