From 69b273ee8e4f066629cb2c38ed8bda4a6f708408 Mon Sep 17 00:00:00 2001 From: Adam Azzam <33043305+aaazzam@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:20:45 -0400 Subject: [PATCH] Add exc_info=True to inspect command error logging (#2232) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #2231 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude --- src/fastmcp/cli/cli.py | 1 + 1 file changed, 1 insertion(+) 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)