Repository navigation
Description
Client or integration
Claude Code
Area
Tools / MCP / web search
Summary
Recent Claude Code builds declare Anthropic's Advisor server tool on /v1/messages:
{"type": "advisor_20260301", "name": "advisor", ...}They send it with the anthropic-beta: advisor-tool-2026-03-01 header. That beta is on the allowlist (src/adapters/anthropic/beta-allowlist.ts), but the tool declaration does not reach an Anthropic destination on the translated Messages path. The model never sees advisor. Calling the same Anthropic-compatible upstream directly, without the proxy, works.
Expected: when the destination is first-party-compatible Anthropic, the typed advisor_* server tool travels out of body like web_search_* / web_fetch_*. Alternatively, the proxy could document that it is unsupported.
Reproduction
Code path on dev (2.100.0, a1d7d05):
src/claude/inbound-content-options.tstoolsToResponseskeeps onlyweb_search*and tools withname+input_schema.advisor_20260301has noinput_schema, so it falls into "Other server tools … have no routed equivalent: drop."declaredAnthropicServerToolsonly matches/^web_(search|fetch)_\d+$/, so_anthropicServerToolsnever carries it, andsrc/adapters/anthropic.tscannot re-append it.- The managed native Messages lane is off by default (
protocols.rollout.managedMessagesNativeis false unless an account pool is enabled), so a key-auth Anthropic provider takes this translated path.
Direct probe against the module on dev:
const tools = [{ type: "advisor_20260301", name: "advisor", model: "…" }, { name: "Read", input_schema: { type: "object", properties: {} } }];
toolsToResponses(tools)?.map(t => t.name) // ["Read"]
declaredAnthropicServerTools({ tools }) // undefined
hasNativeOnlyTool({ tools }) // trueEnd to end: Claude Code to ocx (provider with adapter: "anthropic", API key) to an Anthropic-compatible upstream. The model reports no advisor tool. The same client pointed directly at the upstream gets the Advisor.
Version
Observed on 2.99.0; code path unchanged on dev 2.100.0 (a1d7d05).
Operating system
macOS (arm64)
Provider and model
adapter: "anthropic" provider (API-key auth), Claude Opus model.
Logs or error output
No error: the declaration is silently dropped.
Notes
- The native Messages lane (
managedMessagesNative: true) was not tested. - Carrying the typed tool would need a decision on how it coexists with the proxy-side Advisor's synthetic
advisorfunction tool (same wire name). Todaysidecar-execution.tsalready lets the synthetic tool own the name for a turn. - Separate from the replay-config factory lookup bug fixed in fix(advisor): resolve the factory for the Claude replay config #8449. That bug kept the proxy Advisor's own synthetic tool off
/v1/messages.
Checks
- I searched existing issues and documentation.
- I removed secrets, tokens, account details, request credentials, and personal data.
Activity
coderabbitai commentedon Nov 9, 2026
🔗 Related PRs
#7374 - fix(combo): stop the prompt-cache usage leak — replay native Messages on Anthropic children [closed]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
lidge-jun commentedon Nov 10, 2026
Checked on
devdf0e6ccc4. The report holds, and it is larger than the server-tool regex.declaredAnthropicServerTools(src/claude/inbound-content-options.ts:106) admits onlyweb_(search|fetch)_N, soadvisor_20260301is dropped before the Anthropic adapter.web_search/web_fetch(src/adapters/anthropic.ts:1450,src/claude/outbound.ts:283-328), and history replay accepts only those two names (src/claude/inbound-content-options.ts:132). An Advisorserver_tool_useand its result block would have no Responses representation on the way back to Claude Code, and the next turn could not replay them.advisorfunction.withAnthropicServerTools(src/adapters/anthropic.ts:965) already lets a same-named function win, so a rule exists, but it has not been chosen for this tool.This needs an owner decision before implementation:
advisor_N, map itsserver_tool_useand result blocks through the Responses layer and back inclaude/outbound.ts, and extend replay. The proxy Advisor's synthetic tool keeps the name whenever it is active for the turn (the existingwithAnthropicServerToolsrule). Non-Anthropic destinations drop it, as they doweb_fetchtoday.Recommendation: do 1 now and 2 as its own PR after #8484 settles the proxy Advisor's Messages path, because 2 depends on which side owns
advisoron that path.lidge-jun commentedon Nov 11, 2026
Decision: option 2. Carry the typed
advisor_*tool out of body toanthropic-adapter destinations whose credential domain is first-party Anthropic by default, and to Anthropic-compatible gateways only through a per-provider opt-in. The proxy Advisor's syntheticadvisortool keeps the name when it is active for the turn.server_tool_useandadvisor_tool_result(bothadvisor_resultandadvisor_redacted_result) round-trip unchanged. Destinations that do not receive it drop it without blocking combo children.fix(claude): keep a shadowed Advisor out of every leg and drop malfor…
fix(claude): replay Advisor blocks from checked fields and surface th…
feat(claude): carry Claude Code's Advisor server tool on the translat…