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:
commit
a783c5a5ef
1 changed files with 2 additions and 0 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue