Repository navigation
Description
- 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:
- Tool/MCP management in Agents is missing or not equivalent to Chat.
- MCP authentication in Agents is unreliable/non-functional.
- 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:
- I have multiple MCP servers configured.
- One MCP server may be unavailable, broken, or otherwise unusable.
- In Chat, I can open the tools picker and disable the affected MCP server/tools.
- The Chat request can then continue without those tools.
- In Agents, I cannot reliably perform the equivalent operation.
- 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:
- The MCP server is detected by VS Code.
- The Agent reports that authentication is required.
- An Authenticate action/button is displayed.
- Clicking Authenticate does nothing or does not start the expected authentication flow.
- There is no useful error indicating why authentication failed.
- 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
- Configure multiple MCP servers in VS Code.
- Open normal Chat.
- Open the tool picker / Configure Tools UI.
- Observe that tools/MCP tools can be inspected and selectively enabled/disabled.
- Open the Agents / Agent Host experience.
- Attempt to perform the equivalent tool-management operation.
- Observe that the same level of control is unavailable, inconsistent, or not correctly applied to Agent requests.
B. MCP authentication
- Configure an MCP server that requires authentication.
- Open an Agent session.
- Trigger the MCP server.
- Wait until VS Code reports that authentication is required.
- Click Authenticate.
- Observe that the expected authentication flow does not start or does not complete.
- Compare the same MCP server's behavior in Chat.
C. Language-model response
- Configure the same model/provider configuration that works correctly in another agent/client.
- Open a VS Code Agent session.
- Send a normal request.
- Observe:
Response contained no choices
- Retry using the other agent/client with the same model configuration.
- 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:
VS Code documentation on tools in AI agents:
Related existing issues
- Agents window repeatedly prompts for MCP authentication after extension host restart #327137
- MCP authentication required for every new session #329223
- Agent Host duplicate MCP auto-auth reports failure after success #327824
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
alexdima commentedon Nov 28, 2026
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 listeddemo_add, demo_secret_word. After I turneddemooff there, a new session said it had nodemo_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:
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
🤖 Authored with GitHub Copilot on behalf of Alexandru Dima (@alexdima).