X-ray and optical observations of MCG-6-30-15