Skip to content

Uninstall duplicate GK MCP servers #4626

@justinrobots

Description

@justinrobots

Description

In cases where GitLens is unable to bundle the GitKraken MCP (GK MCP) (usually when an IDE does not support VS Code's bundled MCP API) a more manual setup process is required for the GK MCP to function. Since the bundled and manually setup GK MCP servers are different to an IDE, this can result in duplicate GK MCP servers being setup at once if an IDE starts supporting VS Code's bundled MCP API.

This issue is to explore cleaning up the manually setup versions of the GK MCP server when the bundled version also exists.

Steps to reproduce

  • Run VSCode

  • Go to the folder where GK installer is installed

  • Run ./gk mcp uninstall vscode-insiders or ./gk mcp uninstall vscode

    • If you launch VSCode from a custom profile folder then run ./gk mcp install vscode-insiders --source=gitlens. Then click "install" button on the "MCP Server: GitKraken" tab in VS Code.
    • If you launch in standard folder in debug sub-profile, make sure you use main mcp.json to list MCP servers:
      Image
  • Install GitLens pre-release.

  • Using VSCode palette run the command "MCP: List Servers"

Expected result

  • previously installed (independent) GitKraken MCP is not in the list
  • you see "GitKraken (bundled with GitLens)" MCP server only.

Actual result

you see both MCP servers:

  • "GitKraken (bundled with GitLens)"
  • "GitKraken" - global in VSCode

Metadata

Metadata

Labels

blockedBlocked or caused by an upstream issue or featureblocked: cliCaused by or dependent on a GK CLI issue or feature

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions