π The fast, Pythonic way to build MCP servers and clients.
Add server version to banner (#3076)
Richard Michaeld5f5300e63ef
diff --git a/src/fastmcp/utilities/cli.py b/src/fastmcp/utilities/cli.pyindex 51b6007a6..070931fa6 100644--- a/src/fastmcp/utilities/cli.py+++ b/src/fastmcp/utilities/cli.py@@ -217,7 +217,10 @@ def log_server_banner(server: FastMCP[Any]) -> None:info_table.add_column(style="cyan", justify="left") # Label columninfo_table.add_column(style="dim", justify="left") # Value column- info_table.add_row("π₯", "Server:", Text(server.name, style="dim"))+ server_info = server.name+ if server.version:+ server_info += f", {server.version}"+ info_table.add_row("π₯", "Server:", Text(server_info, style="dim"))info_table.add_row("π", "Deploy free:", "https://fastmcp.cloud")# Create panel with logo, title, and information using Group