mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
fix(ai): Accept header for docs-tools MCP endpoint (#1334)
This commit is contained in:
parent
d21bdb0ea8
commit
74f2df9c79
@ -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),
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user