Hi,
Thanks for sharing the documentation.
Following that, the code would be
function add_mbview_script() {
global $post;
if ( is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, 'mbv') ) {
wp_enqueue_script( 'my-script');
}
}
add_action( 'wp_enqueue_scripts', 'add_mbview_script');