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
## Using Server-Side-Events (SSE) with Apollo MCP server
48
+
## Using Streamable HTTP with Apollo MCP server
57
49
58
-
There are operations located at `./operations/*.graphql` for you to use in your configuration. You can provide a set of operations in your MCP configuration along with the `--introspection` option that enables the LLM to generate a dynamic operation along with the ability to execute it.
50
+
There are operations located at `./operations/*.graphql` for you to use in your configuration. You can provide a set of operations in your MCP configuration that enables the LLM to generate a dynamic operation along with the ability to execute it.
59
51
60
-
### Running SSE with `rover dev`
52
+
### Running with `rover dev`
61
53
62
-
**_Coming soon_**
54
+
```BASH
55
+
rover dev --supergraph-config supergraph.yaml --mcp config.yaml
2. Add the MCP SSE port to your MCP Server configuration for the client appliction you are running. If you are running locally, the server link will be `http://127.0.0.1:8000/sse`.
72
+
2. Add the MCP port to your MCP Server configuration for the client application you are running. If you are running locally, the server link will be `http://127.0.0.1:8000/mcp`.
82
73
83
74
_Note: Claude Desktop currently doesn't support SSE_
84
75
85
76
```
86
77
{
87
78
"mcpServers": {
88
79
"thespacedevs": {
89
-
"type": "sse",
90
-
"url": "http://127.0.0.1:8000/sse>"
80
+
"command": "npx",
81
+
"args": [
82
+
"mcp-remote",
83
+
"http://127.0.0.1:8000/mcp"
84
+
]
91
85
}
92
86
}
93
87
}
@@ -103,80 +97,9 @@ Here is an example configuration you can use _(Note: you must provide your fill
## Using Persisted Queries - GraphOS Scale and Enterprise tiers only
122
-
123
-
You can configure the Apollo MCP server to use [Persisted Queries with GraphOS](https://www.apollographql.com/docs/graphos/routing/security/persisted-queries). In order to do this, you'll have to setup GraphOS and run a router instance configured to that persisted query list:
124
-
125
-
1. Create a new graph in [GraphOS](https://studio.apollographql.com/org)
126
-
2. Publish the `api.schema` to the graph you created, _you should see a modal pop up with the command information you need - make sure to save the API key as you'll use it again_
3. Create a new [Persisted Queries List (PQL)](https://www.apollographql.com/docs/graphos/platform/security/persisted-queries#1-pql-creation-and-linking) for the newly created graph in GraphOS. Make sure to link it to your current variant.
137
-
4. Publish operations to PQL in GraphOS
138
-
139
-
```
140
-
rover persisted-queries publish \
141
-
--graph-id my-new-graph \
142
-
--list-id "PQL-ID" \
143
-
--manifest ./persisted_queries/apollo.json
144
-
```
145
-
146
-
_Note: If you added new operations to the operations folder, you'll need to re-generate the persisted queries manifest. There is a VS Code Task you can use in the command palette "Tasks: Run Task" that runs the following command:_
147
-
148
-
```
149
-
npx @apollo/generate-persisted-query-manifest \
150
-
generate-persisted-query-manifest \
151
-
--config persisted_queries.config.json
152
-
```
153
-
154
-
5. In the command invoking or starting up your Apollo MCP Server with SSE, you'll need to export your `APOLLO_KEY` from the second step along with `APOLLO_GRAPH_REF=my-new-graph@current`.
0 commit comments