Skip to content

Commit 892d8f3

Browse files
authored
Update README.md to match defaults in inspector
When launching inspector and changing to use SSE, the URL is set to `http://localhost:3001/sse`. It's quite confusing to have an example use different endpoint names and port, hence the change.
1 parent 87197fb commit 892d8f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const server = new McpServer({
224224

225225
const app = express();
226226

227-
app.get("/mcp", async (req, res) => {
227+
app.get("/sse", async (req, res) => {
228228
const transport = new SSEServerTransport("/messages", res);
229229
await server.connect(transport);
230230
});
@@ -236,7 +236,7 @@ app.post("/messages", async (req, res) => {
236236
await transport.handlePostMessage(req, res);
237237
});
238238

239-
app.listen(3000);
239+
app.listen(3001);
240240
```
241241

242242
### Testing and Debugging

0 commit comments

Comments
 (0)