Merge pull request #542 from dhodun/dhodun/add-streamable-http-comments

docs: Add clarifying comments for stateless streamable HTTP endpoints
This commit is contained in:
Inna Harper 2025-06-26 14:07:20 +01:00 • committed by GitHub
commit a783c5a5ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -555,6 +555,7 @@ app.post('/mcp', async (req: Request, res: Response) => {
}
});
// SSE notifications not supported in stateless mode
app.get('/mcp', async (req: Request, res: Response) => {
console.log('Received GET MCP request');
res.writeHead(405).end(JSON.stringify({
@ -567,6 +568,7 @@ app.get('/mcp', async (req: Request, res: Response) => {
}));
});
// Session termination not needed in stateless mode
app.delete('/mcp', async (req: Request, res: Response) => {
console.log('Received DELETE MCP request');
res.writeHead(405).end(JSON.stringify({