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:
parent
a593cdcae8
commit
12503a4453
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue