Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Add exc_info=True to inspect command error logging (#2232)

Adam Azzam69b273ee8e4f
diff --git a/src/fastmcp/cli/cli.py b/src/fastmcp/cli/cli.py
index 1cd159680..71eecd44e 100644
--- a/src/fastmcp/cli/cli.py
+++ b/src/fastmcp/cli/cli.py
@@ -772,6 +772,7 @@ async def inspect(
"server_spec": server_spec,
"error": str(e),
},
+ exc_info=True,
)
console.print(f"[bold red]βœ—[/bold red] Failed to inspect server: {e}")
sys.exit(1)