Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-diff-mcpNew to Visual Studio Code? Get it now.
vscode-diff-mcp

vscode-diff-mcp

Sebastian

|
1 install
| (0) | Free
Opens VS Code's native diff editor for manual review of changes proposed by MCP clients
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-diff-mcp

License: MIT

Review, edit, and approve AI-proposed changes in VS Code's native diff editor before they are applied.

Companion extension for the vscode-diff-mcp MCP server. Works with any MCP client: opencode, Claude Code, Codex, Cursor, and more.

How it works

  1. An AI agent calls edit_with_diff / write_with_diff instead of editing a file directly.
  2. This extension opens the change in VS Code's native diff editor (old vs new).
  3. You review — and can edit the proposal by hand — then click Accept or Reject (Cmd+Enter / Cmd+Shift+Enter; closing the editor counts as reject).
  4. On accept, the MCP server applies the approved content to the file. Nothing is written on reject.

Requirements

  • VS Code 1.94+
  • The vscode-diff-mcp MCP server configured in your MCP client (see the repo README)

[!NOTE] If the extension is missing, the MCP server auto-installs it silently (code --install-extension iamseb4s.vscode-diff-mcp) when no heartbeat arrives within 10s of startup.

Features

  • Native diff editor with accept/reject buttons in the editor title bar
  • Keyboard shortcuts: Cmd+Enter accept, Cmd+Shift+Enter reject (macOS); Ctrl+Enter / Ctrl+Shift+Enter elsewhere
  • The diff opens in the active editor column — no split-screen surprises
  • With multiple windows open, each diff appears in the window where its agent is running, even when another window has focus
  • Manual edits you make in the diff flow back to the agent
  • All requests to the MCP server are authenticated with a per-instance bearer token (loopback only)

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft