From 892d8f389da83390bc2b155924011f4b0889b533 Mon Sep 17 00:00:00 2001 From: ihrpr Date: Sun, 26 Jan 2025 16:54:49 +0000 Subject: [PATCH] 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. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8cfcfcaec..c3479033c 100644 --- a/README.md +++ b/README.md @@ -224,7 +224,7 @@ const server = new McpServer({ const app = express(); -app.get("/mcp", async (req, res) => { +app.get("/sse", async (req, res) => { const transport = new SSEServerTransport("/messages", res); await server.connect(transport); }); @@ -236,7 +236,7 @@ app.post("/messages", async (req, res) => { await transport.handlePostMessage(req, res); }); -app.listen(3000); +app.listen(3001); ``` ### Testing and Debugging