Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/fastmcp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

if TYPE_CHECKING:
from fastmcp.client import Client as Client
from fastmcp.server.app import FastMCPApp as FastMCPApp

settings = Settings()
if settings.log_enabled:
Expand Down Expand Up @@ -40,6 +41,10 @@ def __getattr__(name: str) -> object:
from fastmcp.client import Client

return Client
if name == "FastMCPApp":
from fastmcp.server.app import FastMCPApp

return FastMCPApp
if name == "client":
return importlib.import_module("fastmcp.client")
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
Expand All @@ -49,5 +54,6 @@ def __getattr__(name: str) -> object:
"Client",
"Context",
"FastMCP",
"FastMCPApp",
"settings",
]
Loading
Loading