Skip to content

πŸš€ 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.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