fix(ai): Accept header for docs-tools MCP endpoint (#1334)

This commit is contained in:
Mantra 2026-04-14 21:36:31 -07:00 committed by GitHub
parent d21bdb0ea8
commit 74f2df9c79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,11 @@ async function postDocsToolAction(action: Record<string, unknown>): Promise<stri
const res = await fetch(`${base}/api/internal/docs-tools`, {
method: "POST",
headers: { "Content-Type": "application/json" },
headers: {
"Content-Type": "application/json",
// MCP-style JSON-RPC endpoint requires clients to advertise both JSON and SSE.
Accept: "application/json, text/event-stream",
},
body: JSON.stringify(action),
});