Skip to content

Commit e1e0553

Browse files
paulo-racajlowin
andauthored
Make fastapi.cli a runnable module (#2532)
Co-authored-by: Jeremiah Lowin <[email protected]>
1 parent 9cade6c commit e1e0553

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/fastmcp/cli/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
"""FastMCP CLI package."""
22

33
from .cli import app
4-
5-
if __name__ == "__main__":
6-
app()

src/fastmcp/cli/__main__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""FastMCP CLI as a runnable package"""
2+
3+
from .cli import app
4+
5+
app()

0 commit comments

Comments
 (0)