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
Commit eb2a2d9
Browse filesBrowse the repository at this point in the historyBrowse files
fix: [#791][#792] address second-round review on bearer-auth MCP support
- `discover.ts`: preserve `headersCommand` / `oauth` in the discovery
normalizer (mirrors `normalizeMcpConfig`) so auto-discovered servers
from `.mcp.json` / `.gemini/settings.json` keep their bearer-token
config instead of silently connecting with no auth
- `supportsOAuth()`: mirror `create()`'s OAuth auto-disable — return
`false` when an `Authorization` header is present (statically or via
`headersCommand`) and `oauth` is not explicitly configured, so the
auth routes no longer start OAuth flows the connection ignores
- `mergeHeaders()`: merge static + dynamic headers case-insensitively
(HTTP header names are case-insensitive) so `headersCommand` overrides
a static header differing only in casing instead of sending duplicates
- `resolveHeadersCommand()`: run the composed failure message through
`Telemetry.maskString()` before it reaches logs / `status.error`, so a
token echoed in argv or printed to stderr by a verbose auth CLI is
redacted
- tests: discovery round-trip for `headersCommand`/`oauth`, `supportsOAuth`
matrix, case-insensitive merge (unit + transport-level), stderr masking
Co-Authored-By: Claude Fable 5 <[email protected]>
0 commit comments