-
Notifications
You must be signed in to change notification settings - Fork 86
feat: integrate MongoDB MCP server with VSCode extension MCP-129 #1115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…CP server MCP-131 (#1111)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR integrates the MongoDB MCP (Model Context Protocol) server functionality into the VSCode extension, allowing it to provide database access and tools to AI assistants that support MCP.
Key Changes:
- Adds MongoDB MCP server integration with auto-start configuration and connection management
- Updates VS Code engine requirement to 1.101.1 and Node.js compatibility to support newer versions
- Refactors icon paths to use vscode.Uri instead of strings for better type safety
Reviewed Changes
Copilot reviewed 48 out of 49 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/mcp/ | New MCP controller, connection manager, and error handler implementation |
src/mdbExtensionController.ts | Integrates MCP controller with extension activation and command registration |
package.json | Adds MCP server dependency, updates engine requirements, and adds MCP configuration settings |
src/test/suite/ | Adds comprehensive test coverage for MCP functionality |
Multiple explorer files | Updates icon path handling to use vscode.Uri for type safety |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
Description
This PR integrates MCP server with VSCode extension. The idea is to have VSCode extension contribute an MCP server and given the right settings, also start it for further use with Copilot.
A note for reviewers:
The branch
feat/mcp-integration
was used as a base to merge the ongoing MCP integration work. So all the project work was duly reviewed and only the PR review feedback was directly committed to the branch. Having said that feel free to do an extensive review on this.Checklist
Motivation and Context
Open Questions
Dependents
Types of changes