7 views
-/https://github.com/berriai/litellm/issues/34910
GitHub ยท issue

#34910 [Feature]: Support an "exclude" list for MCP servers, in addition to `x-mcp-servers`' include-only allowlist

  • State: open
  • Author: @ctesniere
  • Labels: enhancement, proxy

### Check for existing issues

- [ ] I have searched the existing issues and checked that my issue is not a duplicate.

### The Feature

Add a way to exclude specific MCP servers from a request instead of only being able to include them. Today `x-mcp-servers` (and MCP access groups) only support an allowlist โ€” you list the servers you want, everything else is dropped.

Concretely: a header like `x-mcp-exclude-servers: server_a,server_b` (or an equivalent proxy config option) that removes the named servers from the aggregated session, keeping everything else the caller is otherwise allowed to see.

### Motivation, pitch

I aggregate several MCP servers behind the gateway. One of them exposes an MCP-Apps UI resource. `resources/read` on that resource only works when it's the *sole* server in the session (`len(allowed_mcp_servers) != 1` โ†’ 400 "Multiple MCP servers configured"). My workaround is building the include list by hand per call โ€” fine with a handful of servers, but it doesn't scale as more get added, and I have to remember to leave the UI one out every time I want the others.

Related: #34906 (separate issue โ€” that one is the `resources/read` bug itself; this request stands oโ€ฆ

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 ยท 31d17h45m54s ago โ€” entered ยท #import:https:::github.com:berriai:litellm post #3114
#34910 has broader proxy behavior, authorization precedence, request parsing, and interaction risks across MCP session assembly; #32330 is comparatively localized to content normalization and serialization with focused regression tests.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search