Skip to content

Commit 26191dc

Browse files
committed
clarify headers vs forwarding headers
1 parent 4f7baaa commit 26191dc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/source/config-file.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ These fields are under the top-level `graphos` key and define your GraphOS graph
4444
| `apollo_registry_url` | `URL` | | The URL to use for Apollo's registry |
4545
| `apollo_uplink_endpoints` | `URL` | | List of uplink URL overrides. You can also provide this with the `APOLLO_UPLINK_ENDPOINTS` environment variable |
4646

47-
### Headers
47+
### Static headers
4848

49-
The `headers` option allows you to specify a list of static, hard-coded headers and value. These headers are included in all GraphQL requests.
49+
The `headers` option enables you to specify a list of static, hard-coded headers and values. These are included in all GraphQL requests.
5050

5151
```yaml title="mcp.yaml"
5252
headers: { "apollographql-client-name": "my-mcp-server" }
5353
```
5454
55-
To forward header values from the client, use the [forward headers](#forward-headers) option.
55+
To forward dynamic header values from the client, use the [`forward_headers` option](#forwarding-headers) instead.
5656

57-
### Forward headers
57+
### Forwarding headers
5858

59-
The `forward_headers` option allows you to forward specific headers from incoming MCP client requests to your GraphQL API.
59+
The `forward_headers` option allows you to forward specific headers from incoming MCP client requests to your GraphQL API.
6060

6161
This is useful for:
6262
- Multi-tenant applications (forwarding tenant IDs)
@@ -67,6 +67,8 @@ This is useful for:
6767

6868
Header names should match exactly but are case-insensitive.
6969

70+
Header values are forwarded as-is, according to what the MCP client provides.
71+
7072
Hop-by-hop headers (like `connection`, `transfer-encoding`) are automatically blocked for security.
7173

7274
```yaml title="mcp.yaml"
@@ -78,7 +80,7 @@ forward_headers:
7880

7981
<Caution>
8082

81-
Don't use header forwarding to pass through sensitive credentials such as API keys or access tokens.
83+
Don't use header forwarding to pass through sensitive credentials such as API keys or access tokens.
8284

8385
<br/><br/>
8486

0 commit comments

Comments
 (0)