Skip to content
Merged
Changes from all 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
11 changes: 6 additions & 5 deletions docker/mcp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,17 @@ async def search_tool() -> dict:
from dotenv import load_dotenv
from fastmcp import FastMCP

from tools.health_check_tool import health_check_tool
from tools.search_tool import search_tool
from utils.logging_config import setup_logging

# Load environment variables FIRST before importing tools
load_dotenv()

# Set up logging
logger = setup_logging("webcat.log")

# Load environment variables
load_dotenv()

# Import tools AFTER loading .env so they can access environment variables
from tools.health_check_tool import health_check_tool # noqa: E402
from tools.search_tool import search_tool # noqa: E402

# Log configuration status
SERPER_API_KEY = os.environ.get("SERPER_API_KEY", "")
Expand Down
Loading