Ui Response is a Haskell package responsible for structuring and formatting responses to be sent to the user interface layer of the pty-mcp-server project. Specifically designed for stdio-mode MCP servers, it transforms typed results from the application layer into well-structured JSON-RPC response objects, which are then serialized and written to stdout. It serves as the final output stage in the server's processing pipeline, ensuring consistent and well-formed communication with the UI.