* feat(mcp)!: disable stdio MCP servers by default
stdio MCP servers now only run when the proxy is started with
LITELLM_ENABLE_MCP_STDIO=true. While it is off, existing stdio servers stay
registered but never start: tool listings skip them quietly, direct tool
calls and health checks return a 403 naming the env var, and creating or
updating a stdio server is rejected. The flag is read from the process
environment only, so DB-stored environment_variables cannot turn it on.
The UI reads mcp_stdio_enabled from /.well-known/litellm-ui-config to grey
out the stdio transport, show a banner on stdio forms, and badge stdio
server cards.
BREAKING CHANGE: stdio MCP servers are off by default. Set
LITELLM_ENABLE_MCP_STDIO=true in the proxy environment and restart to keep
using them.
* fix(mcp): ignore stdio flag from config file and read UI flag from the selected worker
LITELLM_ENABLE_MCP_STDIO set under environment_variables in config.yaml is now skipped like the DB-stored value, so only the process environment can enable stdio. The dashboard reads mcp_stdio_enabled from the proxy it is managing, so a control plane shows each worker's own setting.
* test(mcp): cover non-mapping payloads in the shared transport validator
* fix(mcp): skip blocked stdio servers quietly in every listing and keep the UI unchanged until the flag loads
Prompt, resource and resource-template listings now skip a blocked stdio server at debug level like tool listing does, instead of logging a warning per server on every call. The dashboard only treats stdio as disabled once the proxy explicitly reports mcp_stdio_enabled false, so a proxy with the flag on, or an older one without the field, renders exactly as before with no flicker while loading.
* fix(mcp): route blocked stdio tool calls to the flag error and warn once per server
A gateway tools/call naming a blocked stdio server's tool now returns the
LITELLM_ENABLE_MCP_STDIO message instead of "Tool not found".
The "will not start" warning moves out of build_mcp_server_from_table, which
DB reload re-runs on every cycle for rows with a NULL updated_at and which
drafts and test-connection also call. It now fires when a row first enters
the registry or changes transport.
* fix(ui): explain on the server detail page why a stdio server is inert
The Overview and MCP Tools tabs showed "No tools available" with no reason
while stdio is disabled. The detail page now shows the same warning banner
as the edit form, and hands off to the form's banner once editing starts.
* refactor(ui): name the stdio banner conditions on the server detail page
Keeps local/no-long-condition-chain within its budget
* fix(proxy): log the ignored DB-stored LITELLM_ENABLE_MCP_STDIO warning once
The DB config sync re-reads environment_variables on every cycle, so a stored
flag logged the warning on each sync per worker
(cherry picked from commit 2b85808)
TLDR
Backport of #44066 to rc/1.105.0:
git cherry-pick -x 2b85808011(the merged main commit), applied cleanly and patch-identical to the source. No version bump, since 1.105.0 has not been released (onlyv1.105.0-dev.1and-dev.2tags exist)Problem this solves:
How it solves it:
LITELLM_ENABLE_MCP_STDIO, off by defaultIntentional product change: proxies that already run stdio MCP servers stop starting them after upgrading to 1.105.0 until the admin sets
LITELLM_ENABLE_MCP_STDIO=trueand restarts. Same behavior #44066 ships on mainWhat is included
The rc's committed UI bundle was last rebuilt on 2026-09-19, so the artifacts commit also picks up every dashboard source change already on the rc since then (582 files under
litellm/proxy/_experimental/out/, nothing else). That bundle refresh would happen at release time anywayThe
.circleci/scripts/run_integration.shline from #44066 is kept, since the integration suite's stdio cases need the flag onKnown noise on this line
tests/unit/proxy/proxy_server/test_proxy_config.py::test_ProxyStartupEvent_jwt_auth_resolves_agent_claims_against_live_registry[db]andtest_ProxyConfig__init_agents_in_db_keeps_config_defined_agentsfail on the rc tip before the pick, in isolation too, and fail the same way after itAll 30 tests in
tests/mcp_tests/test_proxy_mcp_e2e.pyerror at setup on the rc tip and on main, because the fixture server importsmcp.server.fastmcp, which mcp 2.x removed. #44066 only adds one setenv line to that fileScreenshots / Proof of Fix
Setup: three local proxies on the same config, each launched under
env -iwith no database. Before runs the rc tip (fe9b6fd); After runs this branch (bde22d8) once withLITELLM_ENABLE_MCP_STDIOunset and once with it set totrue.echo_stdiois a stdio server in config.yaml (a one-tool MCP server that echoes its input) with idebabfe6d53267166b95d507599c04f10. No LLM provider is involved, since the change is in MCP server handlingBefore (fe9b6fd)
stdio server works
curl -s 'localhost:4181/mcp-rest/tools/list?server_id=ebabfe6d53267166b95d507599c04f10' -H "Authorization: Bearer sk-bp-1234" | jq -c '[.tools[].name]'curl -s -w ' HTTP %{http_code}' localhost:4181/mcp-rest/tools/call -H "Authorization: Bearer sk-bp-1234" -H 'Content-Type: application/json' -d '{"server_id":"ebabfe6d53267166b95d507599c04f10","name":"echo_stdio-echo","arguments":{"text":"hi"}}'UI config
curl -s localhost:4181/.well-known/litellm-ui-config | jq -c '{mcp_stdio_enabled}'After (bde22d8)
stdio server works
Flag off (env var unset):
curl -s -w ' HTTP %{http_code}' localhost:4182/v1/mcp/server -H "Authorization: Bearer sk-bp-1234" -H 'Content-Type: application/json' -d '{"server_name":"new_stdio","transport":"stdio","command":"python","args":["echo_server.py"]}'Flag on (
LITELLM_ENABLE_MCP_STDIO=true), no "will not start" line in the boot log:UI config
Tests and review
2 failed, 2216 passedon the rc tip,2 failed, 2267 passedafter the pick, same 2 known-noise failures782 passed. ruff format and ruff check are clean on the 6 changedlitellm/filestests/unit/proxyandtests/unit/types(about 36,500 tests): no new failure. Five tests were red only in the post-pick run; four pass on rerun, andtest_pgbouncer.py::TestPgBouncerProcess::test_a_pooler_that_never_listens_times_outfails the same way on the rc tip in isolationType
🆕 New Feature
Caveats (if any)
Severe
LITELLM_ENABLE_MCP_STDIO=trueon the proxy and restartLow
transportcan still change a stdio server's command