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:
parent
60247d898b
commit
9df70a52d6
@ -49,6 +49,35 @@ def create_mqtt_config_from_env() -> Optional[MQTTConfig]:
|
|||||||
return None
|
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(
|
def main_server(
|
||||||
transport: str = typer.Option("stdio", "--transport", "-t", help="Transport mode: stdio (default) or http"),
|
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)"),
|
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."""
|
"""mcmqtt FastMCP MQTT Server - Enabling MQTT integration for MCP clients."""
|
||||||
|
|
||||||
|
# Show startup banner
|
||||||
|
show_startup_banner()
|
||||||
|
|
||||||
# Create MQTT configuration
|
# Create MQTT configuration
|
||||||
mqtt_config = None
|
mqtt_config = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user