MemotivaMCP Advanced: Stateless HTTP, JSON Response, Horizontal Scaling, Load Balancers

When should you use json_response mode for your MCP server?

MCP Advanced: Stateless HTTP, JSON Response, Horizontal Scaling, Load Balancers

Audio flashcard · 0:31

Nortren·

When should you use json_response mode for your MCP server?

0:31

Use json_response mode when you do not need streaming responses during tool execution, when you are integrating with systems that expect standard JSON HTTP responses rather than SSE streams, or when you prefer simpler non-streaming HTTP interactions. This mode only affects POST responses by replacing the SSE stream with a single JSON result. It is less restrictive than stateless HTTP because it can still work with session IDs and the primary SSE connection. Use it when you want simplified responses without fully giving up server-to-client communication.
modelcontextprotocol.io