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:
parent
b1ad64cd75
commit
11bfff7ff7
1 changed files with 1 additions and 1 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue