The present invention relates to indole and azaindole compounds of formula (I), and pharmaceutically acceptable compositions thereof, useful as antagonists of P2X7 and for the treatment of P2X7 related disorders.本発明は、P2X7のアンタゴニストとして有用な及びP2X7関連障害の治療のための、式(I)のインドール及びアザインドール化合物,並びにその医薬的に許容し得る組成物に関する。