Files
trueref/trueref-adapters
moze c3e657e2a1
All checks were successful
Build and publish Docker image / Build and push CPU image (push) Successful in 2m8s
Build and publish Docker image / Build and push GPU image (push) Successful in 3m1s
fix: return 405 on POST /sse so MCP clients fall back to legacy SSE transport
Modern MCP clients (Claude Code, etc.) probe for Streamable HTTP transport by
POSTing an InitializeRequest to the server URL first. Per MCP spec 2025-11-25,
they fall back to legacy HTTP+SSE only on 400/404/405.

Previously, POST /sse fell through the SPA resource resolver (which had 'sse'
missing from EXCLUDED_PREFIXES) and returned 500, causing clients to abort
instead of retrying with the GET-based SSE handshake.

Fix:
- Add 'sse' to EXCLUDED_PREFIXES so the SPA resolver ignores that path
- Add explicit @PostMapping("/sse") returning 405 Method Not Allowed with
  Allow: GET header — the correct signal for Streamable HTTP probe fallback
2026-05-06 02:08:32 +02:00
..