From d5f5300e63efa8ceceec5c0a6895b9cf9be24f39 Mon Sep 17 00:00:00 2001 From: Richard Michael Date: Wed, 4 Feb 2026 14:40:09 -0800 Subject: [PATCH] Add server version to banner (#3076) --- src/fastmcp/utilities/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fastmcp/utilities/cli.py b/src/fastmcp/utilities/cli.py index 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 column info_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