import{readFileSync as g}from"node:fs";import{tmpdir as j}from"node:os";import{resolve as k}from"node:path";function q(){return k(j(),`context-mode-mcp-ready-${process.ppid}`)}function B(){try{let b=parseInt(g(q(),"utf8"),10);return process.kill(b,0),!0}catch{return!1}}export{q as sentinelPath,B as isMCPReady};
