Skip to content

Commit ded0ce3

Browse files
committed
improve readme
1 parent 4b8efae commit ded0ce3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ const app = express();
311311
app.use(express.json());
312312

313313
app.post('/mcp', async (req: Request, res: Response) => {
314+
// In stateless mode, create a new instance of transport and server for each request
315+
// to ensure complete isolation. A single instance would cause request ID collisions
316+
// when multiple clients connect concurrently.
317+
314318
try {
315319
const server = getServer();
316320
const transport: StreamableHTTPServerTransport = new StreamableHTTPServerTransport({

0 commit comments

Comments
 (0)