Mehmet Yağız Maktav 01a7342f4b
🐛 Add opt-in MCP JSON replies and deliver pending outcomes on shutdown (#12492)
* 🐛 Add opt-in MCP JSON replies and deliver pending outcomes on shutdown

Stateless legacy POST requests can opt in to a single correlated JSON reply
with PENPOT_MCP_JSON_RESPONSE=true; SSE remains the default.

Shutdown now rejects pending plugin tasks before closing HTTP
connections and gives in-flight requests a bounded grace period to send
their replies, so a tool call interrupted by shutdown reports an
unknown outcome instead of a dropped stream (both JSON and SSE).
Tool execution failures now set isError on the MCP result.

Refs #12497

AI-assisted-by: claude-opus-5-5

* 📎 Give the 100-round JSON reply test room on loaded CI machines

AI-assisted-by: claude-opus-5-5
2026-11-24 14:59:38 +01:00
..
2026-02-04 12:22:36 +01:00
2026-02-04 12:22:36 +01:00
2026-02-04 12:22:36 +01:00