-
Notifications
You must be signed in to change notification settings - Fork 308
Open
Description
LM Studio’s MCP configuration currently only supports static Authorization headers. This makes it difficult to connect to MCP servers that rely on short-lived or frequently rotated bearer tokens, such as SigV4-style signed tokens or backends that issue time limited session tokens.
Request:
Add support for dynamic authentication so MCP clients can refresh tokens without requiring manual edits to the MCP config.
Possible solutions:
- Allow running a command or script that returns fresh tokens to be injected into the auth header.
- Automatically reload MCP config files when they change, enabling external scripts to manage token rotation.
- Support loading auth headers from a file and re-reading it per request as a simple interim option.
Adding any of these would eliminate the need for local proxy layers and make LM Studio compatible with a wider range of real-world MCP deployments, including setups like AgentCore Gateway protected by rotated tokens.
Metadata
Metadata
Assignees
Labels
No labels