Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v1.0.120 ·

MCP Dynamic Header Generation with headersHelper

Entry
JSON All of v1.0.120
EntryKind: in v1.0.120,
ChangesSection of the release

What: MCP server configurations can now specify a shell command that generates HTTP headers dynamically at runtime, enabling secure credential management and token rotation.

How to use:

{
  "mcpServers": {
    "my-api": {
      "transport": {
        "type": "sse",
        "url": "https://api.example.com/sse",
        "headers": {
          "X-Static-Header": "value"
        },
        "headersHelper": "~/scripts/get-auth-token.sh"
      }
    }
  }
}

Details:

  • The headersHelper command must output valid JSON with string key-value pairs
  • Dynamic headers override static headers (merge strategy: {...static, ...dynamic})
  • Includes workspace trust security checks for project/local-scoped servers at Xo6() at line 393477
  • Comprehensive validation ensures proper JSON format and string values
  • Errors are logged with telemetry event tengu_mcp_headersHelper_missing_trust
  • Use cases: fetching tokens from credential managers, generating time-based auth, reading secrets from environment-specific sources
Evidence

Xo6() function at line 393477, uw0() merge function at line 393531, schema definitions at lines 353050-353074

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v1.0.120 →

Feedback