Skip to content

cli: replace which shell-out with cross-platform lookup #3

@MasonStation

Description

@MasonStation

phantom setup calls Command::new("which") to locate phantom-mcp in PATH. which does not exist on Windows.

Location

  • phantom-cli/src/commands/setup.rs:166

Fix

Use the which crate, which handles PATH resolution cross-platform and respects Windows's ; separator and PATHEXT.

let mcp_path = which::which("phantom-mcp").ok();

Severity

Blockerphantom setup fails on Windows.

Tracker: #1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindowsWindows platform support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions