π The fast, Pythonic way to build MCP servers and clients.
Update banner (#1567)
Jeremiah Lowin0d01b74abfa2
diff --git a/src/fastmcp/utilities/cli.py b/src/fastmcp/utilities/cli.pyindex 5a47ecacb..1c208da4d 100644--- a/src/fastmcp/utilities/cli.py+++ b/src/fastmcp/utilities/cli.py@@ -3,6 +3,7 @@ from __future__ import annotationsfrom importlib.metadata import versionfrom typing import TYPE_CHECKING, Any, Literal+from rich.align import Alignfrom rich.console import Console, Groupfrom rich.panel import Panelfrom rich.table import Table@@ -14,11 +15,11 @@ if TYPE_CHECKING:from fastmcp import FastMCPLOGO_ASCII = r"""- _ __ ___ ______ __ __ _____________ ____ ____- _ __ ___ / ____/___ ______/ /_/ |/ / ____/ __ \ |___ \ / __ \+ _ __ ___ _____ __ __ _____________ ____ ____+ _ __ ___ .'____/___ ______/ /_/ |/ / ____/ __ \ |___ \ / __ \_ __ ___ / /_ / __ `/ ___/ __/ /|_/ / / / /_/ / ___/ / / / / /_ __ ___ / __/ / /_/ (__ ) /_/ / / / /___/ ____/ / __/_/ /_/ /-_ __ ___ /_/ \__,_/____/\__/_/ /_/\____/_/ /_____(_)____/+_ __ ___ /_/ \____/____/\__/_/ /_/\____/_/ /_____(*)____/""".lstrip("\n")@@ -44,11 +45,14 @@ def log_server_banner(# Create the logo textlogo_text = Text(LOGO_ASCII, style="bold green")+ # Create the main title+ title_text = Text("FastMCP 2.0", style="bold blue")+# Create the information tableinfo_table = Table.grid(padding=(0, 1))info_table.add_column(style="bold", justify="center") # Emoji column- info_table.add_column(style="bold cyan", justify="left") # Label column- info_table.add_column(style="white", justify="left") # Value column+ info_table.add_column(style="cyan", justify="left") # Label column+ info_table.add_column(style="dim", justify="left") # Value columnmatch transport:case "http" | "streamable-http":@@ -69,11 +73,6 @@ def log_server_banner(server_url += f"/{path.lstrip('/')}"info_table.add_row("π", "Server URL:", server_url)- # Add documentation link- info_table.add_row("", "", "")- info_table.add_row("π", "Docs:", "https://gofastmcp.com")- info_table.add_row("π", "Deploy:", "https://fastmcp.cloud")-# Add version information with explicit style overridesinfo_table.add_row("", "", "")info_table.add_row(@@ -83,16 +82,26 @@ def log_server_banner()info_table.add_row("π€",- "MCP version:",+ "MCP SDK version:",Text(version("mcp"), style="dim white", no_wrap=True),)- # Create panel with logo and information using Group- panel_content = Group(logo_text, "", info_table)++ # Add documentation link+ info_table.add_row("", "", "")+ info_table.add_row("π", "Docs:", "https://gofastmcp.com")+ info_table.add_row("π", "Deploy:", "https://fastmcp.cloud")++ # Create panel with logo, title, and information using Group+ panel_content = Group(+ Align.center(logo_text),+ Align.center(title_text),+ "",+ "",+ Align.center(info_table),+ )panel = Panel(panel_content,- title="FastMCP 2.0",- title_align="left",border_style="dim",padding=(1, 4),expand=False,