Skip to content

Commit 4f7baaa

Browse files
committed
clarify headers option, fix header name, add link
1 parent c3da075 commit 4f7baaa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/source/best-practices.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ In particular, we strongly recommend contract variants when using:
2626

2727
If you register a persisted query with a specific client name instead of `null`, you must configure the MCP Server to send the necessary header indicating the client name to the router.
2828

29-
Use the `headers` option when running the MCP Server to pass the header to the router. The default name of the header expected by the router is `apollographql-client-name`. To use a different header name, configure `telemetry.apollo.client_name_header` in router YAML configuration.
29+
Use [the `headers` option](/apollo-mcp-server/config-file#headers) when running the MCP Server to pass the header to the router. The default name of the header expected by the router is `apollographql-client-name`. To use a different header name, configure `telemetry.apollo.client_name_header` in router YAML configuration.

docs/source/config-file.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ These fields are under the top-level `graphos` key and define your GraphOS graph
4646

4747
### Headers
4848

49-
The `headers` option allows you to specify a list of hard-coded headers and values to include in all GraphQL requests.
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.
5050

5151
```yaml title="mcp.yaml"
52-
headers: { "apollo-client-name": "my-mcp-server" }
52+
headers: { "apollographql-client-name": "my-mcp-server" }
5353
```
5454
5555
To forward header values from the client, use the [forward headers](#forward-headers) option.

0 commit comments

Comments
 (0)