From aa0fbb93c0402518b6f7befc1a48350180f2d8db Mon Sep 17 00:00:00 2001 From: Richard Michael Date: Wed, 4 Feb 2026 12:06:14 -0800 Subject: [PATCH] Add server version to banner --- 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 51b6007a61..070931fa60 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