Skip to content

feat: stub some hooks for the MCP server #1107

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

feat: stub some hooks for the MCP server #1107

wants to merge 8 commits into from

Conversation

nirinchev
Copy link
Contributor

Description

Bumps the vscode types version and fixes some compile errors.

@Copilot Copilot AI review requested due to automatic review settings August 21, 2025 10:41
@nirinchev nirinchev requested a review from a team as a code owner August 21, 2025 10:41
Copy link

@Copilot Copilot AI left a 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 adds stubbed hooks for an MCP (Model Context Protocol) server, bumps VSCode types version, and fixes compilation errors that arose from the version update.

  • Adds MCP server controller with start/stop functionality
  • Updates VSCode types from 1.94.0 to 1.103.0
  • Fixes icon path type changes from strings to vscode.Uri
  • Updates test mocks to handle new VSCode API structure

Reviewed Changes

Copilot reviewed 27 out of 28 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/mcp/mcpController.ts New MCP controller with server definition provider and start/stop methods
src/mdbExtensionController.ts Integrates MCP controller and registers start/stop commands
src/commands/index.ts Adds MCP server start/stop command definitions
package.json Updates VSCode types and adds MCP server dependencies
src/explorer/*.ts Updates icon path types from string to vscode.Uri
src/test/suite/stubs.ts Adds encoding property to text document mock
src/test/suite/participant/participant.test.ts Refactors chat request mocks and updates message content handling
Multiple test files Updates icon path assertions to use toString() method

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

.gitattributes Outdated
@@ -0,0 +1,2 @@
package-lock.json linguist-vendored
Copy link
Contributor

@lerouxb lerouxb Aug 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this mean? (I googled it and it still isn't immediately obvious to me)

Comment on lines +75 to +76
"vscode": "^1.101.1",
"node": "^20.19.0 || ^22.12.0 || >= 23.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Should we check at some data on how many users are on version below the one mentioned here before proceeding with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants