[BUG, WINDOWS] mcp daemon is not stopped on qmd mcp stop
Author: rapus95Created Aug 18, 2026Updated Sep 14, 2026
PS D:\Assistant\projects\history\canary> qmd mcp --http --daemon --index history-canary-default
Started on http://localhost:8181/mcp (PID 58028)
Logs: C:/Users/Aaron/.cache/qmd/mcp-history-canary-default.log
PS D:\Assistant\projects\history\canary> qmd mcp stop --index history-canary-default
Cleaned up stale PID file (server was not running).so the pid file is deleted while the process keeps running. Which is BAD.
Probable reason
In https://github.com/tobi/qmd/blob/dbfd0b4736aeaf761d1a16ca8e424f071df8feb9/src/cli/mcp-pid.ts#L34-L68 there is no proper PID check for Windows. proc/PS doesn't work on windows. (in interactive powershell PS is mapped to a windows command, and if ps resolves in cmd, it most probably links to cygwin ps which neither resolves windows PIDs)
Edit: vv subscribing a mail bouncer is wild! xD vv
Source: tobi/qmd