Skip to content

Conversation

DaleSeo
Copy link
Contributor

@DaleSeo DaleSeo commented Oct 3, 2025

The default server port has been changed from 5000 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).

Migration: If you were relying on the default port 5000, you can continue using it by explicitly setting the port in your configuration file or command line arguments.

  • Before
transport:
  type: streamable_http
  • After
transport:
  type: streamable_http
  port: 5000

@DaleSeo DaleSeo self-assigned this Oct 3, 2025
@apollo-librarian
Copy link

apollo-librarian bot commented Oct 3, 2025

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

0 new, 8 changed, 0 removed
* (developer-tools)/apollo-mcp-server/(latest)/config-file.mdx
* (developer-tools)/apollo-mcp-server/(latest)/cors.mdx
* (developer-tools)/apollo-mcp-server/(latest)/debugging.mdx
* (developer-tools)/apollo-mcp-server/(latest)/deploy.mdx
* (developer-tools)/apollo-mcp-server/(latest)/health-checks.mdx
* (developer-tools)/apollo-mcp-server/(latest)/quickstart.mdx
* (developer-tools)/apollo-mcp-server/(latest)/run.mdx
* (developer-tools)/apollo-mcp-server/(latest)/guides/auth-auth0.mdx

Build ID: 46666f61a5eebfd195821a4f
Build Logs: View logs

URL: https://www.apollographql.com/docs/deploy-preview/46666f61a5eebfd195821a4f

@DaleSeo DaleSeo marked this pull request as ready for review October 9, 2025 14:24
@DaleSeo DaleSeo requested review from a team as code owners October 9, 2025 14:24
@@ -0,0 +1,20 @@
### Change default port from 5000 to 8000 - @DaleSeo PR #417
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, from the README the filename requires a prefix.

  1. Files must start with a prefix that indicates the classification of the changeset.

https://github.com/apollographql/apollo-mcp-server/blob/main/.changesets/README.md

Also do we consider this a breaking change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, @swcollard! Yeah, this should be a breaking change. Will update the file name.


- **Error**: "Port 5000 is already in use"
- Solution: Kill any existing processes using port 5000 or specify a different port with the `transport.port` option or `APOLLO_MCP_TRANSPORT__PORT` env variable
- **Error**: "Port 8000 is already in use"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we just remove this section? I assume this troubleshooting step was only added because of the port use region that incentivized us to change the default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is probably still relevant. I often forgot to kill the server before starting a new one. 😂

Comment on lines 69 to 78
docker run \
-it --rm \
--name apollo-mcp-server \
-p 5000:5000 \
-p 8000:8000 \
-v $PWD/graphql/TheSpaceDevs:/data \
ghcr.io/apollographql/apollo-mcp-server:latest \
--http-port 5000 \
--http-port 8000 \
--schema api.graphql \
--operations operations \
--endpoint https://thespacedevs-production.up.railway.app/
Copy link
Contributor

Choose a reason for hiding this comment

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

This docker run command is using CLI arguments instead of the config file which no longer work in the MCP server

```

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:5000/sse`.
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`.
Copy link
Contributor

Choose a reason for hiding this comment

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

SSE is also deprecated :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OMG, this README.md is really outdated! 🙈

@DaleSeo DaleSeo requested a review from swcollard October 9, 2025 19:47
Copy link
Contributor

@swcollard swcollard left a comment

Choose a reason for hiding this comment

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

Two more small comments inline. Otherwise looks god

-it --rm \
--name apollo-mcp-server \
-p 8000:8000 \
-v $PWD/graphql/TheSpaceDevs/config.yaml \
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-v $PWD/graphql/TheSpaceDevs/config.yaml \
-v $PWD/graphql/TheSpaceDevs/config.yaml:/config.yaml \

I forget, does this need the path on the other side to tell docker where to mount the file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right and I copied that from our deploy docs! 😂 Will fix it in both places.

-v <path/to>/mcp_config.yaml \

{
"mcpServers": {
"thespacedevs": {
"command": "/Users/michaelwatson/Documents/GitHub/apollographql/apollo-mcp-server/target/debug/apollo-mcp-server",
Copy link
Contributor

Choose a reason for hiding this comment

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

I also didn't realize this path was hardcoded to /Users/michaelwatson

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It really shows how long ago this README.md was written. We should probably delete it and just use the official docs instead.

@DaleSeo DaleSeo enabled auto-merge October 9, 2025 21:05
@DaleSeo DaleSeo merged commit 300f84a into develop Oct 9, 2025
10 of 11 checks passed
@DaleSeo DaleSeo deleted the AIR-42 branch October 9, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants