You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [Configuring MCP Server Authentication](#configuring-mcp-server-authentication)
36
36
*[Llama Stack project and configuration](#llama-stack-project-and-configuration)
37
37
*[Check connection to Llama Stack](#check-connection-to-llama-stack)
38
38
*[Llama Stack as client library](#llama-stack-as-client-library)
@@ -363,7 +363,7 @@ mcp_servers:
363
363
Authorization: "kubernetes"# Uses user's k8s token from request auth
364
364
```
365
365
366
-
The user's Kubernetes tokenis extracted from the incoming request's `Authorization` header and forwarded to the MCP server.
366
+
**Note:**Kubernetes token-based MCP authorization only works when Lightspeed Core Stack is configured with Kubernetes authentication (`authentication.k8s`). For any other authentication types, MCP servers configured with `Authorization: "kubernetes"` are removed from the available MCP servers list.
This endpoint returns only MCP servers configured with `authorization_headers: "client"`, along with the specific header names that need to be provided via `MCP-HEADERS`. Servers using file-based or Kubernetes authentication are not included in this response.
419
+
420
+
**Use case:** Clients can call this endpoint at startup or before making requests to discover which servers they can authenticate with using their own tokens.
421
+
394
422
##### Combining Authentication Methods
395
423
396
424
You can mix and match authentication methods across different MCP servers, and even combine multiple methods for a single server:
0 commit comments