Skip to content

Implement Agent-Scoped MCP Configuration with Strict Isolation #4476

@btebbutt

Description

@btebbutt

Custom subagents should be decoupled from main agent

Expected behavior

  • It should be possible to configure a sub‑agent with MCP servers in non‑inheriting mode such that:
  • The main thread does not list these servers in /mcp.
  • The main thread cannot call their tools/resources (they appear unknown).
  • Only the owning sub‑agent materializes/uses those servers during its lifecycle.

Actual behavior
Any MCP server configured via global scopes is enumerable and callable from the main thread, even if operationally intended for a specific sub‑agent.

Every tool description is another thing for the main agent to manage and potentially degrade performance and is counter intuitive to what the docs mention as a key benefit 'Context preservation'. Please support agent‑scoped MCP configuration with explicit non‑inheritance and hard isolation.

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.61
  • Feedback ID: 68fb84e4-5930-4edc-9263-22704b94ecda

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions