You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/config-file.mdx
+43-23Lines changed: 43 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,32 +5,16 @@ redirectFrom:
5
5
- /apollo-mcp-server/command-reference
6
6
---
7
7
8
-
### Example config file
8
+
You can configure Apollo MCP Server using a configuration file. You can also [override configuration options using environment variables](#override-configuration-options-using-environment-variables).
9
9
10
-
The following example file sets your endpoint to `localhost:4001`, configures transport over Streamable HTTP, provides a GraphOS key and graph reference,
11
-
enables introspection, and provides two local MCP operations for the server to expose.
@@ -179,7 +163,7 @@ The available fields depend on the value of the nested `type` key:
179
163
180
164
### Auth
181
165
182
-
These fields are under the top-level `transport` key, nested under the `auth` key.
166
+
These fields are under the top-level `transport` key, nested under the `auth` key. Learn more about [authorization and authentication](/apollo-mcp-server/auth).
The following example file sets your endpoint to `localhost:4001`, configures transport over Streamable HTTP, enables introspection, and provides two local MCP operations for the server to expose.
## Override configuration options using environment variables
227
+
228
+
You can override configuration options using environment variables. The environment variable name is the same as the option name, but with `APOLLO_MCP_` prefixed. You can use `__` to mark nested options.
229
+
230
+
For example, to override the `introspection.execute.enabled` option, you can set the `APOLLO_MCP_INTROSPECTION__EXECUTE__ENABLED` environment variable.
231
+
232
+
```sh
233
+
APOLLO_MCP_INTROSPECTION__EXECUTE__ENABLED="true"
234
+
```
235
+
236
+
For list values, you can set the environment variable to a comma-separated list.
237
+
238
+
For example, to override the `transport.auth.servers` option, you can set the `APOLLO_MCP_TRANSPORT__AUTH__SERVERS` environment variable to a comma-separated list.
0 commit comments