bkend-quickstart
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesebkend.ai Quick Start Guide
bkend.ai 快速开始指南
What is bkend.ai
什么是 bkend.ai
MCP-based BaaS platform providing Database, Authentication, and Storage services.
Manage backend via natural language from AI tools (Claude Code, Cursor).
基于MCP的BaaS平台,提供数据库、认证与存储服务。
可通过AI工具(Claude Code、Cursor)以自然语言管理后端。
Resource Hierarchy
资源层级
Organization (team/billing) -> Project (service unit) -> Environment (dev/staging/prod, data isolation)Organization (团队/计费) -> Project (服务单元) -> Environment (开发/预发布/生产,数据隔离)Tenant vs User
租户 vs 用户
- Tenant: Service builder (OAuth 2.1 auth, MCP/Management API access)
- User: App end-user (JWT auth, Service API access)
- One person can have both roles
- Tenant(租户):服务构建者(采用OAuth 2.1认证,可访问MCP/管理API)
- User(用户):应用终端用户(采用JWT认证,可访问服务API)
- 同一人可同时拥有两种角色
MCP Setup (Claude Code)
MCP 设置(Claude Code)
Quick Setup (One Command)
快速设置(一键命令)
bash
claude mcp add bkend --transport http https://api.bkend.ai/mcpbash
claude mcp add bkend --transport http https://api.bkend.ai/mcpStep-by-Step Guide
分步指南
- Prerequisites: bkend.ai account (signup at https://console.bkend.ai)
- Run setup command:
claude mcp add bkend --transport http https://api.bkend.ai/mcp - OAuth authentication: Browser auto-opens for OAuth 2.1 + PKCE auth (no API key needed)
- Verify connection: Ask "Show my connected bkend projects" or use MCP tool
0_get_context - Create .mcp.json (optional, for team sharing):
json
{ "mcpServers": { "bkend": { "type": "http", "url": "https://api.bkend.ai/mcp" } } }
- 前置条件:拥有bkend.ai账号(可在https://console.bkend.ai注册)
- 运行设置命令:
claude mcp add bkend --transport http https://api.bkend.ai/mcp - OAuth认证:浏览器将自动打开,进行OAuth 2.1 + PKCE认证(无需API密钥)
- 验证连接:可询问“显示我已连接的bkend项目”或使用MCP工具
0_get_context - 创建.mcp.json文件(可选,用于团队共享):
json
{ "mcpServers": { "bkend": { "type": "http", "url": "https://api.bkend.ai/mcp" } } }
Troubleshooting MCP Connection
MCP连接故障排查
| Problem | Solution |
|---|---|
| OAuth popup not appearing | Check browser popup blocker |
| MCP tools not visible | Run |
| Connection lost | Re-authenticate (automatic on next MCP call) |
| Wrong project/env | Use |
| 问题 | 解决方案 |
|---|---|
| OAuth弹窗未出现 | 检查浏览器弹窗拦截设置 |
| MCP工具不可见 | 运行 |
| 连接丢失 | 重新认证(下次调用MCP时将自动触发) |
| 项目/环境错误 | 使用 |
MCP Guide Tools (No Parameters)
MCP指南工具(无参数)
| Tool | Purpose |
|---|---|
| 0_get_context | Session context (org/project/env) |
| 1_concepts | Core concepts (BSON, permissions, hierarchy) |
| 2_tutorial | Project~table creation tutorial |
| 工具 | 用途 |
|---|---|
| 0_get_context | 查看会话上下文(组织/项目/环境) |
| 1_concepts | 查看核心概念(BSON、权限、层级结构) |
| 2_tutorial | 项目~表创建教程 |
First Project Checklist
首个项目检查清单
- Sign up at bkend.ai -> Create Organization
- Create Project -> dev environment auto-created
- Connect MCP ->
claude mcp add bkend - Create first table -> "Create a users table"
- Start data operations -> CRUD via natural language
- 在bkend.ai注册账号 → 创建组织
- 创建项目 → 自动生成开发环境
- 连接MCP → 运行命令
claude mcp add bkend - 创建首个数据表 → 输入“创建一个users表”
- 开始数据操作 → 通过自然语言进行CRUD操作
Console URL
控制台地址
https://console.bkend.aihttps://console.bkend.aiNext Steps
后续步骤
- Database operations: refer to bkend-data skill
- Authentication: refer to bkend-auth skill
- File storage: refer to bkend-storage skill
- Practical tutorials: refer to bkend-cookbook skill
- 数据库操作:参考bkend-data技能
- 认证操作:参考bkend-auth技能
- 文件存储:参考bkend-storage技能
- 实用教程:参考bkend-cookbook技能
Official Documentation (Live Reference)
官方文档(实时参考)
For the latest bkend documentation, use WebFetch:
- Full TOC: https://raw.githubusercontent.com/popup-studio-ai/bkend-docs/main/SUMMARY.md
- Getting Started: https://raw.githubusercontent.com/popup-studio-ai/bkend-docs/main/src/getting-started/
- AI Tools/MCP: https://raw.githubusercontent.com/popup-studio-ai/bkend-docs/main/src/ai-tools/
- Console: https://raw.githubusercontent.com/popup-studio-ai/bkend-docs/main/src/console/
如需获取最新的bkend文档,可使用WebFetch:
- 完整目录:https://raw.githubusercontent.com/popup-studio-ai/bkend-docs/main/SUMMARY.md
- 入门指南:https://raw.githubusercontent.com/popup-studio-ai/bkend-docs/main/src/getting-started/
- AI工具/MCP:https://raw.githubusercontent.com/popup-studio-ai/bkend-docs/main/src/ai-tools/
- 控制台:https://raw.githubusercontent.com/popup-studio-ai/bkend-docs/main/src/console/