33from importlib .metadata import version
44from typing import TYPE_CHECKING , Any , Literal
55
6+ from rich .align import Align
67from rich .console import Console , Group
78from rich .panel import Panel
89from rich .table import Table
1415 from fastmcp import FastMCP
1516
1617LOGO_ASCII = r"""
17- _ __ ___ ______ __ __ _____________ ____ ____
18- _ __ ___ / ____/___ ______/ /_/ |/ / ____/ __ \ |___ \ / __ \
18+ _ __ ___ _____ __ __ _____________ ____ ____
19+ _ __ ___ .' ____/___ ______/ /_/ |/ / ____/ __ \ |___ \ / __ \
1920 _ __ ___ / /_ / __ `/ ___/ __/ /|_/ / / / /_/ / ___/ / / / / /
2021 _ __ ___ / __/ / /_/ (__ ) /_/ / / / /___/ ____/ / __/_/ /_/ /
21- _ __ ___ /_/ \__,_ /____/\__/_/ /_/\____/_/ /_____(_ )____/
22+ _ __ ___ /_/ \____ /____/\__/_/ /_/\____/_/ /_____(* )____/
2223
2324""" .lstrip ("\n " )
2425
@@ -44,11 +45,14 @@ def log_server_banner(
4445 # Create the logo text
4546 logo_text = Text (LOGO_ASCII , style = "bold green" )
4647
48+ # Create the main title
49+ title_text = Text ("FastMCP 2.0" , style = "bold blue" )
50+
4751 # Create the information table
4852 info_table = Table .grid (padding = (0 , 1 ))
4953 info_table .add_column (style = "bold" , justify = "center" ) # Emoji column
50- info_table .add_column (style = "bold cyan" , justify = "left" ) # Label column
51- info_table .add_column (style = "white " , justify = "left" ) # Value column
54+ info_table .add_column (style = "cyan" , justify = "left" ) # Label column
55+ info_table .add_column (style = "dim " , justify = "left" ) # Value column
5256
5357 match transport :
5458 case "http" | "streamable-http" :
@@ -69,11 +73,6 @@ def log_server_banner(
6973 server_url += f"/{ path .lstrip ('/' )} "
7074 info_table .add_row ("🔗" , "Server URL:" , server_url )
7175
72- # Add documentation link
73- info_table .add_row ("" , "" , "" )
74- info_table .add_row ("📚" , "Docs:" , "https://gofastmcp.com" )
75- info_table .add_row ("🚀" , "Deploy:" , "https://fastmcp.cloud" )
76-
7776 # Add version information with explicit style overrides
7877 info_table .add_row ("" , "" , "" )
7978 info_table .add_row (
@@ -83,16 +82,26 @@ def log_server_banner(
8382 )
8483 info_table .add_row (
8584 "🤝" ,
86- "MCP version:" ,
85+ "MCP SDK version:" ,
8786 Text (version ("mcp" ), style = "dim white" , no_wrap = True ),
8887 )
89- # Create panel with logo and information using Group
90- panel_content = Group (logo_text , "" , info_table )
88+
89+ # Add documentation link
90+ info_table .add_row ("" , "" , "" )
91+ info_table .add_row ("📚" , "Docs:" , "https://gofastmcp.com" )
92+ info_table .add_row ("🚀" , "Deploy:" , "https://fastmcp.cloud" )
93+
94+ # Create panel with logo, title, and information using Group
95+ panel_content = Group (
96+ Align .center (logo_text ),
97+ Align .center (title_text ),
98+ "" ,
99+ "" ,
100+ Align .center (info_table ),
101+ )
91102
92103 panel = Panel (
93104 panel_content ,
94- title = "FastMCP 2.0" ,
95- title_align = "left" ,
96105 border_style = "dim" ,
97106 padding = (1 , 4 ),
98107 expand = False ,
0 commit comments