-
Notifications
You must be signed in to change notification settings - Fork 45
Change default port from 5000 to 8000 #417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
1899899
47c1367
4bd07ba
373b34d
93e607b
bf4cba2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### Change default port from 5000 to 8000 - @DaleSeo PR #417 | ||
|
||
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 | ||
|
||
```yaml | ||
transport: | ||
type: streamable_http | ||
``` | ||
|
||
- After | ||
|
||
```yaml | ||
transport: | ||
type: streamable_http | ||
port: 5000 | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,7 +94,7 @@ impl Transport { | |
} | ||
|
||
fn default_port() -> u16 { | ||
5000 | ||
8000 | ||
} | ||
|
||
fn default_stateful_mode() -> bool { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
1. In your dashboard, navigate to **Applications** -> **APIs**. | ||
1. Click **Create API**. | ||
1. Give it a friendly name like `MCP Auth API`. | ||
1. For the **Identifier** field, Auth0 recommends using a URL. This identifier is used in the MCP server configuration later as the `audience` property. For this guide, use `http://localhost:5000/mcp-example`. | ||
1. For the **Identifier** field, Auth0 recommends using a URL. This identifier is used in the MCP server configuration later as the `audience` property. For this guide, use `http://localhost:8000/mcp-example`. | ||
1. Leave the defaults for the rest of the fields and click **Create**. | ||
1. Navigate to your dashboard **Settings**. | ||
1. Under **General** -> **API Authorization Settings**, set the **Default Audience** to the `Identifier` you chose. | ||
|
@@ -89,14 +89,14 @@ | |
- https://<AUTH0 DOMAIN> # Fill in your Auth0 domain | ||
audiences: | ||
- <AUTH0 DEFAULT AUDIENCE> # Fill in your Auth0 Identifier | ||
resource: http://127.0.0.1:5000/mcp | ||
resource: http://127.0.0.1:8000/mcp | ||
scopes: | ||
- read:users # Adjust scopes as needed | ||
``` | ||
1. Replace the `<AUTH0 DOMAIN>` with your own Auth0 domain from earlier. | ||
|
||
1. Replace the `<AUTH0 DEFAULT AUDIENCE>` with the matching `Identifier` you set when creating the Auth0 API. In this guide, you used `http://localhost:5000/mcp-example`. | ||
1. Replace the `<AUTH0 DEFAULT AUDIENCE>` with the matching `Identifier` you set when creating the Auth0 API. In this guide, you used `http://localhost:8000/mcp-example`. | ||
|
||
Your MCP server is now configured to use Auth0 for authentication. | ||
|
||
|
@@ -188,7 +188,7 @@ | |
|
||
The browser should open automatically with a proxy auth token. | ||
|
||
1. In the MCP Inspector, select `Streamable HTTP` as the Transport Type and enter `http://127.0.0.1:5000/mcp` as the URL. | ||
1. In the MCP Inspector, select `Streamable HTTP` as the Transport Type and enter `http://127.0.0.1:8000/mcp` as the URL. | ||
Check warning on line 191 in docs/source/guides/auth-auth0.mdx
|
||
1. Click **Connect**. This triggers the OAuth flow, and you are redirected to the Auth0 login page. | ||
1. Log in with the credentials you set up in the Auth0 connection and allow MCP Inspector access. | ||
1. After you connect, the browser redirects back to MCP Inspector. | ||
|
@@ -241,7 +241,7 @@ | |
| "What would you like to configure?" | "Add Extension" | | ||
| "What type of extension would you like to add?" | "Command Line Extension" | | ||
| "What's the name of this extension?" | "mcp-auth-quickstart" | | ||
| "What command should be run?" | `npx mcp-remote http://127.0.0.1:5000/mcp` | | ||
| "What command should be run?" | `npx mcp-remote http://127.0.0.1:8000/mcp` | | ||
| Other prompts (timeout, description, environment variables) | Use the default values | | ||
|
||
1. To start Goose, type `goose`. This will open a browser window and send you through the auth flow. | ||
|
@@ -255,8 +255,8 @@ | |
|
||
#### MCP Server Won't Start | ||
|
||
- **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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. 😂 |
||
- Solution: Kill any existing processes using port 8000 or specify a different port with the `transport.port` option or `APOLLO_MCP_TRANSPORT__PORT` env variable | ||
Check warning on line 259 in docs/source/guides/auth-auth0.mdx
|
||
- **Error**: "Failed to load supergraph configuration" | ||
- Solution: Verify you're running the command from the repo root directory | ||
- Solution: Check that the path to `supergraph.yaml` is correct | ||
|
@@ -269,7 +269,7 @@ | |
|
||
- **Error**: "Failed to connect to server" | ||
- Solution: Ensure the MCP server is running (check terminal output) | ||
- Solution: Verify you're using the correct URL (`http://127.0.0.1:5000/mcp`) | ||
- Solution: Verify you're using the correct URL (`http://127.0.0.1:8000/mcp`) | ||
- Solution: Check if your firewall is blocking the connection | ||
|
||
### Infinite loop during OAuth flow | ||
|
There was a problem hiding this comment.
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.
https://github.com/apollographql/apollo-mcp-server/blob/main/.changesets/README.md
Also do we consider this a breaking change?
There was a problem hiding this comment.
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.