﻿# LiteLLM MCP sign-in now respects the servers selected on the connect page

Test discovery and invocation after selecting a subset of MCP servers; LiteLLM’s connect-page fix must carry the user’s selection into the issued client scope.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-litellm-mcp-connect-selected-server-scope/
Language: en

LiteLLM v1.111.0-dev.4 includes a fix for MCP gateway sign-in ignoring the server selection on its connect page. The November 15 prerelease makes the visible selection worth verifying through an actual client session. A checked box is meaningful only if the issued connection has the corresponding server scope.

## Start with a deliberately narrow selection

Create two synthetic servers with distinct harmless tools, then leave only one selected during sign-in. In the resulting client session, inspect discovery and invoke the selected tool. Try the excluded tool by its known identity as a negative case. This establishes enforcement beyond the page’s visual state and catches clients that retain a broader catalog from an earlier connection. Give both tools similar display names but distinct server identities, so the result cannot pass through an ambiguous label that hides the excluded server.

## Keep selection and upstream login distinct

A gateway may require upstream authentication for the selected server. Record that authentication result separately from the scope assigned to the MCP client. A valid upstream credential is not itself an instruction to expose every configured server. Use synthetic users and inspect which server identities the connection actually permits, so a broad administrator session cannot conceal a narrower end-user path.

## Reconnect must preserve a clear decision

Disconnect and reconnect through the supported flow, then repeat discovery and the excluded-tool attempt. Document whether the user is creating a fresh connection or reusing an existing one. The test should avoid assuming an old session instantly inherits a new selection. This is an application acceptance question: the release fixes a concrete connect-page mismatch, while the product’s lifecycle rules still need to be understood by its operator.

## Accept the connection’s behavior

The reviewable outcome combines the selected server list, the resulting client identity, discovery output and allowed versus rejected invocations. A screenshot of the page proves only an interface choice. Pin the tested prerelease and repeat the fixture after a configuration restart. This turns the release note into evidence that the caller receives the intended MCP surface, without claiming a broader authorization audit of the entire gateway.

## Sources

- [LiteLLM v1.111.0-dev.4 prerelease notes](https://github.com/BerriAI/litellm/releases/tag/v1.111.0-dev.4)
- [LiteLLM implementation and review #50973](https://github.com/BerriAI/litellm/pull/50973)

## Related reading

- [LiteLLM Proxy: when to operate your own model gateway](/journal/litellm-proxy-guide/)
- [LiteLLM virtual keys: separate access for each application](/journal/litellm-virtual-key-scopes/)
