Skip to content
Back to search

vscode-as-mcp-server

Expose VSCode features such as file viewing and editing as MCP, enabling advanced AI-assisted coding directly from tools like Claude Desktop

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/acomagu--vscode-as-mcp-server/badge.svg)](/listings/acomagu--vscode-as-mcp-server)

HTML

<a href="/listings/acomagu--vscode-as-mcp-server"><img src="/api/listings/acomagu--vscode-as-mcp-server/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

1. Install the extension from the [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=acomagu.vscode-as-mcp-server).

2. Configure your MCP client:

- **Using mcp-installer**: You can simply instruct it to "install the vscode-as-mcp-server MCP server". - **Other clients like Claude Desktop**: Add the following to your configuration file (`claude_desktop_config.json`):

```json { "mcpServers": { "vscode": { "command": "npx", "args": ["vscode-as-mcp-server"] } } } ```

3. Check the MCP server status in the bottom-right VSCode status bar:

- (Server icon): Server is running - ∅: Click to start the server

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 83 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # VSCode as MCP Server
  2. [Marketplace](https://marketplace.visualstudio.com/items?itemName=acomagu.vscode-as-mcp-server)
  3. A VSCode extension that turns your VSCode into an MCP server, enabling advanced coding assistance from MCP clients like Claude Desktop.
  4. ## Key Features
  5. ### Code Editing Support
  6. - Review proposed code changes from an LLM through diffs, allowing you to accept, reject, or provide feedback.
  7. - Real-time diagnostic messages (e.g., type errors) sent instantly to the LLM for immediate corrections.
  8. ![Code editing diff](https://storage.googleapis.com/zenn-user-upload/778b7e9ad8c4-20250407.gif)
  9. ### Terminal Operations
  10. - Execute commands within VSCode’s integrated terminal (supports background/foreground execution, and timeout settings).
  11. ### Preview Tools
  12. - Preview URLs directly within VSCode’s built-in browser (e.g., automatically opens browser preview after starting a Vite server).
  13. ![Preview tool](https://storage.googleapis.com/zenn-user-upload/8968c9ad3920-20250407.gif)
  14. ### Multi-instance Switching
  15. - Easily switch the MCP server between multiple open VSCode windows.(Just by clicking the status bar item)
  16. ![Instance switching](https://storage.googleapis.com/zenn-user-upload/0a2bc2bee634-20250407.gif)
  17. ### Relay Functionality (Experimental)
  18. - Relay and expose built-in MCP servers introduced in VSCode 1.99 externally.
  19. - Allows external access to tools provided by other MCP extensions, such as GitHub Copilot.
  20. ## Available Built-in Tools
  21. - **execute_command**: Execute commands in VSCode’s integrated terminal
  22. - **code_checker**: Retrieve current diagnostics for your code
  23. - **focus_editor**: Focus specific locations within files
  24. - **list_debug_sessions** / **start_debug_session** / **restart_debug_session** / **stop_debug_session**: Manage debug sessions
  25. - **text_editor**: File operations (view, replace, create, insert, undo)
  26. - **list_directory**: List directory contents in a tree format
  27. - **get_terminal_output**: Fetch output from a specified terminal
  28. - **list_vscode_commands** / **execute_vscode_command**: List and execute arbitrary VSCode commands
  29. - **preview_url**: Open URLs within VSCode’s integrated browser
  30. ## Installation & Setup
  31. 1. Install the extension from the [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=acomagu.vscode-as-mcp-server).
  32. 2. Configure your MCP client:
  33. - **Using mcp-installer**: You can simply instruct it to "install the vscode-as-mcp-server MCP server".
  34. - **Other clients like Claude Desktop**: Add the following to your configuration file (`claude_desktop_config.json`):
  35. ```json
  36. {
  37. "mcpServers": {
  38. "vscode": {
  39. "command": "npx",
  40. "args": ["vscode-as-mcp-server"]
  41. }
  42. }
  43. }
  44. ```
  45. 3. Check the MCP server status in the bottom-right VSCode status bar:
  46. - (Server icon): Server is running
  47. - ∅: Click to start the server
  48. ![Server status indicator](https://storage.googleapis.com/zenn-user-upload/321704116d4a-20250408.png)
  49. ## Motivation
  50. This extension was developed to mitigate high costs associated with metered coding tools (like Roo Code and Cursor). It's an affordable, self-hosted alternative built directly into VSCode.
  51. Bug reports and feedback are very welcome! 🙇
  52. ## Future Roadmap
  53. - Ability to select which built-in MCP servers to expose
  54. - WebView-based approval UI (similar to Roo Code)
  55. - Integration with VSCode's file history (Timeline)
  56. - Instant toggling of auto-approvals and tool activation/deactivation
  57. - Customizable server port configuration

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.