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
Configure the Apollo MCP server with a configuration file. The path to this file is the only argument.
90
+
Configure the Apollo MCP server with a YAML configuration file.
91
91
92
92
```sh showLineNumbers=false
93
93
apollo-mcp-server [OPTIONS] <PATH/TO/CONFIG/FILE>
94
94
```
95
95
96
+
A configuration file is optional. If the file is not provided, environment variables for your graph credentials (`APOLLO_GRAPH_REF` and `APOLLO_KEY`) are required for the server to run.
97
+
96
98
### CLI options
97
99
98
100
| Option | Description |
99
101
| :-------------- | :------------------------ |
100
102
|`-h, --help`| Print help information |
101
103
|`-V, --version`| Print version information |
102
104
105
+
### Example config file
106
+
107
+
The following example file sets your endpoint to `localhost:4001`, configures transport over Streamable HTTP, provides a GraphOS key and graph reference,
108
+
enables introspection, and provides two local MCP operations for the server to expose.
@@ -132,7 +156,7 @@ These fields are under the top-level `graphos` key.
132
156
133
157
#### Introspection configuration
134
158
135
-
These fields are under the top-level `introspection` key.
159
+
These fields are under the top-level `introspection` key. Learn more about the MCP [introspection tools](/apollo-mcp-server/guides#introspection-tools).
@@ -164,7 +188,7 @@ The default value for `source` is `"infer"`.
164
188
| GraphOS Collection | `id` | `string` | | The collection ID to use in GraphOS. Use `default` for the default collection. [Learn more](/apollo-mcp-server/guides/#from-operation-collection) |
165
189
| Introspection | `source` | `"introspect"` | | Load operations by introspecting the schema. Note: You must enable introspection to use this source |
166
190
| Local | `source` | `"local"` | | Load operations from local GraphQL files or directories |
167
-
| Local |`paths`|`List<FilePath>`|| Paths to GraphQL files or directories to search|
191
+
| 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. |
168
192
| Manifest | `source` | `"manifest"` | | Load operations from a persisted queries manifest file |
169
193
| Manifest | `path` | `FilePath` | | The path to the persisted query manifest |
170
194
| Uplink | `source` | `"uplink"` | | Load operations from an uplink manifest. Note: This source requires an Apollo key and graph reference |
0 commit comments