{"record":{"id":"23c24ff2b1cb1492","repo":"langflow-ai/langflow","slug":"body-client-capitalize-is-not-installed-on-thi","errorCode":null,"errorMessage":"{body.client.capitalize()} is not installed on this system. Please install {body.client.capitalize()} first.","messagePattern":"(.+?) is not installed on this system\\. Please install (.+?) first\\.","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"src/backend/base/langflow/api/v1/mcp_projects.py","lineNumber":965,"sourceCode":"        # Create the MCP configuration\n        server_config: dict[str, Any] = {\n            \"command\": command,\n            \"args\": args,\n        }\n\n        mcp_config = {\"mcpServers\": {server_name: server_config}}\n\n        await logger.adebug(\"Installing MCP config for project: %s (server name: %s)\", project.name, server_name)\n\n        # Get the config file path and check if client is available\n        try:\n            config_path = await get_config_path(body.client.lower())\n        except ValueError as e:\n            raise HTTPException(status_code=400, detail=str(e)) from e\n\n        # Check if the client application is available (config directory exists)\n        if not config_path.parent.exists():\n            raise HTTPException(\n                status_code=400,\n                detail=f\"{body.client.capitalize()} is not installed on this system. \"\n                f\"Please install {body.client.capitalize()} first.\",\n            )\n\n        # Create parent directories if they don't exist\n        config_path.parent.mkdir(parents=True, exist_ok=True)\n\n        # Read existing config if it exists\n        existing_config = {}\n        if config_path.exists():\n            try:\n                with config_path.open(\"r\") as f:\n                    existing_config = json.load(f)\n            except json.JSONDecodeError:\n                # If file exists but is invalid JSON, start fresh\n                existing_config = {\"mcpServers\": {}}\n","sourceCodeStart":947,"sourceCodeEnd":983,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/mcp_projects.py#L947-L983","documentation":"Error \"{body.client.capitalize()} is not installed on this system. Please install {body.client.capitalize()} first.\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when the requested MCP client application (e.g. Cursor, Claude) is not installed on the local system.","commonSituations":"See trigger scenarios.","solutions":["Install the requested client application on the system, then retry."],"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-15T22:17:37.221Z"}