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
{{ message }}
Repository navigation
Add Secret Management Support for Remote Servers Bearer Tokens #1747
We need a way to securely provide authentication (e.g., headers, bearer tokens) when connecting to remote MCP servers. Right now, there’s no dedicated mechanism for secret management for remote MCP servers, which leads to hardcoding or less secure workarounds.
Initial Scope
Start simple with support for injecting a single secret (e.g., API key or bearer token).
Closing this as covered for the initial scope. Remote servers can take a bearer token via --remote-auth-bearer-token (or --remote-auth-bearer-token-file, or the environment variable), and arbitrary headers can be forwarded with --remote-forward-headers, with values read from secrets via --remote-forward-headers-secret.
The longer-term items (external secret providers such as Vault, dynamic resolution, rotation) are not covered here. If you need those, please open one issue for each so they can be scoped separately.
Activity
danbarr commentedon Dec 4, 2025
For reference / later testing, I've just run into a remote server that requires a header to authenticate: PagerDuty.
From their docs:
{ "mcpServers": { "pagerduty-hosted": { "url": "https://mcp.pagerduty.com/mcp", "headers": { "Authorization": "Token your-pagerduty-api-token-here" } } } }jhrozek commentedon Nov 24, 2026
Closing this as covered for the initial scope. Remote servers can take a bearer token via
--remote-auth-bearer-token(or--remote-auth-bearer-token-file, or the environment variable), and arbitrary headers can be forwarded with--remote-forward-headers, with values read from secrets via--remote-forward-headers-secret.The longer-term items (external secret providers such as Vault, dynamic resolution, rotation) are not covered here. If you need those, please open one issue for each so they can be scoped separately.