As previously stated, it's in the execution and writing that help steer clear of a Mary Sue.
You could leave her as is, but the writing involving her and her abilities/ideals must justify them as useful but not overwhelming nor Mary-Sue-ish.