Skip to content

[Agents Window] MCP/tool management, authentication, and language-model response are inconsistent with Chat #337978

Open

Description

@arin8513
Environment
  • VS Code Version: Latest Stable release, fully updated
  • OS Version: Windows 11
  • Does this issue occur when all extensions are disabled?: Yes
  • Third-party extension causing this issue: No
  • Feature: Agents Window / Agent Host
  • Model: The same model/configuration works correctly in another agent/client
  • MCP: Multiple MCP servers, including authenticated MCP servers

Summary

I am experiencing several serious inconsistencies between the normal Chat experience and the Agents / Agent Host experience in VS Code.

The same general model/provider configuration and MCP setup work correctly in another agent/client and the normal Chat experience, but the VS Code Agents experience behaves differently.

This appears to involve three closely related areas:

  1. Tool/MCP management in Agents is missing or not equivalent to Chat.
  2. MCP authentication in Agents is unreliable/non-functional.
  3. The Agents language-model request path can fail with "Response contained no choices" even when another agent using the same model/configuration works correctly.

These issues are especially problematic because MCP servers cannot always be disabled or excluded from an Agent request when one of them is unavailable, broken, rate-limited, or requires authentication.


Issue 1 — Agent tool/MCP management is not equivalent to Chat

The normal Chat experience provides a very useful tool-management UI where I can inspect available tools and selectively enable or disable them.

This is extremely important when an MCP server is broken, unavailable, slow, requires authentication, or exposes many tools.

According to the current VS Code documentation, Copilot Agent also supports tool management through the Tools tab, including enabling/disabling individual tools and entire tool groups.

However, in my Agents environment, I do not have the same reliably usable tool-management experience that I have in Chat.

Actual behavior

For example:

  1. I have multiple MCP servers configured.
  2. One MCP server may be unavailable, broken, or otherwise unusable.
  3. In Chat, I can open the tools picker and disable the affected MCP server/tools.
  4. The Chat request can then continue without those tools.
  5. In Agents, I cannot reliably perform the equivalent operation.
  6. The Agent may continue attempting to work with the configured MCP/tool environment even when I need to temporarily exclude a problematic MCP server.

This becomes especially problematic with large MCP configurations.

Expected behavior

The Agent experience should provide a reliable and fully functional equivalent of the Chat tool picker / Configure Tools functionality.

I should be able to:

  • See all tools available to the Agent.
  • See which MCP server each tool belongs to.
  • Enable/disable individual tools.
  • Enable/disable an entire MCP server or tool group.
  • Temporarily exclude a broken MCP server without deleting or modifying its configuration.
  • Have that selection actually affect the current Agent request/session.

For example:

MCP Server A
✓ tool_a
✓ tool_b
✗ tool_c

MCP Server B
✗ all tools disabled

MCP Server C
✓ all tools enabled

Disabling a server or tool should actually prevent it from being included in the Agent request.

This is particularly important because the current VS Code documentation explicitly describes tool management for agents.


Issue 2 — MCP authentication is inconsistent or non-functional in Agents

The MCP experience also appears to behave differently between Chat and Agents.

For some authenticated MCP servers:

  1. The MCP server is detected by VS Code.
  2. The Agent reports that authentication is required.
  3. An Authenticate action/button is displayed.
  4. Clicking Authenticate does nothing or does not start the expected authentication flow.
  5. There is no useful error indicating why authentication failed.
  6. The MCP server therefore cannot become usable from the Agent.

In other cases, MCP authentication/state appears inconsistent between Agent sessions and Chat.

Expected behavior

When VS Code displays:

The MCP server requires authentication.
Authenticate?

clicking Authenticate should invoke the supported MCP authentication flow and allow the server to transition to a usable/ready state.

Authentication state should also be handled consistently between the relevant Chat and Agent/MCP components.

Why this is especially important

MCP authentication problems are already an active area of bugs in the Agents Window.

For example, VS Code has existing reports involving repeated MCP authentication prompts and Agent Host authentication state persistence, including issues #327137 and #329223.

These reports show that MCP authentication/state handling in the Agents environment has already had real regressions/bugs.


Issue 3 — Agent language-model response can fail with "Response contained no choices"

I also experience the following error inside the Agents experience:

Sorry, your request failed.

Client Request Id: 0ced01c0-9068-4358-b563-bfea01033bd1

Reason: Response contained no choices.: Error: Response contained no choices.
at xH._provideLanguageModelResponse
at processTicksAndRejections (node:internal/process/task_queues:104:5)
at xH.provideLanguageModelResponse

The relevant stack trace points into the built-in Copilot extension:

resources\app\extensions\copilot\dist\extension.js

This is particularly suspicious because:

  • The same model/configuration works in another agent/client.
  • The model is not inherently unusable.
  • No third-party extension is responsible for the issue.
  • The VS Code installation is fully updated.
  • The failure occurs specifically through the VS Code Agent language-model path.

I am not assuming that this has the same root cause as the MCP problems, but it may indicate another inconsistency in the Agent execution path.

Expected behavior

A successful model response should be handled correctly by the Agent runtime without producing:

Response contained no choices

when the same model/provider configuration is otherwise functioning correctly in another client.

If the upstream provider response is invalid, VS Code should expose the actual provider/protocol error rather than only returning the generic "Response contained no choices" message.


Why I believe this is not a third-party extension problem

I have reproduced the problem with extensions disabled as requested by the official issue template.

The behavior also persists despite using the latest Stable VS Code release.

The same model/provider configuration works correctly in another agent/client, which makes a VS Code Agent/Agent Host integration issue a strong possibility.

I am therefore not reporting this as an issue caused by an external extension.


Steps to reproduce

A. Tool/MCP management

  1. Configure multiple MCP servers in VS Code.
  2. Open normal Chat.
  3. Open the tool picker / Configure Tools UI.
  4. Observe that tools/MCP tools can be inspected and selectively enabled/disabled.
  5. Open the Agents / Agent Host experience.
  6. Attempt to perform the equivalent tool-management operation.
  7. Observe that the same level of control is unavailable, inconsistent, or not correctly applied to Agent requests.

B. MCP authentication

  1. Configure an MCP server that requires authentication.
  2. Open an Agent session.
  3. Trigger the MCP server.
  4. Wait until VS Code reports that authentication is required.
  5. Click Authenticate.
  6. Observe that the expected authentication flow does not start or does not complete.
  7. Compare the same MCP server's behavior in Chat.

C. Language-model response

  1. Configure the same model/provider configuration that works correctly in another agent/client.
  2. Open a VS Code Agent session.
  3. Send a normal request.
  4. Observe:

Response contained no choices

  1. Retry using the other agent/client with the same model configuration.
  2. Observe that the other agent successfully receives and processes the model response.

Expected overall behavior

Chat and Agents should provide a consistent underlying MCP/tool experience for the same VS Code installation.

At minimum:

MCP configuration
↓
MCP server state
↓
Available tools
↓
Tool enable/disable
↓
Authentication state
↓
Agent / Chat request

A disabled tool or MCP server should actually be excluded from the Agent request.

An MCP server requiring authentication should have a functional Authenticate action.

Authentication state should be handled consistently across Agent sessions and relevant Chat/MCP components.

The Agent language-model path should correctly process valid provider responses and expose meaningful protocol errors when a provider returns an invalid response.


Related documentation

VS Code documentation on tools with agents:

https://code.visualstudio.com/docs/agents/run/tools

VS Code documentation on tools in AI agents:

https://code.visualstudio.com/docs/agents/concepts/tools


Related existing issues

These appear related to MCP authentication/state handling in the Agents/Agent Host experience.


Additional information

This report is intentionally focused on behavior that is reproducible in the current fully updated Stable VS Code installation and is not caused by a third-party extension.

The main concern is the significant difference between what is available and functional in Chat versus Agents, especially for MCP/tool management and authentication.

Activity

  1. alexdima commented on Nov 28, 2026

    @alexdima
    Member

    Thanks for the report. I checked this on Insiders 1.147.0 (944d79c) on macOS.

    • Tool and MCP management: this exists now. In the Agents window, Customizations > Tools lists each MCP server and built-in tool group with a toggle. I set up a local MCP server called demo. With it on, a new session listed demo_add, demo_secret_word. After I turned demo off there, a new session said it had no demo_ tools, so the setting does apply to agent requests (clip below).

    • Authenticate button and "Response contained no choices": I can't reproduce these without your setup. Could you try them on a current build and, if they still happen, tell us:

      • which MCP server it is and what kind of auth it uses (OAuth, API key and so on);
      • which model or provider gives the "no choices" error;
      • your VS Code version.

      The Agent Host log (Output > Agent Host) from a failing request would help too. These are probably separate issues, so it's fine to file them one at a time.

    337978-tools-toggle-off.mp4

    337978-tools-page.png

    🤖 Authored with GitHub Copilot on behalf of Alexandru Dima (@alexdima).

  2. added
    agent-host
    info-needed
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agent-hostagents-windowinfo-neededmcp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions