This repository was archived by the owner on Jun 27, 2025. It is now read-only.
Add Visual Studio Code as MCP Client #286
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds Visual Studio Code (VS Code) to the list of supported Model Context Protocol (MCP) clients in the Docker AI Tools extension, enabling VS Code users to integrate with Docker's MCP catalog.
Changes Made
New Files
src/extension/ui/src/mcp-clients/VSCode.ts
- Complete MCP client implementation for VS CodeModified Files
src/extension/ui/src/MCPClients.ts
- Added VS Code client import and registrationImplementation Details
The VS Code MCP client follows the same pattern as existing clients (Claude Desktop, Cursor, Continue.dev, Gordon) and includes:
Core Features
MCPClient
interface implementationConfiguration Support
settings.json
formatmcp.servers
configuration sectionvscode
(consistent with naming pattern)Platform-Specific Paths
Manual Configuration Steps
The implementation provides clear step-by-step instructions for users:
Testing
This addition enables VS Code users to seamlessly connect to Docker's MCP catalog alongside users of other supported editors and AI assistants.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.