fix oauth session

This commit is contained in:
saidsurucu
2025-07-02 02:03:28 +03:00
parent 9880316fd2
commit 7e6819affa
10 changed files with 1214 additions and 8 deletions
+6 -1
View File
@@ -31,7 +31,7 @@ root_logger.addHandler(console_handler)
logger = logging.getLogger(__name__)
# --- Logging Configuration End ---
from mcp_factory import create_app
from mcp_auth_factory import create_app
# --- Module Imports ---
from yargitay_mcp_module.client import YargitayOfficialApiClient
@@ -2710,6 +2710,11 @@ async def fetch(
raise
def main():
from mcp_auth_factory import enable_tool_authentication
# Enable authentication on all tools now that they're defined
enable_tool_authentication(app)
logger.info(f"Starting {app.name} server via main() function...")
logger.info(f"Logs will be written to: {LOG_FILE_PATH}")
try: