Skip to content

Commit 491ca16

Browse files
committed
fix mcp accept header
1 parent 5eb9652 commit 491ca16

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

LOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Web GUI chat MVP
66
- **Web GUI**: Replaced landing with MCP-backed chat UI (vanilla + Tailwind)
77
- **MCP**: Added JSON-RPC search flow with dataset cards
8+
- **Fix**: Added `Accept` header for MCP 406 requirement
89

910
### Web GUI landing + Pages deploy
1011
- **Web GUI**: Added static landing page in `web-gui/public`

web-gui/public/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ <h1 class="text-3xl font-semibold">CKAN Open Data Explorer</h1>
188188
};
189189
const response = await fetch(endpoint, {
190190
method: "POST",
191-
headers: { "Content-Type": "application/json" },
191+
headers: {
192+
"Content-Type": "application/json",
193+
Accept: "application/json, text/event-stream"
194+
},
192195
body: JSON.stringify(payload)
193196
});
194197

0 commit comments

Comments
 (0)