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
| GraphOS Collection | `source` | `"collection"` | | Load operations from a GraphOS collection |
171
-
| GraphOS Collection | `id` | `string` | | The collection ID to use in GraphOS. Use `default` for the default collection. [Learn more](/apollo-mcp-server/define-tools#from-operation-collection). |
172
-
| Introspection | `source` | `"introspect"` | | Load operations by introspecting the schema. Note: You must enable introspection to use this source |
173
-
| Local | `source` | `"local"` | | Load operations from local GraphQL files or directories |
174
-
| Local | `paths` | `List<FilePath>` | | Paths to GraphQL files or directories to search. Note: These paths are relative to the location from which you are running Apollo MCP Server. |
175
-
| Manifest | `source` | `"manifest"` | | Load operations from a persisted queries manifest file |
176
-
| Manifest | `path` | `FilePath` | | The path to the persisted query manifest |
177
-
| Uplink | `source` | `"uplink"` | | Load operations from an uplink manifest. Note: This source requires an Apollo key and graph reference |
178
-
| Infer | `source` | `"infer"` | \* | Infer where to load operations based on other configuration options. |
| GraphOS Collection | `source` | `"collection"` | Load operations from a GraphOS collection |
171
+
| GraphOS Collection | `id` | `string` | The collection ID to use in GraphOS. Use `default` for the default collection. [Learn more](/apollo-mcp-server/define-tools#from-operation-collection). |
172
+
| Introspection | `source` | `"introspect"` | Load operations by introspecting the schema. Note: You must enable introspection to use this source |
173
+
| Local | `source` | `"local"` | Load operations from local GraphQL files or directories |
174
+
| Local | `paths` | `List<FilePath>` | Paths to GraphQL files or directories to search. Note: These paths are relative to the location from which you are running Apollo MCP Server. |
175
+
| Manifest | `source` | `"manifest"` | Load operations from a persisted queries manifest file |
176
+
| Manifest | `path` | `FilePath` | The path to the persisted query manifest |
177
+
| Uplink | `source` | `"uplink"` | Load operations from an uplink manifest. Note: This source requires an Apollo key and graph reference |
178
+
| Infer | `source` | `"infer"` | Infer where to load operations based on other configuration options. |
179
179
180
180
### Overrides
181
181
@@ -193,52 +193,50 @@ These fields are under the top-level `overrides` key.
193
193
These fields are under the top-level `schema` key. The available fields depend on the value of the nested `source` key.
| Local | `source` | `"local"` | Load schema from local file |
199
+
| Local | `path` | `FilePath` | Path to the GraphQL schema |
200
+
| Uplink | `source` | `"uplink"` | Fetch the schema from uplink. Note: This requires an Apollo key and graph reference |
201
201
202
202
### Transport
203
203
204
204
These fields are under the top-level `transport` key, to configure running the MCP Server in different environments - stdio, Streamable HTTP or SSE (deprecated).
205
205
206
-
```
206
+
```yaml
207
207
transport:
208
-
type: stdio
208
+
type: streamable_http
209
+
address: 127.0.0.1
210
+
port: 5000
211
+
stateful_mode: true
209
212
```
210
213
211
-
The available fields depend on the value of the nested `type` key:
214
+
##### Type
212
215
213
-
##### stdio (default)
216
+
The available fields depend on the value of the nested `type` key. The default type is `stdio`:
| `type` | `"streamable_http"` | | Host the MCP server on the configuration, using streamable HTTP messages. |
224
-
| `address` | `127.0.0.1` (default) | `IpAddr` | The IP address to bind to |
225
-
| `port` | `8000` (default) | `u16` | The port to bind to |
226
-
| `stateful_mode` | `true` (default) | `bool` | Flag to enable or disable stateful mode and session management. |
226
+
Some transport types support further configuration. For both `streamable_http` and `sse`, you can set the `address` and `port`. For `streamable_http`, you can also set `stateful_mode`.
| `address` | `IpAddr` | `127.0.0.1` | The IP address to bind to |
231
+
| `port` | `u16` | `8000` | The port to bind to |
232
+
| `stateful_mode` | `bool` | `true` | Flag to enable or disable stateful mode and session management. Not supported by SSE |
227
233
228
234
<Note>
229
235
230
236
For Apollo MCP Server `≤v1.0.0`, the default `port` value is `5000`. In `v1.1.0`, the default `port` option was changed to `8000` to avoid conflicts with common development tools and services that typically use port 5000 (such as macOS AirPlay, Flask development servers, and other local services).
| `type` | `"sse"` | | Host the MCP server on the supplied config, using SSE for communication. Deprecated in favor of `StreamableHTTP` |
239
-
| `address` | `127.0.0.1` (default) | `IpAddr` | The IP address to bind to |
240
-
| `port` | `8000` (default) | `u16` | The port to bind to |
241
-
242
240
### Auth
243
241
244
242
These fields are under the top-level `transport` key, nested under the `auth` key. Learn more about [authorization and authentication](/apollo-mcp-server/auth).
@@ -339,11 +337,11 @@ transport:
339
337
| `always_off` | `string` | Sampling is turned off, no traces will be exported. |
340
338
| `0.0-1.0` | `f64` | Percentage of traces to export. |
341
339
342
-
## Example config file
340
+
## Example config files
343
341
344
342
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.
This configuration file will set up Streamable HTTP transport, enables introspection, and makes all operations derive from introspection:
359
+
360
+
```yaml title="config.yaml"
361
+
transport:
362
+
type: streamable_http
363
+
introspection:
364
+
introspect:
365
+
enabled: true
366
+
operations:
367
+
source: introspect
368
+
```
369
+
360
370
## Override configuration options using environment variables
361
371
362
372
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.
0 commit comments