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.
- packages/extension: The VSCode extension that hosts the IPC server.
- packages/server: The MCP server implementation that connects to the extension via IPC.
- packages/shared: Shared code and protocol definitions used by both components.
- Node.js v20+
- npm v9+
- Install dependencies for all packages:
npm install
Build all packages:
npm run buildOr build specific packages:
npm run build -w packages/extension
npm run build -w packages/serverThis 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.