{"id":"7ab127d0-6c1e-4596-b03c-716b3200a3a9","slug":"vs-code-mcp-server","kind":"mcp","name":"VS-CODE-MCP-SERVER","summary":"Comprehensive Model Context Protocol server providing 29 specialized tools for VS Code integration, file operations, command execution, and project analysis","owner":"aditya-technophile-06","repoUrl":"https://github.com/aditya-technophile-06/VS-CODE_MCP-SERVER","license":"MIT","licenseTier":"permissive","trust":"community","stars":0,"match":null,"fewStars":true,"format":"mcp","createdAt":"2025-08-16T15:14:26.000Z","addedAt":"2026-10-21T04:04:55.311Z","logoUrl":"https://avatars.githubusercontent.com/u/95045339?u=cf562eaa9bd02a24111702df28ff6d2ae1c27cde&v=4","linkOnly":false,"collection":null,"skillPath":null,"categories":["developer-tools","cloud-infra","files-documents"],"tags":["claude","ide-integration","vs-code"],"runtime":"binary","local":true,"cloudCapable":false,"cloudCapability":"unknown","cloudReadyOnPlatform":false,"needsApiKey":false,"reviewed":false,"syncedAt":"2026-10-24T05:45:07.322Z","sample":false,"url":"https://conduits.dev/tools/vs-code-mcp-server","language":"TypeScript","transports":["stdio"],"install":{},"requirements":{"env":[],"upstreamMayCharge":false},"tools":null,"readme":"# VS Code MCP Server\n\nA comprehensive Model Context Protocol (MCP) server designed to provide AI assistants with powerful VS Code integration capabilities, offering 29 specialized tools for file operations, command execution, project analysis, and development workflow automation.\n\n## 🚀 Features\n\n- **📁 File Operations**: Complete file and directory management (8 tools)\n- **⚡ Advanced File Editing**: Precise line-level editing with validation (6 tools)\n- **🖥️ Command Execution**: System command execution and process management (8 tools)\n- **📊 Project Analysis**: Codebase insights and dependency discovery (3 tools)\n- **🔍 VS Code Integration**: Symbol search, definitions, and diagnostics (4 tools)\n\n## 📦 Installation\n\n### Prerequisites\n\n- Node.js 18.0.0 or higher\n- Claude Desktop (or any MCP-compatible client)\n\n### Setup\n\n1. **Clone the repository:**\n   ```bash\n   git clone <your-repo-url>\n   cd vs-code-mcp-server\n   ```\n\n2. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n\n3. **Build the server:**\n   ```bash\n   npm run build\n   ```\n\n### Configuration\n\nAdd the server to your MCP client configuration. For Claude Desktop, edit the config file:\n\n**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`\n**Windows:** `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"vs-code-mcp-server\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/your/vs-code-mcp-server/dist/index.js\"],\n      \"env\": {}\n    }\n  }\n}\n```\n\n> **Note:** Replace `/path/to/your/vs-code-mcp-server` with the actual path to your cloned repository.\n\n## 🛠️ Available Tools\n\n### 📁 File Operations (8 tools)\n\n| Tool | Description |\n|------|-------------|\n| `list_files_code` | List files and directories with optional recursive listing |\n| `read_file_code` | Read file contents with encoding and line range options |\n| `create_file_code` | Create new files with overwrite protection |\n| `delete_file_code` | Delete files and directories with recursive options |\n| `copy_file_code` | Copy files and directories to new locations |\n| `move_file_code` | Move or rename files and directories |\n| `create_directory_code` | Create directories with recursive parent creation |\n| `search_files_code` | Search for text patterns across files with regex support |\n\n### ⚡ Advanced File Operations (6 tools)\n\n| Tool | Description |\n|------|-------------|\n| `replace_lines_code` | Replace specific lines with content validation |\n| `insert_lines_code` | Insert content at specific line positions |\n| `delete_lines_code` | Delete specific line ranges from files |\n| `append_to_file_code` | Append content to file end |\n| `prepend_to_file_code` | Prepend content to file beginning |\n| `find_and_replace_code` | Advanced find/replace with regex support |\n\n### 🖥️ Command Execution (8 tools)\n\n| Tool | Description |\n|------|-------------|\n| `execute_shell_command_code` | Execute shell commands with timeout control |\n| `execute_streaming_command_code` | Execute commands with real-time output streaming |\n| `kill_process_code` | Kill processes by PID or name |\n| `list_processes_code` | List running processes with filtering |\n| `kill_all_processes_code` | Kill multiple processes matching patterns |\n| `check_command_code` | Check command availability on system |\n| `get_system_info_code` | Get comprehensive system information |\n| `run_script_code` | Execute script files with appropriate interpreters |\n\n### 📊 Project Analysis (3 tools)\n\n| Tool | Description |\n|------|-------------|\n| `analyze_project` | Analyze project structure and provide insights |\n| `get_project_stats` | Get detailed codebase statistics |\n| `find_dependencies` | Discover and analyze project dependencies |\n\n### 🔍 VS Code Integration (4 tools)\n\n| Tool | Description |\n|------|-------------|\n| `search_symbols_code` | Search for symbols across workspace with fuzzy matching |\n| `get_symbol_definition_code` | Get symbol definitions with type information |\n| `get_document_symbols_code` | Get hierarchical symbol outline for files |\n| `get_diagnostics_code` | Analyze code for errors and warnings |\n\n## 🔧 Development\n\n### Scripts\n\n- `npm run build` - Build the TypeScript source\n- `npm run start` - Start the MCP server\n- `npm run dev` - Build and start in development mode\n- `npm run watch` - Watch for changes and rebuild automatically\n- `npm run test` - Run the test suite\n\n### Project Structure\n\n```\nsrc/\n├── index.ts              # Main server implementation\n├── tools/                # Tool definitions and handlers\n│   ├── file-tools.ts     # Basic file operations\n│   ├── advanced-file-tools.ts # Advanced file editing\n│   ├── command-tools.ts  # Command execution\n│   ├── project-tools.ts  # Project analysis\n│   └── vscode-integration-tools.ts # VS Code features\n├── types/                # TypeScript type definitions\n├── utils/                # Utility functions\n│   ├── file-utils.ts     # File operation utilities\n│   ├── command-utils.ts  # Command execution utilities\n│   ├── file-watcher.ts   # File watching capabilities\n│   └── logger.ts         # Logging utilities\n```\n\n## 🔒 Security\n\nThis MCP server is designed for defensive development tasks only. It includes:\n\n- Input validation and sanitization\n- Safe file operation boundaries\n- Process execution controls\n- Error handling and logging\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🐛 Issues & Support\n\nIf you encounter any issues or have questions:\n\n1. Check the [Issues](../../issues) section\n2. Create a new issue with detailed information\n3. Include error logs and configuration details\n\n## 🙏 Acknowledgments\n\n- Built with the [Model Context Protocol SDK](https://github.com/modelcontextprotocol/typescript-sdk)\n- Designed for integration with [Claude Desktop](https://claude.ai/)\n- Supports VS Code development workflows\n"}