Skip to content

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

Clean up cli imports

Jeremiah Lowinec1356c51777
diff --git a/src/fastmcp/app.py b/src/fastmcp/app.py
deleted file mode 100644
index f721416df..000000000
--- a/src/fastmcp/app.py
+++ /dev/null
@@ -1,6 +0,0 @@
-"""FastMCP CLI tools."""
-
-from .cli.cli import app
-
-if __name__ == "__main__":
- app()
diff --git a/src/fastmcp/cli/__init__.py b/src/fastmcp/cli/__init__.py
index ea6f6f338..4de805855 100644
--- a/src/fastmcp/cli/__init__.py
+++ b/src/fastmcp/cli/__init__.py
@@ -2,4 +2,6 @@
from .cli import app
-__all__ = ["app"]
+
+if __name__ == "__main__":
+ app()