Merge pull request #140 from ihrpr/patch-1

Update README.md new SSE Server to match defaults in inspector
This commit is contained in:
Justin Spahr-Summers 2025-01-27 11:19:28 +00:00 • committed by GitHub
commit a2b7afdbae
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