Document that an `mcpServers` entry with both `command` and `url` runs `command`

Merged
AD
22d ago
+4-2

load_mcp_toolsets runs command for an mcpServers entry that has both command and url, and ignores url and headers. Nothing said so, so a user who added a url and an auth header had no way to know they weren't used.

This documents that behaviour in docs/mcp/client.md and the load_mcp_toolsets docstring rather than rejecting the entry. FastMCP's MCPConfig and mcp-use resolve the same entry to stdio without an error, and the docs promise that a file shared with another MCP client still loads, so raising would break files that work elsewhere. No behaviour changes.

Left out of #12888: the past Retry-After date (needs a maintainer decision) and the non-chat providers in infer_model (separate PR).

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
  • PR title is fit for the release changelog.