Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
// Check current auth status
mcp__flow-nexus__auth_status({
detailed: true// Include detailed auth info
})
// Returns: { authenticated, user_id, tier, session_expires }// Initialize authentication mode
mcp__flow-nexus__auth_init({
mode: "user"// user or service
})
mcp__flow-nexus__user_upgrade({
user_id: "user_id",
tier: "pro"// pro or enterprise
})
// Returns: { new_tier, effective_date }
Usage Examples
Example 1: Complete Registration Flow
// Step 1: Register userconst registration = await mcp__flow-nexus__user_register({
email: "newuser@example.com",
password: "SecurePass123!",
full_name: "New User"
});
console.log("Registration successful. Check email for verification link.");
// Step 2: User clicks verification link (token from email)const verified = await mcp__flow-nexus__user_verify_email({
token: "verification_token_from_email"
});
if (verified.verified) {
console.log("Email verified! You can now login.");
}
// Step 3: Loginconst session = await mcp__flow-nexus__user_login({
email: "newuser@example.com",
password: "SecurePass123!"
});
console.log(`Welcome! Your tier: ${session.tier}`);
console.log(`Session expires: ${session.expires_at}`);
Example 2: Password Reset Flow
// User forgot passwordawait mcp__flow-nexus__user_reset_password({
email: "user@example.com"
});
console.log("Password reset email sent.");
// User receives email with reset token// User clicks link and provides new passwordawait mcp__flow-nexus__user_update_password({
token: "reset_token_from_email",
new_password: "NewSecurePass456!"
});
console.log("Password updated. Please login with new password.");
// Login with new passwordconst session = await mcp__flow-nexus__user_login({
email: "user@example.com",
password: "NewSecurePass456!"
});
Example 3: Profile Management
// Check current auth statusconst status = await mcp__flow-nexus__auth_status({
detailed: true
});
if (!status.authenticated) {
console.log("Please login first.");
return;
}
// Get current profileconst profile = await mcp__flow-nexus__user_profile({
user_id: status.user_id
});
console.log(`Current name: ${profile.full_name}`);
console.log(`Tier: ${profile.tier}`);
// Update profileawait mcp__flow-nexus__user_update_profile({
user_id: status.user_id,
updates: {
full_name: "Updated Name",
bio: "Full-stack developer specializing in AI",
github_username: "myusername",
website: "https://mywebsite.com"
}
});
// Get user statisticsconst stats = await mcp__flow-nexus__user_stats({
user_id: status.user_id
});
console.log(`
User Statistics:
- Apps Published: ${stats.apps_published}
- Credits Earned: ${stats.credits_earned}
- Challenges Completed: ${stats.challenges_completed}
`);
Example 4: Tier Upgrade
// Check current statusconst status = await mcp__flow-nexus__auth_status({ detailed: true });
console.log(`Current tier: ${status.tier}`);
if (status.tier === "free") {
// Upgrade to Proconst upgrade = await mcp__flow-nexus__user_upgrade({
user_id: status.user_id,
tier: "pro"
});
console.log(`Upgraded to: ${upgrade.new_tier}`);
console.log(`Effective: ${upgrade.effective_date}`);
console.log("You now have access to 1000 credits/month and priority features!");
}
Execution Checklist
For Registration
Provide valid email address
Create secure password (8+ characters)
Complete registration
Check email for verification
Click verification link
Login with credentials
For Password Reset
Request password reset
Check email for reset link
Click reset link
Enter new secure password
Login with new password
Best Practices
Strong Passwords: Use 8+ characters with mix of letters, numbers, symbols
Email Verification: Always verify email before accessing features
Session Security: Logout when done, especially on shared devices
Profile Completeness: Fill out profile for better experience