AppsAI MCP Server
官方使用98个React、AWS和MongoDB工具构建并部署全栈Next.js应用
文档
AppsAI MCP 服务器
使用 AI 构建和部署全栈应用。此 MCP 服务器可将 Claude Code、Cursor、Windsurf 及其他 AI 工具连接到您的 AppsAI 项目。
支持的技术栈:
- 前端: Next.js 搭配 React、Tailwind CSS 和 shadcn/ui
- 后端: Parse Server、Express、Fastify、Hono、Supabase Edge Functions、Firebase Cloud Functions、Serverless Framework 或自定义
- 数据库: MongoDB Atlas(托管)
- 基础设施: AWS(S3、CloudFormation、EC2、Lambda 等)
安装
Claude Code
claude mcp add appsai -e APPSAI_API_KEY=your_key -- npx -y @appsai/mcp-server
Claude Desktop
添加到 claude_desktop_config.json:
{
"mcpServers": {
"appsai": {
"command": "npx",
"args": ["-y", "@appsai/mcp-server"],
"env": {
"APPSAI_API_KEY": "your_key"
}
}
}
}
Cursor / Windsurf
添加到 MCP 设置,配置如下:
- 命令:
npx -y @appsai/mcp-server - 环境:
APPSAI_API_KEY=your_key
获取您的 API 密钥
面向人类用户
- 在 appsai.com 注册
- 前往 设置 > 账单 > API 密钥
- 点击 创建 API 密钥
- 复制密钥(仅显示一次)
面向 AI 代理(自主注册)
AI 代理可以使用基于钱包的身份验证以编程方式注册并获取 API 密钥:
import requests
from eth_account import Account
from eth_account.messages import encode_defunct
# Agent's wallet
private_key = "0x..."
account = Account.from_key(private_key)
BASE_URL = "https://internal.appsai.com/server/functions"
HEADERS = {"Content-Type": "application/json", "X-Parse-Application-Id": "appsai"}
# 1. Get nonce
nonce_data = requests.post(f"{BASE_URL}/getAgentAuthNonce", headers=HEADERS, json={}).json()["result"]
# 2. Sign the message
signed = account.sign_message(encode_defunct(text=nonce_data["message"]))
# 3. Register and get API key
result = requests.post(f"{BASE_URL}/registerAgentWallet", headers=HEADERS, json={
"walletAddress": account.address,
"signature": signed.signature.hex(),
"nonce": nonce_data["nonce"]
}).json()["result"]
api_key = result["apiKey"] # Use this with MCP
通过加密货币添加额度
代理可以使用 USDC 在支持的链上(Ethereum、Base、Arbitrum、Polygon)支付额度:
# 1. Get payment info
info = requests.post(f"{BASE_URL}/getCryptoPaymentInfo", headers=HEADERS, json={}).json()["result"]
receiving_wallet = info["receivingWallet"]
# 2. Send USDC to receiving_wallet (via your preferred method)
# 3. Verify transaction and add credits
result = requests.post(f"{BASE_URL}/addFundsCrypto", headers=HEADERS, json={
"walletAddress": account.address,
"txHash": "0xYOUR_TX_HASH",
"chainId": 8453 # Base
}).json()["result"]
print(f"Credits added: {result['creditsAdded']}")
有关详细的 API 文档,请参阅 代理 API 文档。
工具(总计 150+)
核心开发工具
| 类别 | 工具数量 | 描述 |
|---|---|---|
| 项目 | 5 | 创建、列出和管理项目 |
| 画布 | 25 | 编辑 React 组件、样式和资源 |
| 后端 | 18 | 后端代码、S3、CloudFormation 和 AWS 基础设施 |
| 系统 | 11 | 部署前端/后端、连接应用、管理 MCP 服务器 |
| MongoDB | 18 | 数据库和集合管理 |
| 代理 | 9 | AI 提示管理和版本控制 |
平台管理工具
| 类别 | 工具数量 | 描述 |
|---|---|---|
| 账单 | 15 | 订阅、额度、支付、发票 |
| 市场 | 12 | 发布、浏览和购买模板 |
| 卖家 | 5 | Stripe Connect、收益、卖家仪表板 |
| 域名 | 7 | 子域名和自定义域名管理 |
| 团队 | 7 | 协作者、权限、邀请 |
| 转让 | 6 | 项目所有权转让 |
| 设置 | 4 | 项目显示设置和元数据 |
| API 密钥 | 3 | 平台 API 密钥管理 |
| 成本 | 6 | AWS 成本、使用量指标、预测 |
系统工具
| 工具 | 描述 |
|---|---|
system_DEPLOY_BACKEND | 部署后端基础设施 |
system_DEPLOY_FRONTEND | 将前端部署到 CDN |
system_DEPLOY_ALL | 同时部署前端和后端 |
system_GET_ENVIRONMENT_STATUS | 获取部署状态和 URL |
system_GET_DEPLOY_ARTIFACTS | 获取部署产物和历史记录 |
system_CONNECT_APP | 连接两个项目以进行跨应用操作 |
system_DISCONNECT_APP | 移除项目之间的连接 |
system_ADD_MCP_SERVER | 向项目添加外部 MCP 服务器 |
system_LIST_MCP_SERVERS | 列出已配置的 MCP 服务器 |
system_UPDATE_MCP_SERVER | 更新 MCP 服务器配置 |
system_REMOVE_MCP_SERVER | 从项目中移除 MCP 服务器 |
账单工具
| 工具 | 描述 |
|---|---|
billing_GET_CURRENT_PLAN | 获取订阅计划详情 |
billing_CREATE_CHECKOUT | 开始订阅购买 |
billing_GET_PORTAL_SESSION | 打开 Stripe 账单门户 |
billing_ADD_FUNDS | 向账户添加额度 |
billing_GET_AVAILABLE_CREDITS | 获取当前额度余额 |
billing_GET_INVOICES | 列出账单 |
billing_GET_PAYMENT_METHODS | 列出已保存的支付方式 |
市场工具
| 工具 | 描述 |
|---|---|
marketplace_PUBLISH_TEMPLATE | 将项目发布到市场 |
marketplace_UNPUBLISH_TEMPLATE | 从市场移除 |
marketplace_GET_TEMPLATES | 浏览市场模板 |
marketplace_GET_TEMPLATE_DETAILS | 获取模板信息 |
marketplace_FORK_TEMPLATE | 复刻模板 |
marketplace_GET_MY_PUBLISHED | 用户已发布的模板 |
marketplace_GET_MY_PURCHASES | 购买历史 |
域名工具
| 工具 | 描述 |
|---|---|
domain_CHECK_AVAILABILITY | 检查子域名可用性 |
domain_UPDATE_SUBDOMAIN | 更新项目子域名 |
domain_ADD_CUSTOM_DOMAIN | 添加自定义域名 |
domain_VERIFY_CUSTOM_DOMAIN | 验证 DNS 配置 |
domain_REMOVE_CUSTOM_DOMAIN | 移除自定义域名 |
团队工具
| 工具 | 描述 |
|---|---|
team_GET_COLLABORATORS | 列出项目协作者 |
team_INVITE_COLLABORATOR | 邀请用户加入项目 |
team_REMOVE_COLLABORATOR | 移除协作者 |
team_UPDATE_PERMISSIONS | 更改协作者角色 |
使用示例
"List my apps"
→ project_LIST_APPS
"Create a new Next.js app"
→ project_CREATE_APP
"Show the file tree for project abc123"
→ canvas_LIST_FILES
"Deploy the frontend"
→ system_DEPLOY_FRONTEND
"Add an MCP server to my project"
→ system_ADD_MCP_SERVER
"Check my current plan"
→ billing_GET_CURRENT_PLAN
"Publish my project to the marketplace"
→ marketplace_PUBLISH_TEMPLATE
"Add a custom domain"
→ domain_ADD_CUSTOM_DOMAIN
"Invite [email protected] to my project"
→ team_INVITE_COLLABORATOR
MCP 服务器集成
AppsAI 项目可以连接到外部 MCP 服务器,让您的 AI 代理能够访问更多工具:
"Add the Stripe MCP server to my project"
→ system_ADD_MCP_SERVER with serverUrl and serverLabel
"List my configured MCP servers"
→ system_LIST_MCP_SERVERS
"Disable the Stripe MCP server"
→ system_UPDATE_MCP_SERVER with enabled: false
配置完成后,AppsAI 项目中的 AI 代理即可使用已连接的 MCP 服务器中的工具。
资源
服务器以 MCP 资源的形式提供项目上下文:
appsai://projects- 您的项目列表appsai://project/{id}- 项目详情和文件结构
提示
用于构建完整应用的内置提示:
build-youtube- 构建一个具有视频上传和评论功能的 YouTube 克隆build-slack- 构建一个具有实时消息功能的 Slack 克隆build-twitter- 构建一个具有发帖和关注功能的 Twitter/X 克隆connect-apps- 将两个 AppsAI 项目连接在一起
要求
- Node.js 18+
- 拥有额度的 AppsAI 账户
- 来自 设置 > 账单 的 API 密钥
文档
支持
许可证
MIT