Skip to content

MCP servers removed from extension still show up in VS Code #251592

Open
@DanTup

Description

@DanTup

I was testing the registerMcpServerDefinitionProvider API in my server and registered a new server. It showed up as expected in the tools list when running in the dev extension host.

I then removed the code from my extension that calls registerMcpServerDefinitionProvider and re-launched the dev extension host. The previous tools still show up (and the name of the MCP server), even though they're no longer being registered. VS Code appears to be able to launch the server and call tools, despite there being no definition in the .vscode/ folder or coming from the server.

I've tried running the MCP: Reset Cached Tools but it continues to show up.

I presume the server info was cached somewhere, but I can't figure out where. There are options to start/stop the server, but nothing to remove it.

Image

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugchat-mcp

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions