improve readme

This commit is contained in:
ihrpr 2025-04-22 10:45:17 +01:00
commit ded0ce3a8d
No known key found for this signature in database

View file

@ -311,6 +311,10 @@ const app = express();
app.use(express.json());
app.post('/mcp', async (req: Request, res: Response) => {
// In stateless mode, create a new instance of transport and server for each request
// to ensure complete isolation. A single instance would cause request ID collisions
// when multiple clients connect concurrently.
try {
const server = getServer();
const transport: StreamableHTTPServerTransport = new StreamableHTTPServerTransport({