π The fast, Pythonic way to build MCP servers and clients.
add exc_info to fastmcp run
[email protected]a2f710fa9dcf
diff --git a/src/fastmcp/cli/cli.py b/src/fastmcp/cli/cli.pyindex 3acd877e1..3b128ed60 100644--- a/src/fastmcp/cli/cli.py+++ b/src/fastmcp/cli/cli.py@@ -504,6 +504,7 @@ async def run(except subprocess.CalledProcessError as e:logger.error(f"Failed to run: {e}",+ exc_info=True,extra={"server_spec": server_spec,"error": str(e),@@ -528,6 +529,7 @@ async def run(except Exception as e:logger.error(f"Failed to run: {e}",+ exc_info=True,extra={"server_spec": server_spec,"error": str(e),