Skip to content

feat: share MCP tools with subagents#1429

Open
dmarkey wants to merge 1 commit intoHKUDS:mainfrom
dmarkey:feat/share-mcp-tools-with-subagents
Open

feat: share MCP tools with subagents#1429
dmarkey wants to merge 1 commit intoHKUDS:mainfrom
dmarkey:feat/share-mcp-tools-with-subagents

Conversation

@dmarkey
Copy link
Copy Markdown
Contributor

@dmarkey dmarkey commented Mar 2, 2026

Summary

  • Pass the main agent's tool registry to SubagentManager via a new parent_tools parameter
  • On each subagent spawn, copy MCPToolWrapper instances from the parent registry into the subagent's local registry
  • Gives subagents access to all connected MCP server tools without needing separate MCP connections

Test plan

  • Configure an MCP server and verify the main agent can use its tools
  • Spawn a subagent and verify it also has access to the MCP tools
  • Verify non-MCP tools from the parent are not duplicated into subagents

Pass the main agent's tool registry to SubagentManager and copy
MCPToolWrapper instances into each subagent's local registry,
giving subagents access to all connected MCP server tools.
@lnn198895
Copy link
Copy Markdown

👏

@dmarkey
Copy link
Copy Markdown
Contributor Author

dmarkey commented Mar 9, 2026

If anyone's waiting for this to be merged.. it's over on my soft-fork https://github.com/dmarkey/nanobot installable as pip install nanobot-tng.. i'll try maintain it with upstream until my PRs are merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants