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.
This commit is contained in:
ihrpr 2025-01-26 16:54:49 +00:00 • committed by GitHub
commit 892d8f389d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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