We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bd8c89 commit b0ca9a4Copy full SHA for b0ca9a4
1 file changed
singlestoredb/apps/_cloud_functions.py
@@ -31,8 +31,8 @@ async def run_function_app(
31
except ImportError:
32
raise ImportError('package fastapi is required to run cloud functions')
33
34
- if not isinstance(app, fastapi.FastAPI):
35
- raise TypeError('app is not an instance of FastAPI')
+ if not isinstance(app, fastapi.FastAPI) and not isinstance(app, fastapi.FastMCP):
+ raise TypeError('app is not an instance of FastAPI or FastMCP')
36
37
app_config = AppConfig.from_env()
38
0 commit comments