json

Expand env vars in .mcp.json

Reference secrets with ${VAR} instead of pasting them, so a project .mcp.json is safe to commit.

  • claude-code
  • config
  • json
json
{
  "mcpServers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": { "Authorization": "Bearer ${GITHUB_TOKEN}" }
    }
  }
}
← All tech bits