vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Can not reinstall MCP server after an accident removal.

Open GuoHaoxuan opened this issue 3 months ago • 6 comments

Description

  1. Install MCP server via vscode notification.
  2. Remove MCP server via this panel (figure above, sorry for Chinese)
  3. Unable to restore or restore MCP server anyway. (By this website, "reinstall mcp server" command shift P command is neither failed)
Image

GitLens Version

17.5.0

VS Code Version

版本: 1.104.1 提交: 0f0d87fa9e96c856c5212fc86db137ac0d783365 日期: 2025-09-17T23:36:24.973Z Electron: 37.3.1 ElectronBuildId: 12404162 Chromium: 138.0.7204.235 Node.js: 22.18.0 V8: 13.8.258.31-electron.0 OS: Darwin arm64 25.0.0

(Sorry for Chinese, I pasted it)

Git Version

git version 2.51.0

Logs, Screenshots, Screen Captures, etc

Sorry for I forgot the detailed text on the notification. I just remembered a MCP server appeared after I clicked the primary button (more than one option).

MCP server appeared here with no version number nor provider. (Sorry I can not get the correct screenshot because I am not able to reinstall it.)

Image

GuoHaoxuan avatar Sep 24 '25 04:09 GuoHaoxuan

@GuoHaoxuan If you run the command MCP: List Servers from the Command Palette, do you see one listed called GitKraken (Bundled with GitLens)?

Image

Also, would you mind enabling debug logging via the Command Palette command (GitLens: Enable Debug Logging), then try the Reinstall GitKraken MCP Server command again and post the output from your GitLens log output channel here?

axosoft-ramint avatar Sep 24 '25 15:09 axosoft-ramint

@axosoft-ramint Yes, I can see that.

Image

But When the MCP server I mentioned above installed, there are 2 items listed on the MCP: List Servers. One with bundled with GitLens quoted and one without. The one which can not reinstall is that without bundled with GitLens quoted.

Here's the log

2025-09-25 08:19:00.688 [info] GitLens v17.5.0 activating in Visual Studio Code (1.104.1) on the desktop; language='zh-cn', logLevel='warn', defaultDateLocale='null' (vscode|b7d1dabd5920ec4684972c0131a52420cbf48e44c412a04c554a77e85f4d815f|89b8b585-2b44-44b6-aeda-960d9ad10b7e1758759539295)
To enable debug logging, set `"gitlens.outputLevel": "debug"` or run "GitLens: Enable Debug Logging" from the Command Palette

2025-09-25 08:23:29.760 [info] [2025-09-25 00:23:29.253] [   10 →    11] GitDocumentTracker.remove(e=TextDocument(Log, dirty=false, output:tasks))
[2025-09-25 00:23:29.255] [   10 →    11] GitDocumentTracker.remove(e=TextDocument(Log, dirty=false, output:tasks)) completed [2ms]

2025-09-25 08:23:41.008 [info] [2025-09-25 00:23:40.502] [   13 →    14] GkCliIntegrationProvider.setupMCP(e=undefined, t=true)
[2025-09-25 00:23:40.505] [   15 →    16] GkCliIntegrationProvider.setupMCPCore(e=undefined, t=true)
[2025-09-25 00:23:40.505] [   16 →    17] GkCliIntegrationProvider.installCLI(e=false, t=undefined, i=true)
[2025-09-25 00:23:40.521] [   1a →    1b] GkMcpProvider.getMcpConfigurationFromCLI
[2025-09-25 00:23:40.521] [   1a →    1b] GkMcpProvider.getMcpConfigurationFromCLI completed [0ms]

2025-09-25 08:23:45.033 [info] [2025-09-25 00:23:44.723] CLI install completed.
[2025-09-25 00:23:44.723] [   20 →    21] GkCliIntegrationProvider.authCLI
[2025-09-25 00:23:44.723] [   23 →    24] SubscriptionService.ensureSession(e=false, t=undefined)
[2025-09-25 00:23:44.723] [   23 →    24] SubscriptionService.ensureSession(e=false, t=undefined) completed [0ms]
[2025-09-25 00:23:44.726] [   25 →    26] GkMcpProvider.getMcpConfigurationFromCLI

2025-09-25 08:23:47.545 [info] [2025-09-25 00:23:47.257] [   25 →    26] GkMcpProvider.getMcpConfigurationFromCLI completed [*2531ms] (slow)

2025-09-25 08:23:48.550 [info] [2025-09-25 00:23:48.207] [   20 →    21] GkCliIntegrationProvider.authCLI completed [*3483ms] (slow)
[2025-09-25 00:23:48.212] [   16 →    17] GkCliIntegrationProvider.installCLI(e=false, t=undefined, i=true) returned {"cliVersion":"3.1.36","cliPath":"/Users/skyair/Library/Application Support/Code/User/globalStorage/eamodio.gitlens","status":"completed"} [*7706ms] (slow)
[2025-09-25 00:23:48.212] [   15 →    16] GkCliIntegrationProvider.setupMCPCore(e=undefined, t=true) returned {"cliVersion":"3.1.36","usingExtensionRegistration":true}supports provider-based MCP registration [*7707ms] (slow)
[2025-09-25 00:23:48.212] [   13 →    14] GkCliIntegrationProvider.setupMCP(e=undefined, t=true) returned undefined [*7709ms] (slow)

GuoHaoxuan avatar Sep 25 '25 00:09 GuoHaoxuan

@GuoHaoxuan Thanks for your report. The two copies of the GitKraken MCP you saw, before removing one of them, are duplicates. The one called GitKraken (bundled with GitLens) is the same as the other one that you installed and then removed - the bundled one does not show up in the MCP extensions view because it's bundled with the extension and pre-installed (hopefully VS Code improves visibility of this in the future).

Since you have the bundled version, you don't need to reinstall it - it should be available for you to use.

There may still be a bug here though - the notification you received should not have had a button to "Install" the MCP server since you already had the bundled version. Did you see a button to "Install" on that notification? Or did you follow a link from the help center website to install it?

axosoft-ramint avatar Sep 26 '25 15:09 axosoft-ramint

@axosoft-ramint I saw a notification and click the button to install it. The duplicates one is GitKraken and the other one is GitKraken (bundled with GitLens).

Sorry for unable to replicate so that no screenshot.

GuoHaoxuan avatar Sep 27 '25 08:09 GuoHaoxuan

This issue needs more information and has not had recent activity. Please provide the missing information or it will be closed in 7 days. Thanks!

github-actions[bot] avatar Oct 05 '25 05:10 github-actions[bot]

@axosoft-ramint Sorry, what kind of more info should I provide?

GuoHaoxuan avatar Oct 05 '25 07:10 GuoHaoxuan