new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

MCP · Building servers and clients · all subjects

transports: http & streamable

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

SSE stream initialization with event ID and empty data

When a server starts an SSE stream, it MUST immediately send an SSE event consisting of an id field and an empty data string in order to prime the client to reconnect with that event ID as the Last-Event-ID. The SSE standard explicitly permits setting data to an empty string, and clients will record the id for Last-Event-ID but otherwise ignore the event without calling the event handler callback.

Server-side disconnect allowed after sending event ID in Streamable HTTP

At any point after the server has sent an event ID to the client, the server MAY disconnect at will. The server may close the connection before sending the JSON-RPC response if it has sent an SSE event with an event ID to the client.

Client reconnection behavior on Streamable HTTP server disconnect

If a server disconnects, the client will interpret the disconnection the same as a network failure and will attempt to reconnect.

SSE retry field usage to control client reconnection polling

The server SHOULD send an SSE event with a retry field indicating how long the client should wait before reconnecting. Clients MUST respect the retry field to prevent excessive polling.

SEP-1699 supersedes SEP-1335 for Streamable HTTP disconnect behavior

SEP-1699 supersedes SEP-1335 in part, establishing the new support for SSE polling via server-side disconnect.

Give your agent this brain