mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 05:24:18 +02:00
Add server version to banner (#3076)
This commit is contained in:
parent
422384e576
commit
d5f5300e63
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue