upstash
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUpstash Skill
Upstash Skill
Overview
概述
Enables Claude to access Upstash to view and manage serverless Redis databases, Kafka clusters, QStash message queues, and monitor usage and performance metrics.
让Claude能够访问Upstash,查看并管理无服务器Redis数据库、Kafka集群、QStash消息队列,以及监控使用情况和性能指标。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/upstash/install.sh | bashOr manually:
bash
cp -r skills/upstash ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/upstash/install.sh | bash或手动安装:
bash
cp -r skills/upstash ~/.canifi/skills/Setup
配置
Configure via canifi-env:
bash
undefined通过canifi-env进行配置:
bash
undefinedFirst, ensure canifi-env is installed:
首先,确保已安装canifi-env:
curl -sSL https://canifi.com/install.sh | bash
curl -sSL https://canifi.com/install.sh | bash
canifi-env set UPSTASH_EMAIL "your-email@example.com"
undefinedcanifi-env set UPSTASH_EMAIL "your-email@example.com"
undefinedPrivacy & Authentication
隐私与认证
Your credentials, your choice. Canifi LifeOS respects your privacy.
您的凭证,由您掌控。Canifi LifeOS 尊重您的隐私。
Option 1: Manual Browser Login (Recommended)
选项1:手动浏览器登录(推荐)
If you prefer not to share credentials with Claude Code:
- Complete the Browser Automation Setup using CDP mode
- Login to the service manually in the Playwright-controlled Chrome window
- Claude will use your authenticated session without ever seeing your password
如果您不想与Claude Code共享凭证:
- 使用CDP模式完成浏览器自动化配置
- 在Playwright控制的Chrome窗口中手动登录服务
- Claude将使用您的已认证会话,全程不会获取您的密码
Option 2: Environment Variables
选项2:环境变量
If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果您愿意共享凭证,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"注意:存储在canifi-env中的凭证仅能在您的本地机器上访问,绝不会被传输至外部。
Capabilities
功能特性
- View Redis database status
- Check Kafka cluster health
- Monitor QStash messages
- View data usage metrics
- Check connection details
- View billing and usage
- 查看Redis数据库状态
- 检查Kafka集群健康状况
- 监控QStash消息
- 查看数据使用指标
- 检查连接详情
- 查看账单与使用情况
Usage Examples
使用示例
Example 1: Check Redis Databases
示例1:检查Redis数据库
User: "How are my Upstash Redis databases?"
Claude: I'll check your Upstash console.
- Opens console.upstash.com via Playwright MCP
- Logs into account
- Redis Databases:
- prod-cache: Global, 45MB used
- Commands: 125k/day
- Regions: us-east-1, eu-west-1
- session-store: Regional, 12MB used
- Commands: 34k/day
- All databases healthy
- Latency: <10ms p99用户:“我的Upstash Redis数据库状态如何?”
Claude:我将为您查看Upstash控制台。
- 通过Playwright MCP打开console.upstash.com
- 登录账户
- Redis数据库列表:
- prod-cache:全局部署,已使用45MB
- 每日命令数:125k
- 部署区域:us-east-1、eu-west-1
- session-store:区域部署,已使用12MB
- 每日命令数:34k
- 所有数据库运行正常
- 延迟:p99 <10msExample 2: Check Kafka
示例2:检查Kafka集群
User: "How's my Kafka cluster?"
Claude: I'll check Kafka status.
- Views Kafka section
- Clusters:
- event-stream: Active
- Topics: 5
- Partitions: 15
- Messages: 2.3M/day
- Consumers: 3 active
- Lag: 0 (caught up)
- Storage: 850MB用户:“我的Kafka集群状态如何?”
Claude:我将为您检查Kafka状态。
- 查看Kafka板块
- 集群信息:
- event-stream:运行中
- 主题数:5
- 分区数:15
- 每日消息量:230万条
- 活跃消费者:3个
- 消息延迟:0(已追平)
- 存储占用:850MBExample 3: Check QStash
示例3:检查QStash使用情况
User: "What's my QStash usage?"
Claude: I'll check QStash.
- Views QStash section
- Messages today: 4,523
- Success rate: 99.8%
- Scheduled: 12 pending
- Dead letter: 2 messages
- Endpoints: 8 configured
- Monthly limit: 100k (4.5% used)用户:“我的QStash使用情况如何?”
Claude:我将为您查看QStash数据。
- 查看QStash板块
- 今日消息量:4,523条
- 成功率:99.8%
- 待处理定时任务:12个
- 死信队列消息:2条
- 已配置端点:8个
- 月度限额:10万条(已使用4.5%)Authentication Flow
认证流程
- Navigate to console.upstash.com via Playwright MCP
- Enter email or use GitHub/Google OAuth
- Enter password if email login
- Handle 2FA if enabled
- Maintain session for console access
- 通过Playwright MCP导航至console.upstash.com
- 输入邮箱或使用GitHub/Google OAuth登录
- 若使用邮箱登录,输入密码
- 若启用了双因素认证(2FA),完成验证
- 保持会话以访问控制台
Error Handling
错误处理
- Login Failed: Retry credentials
- 2FA Required: Complete verification
- Connection Issue: Check REST URL
- Session Expired: Re-authenticate
- Rate Limit: Check plan limits
- Quota Exceeded: Upgrade plan
- 登录失败:重试凭证
- 需2FA验证:完成身份验证
- 连接问题:检查REST URL
- 会话过期:重新认证
- 速率限制:查看套餐限制
- 配额超限:升级套餐
Self-Improvement Instructions
自我优化说明
After each interaction:
- Track command patterns
- Note data growth
- Log message volume
- Document UI changes
Suggest updates when:
- Upstash updates console
- New features added
- Pricing changes
- Products expand
每次交互后:
- 记录命令模式
- 跟踪数据增长情况
- 统计消息量
- 记录UI变更
在以下场景建议更新:
- Upstash更新控制台
- 添加新功能
- 定价策略变更
- 产品矩阵扩展
Notes
平台特性
- Serverless data platform
- Pay-per-request pricing
- Global replication
- REST API included
- Edge-friendly
- Durable storage
- No servers to manage
- 无服务器数据平台
- 按请求计费模式
- 全局数据复制
- 内置REST API
- 边缘友好型设计
- 持久化存储
- 无需管理服务器