Set FastMCP server to listen on all interfaces with a config.

Updated the FastMCP initialization to explicitly bind to 0.0.0.0, set the port to 8000, and specify a keep-alive timeout of 720 seconds. This ensures the server is properly configured for broader accessibility and stability.
This commit is contained in:
ThomasTaroni 2025-05-31 23:59:42 +02:00
parent b1ad64cd75
commit 11bfff7ff7

View file

@ -36,7 +36,7 @@ logging.basicConfig(
logger = logging.getLogger(__name__)
# Initialize FastMCP server
mcp = FastMCP("GPT Researcher")
mcp = FastMCP("GPT Researcher", host="0.0.0.0", port=8000, timeout_keep_alive=720)
# Initialize researchers dictionary
if not hasattr(mcp, "researchers"):