Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v1.0.120 Home All releases olderv1.0.119 v1.0.122newer
Claude Code v1.0.120

MCP Dynamic Header Generation with headersHelper

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 →