flow-nexus-platform
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFlow Nexus Platform Management
Flow Nexus平台管理
Comprehensive platform management for Flow Nexus - covering authentication, sandbox execution, app deployment, credit management, and coding challenges.
Flow Nexus平台综合管理 - 涵盖身份验证、沙箱执行、应用部署、信用管理及编码挑战。
Table of Contents
目录
Authentication & User Management
身份验证与用户管理
Registration & Login
注册与登录
Register New Account
javascript
mcp__flow-nexus__user_register({
email: "user@example.com",
password: "secure_password",
full_name: "Your Name",
username: "unique_username" // optional
})Login
javascript
mcp__flow-nexus__user_login({
email: "user@example.com",
password: "your_password"
})Check Authentication Status
javascript
mcp__flow-nexus__auth_status({ detailed: true })Logout
javascript
mcp__flow-nexus__user_logout()注册新账户
javascript
mcp__flow-nexus__user_register({
email: "user@example.com",
password: "secure_password",
full_name: "Your Name",
username: "unique_username" // 可选
})登录
javascript
mcp__flow-nexus__user_login({
email: "user@example.com",
password: "your_password"
})检查身份验证状态
javascript
mcp__flow-nexus__auth_status({ detailed: true })登出
javascript
mcp__flow-nexus__user_logout()Password Management
密码管理
Request Password Reset
javascript
mcp__flow-nexus__user_reset_password({
email: "user@example.com"
})Update Password with Token
javascript
mcp__flow-nexus__user_update_password({
token: "reset_token_from_email",
new_password: "new_secure_password"
})Verify Email
javascript
mcp__flow-nexus__user_verify_email({
token: "verification_token_from_email"
})请求重置密码
javascript
mcp__flow-nexus__user_reset_password({
email: "user@example.com"
})使用令牌更新密码
javascript
mcp__flow-nexus__user_update_password({
token: "reset_token_from_email",
new_password: "new_secure_password"
})验证邮箱
javascript
mcp__flow-nexus__user_verify_email({
token: "verification_token_from_email"
})Profile Management
个人资料管理
Get User Profile
javascript
mcp__flow-nexus__user_profile({
user_id: "your_user_id"
})Update Profile
javascript
mcp__flow-nexus__user_update_profile({
user_id: "your_user_id",
updates: {
full_name: "Updated Name",
bio: "AI Developer and researcher",
github_username: "yourusername",
twitter_handle: "@yourhandle"
}
})Get User Statistics
javascript
mcp__flow-nexus__user_stats({
user_id: "your_user_id"
})Upgrade User Tier
javascript
mcp__flow-nexus__user_upgrade({
user_id: "your_user_id",
tier: "pro" // pro, enterprise
})获取用户资料
javascript
mcp__flow-nexus__user_profile({
user_id: "your_user_id"
})更新个人资料
javascript
mcp__flow-nexus__user_update_profile({
user_id: "your_user_id",
updates: {
full_name: "Updated Name",
bio: "AI Developer and researcher",
github_username: "yourusername",
twitter_handle: "@yourhandle"
}
})获取用户统计数据
javascript
mcp__flow-nexus__user_stats({
user_id: "your_user_id"
})升级用户套餐
javascript
mcp__flow-nexus__user_upgrade({
user_id: "your_user_id",
tier: "pro" // pro, enterprise
})Sandbox Management
沙箱管理
Create & Configure Sandboxes
创建与配置沙箱
Create Sandbox
javascript
mcp__flow-nexus__sandbox_create({
template: "node", // node, python, react, nextjs, vanilla, base, claude-code
name: "my-sandbox",
env_vars: {
API_KEY: "your_api_key",
NODE_ENV: "development",
DATABASE_URL: "postgres://..."
},
install_packages: ["express", "cors", "dotenv"],
startup_script: "npm run dev",
timeout: 3600, // seconds
metadata: {
project: "my-project",
environment: "staging"
}
})Configure Existing Sandbox
javascript
mcp__flow-nexus__sandbox_configure({
sandbox_id: "sandbox_id",
env_vars: {
NEW_VAR: "value"
},
install_packages: ["axios", "lodash"],
run_commands: ["npm run migrate", "npm run seed"],
anthropic_key: "sk-ant-..." // For Claude Code integration
})创建沙箱
javascript
mcp__flow-nexus__sandbox_create({
template: "node", // node, python, react, nextjs, vanilla, base, claude-code
name: "my-sandbox",
env_vars: {
API_KEY: "your_api_key",
NODE_ENV: "development",
DATABASE_URL: "postgres://..."
},
install_packages: ["express", "cors", "dotenv"],
startup_script: "npm run dev",
timeout: 3600, // 秒
metadata: {
project: "my-project",
environment: "staging"
}
})配置现有沙箱
javascript
mcp__flow-nexus__sandbox_configure({
sandbox_id: "sandbox_id",
env_vars: {
NEW_VAR: "value"
},
install_packages: ["axios", "lodash"],
run_commands: ["npm run migrate", "npm run seed"],
anthropic_key: "sk-ant-..." // 用于集成Claude Code
})Execute Code
执行代码
Run Code in Sandbox
javascript
mcp__flow-nexus__sandbox_execute({
sandbox_id: "sandbox_id",
code: `
console.log('Hello from sandbox!');
const result = await fetch('https:/$api.example.com$data');
const data = await result.json();
return data;
`,
language: "javascript",
capture_output: true,
timeout: 60, // seconds
working_dir: "$app",
env_vars: {
TEMP_VAR: "override"
}
})在沙箱中运行代码
javascript
mcp__flow-nexus__sandbox_execute({
sandbox_id: "sandbox_id",
code: `
console.log('Hello from sandbox!');
const result = await fetch('https://api.example.com/data');
const data = await result.json();
return data;
`,
language: "javascript",
capture_output: true,
timeout: 60, // 秒
working_dir: "$app",
env_vars: {
TEMP_VAR: "override"
}
})Manage Sandboxes
管理沙箱
List Sandboxes
javascript
mcp__flow-nexus__sandbox_list({
status: "running" // running, stopped, all
})Get Sandbox Status
javascript
mcp__flow-nexus__sandbox_status({
sandbox_id: "sandbox_id"
})Upload File to Sandbox
javascript
mcp__flow-nexus__sandbox_upload({
sandbox_id: "sandbox_id",
file_path: "$app$config$database.json",
content: JSON.stringify(databaseConfig, null, 2)
})Get Sandbox Logs
javascript
mcp__flow-nexus__sandbox_logs({
sandbox_id: "sandbox_id",
lines: 100 // max 1000
})Stop Sandbox
javascript
mcp__flow-nexus__sandbox_stop({
sandbox_id: "sandbox_id"
})Delete Sandbox
javascript
mcp__flow-nexus__sandbox_delete({
sandbox_id: "sandbox_id"
})列出沙箱
javascript
mcp__flow-nexus__sandbox_list({
status: "running" // running, stopped, all
})获取沙箱状态
javascript
mcp__flow-nexus__sandbox_status({
sandbox_id: "sandbox_id"
})上传文件到沙箱
javascript
mcp__flow-nexus__sandbox_upload({
sandbox_id: "sandbox_id",
file_path: "$app/config/database.json",
content: JSON.stringify(databaseConfig, null, 2)
})获取沙箱日志
javascript
mcp__flow-nexus__sandbox_logs({
sandbox_id: "sandbox_id",
lines: 100 // 最多1000行
})停止沙箱
javascript
mcp__flow-nexus__sandbox_stop({
sandbox_id: "sandbox_id"
})删除沙箱
javascript
mcp__flow-nexus__sandbox_delete({
sandbox_id: "sandbox_id"
})Sandbox Templates
沙箱模板
- node: Node.js environment with npm
- python: Python 3.x with pip
- react: React development setup
- nextjs: Next.js full-stack framework
- vanilla: Basic HTML/CSS/JS
- base: Minimal Linux environment
- claude-code: Claude Code integrated environment
- node: 带有npm的Node.js环境
- python: 带有pip的Python 3.x环境
- react: React开发环境
- nextjs: Next.js全栈框架
- vanilla: 基础HTML/CSS/JS环境
- base: 最小化Linux环境
- claude-code: 集成Claude Code的环境
Common Sandbox Patterns
常见沙箱使用模式
API Development Sandbox
javascript
mcp__flow-nexus__sandbox_create({
template: "node",
name: "api-development",
install_packages: [
"express",
"cors",
"helmet",
"dotenv",
"jsonwebtoken",
"bcrypt"
],
env_vars: {
PORT: "3000",
NODE_ENV: "development"
},
startup_script: "npm run dev"
})Machine Learning Sandbox
javascript
mcp__flow-nexus__sandbox_create({
template: "python",
name: "ml-training",
install_packages: [
"numpy",
"pandas",
"scikit-learn",
"matplotlib",
"tensorflow"
],
env_vars: {
CUDA_VISIBLE_DEVICES: "0"
}
})Full-Stack Development
javascript
mcp__flow-nexus__sandbox_create({
template: "nextjs",
name: "fullstack-app",
install_packages: [
"prisma",
"@prisma$client",
"next-auth",
"zod"
],
env_vars: {
DATABASE_URL: "postgresql://...",
NEXTAUTH_SECRET: "secret"
}
})API开发沙箱
javascript
mcp__flow-nexus__sandbox_create({
template: "node",
name: "api-development",
install_packages: [
"express",
"cors",
"helmet",
"dotenv",
"jsonwebtoken",
"bcrypt"
],
env_vars: {
PORT: "3000",
NODE_ENV: "development"
},
startup_script: "npm run dev"
})机器学习沙箱
javascript
mcp__flow-nexus__sandbox_create({
template: "python",
name: "ml-training",
install_packages: [
"numpy",
"pandas",
"scikit-learn",
"matplotlib",
"tensorflow"
],
env_vars: {
CUDA_VISIBLE_DEVICES: "0"
}
})全栈开发沙箱
javascript
mcp__flow-nexus__sandbox_create({
template: "nextjs",
name: "fullstack-app",
install_packages: [
"prisma",
"@prisma/client",
"next-auth",
"zod"
],
env_vars: {
DATABASE_URL: "postgresql://...",
NEXTAUTH_SECRET: "secret"
}
})App Store & Deployment
应用商店与部署
Browse & Search
浏览与搜索
Search Applications
javascript
mcp__flow-nexus__app_search({
search: "authentication api",
category: "backend",
featured: true,
limit: 20
})Get App Details
javascript
mcp__flow-nexus__app_get({
app_id: "app_id"
})List Templates
javascript
mcp__flow-nexus__app_store_list_templates({
category: "web-api",
tags: ["express", "jwt", "typescript"],
limit: 20
})Get Template Details
javascript
mcp__flow-nexus__template_get({
template_name: "express-api-starter",
template_id: "template_id" // alternative
})List All Available Templates
javascript
mcp__flow-nexus__template_list({
category: "backend",
template_type: "starter",
featured: true,
limit: 50
})搜索应用
javascript
mcp__flow-nexus__app_search({
search: "authentication api",
category: "backend",
featured: true,
limit: 20
})获取应用详情
javascript
mcp__flow-nexus__app_get({
app_id: "app_id"
})列出模板
javascript
mcp__flow-nexus__app_store_list_templates({
category: "web-api",
tags: ["express", "jwt", "typescript"],
limit: 20
})获取模板详情
javascript
mcp__flow-nexus__template_get({
template_name: "express-api-starter",
template_id: "template_id" // 可选参数
})列出所有可用模板
javascript
mcp__flow-nexus__template_list({
category: "backend",
template_type: "starter",
featured: true,
limit: 50
})Publish Applications
发布应用
Publish App to Store
javascript
mcp__flow-nexus__app_store_publish_app({
name: "JWT Authentication Service",
description: "Production-ready JWT authentication microservice with refresh tokens",
category: "backend",
version: "1.0.0",
source_code: sourceCodeString,
tags: ["auth", "jwt", "express", "typescript", "security"],
metadata: {
author: "Your Name",
license: "MIT",
repository: "github.com$username$repo",
homepage: "https:/$yourapp.com",
documentation: "https:/$docs.yourapp.com"
}
})Update Application
javascript
mcp__flow-nexus__app_update({
app_id: "app_id",
updates: {
version: "1.1.0",
description: "Added OAuth2 support",
tags: ["auth", "jwt", "oauth2", "express"],
source_code: updatedSourceCode
}
})将应用发布到商店
javascript
mcp__flow-nexus__app_store_publish_app({
name: "JWT Authentication Service",
description: "Production-ready JWT authentication microservice with refresh tokens",
category: "backend",
version: "1.0.0",
source_code: sourceCodeString,
tags: ["auth", "jwt", "express", "typescript", "security"],
metadata: {
author: "Your Name",
license: "MIT",
repository: "github.com/username/repo",
homepage: "https://yourapp.com",
documentation: "https://docs.yourapp.com"
}
})更新应用
javascript
mcp__flow-nexus__app_update({
app_id: "app_id",
updates: {
version: "1.1.0",
description: "Added OAuth2 support",
tags: ["auth", "jwt", "oauth2", "express"],
source_code: updatedSourceCode
}
})Deploy Templates
部署模板
Deploy Template
javascript
mcp__flow-nexus__template_deploy({
template_name: "express-api-starter",
deployment_name: "my-production-api",
variables: {
api_key: "your_api_key",
database_url: "postgres:/$user:pass@host:5432$db",
redis_url: "redis:/$localhost:6379"
},
env_vars: {
NODE_ENV: "production",
PORT: "8080",
LOG_LEVEL: "info"
}
})部署模板
javascript
mcp__flow-nexus__template_deploy({
template_name: "express-api-starter",
deployment_name: "my-production-api",
variables: {
api_key: "your_api_key",
database_url: "postgres://user:pass@host:5432/db",
redis_url: "redis://localhost:6379"
},
env_vars: {
NODE_ENV: "production",
PORT: "8080",
LOG_LEVEL: "info"
}
})Analytics & Management
分析与管理
Get App Analytics
javascript
mcp__flow-nexus__app_analytics({
app_id: "your_app_id",
timeframe: "30d" // 24h, 7d, 30d, 90d
})View Installed Apps
javascript
mcp__flow-nexus__app_installed({
user_id: "your_user_id"
})Get Market Statistics
javascript
mcp__flow-nexus__market_data()获取应用分析数据
javascript
mcp__flow-nexus__app_analytics({
app_id: "your_app_id",
timeframe: "30d" // 24h, 7d, 30d, 90d
})查看已安装应用
javascript
mcp__flow-nexus__app_installed({
user_id: "your_user_id"
})获取市场统计数据
javascript
mcp__flow-nexus__market_data()App Categories
应用分类
- web-api: RESTful APIs and microservices
- frontend: React, Vue, Angular applications
- full-stack: Complete end-to-end applications
- cli-tools: Command-line utilities
- data-processing: ETL pipelines and analytics
- ml-models: Pre-trained machine learning models
- blockchain: Web3 and blockchain applications
- mobile: React Native and mobile apps
- web-api: RESTful API与微服务
- frontend: React、Vue、Angular应用
- full-stack: 完整的端到端应用
- cli-tools: 命令行工具
- data-processing: ETL管道与分析工具
- ml-models: 预训练机器学习模型
- blockchain: Web3与区块链应用
- mobile: React Native与移动应用
Publishing Best Practices
发布最佳实践
- Documentation: Include comprehensive README with setup instructions
- Examples: Provide usage examples and sample configurations
- Testing: Include test suite and CI/CD configuration
- Versioning: Use semantic versioning (MAJOR.MINOR.PATCH)
- Licensing: Add clear license information (MIT, Apache, etc.)
- Deployment: Include Docker$docker-compose configurations
- Migrations: Provide upgrade guides for version updates
- Security: Document security considerations and best practices
- 文档: 包含全面的README及设置说明
- 示例: 提供使用示例与配置样本
- 测试: 包含测试套件与CI/CD配置
- 版本控制: 使用语义化版本(MAJOR.MINOR.PATCH)
- 许可证: 添加清晰的许可证信息(MIT、Apache等)
- 部署: 包含Docker与docker-compose配置
- 迁移: 提供版本更新的升级指南
- 安全: 记录安全注意事项与最佳实践
Revenue Sharing
收入分成
- Earn rUv credits when others deploy your templates
- Set pricing (0 for free, or credits for premium)
- Track usage and earnings via analytics
- Withdraw credits or use for Flow Nexus services
- 当他人部署你的模板时,赚取rUv信用点
- 可设置价格(免费或收费信用点)
- 通过分析数据跟踪使用情况与收益
- 可提取信用点或用于Flow Nexus服务
Payments & Credits
支付与信用点
Balance & Credits
余额与信用点
Check Credit Balance
javascript
mcp__flow-nexus__check_balance()Check rUv Balance
javascript
mcp__flow-nexus__ruv_balance({
user_id: "your_user_id"
})View Transaction History
javascript
mcp__flow-nexus__ruv_history({
user_id: "your_user_id",
limit: 100
})Get Payment History
javascript
mcp__flow-nexus__get_payment_history({
limit: 50
})检查信用点余额
javascript
mcp__flow-nexus__check_balance()检查rUv余额
javascript
mcp__flow-nexus__ruv_balance({
user_id: "your_user_id"
})查看交易历史
javascript
mcp__flow-nexus__ruv_history({
user_id: "your_user_id",
limit: 100
})获取支付历史
javascript
mcp__flow-nexus__get_payment_history({
limit: 50
})Purchase Credits
购买信用点
Create Payment Link
javascript
mcp__flow-nexus__create_payment_link({
amount: 50 // USD, minimum $10
})
// Returns secure Stripe payment URL创建支付链接
javascript
mcp__flow-nexus__create_payment_link({
amount: 50 // 美元,最低10美元
})
// 返回安全的Stripe支付URLAuto-Refill Configuration
自动充值配置
Enable Auto-Refill
javascript
mcp__flow-nexus__configure_auto_refill({
enabled: true,
threshold: 100, // Refill when credits drop below 100
amount: 50 // Purchase $50 worth of credits
})Disable Auto-Refill
javascript
mcp__flow-nexus__configure_auto_refill({
enabled: false
})启用自动充值
javascript
mcp__flow-nexus__configure_auto_refill({
enabled: true,
threshold: 100, // 当信用点低于100时充值
amount: 50 // 购买价值50美元的信用点
})禁用自动充值
javascript
mcp__flow-nexus__configure_auto_refill({
enabled: false
})Credit Pricing
信用点定价
Service Costs:
- Swarm Operations: 1-10 credits$hour
- Sandbox Execution: 0.5-5 credits$hour
- Neural Training: 5-50 credits$job
- Workflow Runs: 0.1-1 credit$execution
- Storage: 0.01 credits/GB$day
- API Calls: 0.001-0.01 credits$request
服务费用:
- Swarm操作: 1-10信用点/小时
- 沙箱执行: 0.5-5信用点/小时
- 神经训练: 5-50信用点/任务
- 工作流运行: 0.1-1信用点/次执行
- 存储: 0.01信用点/GB/天
- API调用: 0.001-0.01信用点/次请求
Earning Credits
赚取信用点
Ways to Earn:
- Complete Challenges: 10-500 credits per challenge
- Publish Templates: Earn when others deploy (you set pricing)
- Referral Program: Bonus credits for user invites
- Daily Login: Small daily bonus (5-10 credits)
- Achievements: Unlock milestone rewards (50-1000 credits)
- App Store Sales: Revenue share from paid templates
Earn Credits Programmatically
javascript
mcp__flow-nexus__app_store_earn_ruv({
user_id: "your_user_id",
amount: 100,
reason: "Completed expert algorithm challenge",
source: "challenge" // challenge, app_usage, referral, etc.
})赚取方式:
- 完成挑战: 每个挑战可获得10-500信用点
- 发布模板: 他人部署你的模板时赚取收益
- 推荐计划: 邀请新用户可获得额外信用点
- 每日登录: 每日登录可获得小额奖励(5-10信用点)
- 成就奖励: 解锁里程碑奖励(50-1000信用点)
- 应用商店销售: 付费模板的收入分成
通过代码赚取信用点
javascript
mcp__flow-nexus__app_store_earn_ruv({
user_id: "your_user_id",
amount: 100,
reason: "Completed expert algorithm challenge",
source: "challenge" // challenge, app_usage, referral等
})Subscription Tiers
订阅套餐
Free Tier
- 100 free credits monthly
- Basic sandbox access (2 concurrent)
- Limited swarm agents (3 max)
- Community support
- 1GB storage
Pro Tier ($29$month)
- 1000 credits monthly
- Priority sandbox access (10 concurrent)
- Unlimited swarm agents
- Advanced workflows
- Email support
- 10GB storage
- Early access to features
Enterprise Tier (Custom Pricing)
- Unlimited credits
- Dedicated compute resources
- Custom neural models
- 99.9% SLA guarantee
- Priority 24/7 support
- Unlimited storage
- White-label options
- On-premise deployment
免费套餐
- 每月100免费信用点
- 基础沙箱访问(最多2个并发)
- 有限的Swarm Agent(最多3个)
- 社区支持
- 1GB存储
专业套餐(每月29美元)
- 每月1000信用点
- 优先沙箱访问(最多10个并发)
- 无限Swarm Agent
- 高级工作流
- 邮件支持
- 10GB存储
- 新功能提前体验
企业套餐(定制价格)
- 无限信用点
- 专属计算资源
- 定制神经模型
- 99.9% SLA保障
- 7*24小时优先支持
- 无限存储
- 白标选项
- 本地部署
Cost Optimization Tips
成本优化技巧
- Use Smaller Sandboxes: Choose appropriate templates (base vs full-stack)
- Optimize Neural Training: Tune hyperparameters, reduce epochs
- Batch Operations: Group workflow executions together
- Clean Up Resources: Delete unused sandboxes and storage
- Monitor Usage: Check regularly
user_stats - Use Free Templates: Leverage community templates
- Schedule Off-Peak: Run heavy jobs during low-cost periods
- 使用小型沙箱: 选择合适的模板(基础版 vs 全栈版)
- 优化神经训练: 调整超参数,减少训练轮数
- 批量操作: 将工作流执行分组
- 清理资源: 删除未使用的沙箱与存储
- 监控使用情况: 定期检查
user_stats - 使用免费模板: 利用社区模板
- 非高峰时段执行: 在低成本时段运行重型任务
Challenges & Achievements
挑战与成就
Browse Challenges
浏览挑战
List Available Challenges
javascript
mcp__flow-nexus__challenges_list({
difficulty: "intermediate", // beginner, intermediate, advanced, expert
category: "algorithms",
status: "active", // active, completed, locked
limit: 20
})Get Challenge Details
javascript
mcp__flow-nexus__challenge_get({
challenge_id: "two-sum-problem"
})列出可用挑战
javascript
mcp__flow-nexus__challenges_list({
difficulty: "intermediate", // beginner, intermediate, advanced, expert
category: "algorithms",
status: "active", // active, completed, locked
limit: 20
})获取挑战详情
javascript
mcp__flow-nexus__challenge_get({
challenge_id: "two-sum-problem"
})Submit Solutions
提交解决方案
Submit Challenge Solution
javascript
mcp__flow-nexus__challenge_submit({
challenge_id: "challenge_id",
user_id: "your_user_id",
solution_code: `
function twoSum(nums, target) {
const map = new Map();
for (let i = 0; i < nums.length; i++) {
const complement = target - nums[i];
if (map.has(complement)) {
return [map.get(complement), i];
}
map.set(nums[i], i);
}
return [];
}
`,
language: "javascript",
execution_time: 45 // milliseconds (optional)
})Mark Challenge as Complete
javascript
mcp__flow-nexus__app_store_complete_challenge({
challenge_id: "challenge_id",
user_id: "your_user_id",
submission_data: {
passed_tests: 10,
total_tests: 10,
execution_time: 45,
memory_usage: 2048 // KB
}
})提交挑战解决方案
javascript
mcp__flow-nexus__challenge_submit({
challenge_id: "challenge_id",
user_id: "your_user_id",
solution_code: `
function twoSum(nums, target) {
const map = new Map();
for (let i = 0; i < nums.length; i++) {
const complement = target - nums[i];
if (map.has(complement)) {
return [map.get(complement), i];
}
map.set(nums[i], i);
}
return [];
}
`,
language: "javascript",
execution_time: 45 // 毫秒(可选)
})标记挑战为已完成
javascript
mcp__flow-nexus__app_store_complete_challenge({
challenge_id: "challenge_id",
user_id: "your_user_id",
submission_data: {
passed_tests: 10,
total_tests: 10,
execution_time: 45,
memory_usage: 2048 // KB
}
})Leaderboards
排行榜
Global Leaderboard
javascript
mcp__flow-nexus__leaderboard_get({
type: "global", // global, weekly, monthly, challenge
limit: 100
})Challenge-Specific Leaderboard
javascript
mcp__flow-nexus__leaderboard_get({
type: "challenge",
challenge_id: "specific_challenge_id",
limit: 50
})全球排行榜
javascript
mcp__flow-nexus__leaderboard_get({
type: "global", // global, weekly, monthly, challenge
limit: 100
})特定挑战排行榜
javascript
mcp__flow-nexus__leaderboard_get({
type: "challenge",
challenge_id: "specific_challenge_id",
limit: 50
})Achievements & Badges
成就与徽章
List User Achievements
javascript
mcp__flow-nexus__achievements_list({
user_id: "your_user_id",
category: "speed_demon" // Optional filter
})列出用户成就
javascript
mcp__flow-nexus__achievements_list({
user_id: "your_user_id",
category: "speed_demon" // 可选筛选条件
})Challenge Categories
挑战分类
- algorithms: Classic algorithm problems (sorting, searching, graphs)
- data-structures: DS implementation (trees, heaps, tries)
- system-design: Architecture and scalability challenges
- optimization: Performance and efficiency problems
- security: Security-focused vulnerabilities and fixes
- ml-basics: Machine learning fundamentals
- distributed-systems: Concurrency and distributed computing
- databases: Query optimization and schema design
- algorithms: 经典算法问题(排序、搜索、图论)
- data-structures: 数据结构实现(树、堆、字典树)
- system-design: 架构与可扩展性挑战
- optimization: 性能与效率优化问题
- security: 安全漏洞与修复挑战
- ml-basics: 机器学习基础
- distributed-systems: 并发与分布式计算
- databases: 查询优化与 schema 设计
Challenge Difficulty Rewards
挑战难度奖励
- Beginner: 10-25 credits
- Intermediate: 50-100 credits
- Advanced: 150-300 credits
- Expert: 400-500 credits
- Master: 600-1000 credits
- 入门级: 10-25信用点
- 进阶级: 50-100信用点
- 高级: 150-300信用点
- 专家级: 400-500信用点
- 大师级: 600-1000信用点
Achievement Types
成就类型
- Speed Demon: Complete challenges in record time
- Code Golf: Minimize code length
- Perfect Score: 100% test pass rate
- Streak Master: Complete challenges N days in a row
- Polyglot: Solve in multiple languages
- Debugger: Fix broken code challenges
- Optimizer: Achieve top performance benchmarks
- 速度达人: 以记录时间完成挑战
- 代码高尔夫: 最小化代码长度
- 完美得分: 100%测试通过率
- 连续完成大师: 连续N天完成挑战
- 多语言开发者: 使用多种语言解决问题
- 调试专家: 修复代码漏洞挑战
- 优化大师: 达到顶级性能基准
Tips for Success
挑战成功技巧
- Start Simple: Begin with beginner challenges to build confidence
- Review Solutions: Study top solutions after completing
- Optimize: Aim for both correctness and performance
- Daily Practice: Complete daily challenges for bonus credits
- Community: Engage with discussions and learn from others
- Track Progress: Monitor achievements and leaderboard position
- Experiment: Try multiple approaches to problems
- 从简单开始: 先完成入门级挑战建立信心
- 参考解决方案: 完成后学习顶级解决方案
- 优化代码: 兼顾正确性与性能
- 每日练习: 完成每日挑战获取额外信用点
- 社区交流: 参与讨论并向他人学习
- 跟踪进度: 监控成就与排行榜排名
- 尝试多种方法: 用不同思路解决问题
Storage & Real-time
存储与实时功能
File Storage
文件存储
Upload File
javascript
mcp__flow-nexus__storage_upload({
bucket: "my-bucket", // public, private, shared, temp
path: "data$users.json",
content: JSON.stringify(userData, null, 2),
content_type: "application$json"
})List Files
javascript
mcp__flow-nexus__storage_list({
bucket: "my-bucket",
path: "data/", // prefix filter
limit: 100
})Get Public URL
javascript
mcp__flow-nexus__storage_get_url({
bucket: "my-bucket",
path: "data$report.pdf",
expires_in: 3600 // seconds (default: 1 hour)
})Delete File
javascript
mcp__flow-nexus__storage_delete({
bucket: "my-bucket",
path: "data$old-file.json"
})上传文件
javascript
mcp__flow-nexus__storage_upload({
bucket: "my-bucket", // public, private, shared, temp
path: "data/users.json",
content: JSON.stringify(userData, null, 2),
content_type: "application/json"
})列出文件
javascript
mcp__flow-nexus__storage_list({
bucket: "my-bucket",
path: "data/", // 前缀筛选
limit: 100
})获取公共URL
javascript
mcp__flow-nexus__storage_get_url({
bucket: "my-bucket",
path: "data/report.pdf",
expires_in: 3600 // 秒(默认1小时)
})删除文件
javascript
mcp__flow-nexus__storage_delete({
bucket: "my-bucket",
path: "data/old-file.json"
})Storage Buckets
存储桶类型
- public: Publicly accessible files (CDN-backed)
- private: User-only access with authentication
- shared: Team collaboration with ACL
- temp: Auto-deleted after 24 hours
- public: 公开可访问的文件(CDN支持)
- private: 仅用户本人可访问(需身份验证)
- shared: 团队协作存储(支持ACL)
- temp: 24小时后自动删除
Real-time Subscriptions
实时订阅
Subscribe to Database Changes
javascript
mcp__flow-nexus__realtime_subscribe({
table: "tasks",
event: "INSERT", // INSERT, UPDATE, DELETE, *
filter: "status=eq.pending AND priority=eq.high"
})List Active Subscriptions
javascript
mcp__flow-nexus__realtime_list()Unsubscribe
javascript
mcp__flow-nexus__realtime_unsubscribe({
subscription_id: "subscription_id"
})订阅数据库变更
javascript
mcp__flow-nexus__realtime_subscribe({
table: "tasks",
event: "INSERT", // INSERT, UPDATE, DELETE, *
filter: "status=eq.pending AND priority=eq.high"
})列出活跃订阅
javascript
mcp__flow-nexus__realtime_list()取消订阅
javascript
mcp__flow-nexus__realtime_unsubscribe({
subscription_id: "subscription_id"
})Execution Monitoring
执行监控
Subscribe to Execution Stream
javascript
mcp__flow-nexus__execution_stream_subscribe({
stream_type: "claude-flow-swarm", // claude-code, claude-flow-swarm, claude-flow-hive-mind, github-integration
deployment_id: "deployment_id",
sandbox_id: "sandbox_id" // alternative
})Get Stream Status
javascript
mcp__flow-nexus__execution_stream_status({
stream_id: "stream_id"
})List Generated Files
javascript
mcp__flow-nexus__execution_files_list({
stream_id: "stream_id",
created_by: "claude-flow", // claude-code, claude-flow, git-clone, user
file_type: "javascript" // filter by extension
})Get File Content from Execution
javascript
mcp__flow-nexus__execution_file_get({
file_id: "file_id",
file_path: "$path$to$file.js" // alternative
})订阅执行流
javascript
mcp__flow-nexus__execution_stream_subscribe({
stream_type: "claude-flow-swarm", // claude-code, claude-flow-swarm, claude-flow-hive-mind, github-integration
deployment_id: "deployment_id",
sandbox_id: "sandbox_id" // 可选参数
})获取流状态
javascript
mcp__flow-nexus__execution_stream_status({
stream_id: "stream_id"
})列出生成的文件
javascript
mcp__flow-nexus__execution_files_list({
stream_id: "stream_id",
created_by: "claude-flow", // claude-code, claude-flow, git-clone, user
file_type: "javascript" // 按扩展名筛选
})获取执行生成的文件内容
javascript
mcp__flow-nexus__execution_file_get({
file_id: "file_id",
file_path: "/path/to/file.js" // 可选参数
})System Utilities
系统工具
Queen Seraphina AI Assistant
Queen Seraphina AI助手
Seek Guidance from Seraphina
javascript
mcp__flow-nexus__seraphina_chat({
message: "How should I architect a distributed microservices system?",
enable_tools: true, // Allow her to create swarms, deploy code, etc.
conversation_history: [
{ role: "user", content: "I need help with system architecture" },
{ role: "assistant", content: "I can help you design that. What are your requirements?" }
]
})Queen Seraphina is an advanced AI assistant with:
- Deep expertise in distributed systems
- Ability to create swarms and orchestrate agents
- Code deployment and architecture design
- Multi-turn conversation with context retention
- Tool usage for hands-on assistance
向Seraphina寻求指导
javascript
mcp__flow-nexus__seraphina_chat({
message: "How should I architect a distributed microservices system?",
enable_tools: true, // 允许她创建Swarm、部署代码等
conversation_history: [
{ role: "user", content: "I need help with system architecture" },
{ role: "assistant", content: "I can help you design that. What are your requirements?" }
]
})Queen Seraphina是一款高级AI助手,具备以下能力:
- 分布式系统领域的深厚专业知识
- 创建Swarm与编排Agent的能力
- 代码部署与架构设计
- 支持上下文保留的多轮对话
- 可使用工具提供实操协助
System Health & Monitoring
系统健康与监控
Check System Health
javascript
mcp__flow-nexus__system_health()View Audit Logs
javascript
mcp__flow-nexus__audit_log({
user_id: "your_user_id", // optional filter
limit: 100
})检查系统健康状态
javascript
mcp__flow-nexus__system_health()查看审计日志
javascript
mcp__flow-nexus__audit_log({
user_id: "your_user_id", // 可选筛选条件
limit: 100
})Authentication Management
身份验证管理
Initialize Authentication
javascript
mcp__flow-nexus__auth_init({
mode: "user" // user, service
})初始化身份验证
javascript
mcp__flow-nexus__auth_init({
mode: "user" // user, service
})Quick Start Guide
快速入门指南
Step 1: Register & Login
步骤1:注册与登录
javascript
// Register
mcp__flow-nexus__user_register({
email: "dev@example.com",
password: "SecurePass123!",
full_name: "Developer Name"
})
// Login
mcp__flow-nexus__user_login({
email: "dev@example.com",
password: "SecurePass123!"
})
// Check auth status
mcp__flow-nexus__auth_status({ detailed: true })javascript
// 注册
mcp__flow-nexus__user_register({
email: "dev@example.com",
password: "SecurePass123!",
full_name: "Developer Name"
})
// 登录
mcp__flow-nexus__user_login({
email: "dev@example.com",
password: "SecurePass123!"
})
// 检查身份验证状态
mcp__flow-nexus__auth_status({ detailed: true })Step 2: Configure Billing
步骤2:配置账单
javascript
// Check current balance
mcp__flow-nexus__check_balance()
// Add credits
const paymentLink = mcp__flow-nexus__create_payment_link({
amount: 50 // $50
})
// Setup auto-refill
mcp__flow-nexus__configure_auto_refill({
enabled: true,
threshold: 100,
amount: 50
})javascript
// 检查当前余额
mcp__flow-nexus__check_balance()
// 购买信用点
const paymentLink = mcp__flow-nexus__create_payment_link({
amount: 50 // 50美元
})
// 设置自动充值
mcp__flow-nexus__configure_auto_refill({
enabled: true,
threshold: 100,
amount: 50
})Step 3: Create Your First Sandbox
步骤3:创建你的第一个沙箱
javascript
// Create development sandbox
const sandbox = mcp__flow-nexus__sandbox_create({
template: "node",
name: "dev-environment",
install_packages: ["express", "dotenv"],
env_vars: {
NODE_ENV: "development"
}
})
// Execute code
mcp__flow-nexus__sandbox_execute({
sandbox_id: sandbox.id,
code: 'console.log("Hello Flow Nexus!")',
language: "javascript"
})javascript
// 创建开发沙箱
const sandbox = mcp__flow-nexus__sandbox_create({
template: "node",
name: "dev-environment",
install_packages: ["express", "dotenv"],
env_vars: {
NODE_ENV: "development"
}
})
// 执行代码
mcp__flow-nexus__sandbox_execute({
sandbox_id: sandbox.id,
code: 'console.log("Hello Flow Nexus!")',
language: "javascript"
})Step 4: Deploy an App
步骤4:部署应用
javascript
// Browse templates
mcp__flow-nexus__template_list({
category: "backend",
featured: true
})
// Deploy template
mcp__flow-nexus__template_deploy({
template_name: "express-api-starter",
deployment_name: "my-api",
variables: {
database_url: "postgres://..."
}
})javascript
// 浏览模板
mcp__flow-nexus__template_list({
category: "backend",
featured: true
})
// 部署模板
mcp__flow-nexus__template_deploy({
template_name: "express-api-starter",
deployment_name: "my-api",
variables: {
database_url: "postgres://..."
}
})Step 5: Complete a Challenge
步骤5:完成一个挑战
javascript
// Find challenges
mcp__flow-nexus__challenges_list({
difficulty: "beginner",
category: "algorithms"
})
// Submit solution
mcp__flow-nexus__challenge_submit({
challenge_id: "fizzbuzz",
user_id: "your_id",
solution_code: "...",
language: "javascript"
})javascript
// 查找挑战
mcp__flow-nexus__challenges_list({
difficulty: "beginner",
category: "algorithms"
})
// 提交解决方案
mcp__flow-nexus__challenge_submit({
challenge_id: "fizzbuzz",
user_id: "your_id",
solution_code: "...",
language: "javascript"
})Best Practices
最佳实践
Security
安全
- Never hardcode API keys - use environment variables
- Enable 2FA when available
- Regularly rotate passwords and tokens
- Use private buckets for sensitive data
- Review audit logs periodically
- Set appropriate file expiration times
- 切勿硬编码API密钥 - 使用环境变量
- 可用时启用双因素认证(2FA)
- 定期轮换密码与令牌
- 对敏感数据使用私有存储桶
- 定期查看审计日志
- 设置合适的文件过期时间
Performance
性能
- Clean up unused sandboxes to save credits
- Use smaller sandbox templates when possible
- Optimize storage by deleting old files
- Batch operations to reduce API calls
- Monitor usage via
user_stats - Use temp buckets for transient data
- 清理未使用的沙箱以节省信用点
- 尽可能使用小型沙箱模板
- 删除旧文件优化存储
- 批量操作以减少API调用
- 通过监控使用情况
user_stats - 对临时数据使用临时存储桶
Development
开发
- Start with sandbox testing before deployment
- Version your applications semantically
- Document all templates thoroughly
- Include tests in published apps
- Use execution monitoring for debugging
- Leverage real-time subscriptions for live updates
- 部署前先在沙箱中测试
- 对应用使用语义化版本控制
- 为所有模板提供详细文档
- 在发布的应用中包含测试
- 使用执行监控进行调试
- 利用实时订阅获取实时更新
Cost Management
成本管理
- Set auto-refill thresholds carefully
- Monitor credit usage regularly
- Complete daily challenges for bonus credits
- Publish templates to earn passive credits
- Use free-tier resources when appropriate
- Schedule heavy jobs during off-peak times
- 谨慎设置自动充值阈值
- 定期监控信用点使用情况
- 完成每日挑战获取额外信用点
- 发布模板赚取被动信用点
- 合适时使用免费套餐资源
- 在非高峰时段运行重型任务
Troubleshooting
故障排除
Authentication Issues
身份验证问题
- Login Failed: Check email$password, verify email first
- Token Expired: Re-login to get fresh tokens
- Permission Denied: Check tier limits, upgrade if needed
- 登录失败: 检查邮箱/密码,先验证邮箱
- 令牌过期: 重新登录获取新令牌
- 权限不足: 检查套餐限制,必要时升级
Sandbox Issues
沙箱问题
- Sandbox Won't Start: Check template compatibility, verify credits
- Execution Timeout: Increase timeout parameter or optimize code
- Out of Memory: Use larger template or optimize memory usage
- Package Install Failed: Check package name, verify npm$pip availability
- 沙箱无法启动: 检查模板兼容性,验证信用点是否充足
- 执行超时: 增加超时参数或优化代码
- 内存不足: 使用更大的模板或优化内存使用
- 安装包失败: 检查包名,确认npm/pip可用
Payment Issues
支付问题
- Payment Failed: Check payment method, sufficient funds
- Credits Not Applied: Allow 5-10 minutes for processing
- Auto-refill Not Working: Verify payment method on file
- 支付失败: 检查支付方式,确保资金充足
- 信用点未到账: 等待5-10分钟处理时间
- 自动充值未生效: 验证已绑定的支付方式
Challenge Issues
挑战问题
- Submission Rejected: Check code syntax, ensure all tests pass
- Wrong Answer: Review test cases, check edge cases
- Performance Too Slow: Optimize algorithm complexity
- 提交被拒绝: 检查代码语法,确保所有测试通过
- 答案错误: 查看测试用例,检查边缘情况
- 性能过慢: 优化算法复杂度
Support & Resources
支持与资源
- Documentation: https:/$docs.flow-nexus.ruv.io
- API Reference: https:/$api.flow-nexus.ruv.io$docs
- Status Page: https:/$status.flow-nexus.ruv.io
- Community Forum: https:/$community.flow-nexus.ruv.io
- GitHub Issues: https:/$github.com$ruvnet$flow-nexus$issues
- Discord: https:/$discord.gg$flow-nexus
- Email Support: support@flow-nexus.ruv.io (Pro/Enterprise only)
- 文档: https://docs.flow-nexus.ruv.io
- API参考: https://api.flow-nexus.ruv.io/docs
- 状态页面: https://status.flow-nexus.ruv.io
- 社区论坛: https://community.flow-nexus.ruv.io
- GitHub Issues: https://github.com/ruvnet/flow-nexus/issues
- Discord: https://discord.gg/flow-nexus
- 邮件支持: support@flow-nexus.ruv.io(仅专业版/企业版用户)
Progressive Disclosure
进阶内容
<details>
<summary><strong>Advanced Sandbox Configuration<$strong><$summary>
<details>
<summary><strong>高级沙箱配置</strong></summary>
Custom Docker Images
自定义Docker镜像
javascript
mcp__flow-nexus__sandbox_create({
template: "base",
name: "custom-environment",
startup_script: `
apt-get update
apt-get install -y custom-package
git clone https:/$github.com$user$repo
cd repo && npm install
`
})javascript
mcp__flow-nexus__sandbox_create({
template: "base",
name: "custom-environment",
startup_script: `
apt-get update
apt-get install -y custom-package
git clone https://github.com/user/repo
cd repo && npm install
`
})Multi-Stage Execution
多阶段执行
javascript
// Stage 1: Setup
mcp__flow-nexus__sandbox_execute({
sandbox_id: "id",
code: "npm install && npm run build"
})
// Stage 2: Run
mcp__flow-nexus__sandbox_execute({
sandbox_id: "id",
code: "npm start",
working_dir: "$app$dist"
})<$details>
<details>
<summary><strong>Advanced Storage Patterns<$strong><$summary>javascript
// 阶段1:设置
mcp__flow-nexus__sandbox_execute({
sandbox_id: "id",
code: "npm install && npm run build"
})
// 阶段2:运行
mcp__flow-nexus__sandbox_execute({
sandbox_id: "id",
code: "npm start",
working_dir: "/app/dist"
})Large File Upload (Chunked)
大文件分片上传
javascript
const chunkSize = 5 * 1024 * 1024 // 5MB chunks
for (let i = 0; i < chunks.length; i++) {
await mcp__flow-nexus__storage_upload({
bucket: "private",
path: `large-file.bin.part${i}`,
content: chunks[i]
})
}javascript
const chunkSize = 5 * 1024 * 1024 // 5MB分片
for (let i = 0; i < chunks.length; i++) {
await mcp__flow-nexus__storage_upload({
bucket: "private",
path: `large-file.bin.part${i}`,
content: chunks[i]
})
}Storage Lifecycle
存储生命周期管理
javascript
// Upload to temp for processing
mcp__flow-nexus__storage_upload({
bucket: "temp",
path: "processing$data.json",
content: data
})
// Move to permanent storage after processing
mcp__flow-nexus__storage_upload({
bucket: "private",
path: "archive$processed-data.json",
content: processedData
})<$details>
<details>
<summary><strong>Advanced Real-time Patterns<$strong><$summary>javascript
// 上传到临时存储桶进行处理
mcp__flow-nexus__storage_upload({
bucket: "temp",
path: "processing/data.json",
content: data
})
// 处理完成后移动到永久存储
mcp__flow-nexus__storage_upload({
bucket: "private",
path: "archive/processed-data.json",
content: processedData
})Multi-Table Sync
多表同步
javascript
const tables = ["users", "tasks", "notifications"]
tables.forEach(table => {
mcp__flow-nexus__realtime_subscribe({
table,
event: "*",
filter: `user_id=eq.${userId}`
})
})javascript
const tables = ["users", "tasks", "notifications"]
tables.forEach(table => {
mcp__flow-nexus__realtime_subscribe({
table,
event: "*",
filter: `user_id=eq.${userId}`
})
})Event-Driven Workflows
事件驱动工作流
javascript
// Subscribe to task completion
mcp__flow-nexus__realtime_subscribe({
table: "tasks",
event: "UPDATE",
filter: "status=eq.completed"
})
// Trigger notification workflow on event
// (handled by your application logic)<$details>
javascript
// 订阅任务完成事件
mcp__flow-nexus__realtime_subscribe({
table: "tasks",
event: "UPDATE",
filter: "status=eq.completed"
})
// 事件触发时执行通知工作流
//(由你的应用逻辑处理)Version History
版本历史
- v1.0.0 (2025-10-19): Initial comprehensive platform skill
- Authentication & user management
- Sandbox creation and execution
- App store and deployment
- Payments and credits
- Challenges and achievements
- Storage and real-time features
- System utilities and Queen Seraphina integration
This skill consolidates 6 Flow Nexus command modules into a single comprehensive platform management interface.
- v1.0.0 (2025-10-19): 初始综合平台技能
- 身份验证与用户管理
- 沙箱创建与执行
- 应用商店与部署
- 支付与信用点
- 挑战与成就
- 存储与实时功能
- 系统工具与Queen Seraphina集成
本技能将6个Flow Nexus命令模块整合为一个统一的综合平台管理界面。