Set FastMCP server to listen on all interfaces with port 8000

The `host` and `port` parameters were added to FastMCP initialization for both GPT Researcher and SMD servers. This ensures the servers are accessible on all network interfaces at port 8000.
This commit is contained in:
ThomasTaroni 2025-05-31 21:16:40 +02:00
parent a593cdcae8
commit 12503a4453
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,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)
research_type = os.getenv("RESEARCH_TYPE", "deep")
# Initialize researchers dictionary

View file

@ -26,7 +26,7 @@ logging.basicConfig(
logger = logging.getLogger(__name__)
# Initialize FastMCP server
mcp = FastMCP("SMD Researcher")
mcp = FastMCP("SMD Researcher", host="0.0.0.0", port=8000)
@mcp.tool()
async def smd_detail_article(article_id: str) -> dict: