MCP::Shared::ReadBuffer
Instance methods
clear
Sourceread_message
Attempts to read a complete JSON-RPC message.
Searches only the unread suffix of the backing buffer for a newline, so that consumed newlines from prior successful reads do not trigger premature parsing of a fragmented message.