2025-07-14 18:36:27 +08:00
|
|
|
from utils.logger import logger
|
|
|
|
from services.supabase import DBConnection
|
|
|
|
|
2025-07-30 20:27:26 +08:00
|
|
|
from .profile_service import ProfileService, Profile
|
|
|
|
from .connection_service import ConnectionService, Connection, AuthType
|
|
|
|
from .app_service import AppService, App
|
|
|
|
from .mcp_service import MCPService, MCPServer, MCPTool, ConnectionStatus
|
|
|
|
from .connection_token_service import ConnectionTokenService
|
2025-07-08 17:10:15 +08:00
|
|
|
|
2025-07-14 18:36:27 +08:00
|
|
|
db = DBConnection()
|
|
|
|
|
2025-07-30 20:27:26 +08:00
|
|
|
profile_service = ProfileService(db=db, logger=logger)
|
|
|
|
connection_service = ConnectionService(logger=logger)
|
|
|
|
app_service = AppService(logger=logger)
|
|
|
|
mcp_service = MCPService(logger=logger)
|
|
|
|
connection_token_service = ConnectionTokenService(logger=logger)
|
2025-07-09 02:40:58 +08:00
|
|
|
|
2025-07-08 17:10:15 +08:00
|
|
|
from . import api
|
2025-07-30 20:27:26 +08:00
|
|
|
api.profile_service = profile_service
|
|
|
|
api.connection_service = connection_service
|
|
|
|
api.app_service = app_service
|
|
|
|
api.mcp_service = mcp_service
|
|
|
|
api.connection_token_service = connection_token_service
|
2025-07-08 17:10:15 +08:00
|
|
|
|
|
|
|
__all__ = [
|
2025-07-14 18:36:27 +08:00
|
|
|
'Profile',
|
|
|
|
'Connection',
|
|
|
|
'App',
|
|
|
|
'MCPServer',
|
|
|
|
'MCPTool',
|
|
|
|
'ConnectionStatus',
|
|
|
|
'AuthType',
|
2025-07-30 20:27:26 +08:00
|
|
|
'profile_service',
|
|
|
|
'connection_service',
|
|
|
|
'app_service',
|
|
|
|
'mcp_service',
|
|
|
|
'connection_token_service',
|
2025-07-14 18:36:27 +08:00
|
|
|
'api'
|
2025-07-08 17:10:15 +08:00
|
|
|
]
|