mcp_registry_client.formatters
Output formatters for the MCP registry client.
format_env_variables(package)
Format environment variables for a package.
Source code in mcp_registry_client/formatters.py
format_package_info(package)
Format a single package for display.
Source code in mcp_registry_client/formatters.py
format_remotes(remotes)
format_server_detailed(server)
Format detailed server information for display.
Source code in mcp_registry_client/formatters.py
format_server_summary(server)
Format server information for display.
Source code in mcp_registry_client/formatters.py
print_error(message)
print_json(data, *, indent=2)
print_server_info_human_readable(server)
Print server information in human-readable format.
Source code in mcp_registry_client/formatters.py
print_table(servers, max_description_width=60)
Print servers in a simple table format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
servers
|
list[Server]
|
List of servers to display |
required |
max_description_width
|
int
|
Maximum width for description column |
60
|