Add professional startup banner with contributor acknowledgments

- Display mcmqtt version, features, and project information
- Include both Ryan Malloy and Claude (Anthropic) as contributors
- Show repository and PyPI URLs for easy reference
- Professional styling with Rich console formatting
- Banner appears in both STDIO and HTTP transport modes
- Enhances user experience with clear project attribution
This commit is contained in:
Ryan Malloy 2025-09-17 08:18:18 -06:00
parent 60247d898b
commit 9df70a52d6

View File

@ -49,6 +49,35 @@ def create_mqtt_config_from_env() -> Optional[MQTTConfig]:
return None
def show_startup_banner():
"""Display the mcmqtt startup banner with version and contributor info."""
version = get_version()
banner = f"""
🚀 mcmqtt FastMCP MQTT Server
Version: {version:<20} Transport: FastMCP Protocol
📡 Features:
Instant MQTT broker spawning
Real-time agent coordination
Production-ready infrastructure
Global ecosystem connectivity
👥 Created by:
Ryan Malloy <ryan@malloys.us>
Claude (Anthropic)
🌍 Repository: https://git.supported.systems/MCP/mcmqtt
📦 PyPI: https://pypi.org/project/mcmqtt/
Built with for the AI developer community
"""
console.print(banner, style="cyan")
def main_server(
transport: str = typer.Option("stdio", "--transport", "-t", help="Transport mode: stdio (default) or http"),
host: str = typer.Option("0.0.0.0", "--host", "-h", help="Host to bind the server to (HTTP mode only)"),
@ -62,6 +91,9 @@ def main_server(
):
"""mcmqtt FastMCP MQTT Server - Enabling MQTT integration for MCP clients."""
# Show startup banner
show_startup_banner()
# Create MQTT configuration
mqtt_config = None