mcp bug fix

codex/dev
mula.liu 2026-04-14 13:19:21 +08:00
parent f44453d93e
commit f2c96f335f
1 changed files with 2 additions and 3 deletions

View File

@ -190,13 +190,12 @@ _mcp_http_app = None
if FastMCP is not None: if FastMCP is not None:
mcp_server = FastMCP( mcp_server = FastMCP(
"iMeeting MCP", "iMeeting MCP",
host=API_CONFIG["host"],
port=API_CONFIG["port"],
json_response=True, json_response=True,
stateless_http=True, stateless_http=True,
streamable_http_path="/", streamable_http_path="/",
) )
# Keep FastMCP's server settings aligned with the outer Uvicorn process.
mcp_server.settings.host = API_CONFIG["host"]
mcp_server.settings.port = API_CONFIG["port"]
@mcp_server.tool() @mcp_server.tool()
def get_my_meetings() -> Dict[str, Any]: def get_my_meetings() -> Dict[str, Any]: