Mix.Interactive.UI (hermes_mcp v0.10.2)

Common UI elements and formatting functions for interactive MCP shells.

This module provides consistent UI components and formatting helpers for the interactive CLI interfaces used by the Hermes MCP mix tasks.

It includes functions for displaying colored text, formatted headers, pretty-printing of data structures, and consistent output formatting.

Summary

Functions

Returns the color configuration map for styling output.

Formats JSON or other data for pretty-printing with indentation.

Creates a styled header for an interactive session.

Formats error messages with appropriate styling.

Formats lists of tools/prompts/resources with helpful styling.

Functions

colors()

Returns the color configuration map for styling output.

format_output(data)

Formats JSON or other data for pretty-printing with indentation.

header(title)

Creates a styled header for an interactive session.