D96 修复: 彻底清理MCP Server残骸

This commit is contained in:
bingshuo 2026-05-14 00:17:37 +08:00
parent 6d428d34d7
commit 4c8a407389

View File

@ -867,9 +867,6 @@ app.post('/mcp', authenticate, async (req, res) => {
// MCP 端点 — GET (SSE 通知流,保持连接)
app.get('/mcp', authenticate, (req, res) => {
res.setHeader('Content-Type', 'text/event-stream');
res.setHeader('Cache-Control', 'no-cache');
res.setHeader('Connection', 'keep-alive');
res.flushHeaders();
// 发送心跳