8000 exec_cli runs cmd.exe on Windows despite PowerShell-first design · Issue #7 · Mnehmos/mnehmos.ooda.mcp · GitHub
[go: up one dir, main page]

Skip to content

exec_cli runs cmd.exe on Windows despite PowerShell-first design #7

Open

Description

@Mnehmos

The server ships src/utils/powerShellSession.ts and every other Windows codepath is PowerShell, but exec_cli shells out through cmd.exe.

Repro

exec_cli("node -v; git rev-parse HEAD")  -> "node: bad option: -v;"
exec_cli("echo %COMSPEC%")               -> C:\WINDOWS\system32\cmd.exe
exec_cli("echo shell=$env:ComSpec")      -> literal, unexpanded

Impact

; chaining, $env:, object pipelines, and every PowerShell idiom fail. Agents reasonably assume PowerShell given the rest of the server, and the tool description says nothing about cmd.

Fix

Route Windows exec_cli through PowerShell by default, with an explicit opt-out (shell: "cmd" | "powershell") for callers that need cmd semantics. Document the default in the tool description.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0