Skip to content

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

print exception

Jeremiah Lowin7a2dfffd18a7
diff --git a/src/fastmcp/cli/cli.py b/src/fastmcp/cli/cli.py
index cab03aab1..8894db96d 100644
--- a/src/fastmcp/cli/cli.py
+++ b/src/fastmcp/cli/cli.py
@@ -263,7 +263,7 @@ def run(
except Exception as e:
logger.error(
- "Failed to run server",
+ f"Failed to run server: {e}",
extra={
"file": str(file),
"error": str(e),