Skip to main content
Glama
theme.py•2.71 kB
""" Theme configuration for Proxmox MCP output styling. """ class ProxmoxTheme: """Theme configuration for Proxmox MCP output.""" # Feature flags USE_EMOJI = True USE_COLORS = True # Status indicators with emojis STATUS = { 'online': '🟢', 'offline': 'šŸ”“', 'running': 'ā–¶ļø', 'stopped': 'ā¹ļø', 'unknown': 'ā“', 'pending': 'ā³', 'error': 'āŒ', 'warning': 'āš ļø', } # Resource type indicators RESOURCES = { 'node': 'šŸ–„ļø', 'vm': 'šŸ—ƒļø', 'container': 'šŸ“¦', 'storage': 'šŸ’¾', 'cpu': '⚔', 'memory': '🧠', 'network': '🌐', 'disk': 'šŸ’æ', 'backup': 'šŸ“¼', 'snapshot': 'šŸ“ø', 'template': 'šŸ“‹', 'pool': 'šŸŠ', } # Action and operation indicators ACTIONS = { 'success': 'āœ…', 'error': 'āŒ', 'warning': 'āš ļø', 'info': 'ā„¹ļø', 'command': 'šŸ”§', 'start': 'ā–¶ļø', 'stop': 'ā¹ļø', 'restart': 'šŸ”„', 'delete': 'šŸ—‘ļø', 'edit': 'āœļø', 'create': 'āž•', 'migrate': 'āž”ļø', 'clone': 'šŸ“‘', 'lock': 'šŸ”’', 'unlock': 'šŸ”“', } # Section and grouping indicators SECTIONS = { 'header': 'šŸ“Œ', 'details': 'šŸ“', 'statistics': 'šŸ“Š', 'configuration': 'āš™ļø', 'logs': 'šŸ“œ', 'tasks': 'šŸ“‹', 'users': 'šŸ‘„', 'permissions': 'šŸ”‘', } # Measurement and metric indicators METRICS = { 'percentage': '%', 'temperature': 'šŸŒ”ļø', 'uptime': 'ā³', 'bandwidth': 'šŸ“¶', 'latency': '⚔', } @classmethod def get_status_emoji(cls, status: str) -> str: """Get emoji for a status value with fallback.""" status = status.lower() return cls.STATUS.get(status, cls.STATUS['unknown']) @classmethod def get_resource_emoji(cls, resource: str) -> str: """Get emoji for a resource type with fallback.""" resource = resource.lower() return cls.RESOURCES.get(resource, 'šŸ“¦') @classmethod def get_action_emoji(cls, action: str) -> str: """Get emoji for an action with fallback.""" action = action.lower() return cls.ACTIONS.get(action, cls.ACTIONS['info']) @classmethod def get_section_emoji(cls, section: str) -> str: """Get emoji for a section type with fallback.""" section = section.lower() return cls.SECTIONS.get(section, cls.SECTIONS['details'])

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RekklesNA/ProxmoxMCP-Plus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server