Skip to content

Commit c3a8cb1

Browse files
authored
Update remote-mcp-server.mdx
The port number for "remote-mcp-github-oauth" is set to 8788 instead of 8787. Ref. https://github.com/cloudflare/ai/tree/main/demos/remote-mcp-github-oauth
1 parent 5718d14 commit c3a8cb1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/content/docs/agents/guides/remote-mcp-server.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ In the directory of your new project, run the following command to start the dev
3939
npm start
4040
```
4141

42-
Your MCP server is now running on `http://localhost:8787/sse`.
42+
Your MCP server is now running on `http://localhost:8788/sse`.
4343

4444
In a new terminal, run the [MCP inspector](https://github.com/modelcontextprotocol/inspector). The MCP inspector is an interactive MCP client that allows you to connect to your MCP server and invoke tools from a web browser.
4545

@@ -53,7 +53,7 @@ Open the MCP inspector in your web browser:
5353
open http://localhost:5173
5454
```
5555

56-
In the inspector, enter the URL of your MCP server, `http://localhost:8787/sse`, and click **Connect**:
56+
In the inspector, enter the URL of your MCP server, `http://localhost:8788/sse`, and click **Connect**:
5757

5858
![MCP inspector — where to enter the URL of your MCP server](~/assets/images/agents/mcp-inspector-enter-url.png)
5959

@@ -83,7 +83,7 @@ After deploying, take the URL of your deployed MCP server, and enter it in the M
8383

8484
Now that your MCP server is running with OAuth authentication, you can use the [`mcp-remote` local proxy](https://www.npmjs.com/package/mcp-remote) to connect Claude Desktop or other MCP clients to it — even though these tools aren't yet _remote_ MCP clients, and don't support remote transport or authorization on the client side. This lets you to test what an interaction with your OAuth-enabled MCP server will be like with a real MCP client.
8585

86-
Update your Claude Desktop configuration to point to the URL of your MCP server. You can use either the `localhost:8787/sse` URL, or the URL of your deployed MCP server:
86+
Update your Claude Desktop configuration to point to the URL of your MCP server. You can use either the `localhost:8788/sse` URL, or the URL of your deployed MCP server:
8787

8888
```json
8989
{
@@ -159,8 +159,8 @@ You'll need to create two [GitHub OAuth Apps](https://docs.github.com/en/apps/oa
159159
Navigate to [github.com/settings/developers](https://github.com/settings/developers) to create a new OAuth App with the following settings:
160160

161161
- **Application name**: `My MCP Server (local)`
162-
- **Homepage URL**: `http://localhost:8787`
163-
- **Authorization callback URL**: `http://localhost:8787/callback`
162+
- **Homepage URL**: `http://localhost:8788`
163+
- **Authorization callback URL**: `http://localhost:8788/callback`
164164

165165
For the OAuth app you just created, add the client ID of the OAuth app as `GITHUB_CLIENT_ID` and generate a client secret, adding it as `GITHUB_CLIENT_SECRET` to a `.dev.vars` file in the root of your project, which [will be used to set secrets in local development](/workers/configuration/secrets/).
166166

@@ -179,7 +179,7 @@ Run the following command to start the development server:
179179
npm start
180180
```
181181

182-
Your MCP server is now running on `http://localhost:8787/sse`.
182+
Your MCP server is now running on `http://localhost:8788/sse`.
183183

184184
In a new terminal, run the [MCP inspector](https://github.com/modelcontextprotocol/inspector). The MCP inspector is an interactive MCP client that allows you to connect to your MCP server and invoke tools from a web browser.
185185

@@ -193,7 +193,7 @@ Open the MCP inspector in your web browser:
193193
open http://localhost:5173
194194
```
195195

196-
In the inspector, enter the URL of your MCP server, `http://localhost:8787/sse`, and click **Connect**:
196+
In the inspector, enter the URL of your MCP server, `http://localhost:8788/sse`, and click **Connect**:
197197

198198
You should be redirected to a GitHub login or authorization page. After authorizing the MCP Client (the inspector) access to your GitHub account, you will be redirected back to the inspector. You should see the "List Tools" button, which will list the tools that your MCP server exposes.
199199

0 commit comments

Comments
 (0)