ramblingenzyme/vscode-refactor-mcp
If you are the rightful owner of vscode-refactor-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The VSCode MCP Monorepo contains the source code for the VSCode MCP Proxy extension and its associated MCP server, organized as a monorepo.
VSCode MCP Monorepo
VSCode extension with an included MCP server that exposes tools to enable efficient refactoring via LLMs.
The original tool/idea was to rename/move files via the underlying VSCode editor API so that language servers would automatically update imports just the same as if I was moving the files around in the sidebar and avoid an agent going through the slow and error prone loop of trying to update the imports itself.
Primarily focused on VSCode/Copilot ATM as it's the only editor which seems to integrate with MCP servers declared by VSCode extensions.
Project Structure
- : The VSCode extension that hosts the IPC server.
- : The MCP server implementation that connects to the extension via IPC.
- : Shared code and protocol definitions used by both components.
Getting Started
Prerequisites
- Node.js v20+
- npm v9+
Installation
- Install dependencies for all packages:
npm install
Building
Build all packages:
npm run build
Or build specific packages:
npm run build -w packages/extension
npm run build -w packages/server
Development
This project uses npm workspaces to manage dependencies.
- Shared code in
packages/sharedis linked locally to@vscode-mcp/shared. - Changes in
sharedrequire a rebuild (npm run build -w @vscode-mcp/shared) to be picked up by other packages.