def METHOD_NAME(args: Namespace, env: _Environ) -> str:
    """
    Resolve the LMCP directory.
    Find the LMCP directory in the following order:
      1. Using `resolve_lmcp_devel_dir`, if the development directory exists,
         use that.
      2. Use the default LMCP_DIR.
    """
    lmcp_devel_dir = resolve_lmcp_devel_dir(args)
    if os.path.exists(lmcp_devel_dir):
        logging.info("Using LmcpGen development directory: %s", lmcp_devel_dir)
        if not check_lmcp_jar(lmcp_devel_dir):
            build_lmcpgen(lmcp_devel_dir, env)
        return lmcp_devel_dir
    if check_lmcp_jar(LMCP_DIR):
        return LMCP_DIR
    logging.critical(MISSING_LMCPGEN, ANOD_BIN)
    sys.exit(1)