[FEATURE] Sub Agents should use the parent agent's MCP Configuration.
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
I work with around 4-5 projects at my organization and I am using a paid version of Claude Code. I also work on tasks which affect across projects. So many times a single task is divided into multiple sub tasks. Claude often uses sub agents to optimize the task and complete with a decent time limit. The problem I am facing is that the sub agents don't use the configured MCP (Serena in my case).
Proposed Solution
Auto configure the parent agent's MCP Config to the Sub Agents (By default or a optional feature to do this).
Alternative Solutions
For now I have asked Claude to only use the main agent with the MCP Config being used to do major tasks on it's own and only use sub agents for minor tasks like Builds, Review, Version Control, etc.
Priority
Medium - Would be very helpful
Feature Category
Performance and speed
Use Case Example
For example I asked Claude to go though 15-20 APIS so it created 3-4 sub agents each looking at around 5 apis each. Later they all shared the information to the parent agent. But in this my daily limit got reached as the sub agents used the majority of tokens. If I told the main agent to not create sub agents and only do itself then not so many tokens would be used as Serena would optimize (to some level) the prompt and token usage.
Additional Context
This is similar to [Bug] MCP tools not available in spawned sub-agents via Agent tool #37785 (But the exact issue is slight different than mine).
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗