{"record":{"id":"550e4a1886abeb18","repo":"langflow-ai/langflow","slug":"oauth-host-and-port-are-required-to-get-the-sse-ur","errorCode":null,"errorMessage":"OAuth host and port are required to get the SSE URL for MCP Composer","messagePattern":"OAuth host and port are required to get the SSE URL for MCP Composer","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"src/backend/base/langflow/api/v1/mcp_projects.py","lineNumber":1224,"sourceCode":"    if not normalized_urls:\n        return False\n\n    mcp_servers = config_data.get(\"mcpServers\", {})\n    for server_name, server_config in mcp_servers.items():\n        if _args_reference_urls(server_config.get(\"args\", []), normalized_urls):\n            logger.debug(\"Found matching server URL in server: %s\", server_name)\n            return True\n    return False\n\n\nasync def get_composer_sse_url(project: Folder) -> str:\n    \"\"\"Get the SSE URL for a project using MCP Composer.\"\"\"\n    auth_config = await _get_mcp_composer_auth_config(project)\n    composer_host = auth_config.get(\"oauth_host\")\n    composer_port = auth_config.get(\"oauth_port\")\n    if not composer_host or not composer_port:\n        error_msg = \"OAuth host and port are required to get the SSE URL for MCP Composer\"\n        raise ValueError(error_msg)\n\n    composer_sse_url = f\"http://{composer_host}:{composer_port}/sse\"\n    return await get_url_by_os(composer_host, composer_port, composer_sse_url)\n\n\nasync def get_config_path(client: str) -> Path:\n    \"\"\"Get the configuration file path for a given client and operating system.\"\"\"\n    os_type = platform.system()\n    is_wsl = os_type == \"Linux\" and \"microsoft\" in platform.uname().release.lower()\n\n    if client.lower() == \"cursor\":\n        return Path.home() / \".cursor\" / \"mcp.json\"\n    if client.lower() == \"windsurf\":\n        return Path.home() / \".codeium\" / \"windsurf\" / \"mcp_config.json\"\n    if client.lower() == \"claude\":\n        if os_type == \"Darwin\":  # macOS\n            return Path.home() / \"Library\" / \"Application Support\" / \"Claude\" / \"claude_desktop_config.json\"\n        if os_type == \"Windows\" or is_wsl:  # Windows or WSL (Claude runs on Windows host)","sourceCodeStart":1206,"sourceCodeEnd":1242,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/mcp_projects.py#L1206-L1242","documentation":"Error \"OAuth host and port are required to get the SSE URL for MCP Composer\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when OAuth host and port settings are missing while computing the SSE URL for MCP Composer.","commonSituations":"See trigger scenarios.","solutions":["Set the OAuth host and port in settings before requesting the SSE URL."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"976ec789d2886a86de109c044d089d68e96c9a35","analyzedAt":"2026-08-14T18:23:12.227Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}