We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 784babb + e22514a commit 6bce3b7Copy full SHA for 6bce3b7
src/index.ts
@@ -1347,6 +1347,18 @@ async function runSSELocalServer() {
1347
transport.handlePostMessage(req, res);
1348
}
1349
});
1350
+
1351
+ const PORT = process.env.PORT || 3000;
1352
+ console.log('Starting server on port', PORT);
1353
+ try {
1354
+ app.listen(PORT, () => {
1355
+ console.log(`MCP SSE Server listening on http://localhost:${PORT}`);
1356
+ console.log(`SSE endpoint: http://localhost:${PORT}/sse`);
1357
+ console.log(`Message endpoint: http://localhost:${PORT}/messages`);
1358
+ });
1359
+ } catch (error) {
1360
+ console.error('Error starting server:', error);
1361
+ }
1362
1363
1364
async function runSSECloudServer() {
0 commit comments