Skip to content

Commit 277930e

Browse files
committed
make deploy steps easier to follow
1 parent 3b06429 commit 277930e

File tree

1 file changed

+26
-35
lines changed

1 file changed

+26
-35
lines changed

docs/source/quickstart.mdx

Lines changed: 26 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -276,32 +276,36 @@ Your project includes a pre-configured `mcp.Dockerfile` for easy deployment. Thi
276276
- Apollo MCP Server for MCP protocol support
277277
- All necessary dependencies
278278

279-
**Build the container:**
280-
```bash
281-
docker build -f mcp.Dockerfile -t my-mcp-server .
282-
```
279+
1. Build the container:
283280

284-
**Run locally:**
285-
```bash
286-
docker run -p 4000:4000 -p 5050:5050 \
287-
-e APOLLO_KEY=$APOLLO_KEY \
288-
-e APOLLO_GRAPH_REF=$APOLLO_GRAPH_REF \
289-
-e MCP_ENABLE=1 \
290-
my-mcp-server
291-
```
281+
```bash
282+
docker build -f mcp.Dockerfile -t my-mcp-server .
283+
```
284+
285+
1. Run locally:
286+
287+
```bash
288+
docker run -p 4000:4000 -p 5050:5050 \
289+
-e APOLLO_KEY=$APOLLO_KEY \
290+
-e APOLLO_GRAPH_REF=$APOLLO_GRAPH_REF \
291+
-e MCP_ENABLE=1 \
292+
my-mcp-server
293+
```
294+
295+
1. Deploy to your platform. The container can be deployed to any platform supporting Docker, such as: AWS ECS/Fargate, Google Cloud Run, Azure Container Instances, Kubernetes, Fly.io, Railway, Render.
292296

293-
**Deploy to your platform:**
297+
1. Ensure these variables are set in your deployment environment:
294298

295-
The container can be deployed to any platform supporting Docker:
296-
- AWS ECS/Fargate
297-
- Google Cloud Run
298-
- Azure Container Instances
299-
- Kubernetes
300-
- Fly.io
301-
- Railway
302-
- Render
299+
| Variable | Description | Required |
300+
| ---------------------------- | ------------------------------- | -------- |
301+
| `APOLLO_KEY` | Your graph's API key | Yes |
302+
| `APOLLO_GRAPH_REF` | Your graph reference | Yes |
303+
| `APOLLO_MCP_TRANSPORT__PORT` | MCP server port (default: 5050) | No |
304+
| `APOLLO_ROUTER_PORT` | Router port (default: 4000) | No |
303305

304-
### Update Client Configuration
306+
For more deployment options, see the [Deploy the MCP Server](/apollo-mcp-server/deploy) page.
307+
308+
### Update client configuration
305309

306310
After deploying, update your MCP client configuration to use the deployed URL:
307311

@@ -319,19 +323,6 @@ After deploying, update your MCP client configuration to use the deployed URL:
319323
}
320324
```
321325

322-
### Environment Variables
323-
324-
Ensure these variables are set in your deployment environment:
325-
326-
| Variable | Description | Required |
327-
|----------|-------------|----------|
328-
| `APOLLO_KEY` | Your graph's API key | Yes |
329-
| `APOLLO_GRAPH_REF` | Your graph reference | Yes |
330-
| `APOLLO_MCP_TRANSPORT__PORT` | MCP server port (default: 5050) | No |
331-
| `APOLLO_ROUTER_PORT` | Router port (default: 4000) | No |
332-
333-
For more deployment options, see the [Deploy the MCP Server](.deploy) page.
334-
335326
## Additional resources
336327

337328
- [Tutorial: Getting started with MCP and GraphQL](https://www.apollographql.com/tutorials/intro-mcp-graphql)

0 commit comments

Comments
 (0)