A large class of measure-conjugacy invariants for actions of countable groups are derived from spaces of microstates for the action. These include sofic entropy and new invariants referred to as sofic homology. As an application, an example is a provided of a free group action without the Weak Pinsker property.