Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG S6_OVERLAY_VERSION=3.2.1.0
# renovate: datasource=github-releases depName=apollographql/router
ARG APOLLO_ROUTER_VERSION=2.3.0
# renovate: datasource=github-releases depName=apollographql/apollo-mcp-server
ARG APOLLO_MCP_SERVER_VERSION=0.4.2
ARG APOLLO_MCP_SERVER_VERSION=0.5.2

LABEL org.opencontainers.image.version=0.0.5
LABEL org.opencontainers.image.vendor="Apollo GraphQL"
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ docker run \
--env APOLLO_GRAPH_REF="your graph here" \
--env APOLLO_KEY="your key here" \
--env MCP_ENABLE=1 \
--env MCP_UPLINK=1 \
--rm \
-p 4000:4000 \
-p 5050:5000 \
Expand All @@ -43,13 +42,11 @@ We open two ports in the above command:
The MCP Server included in this container is currently experimental and as such **should not be used in a production
environment**. For more information see [here](https://www.apollographql.com/docs/graphos/resources/feature-launch-stages#experimental)

If you wish to enable it for testing purposes then set the environment variables `MCP_ENABLE` and `MCP_UPLINK` when running the
container.
If you wish to enable it for testing purposes then set the environment variable `MCP_ENABLE` when running the container.

```shell
...
--env MCP_ENABLE=1 \
--env MCP_UPLINK=1 \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In v0.5.2, if a schema isn't provided, it will get fetched from uplink by default.

...
```

Expand Down Expand Up @@ -153,7 +150,7 @@ these are as follows:
| `APOLLO_KEY` | A valid API Key for Apollo Studio |
| `APOLLO_GRAPH_REF` | The Graph Ref in Apollo Studio referenced by the Router and MCP Server |
| `MCP_ALLOW_MUTATIONS` | Possible values: `none`, don't allow any mutations, `explicit` allow explicit mutations, but don't allow the LLM to build them, `all` Allow the LLM to build mutations |
| `MCP_COLLECTION` | The ID of an operation collection to use as the source for operations |
| `MCP_COLLECTION` | The ID of an operation collection to use as the source for operations (requires `APOLLO_KEY`). |
| `MCP_DISABLE_TYPE_DESCRIPTION` | Disable operation root field types in tool description |
| `MCP_DISABLE_SCHEMA_DESCRIPTION` | Disable schema type definitions referenced by all fields returned by the operation in the tool description |
| `MCP_ENABLE` | Enable the MCP Server |
Expand All @@ -162,4 +159,4 @@ these are as follows:
| `MCP_INTROSPECTION` | Enable the `--introspection` option for the MCP Server |
| `MCP_LOG_LEVEL` | Change the level at which the MCP Server logs, possible values: `ERROR`, `WARN`, `INFO`, `DEBUG`, `TRACE` |
| `MCP_SSE` | Use SSE as the transport protocol rather than streamable HTTP |
| `MCP_UPLINK` | Enable use of Uplink to get the schema and persisted queries (Requires `APOLLO_KEY` and `APOLLO_GRAPH_REF`) |
| `MCP_UPLINK_MANIFEST` | Enable use of Uplink to get the persisted queries (Requires `APOLLO_KEY` and `APOLLO_GRAPH_REF`) |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MCP server will default to the default MCP tools from operation collections unless this environment variable is set.

4 changes: 2 additions & 2 deletions s6_service_definitions/mcp/run
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ if [ -v MCP_ENABLE ]; then
ARGS+=(--introspection)
fi

if [[ -v MCP_UPLINK ]]; then
ARGS+=(--uplink)
if [[ -v MCP_UPLINK_MANIFEST ]]; then
ARGS+=(--uplink-manifest)
fi

if [[ -v MCP_COLLECTION ]]; then
Expand Down