// src/mcp/utils/sanitize-path.ts
import * as path from "path";
function sanitizePath(inputPath) {
  const resolved = path.resolve(inputPath);
  if (resolved === "/" || resolved === path.parse(resolved).root) {
    throw new Error("Invalid project path: cannot use filesystem root");
  }
  return resolved;
}

export {
  sanitizePath
};
