Skip to content

Commit eefdcf5

Browse files
committed
docs: Add clarifying comments for stateless streamable HTTP endpoints
Add inline comments explaining why GET and DELETE endpoints return 405 in stateless mode: - GET: SSE notifications not supported without session management - DELETE: Session termination not needed in stateless mode
1 parent 0c4b308 commit eefdcf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ app.post('/mcp', async (req: Request, res: Response) => {
347347
}
348348
});
349349

350+
// SSE notifications not supported in stateless mode
350351
app.get('/mcp', async (req: Request, res: Response) => {
351352
console.log('Received GET MCP request');
352353
res.writeHead(405).end(JSON.stringify({
@@ -359,6 +360,7 @@ app.get('/mcp', async (req: Request, res: Response) => {
359360
}));
360361
});
361362

363+
// Session termination not needed in stateless mode
362364
app.delete('/mcp', async (req: Request, res: Response) => {
363365
console.log('Received DELETE MCP request');
364366
res.writeHead(405).end(JSON.stringify({

0 commit comments

Comments
 (0)