Skip to content

[MCP] Newly added tools not included in subsequent completion calls #261611

@lukasz-zoglowek

Description

@lukasz-zoglowek

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
    1.104.0 (Insider)
  • OS Version:
    Windows 11

Steps to Reproduce:

  1. Create an MCP server that can update its tools dynamically.
    For example, the server starts with 3 tools: "greet", "calculate", and "get-status".
    After calling any of these tools, a new tool is added — for example, "followup".
  2. Add the MCP server to your workspace.
  3. Run this prompt:
Greet Lukasz and then do a follow-up
  1. Check the debug logs.
    On the second completion call, you’ll see that only the original 3 tools are included, even though all 4 tools were discovered.
Image

Note: The timing in the output window is UTC+2h

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions