From 11bfff7ff7bcaeee05e891a46952bb9f2cae9b2b Mon Sep 17 00:00:00 2001 From: ThomasTaroni Date: Sat, 31 May 2025 23:59:42 +0200 Subject: [PATCH] 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. --- src/phoenix_technologies/gpt_researcher/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phoenix_technologies/gpt_researcher/server.py b/src/phoenix_technologies/gpt_researcher/server.py index 2fdcd25..0627c87 100644 --- a/src/phoenix_technologies/gpt_researcher/server.py +++ b/src/phoenix_technologies/gpt_researcher/server.py @@ -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"):