Formats and serializes JSON-RPC responses for user interfaces within a larger application.
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.
Key Features
01Defines data types for structured responses
02Provides utilities for formatting responses
03Serializes responses into JSON-RPC format
04Integrates with stdio-mode MCP servers
050 GitHub stars
Use Cases
01Creating well-structured output for command-line tools
02Building applications that communicate with user interfaces via JSON-RPC