Skip to content

[Bug] Installed ctx successfully, but when running ctx mcp:config, the tool detects my OS as "WSL (Unknown)". #330

@futuremotiondev

Description

@futuremotiondev

Description

I installed the ctx binary on Windows successfully. But when I run ctx mcp:config, it spits out the following:

Environment
-----------

------------------ ---------------
 Operating System   WSL (Unknown)
 Architecture       AMD64
------------------ ---------------

I am running Windows 11, and I want to set up context-hub without using bash, I.E. Windows Native.

How To Reproduce

  1. Run powershell -c "& ([ScriptBlock]::Create((irm 'https://raw.githubusercontent.com/context-hub/generator/main/download-latest.ps1'))) -AddToPath" from the README.

  2. Open a new terminal window and run ctx mcp:config.

  3. Type in "claude" in response to the "Which MCP client are you configuring?" prompt.

  4. View the detected environment says "WSL (Unknown)".

  5. In reply to the next "How do you want to configure project access?" question, type global.

  6. In reply to the next "Enable SSE (Server-Sent Events) transport mode for remote access? (yes/no)", type "no" or just press enter.

  7. See below output that's generated:

Generated Configuration
-----------------------

 Configuration type: claude
 Operating system: WSL (Unknown)
 Project mode: Global project registry
 Transport mode: STDIO

 Add this to your Claude Desktop configuration file:

{
    "mcpServers": {
        "ctx": {
            "command": "bash.exe",
            "args": [
                "-c",
                "ctx server"
            ]
        }
    }
}

 Configuration file location:
   • %APPDATA%\Claude\claude_desktop_config.json
   • C:\Users<username>\AppData\Roaming\Claude\claude_desktop_config.json

Setup Instructions
------------------

1. Open Claude Desktop settings: Click your name/initials → Settings → Developer
2. Click "Edit Config" to open claude_desktop_config.json
3. Add the configuration shown above to the file
4. Save the file and completely restart Claude Desktop
5. Look for the MCP tools indicator (hammer icon) in the chat input area

! [NOTE] Global registry mode: Use "ctx project:add" to register projects.
!        Switch projects dynamically without editing configuration.
!        Docs: https://docs.ctx.github.io/mcp/projects

[WARNING] WSL detected: Ensure ctx is installed in your WSL environment.
Use WSL paths (e.g., /home/user/project), not Windows paths.
Environment variables are embedded in the bash command.

Screenshot

Image

Additional Info

Q A
Library Version Latest
PHP Version N/A
Operating System Windows 11 x64 Pro

Is there any way to use this tool without using bash in the MCP server setup/definition? Why is it detecting my operating system as WSL instead of Win11?

Thanks for any clarification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions