From 7e4708f511ce6b6728eb9e8ac8028dfac2ded716 Mon Sep 17 00:00:00 2001 From: Sai Karthik <11899221+kskarthik@users.noreply.github.com> Date: Tue, 2 Jun 2026 16:42:01 +0530 Subject: [PATCH] docs(config): add example support of custom headers for mcp servers (#39) docs(config): implement suggested improvements --- www/pages/configuration.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/pages/configuration.md b/www/pages/configuration.md index 5afd8552..79fa852e 100644 --- a/www/pages/configuration.md +++ b/www/pages/configuration.md @@ -88,6 +88,9 @@ mcpServers: type: remote url: "https://pubmed.mcp.example.com" noOAuth: true # skip OAuth for public servers + headers: + - "ApiKey: ${env://API_KEY}" # required env var + - "X-Tenant: ${env://TENANT_ID:-default}" # with fallback default builds: type: remote @@ -106,9 +109,10 @@ mcpServers: | `allowedTools` | list | Whitelist of tool names to expose | | `excludedTools` | list | Blacklist of tool names to hide | | `noOAuth` | bool | Skip OAuth for this server (for public servers that don't require auth) | +| `headers` | list of strings | HTTP headers to attach to every request, each as a `"Key: Value"` string. Values support env-substitution: `${env://VAR}` or `${env://VAR:-default}`. | | `tasksMode` | string | When to augment `tools/call` with MCP task metadata: `auto` (default — only when the server advertises task support), `never`, or `always`. See [MCP tasks](#mcp-tasks-long-running-tools). | -A legacy format with `transport`, `args`, `env`, and `headers` fields is also supported. +A legacy format with `transport`, `args`, and `env` fields is also supported; `headers` works in both the current and legacy formats. ### MCP tasks (long-running tools)