[BUG] MCP resources not available for subagents
Resolved 💬 6 comments Opened Jun 16, 2025 by qusma Closed Jan 5, 2026
Environment
- Platform (select one):
- [x] Anthropic API (Claude Code)
- Claude CLI version: 1.0.22 (Claude Code)
- Operating System: Ubuntu 24.04.2 LTS (WSL)
- Terminal: xterm
Bug Description
Subagents spawned by Claude Code do not have access to the same MCP resources, although MCP tools seem to work fine.
My .claude.json has the following:
"mcpServers": {
"tmdb": {
"command": "/Code/mcp-server-tmdb/dist/index.js",
"env": {
"TMDB_API_KEY": "..."
}
}
},
When I ask Claude to spawn a subagent to look up a resource, this happens:
Task(Task: Get Armageddon movie info
Prompt: I want to get some info on the movie Armageddon. Search TMDB with your tool to find the film id, then
use the tmdb resource tmdb:///movie/ to get the info.)
⎿ tmdb:search_movies (MCP)(query: "Armageddon")
⎿ Found 20 movies:
⎿ readMcpResource(Read resource "tmdb:///movie/95" from server "tmdb")
⎿ Error: Server "tmdb" not found. Available servers:
⎿ listMcpResources(List all MCP resources)
⎿ ⎿ (No resources found)
But when Claude Code accesses it directly, it works:
readMcpResource(Read resource "tmdb:///movie/95" from server "tmdb")
⎿ {
"contents": [
{
"uri": "tmdb:///movie/95",
"mimeType": "application/json",
"text": "{\n \"title\": \"Armageddon\",\n \"releaseDate\": \"1998-07-01\",\n \"rating\": 6.838,\n
\"overview\": [...] }\n ]\n}"
}
]
}
Steps to Reproduce
- Configure MCP server with resources
- Ask Claude Code to spawn subagent that uses a resource. It will fail.
Expected Behavior
MCP resources should be available to subagents in the same way as they are to the top-level Claude Code.
Actual Behavior
Subagent could not access resources.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗