mcp-hub-003: Client SSE transport and message relay
This commit is contained in:
parent
a93bcfffa7
commit
9a61026bca
4 changed files with 114 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
const express = require('express');
|
||||
const registry = require('./backend-registry');
|
||||
const mcpProxy = require('./routes/mcp-proxy');
|
||||
|
||||
const app = express();
|
||||
|
||||
|
|
@ -8,7 +9,7 @@ app.use(express.json());
|
|||
app.use((req, res, next) => {
|
||||
const start = Date.now();
|
||||
res.on('finish', () => {
|
||||
console.log(`${req.method} ${req.path} ${res.statusCode} ${Date.now() - start}ms`);
|
||||
console.log(req.method + ' ' + req.path + ' ' + res.statusCode + ' ' + (Date.now() - start) + 'ms');
|
||||
});
|
||||
next();
|
||||
});
|
||||
|
|
@ -21,4 +22,6 @@ app.get('/health', (req, res) => {
|
|||
});
|
||||
});
|
||||
|
||||
app.use('/', mcpProxy);
|
||||
|
||||
module.exports = app;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue