Module utils

Module utils 

Source
Expand description

Common utilities for MCP server installation

Structs§

InstallationResult
Result of an installation operation
UninstallationResult
Result of an uninstallation operation

Functions§

check_binary_accessible
Check if the binary at the given path is accessible
create_installation_result
Create a standardized installation result
create_uninstallation_result
Create a standardized uninstallation result
detect_binary_path
Detect the current binary path
ensure_directory_exists
Create a directory if it doesn’t exist
file_exists
Check if a file exists at the given path
format_actions
Format actions taken into human-readable strings
get_home_dir
Get the current user’s home directory
read_file_content
Read file content if it exists, otherwise return None
validate_binary_path
Validate that a binary path exists and is executable