// Bypass server auth for MCP routes add_filter('rest_authentication_errors', function($result) { return null; }, 100); remove_filter('rest_authentication_errors', 'rest_cookie_check_errors', 100);