VS Code and Copilot

This page covers Copilot's agent mode calling the coordigent.* MCP tools. The Coordigent extension, which shows your agents in the editor, is separate: see Extension manager.

coord setup and coord connect register Copilot for your VS Code profile when they find VS Code on this machine (its Code/User settings folder, ~/.vscode, or code on your PATH): they add the coordigent server to the profile's mcp.json, so every repo gets the tools.

Set it up

Nothing to do if coord setup found VS Code. To add the profile MCP entry yourself, once per machine:

coord install vscode --user

Or, to write the MCP entry into one repo for a team that commits it, run this inside it:

coord connect --repo-files --clients vscode

--repo-files writes .vscode/mcp.json only. Coordigent does not write Copilot instructions. Without --clients, it writes that entry if the repo has a .vscode/mcp.json or .github/copilot-instructions.md, or if it finds VS Code here (~/.vscode, or code or code-insiders on your PATH) and you say yes to its one question. A bare .vscode/ folder doesn't count; most repos have one for editor settings.

What gets written

In the repo

.vscode/mcp.json, under VS Code's servers key, not mcpServers:

{ "servers": { "coordigent": { "type": "stdio", "command": "sh", "args": ["-c", "exec \"${TOWER_BIN_DIR:-$HOME/.tower/bin}/coord-mcp\" \"$@\"", "coord-mcp"], "env": { "COORDIGENT_REPO": "your-org/your-repo" }, "cwd": "${workspaceFolder}" } } }

The server is found through $HOME, so every teammate's file matches. The merge keeps your comments and servers. No token is stored: coord-mcp reads your login from ~/.tower/config.json.

VS Code Copilot is given the coordination rules as MCP server instructions (unverified: no marker check). Coordigent does not write .github/copilot-instructions.md. coord update removes the Coordigent block from an old copy and leaves the rest of the file.

--repo-files also writes Claude Code's repo files.

In your VS Code profile

coord setup and coord connect write your profile's mcp.json, without the cwd line, when they find VS Code; coord install vscode --user does the same. Comments in the file stay. coord install vscode without --user writes the repo files above without the rest of coord connect.

SystemFile
macOS~/Library/Application Support/Code/User/mcp.json
Linux~/.config/Code/User/mcp.json
WindowsAppData/Roaming/Code/User/mcp.json under your home folder
  • --config-path <file> targets a profile other than the default.
  • Both forms print an equivalent code --add-mcp command, so VS Code can write its own entry.

Update

coord update

Gets the current coord and coord-mcp and restarts the daemon. Restart VS Code, or the server from MCP: List Servers, to load the new coord-mcp.

Check it

coord doctor vscode

coord doctor shows vscode with a ✓ and its config file. A ✗ line names its fix. In VS Code, run MCP: List Servers, pick coordigent, choose Start, then ask Copilot to call coordigent.status.

What works and what degrades

VS Code supports MCP resources and prompts. Sampling, elicitation, roots, server notifications and resource subscriptions stay off. Coordigent does not need them.

  • Files in use. No hook in Copilot, so Coordigent doesn't see its edits. The agent still appears once it calls a coordigent.* tool, and can read status and send messages.
  • Messages. A message or conflict waits for the agent's next coordigent.* call and arrives as a ⚠ COORD: banner on the result. coordigent.message.inbox reads the rest.

Remove

To remove Coordigent from this machine entirely, run coord uninstall (add --dry-run to see the plan first). It keeps anything you edited by hand. It cleans your profile's mcp.json (the default profile's, at the path above) and each repo's .vscode/mcp.json.

By hand, delete the coordigent entry from servers in .vscode/mcp.json or your profile's mcp.json. If an older install left a Coordigent block in .github/copilot-instructions.md, delete the text between the markers.

Next