Skip to content

Let Claude Code Subagents call function and MCP tools - #788

Merged
SaladDay merged 3 commits into
mainfrom
let-claude-subagents-call-function-and-mcp-tools
Oct 19, 2026
Merged

SaladDay merged 3 commits into
mainfrom
let-claude-subagents-call-function-and-mcp-tools

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Claude Code Subagents can now call the Agent's function and HTTP MCP tools, as a local Claude Code run does. MiniMax Code Subagents are admitted with functions too. This builds on #780.

  • Calls: a child's function call reaches Core with the child's native_id and turn_id, so it becomes a required action of the root Turn under the child's call_id. The receipt comes from the child's own native tool result.
  • Withdrawal: when native aborts a child's pending call, for example on root cancellation, the bridge emits function_call_withdrawn.
  • Admission: no declaration rejects function or MCP tools beside multi_agent, and the RejectSubagentTools helper is deleted.
    • MiniMax Code 0.6.10 keeps ACP session MCP servers on the root session and starts task children without them. Its children therefore get none of the Session's functions or MCP servers, as in a local run.
  • Child Items: a child's function Item now carries its function_call_output, mapped from the native tool result. The child's Items appear when the root Turn settles.
  • Failures and races:
    • A child call whose child cannot be resolved fails the execution. It no longer reaches the model as a tool error.
    • The live read now reads the SDK first and the raw rows second, so a row native appends in between no longer fails the read.
    • A result delivered before an abort keeps its receipt obligation, as for a root call.
    • A result that arrives after its call was withdrawn is ignored.
  • Verification:
    • Function calls were verified live with a real model on environment: none, both the call with its receipt and the withdrawal.
    • Child MCP calls are admitted and covered by unit tests only.
    • Hosted and self-hosted placements are admitted, not run live.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Base automatically changed from let-subagents-call-function-and-mcp-tools to main October 19, 2026 18:30
@SaladDay
SaladDay force-pushed the let-claude-subagents-call-function-and-mcp-tools branch 2 times, most recently from ae19ee1 to a4079df Compare October 19, 2026 19:52
@SaladDay
SaladDay merged commit ea6da82 into main Oct 19, 2026
25 checks passed
@SaladDay
SaladDay deleted the let-claude-subagents-call-function-and-mcp-tools branch October 19, 2026 20:09
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.

1 participant