langflow-ai/langflow · error · ValueError

Windows C: drive not mounted at /mnt/c in WSL

Error message

Windows C: drive not mounted at /mnt/c in WSL

What it means

Error "Windows C: drive not mounted at /mnt/c in WSL" thrown in langflow-ai/langflow.

Source

Thrown at src/backend/base/langflow/api/v1/mcp_projects.py:1276

                        return Path(
                            f"/mnt/c/Users/{windows_username}/AppData/Roaming/Claude/claude_desktop_config.json"
                        )

                    # Fallback: try to find the Windows user directory
                    users_dir = Path("/mnt/c/Users")
                    if users_dir.exists():
                        # Get the first non-system user directory
                        user_dirs = [
                            d
                            for d in users_dir.iterdir()
                            if d.is_dir() and not d.name.startswith(("Default", "Public", "All Users"))
                        ]
                        if user_dirs:
                            return user_dirs[0] / "AppData" / "Roaming" / "Claude" / "claude_desktop_config.json"

                    if not Path("/mnt/c").exists():
                        msg = "Windows C: drive not mounted at /mnt/c in WSL"
                        raise ValueError(msg)

                    msg = "Could not find valid Windows user directory in WSL"
                    raise ValueError(msg)
                except (OSError, CalledProcessError) as e:
                    await logger.awarning("Failed to determine Windows user path in WSL: %s", str(e))
                    msg = f"Could not determine Windows Claude config path in WSL: {e!s}"
                    raise ValueError(msg) from e
            # Regular Windows
            return Path(os.environ["APPDATA"]) / "Claude" / "claude_desktop_config.json"

        msg = "Unsupported operating system for Claude configuration"
        raise ValueError(msg)

    msg = "Unsupported client"
    raise ValueError(msg)


def remove_server_by_urls(config_data: dict, urls: Sequence[str] | str) -> tuple[dict, list[str]]:

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Mount the Windows C: drive at /mnt/c in WSL, or run on a supported platform.

When it happens

Trigger: Occurs on WSL when the Windows C: drive is not mounted at /mnt/c while locating the Claude config path.

Common situations: See trigger scenarios.


AI-assisted analysis of langflow-ai/langflow@976ec789d2 (2026-08-14). Data as JSON: /api/errors/0a3fa2e80ac4c208. Report an issue: GitHub.