Hi Natasha,
There is no direct estimate of "psi" and "p" at the community level, it is the coefficients (the "beta.comm.samples" and the "alpha.comm.samples") that are community-level parameters. If you want to get a value of average occupancy probability across all species in the community (so an average psi across all species), you could the following, assuming that your saved model output from stMsPGOcc is called "out"
psi.avg.samples <- apply(out$psi.samples, c(1, 3, 4)
That gives you the average occupancy probability across all species at each site in each season (for each MCMC sample).
For detection, there is one more step as you would need to use the fitted() function to get the species specific detection probability values at each site/season/replicate:
fitted.out <- fitted(out)
# Average detection probability for each MCMC sample, site, season, and replicate
p.avg.samples <- apply(fitted.out$p.samples, c(1, 3, 4, 5))
Alternatively, if you just want a single overall value of average occupancy or detection at the community level, you can back-transform the community-level intercept that shows in the summary output. So, if your community-level occupancy intercept was 0, the value plogis(0) would be the average occupancy probability across all sites and seasons (when all covariates in your model are 0, which if you standardized them is the mean).
Hope that helps,
Jeff