Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

[Feature Request] Allow for bearer token rotation in mcp configs #389

@drm-nz

Description

@drm-nz

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions