Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions doc/prompts/auth-web.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,9 @@ If the current task has not retrieved a real Publishable Key, omit `accessKey` i

**1. Phone OTP (Recommended)**
- Automatically use `auth-tool-cloudbase` to turn on `SMS Login` through `manageAppAuth`
- Send the phone number to `auth.signInWithOtp({ phone, ... })`, then call the returned `verifyOtp({ token })`.
- `signInWithOtp` can automatically create a new user if the user does not exist; control this via `shouldCreateUser` parameter (default `true`).
- For phone registration, send the phone number to `auth.signUp({ phone, ... })` first, then call the returned `verifyOtp({ token })`. Do not swap the order.
```js
const { data, error } = await auth.signInWithOtp({ phone: '13800138000' })
const { data, error } = await auth.signUp({ phone: '13800138000' })
const { data: loginData, error: loginError } = await data.verifyOtp({ token:'123456' })
```

Expand Down
10 changes: 7 additions & 3 deletions mcp/src/tools/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1412,14 +1412,18 @@ export function registerFunctionTools(server: ExtendedMcpServer) {
{
title: "查询云函数域资源",
description:
"函数域统一只读入口。通过更自解释的 action 查询函数列表、函数详情、日志、层、触发器和代码下载地址。",
"函数域统一只读入口。通过更自解释的 action 查询函数列表、函数详情、日志、层、触发器和代码下载地址。\n\n" +
"【分页说明】列表类操作(listFunctions、listLayers)支持分页参数:\n" +
"- limit: 分页数量,默认返回所有\n" +
"- offset: 分页偏移,从 0 开始\n" +
"示例:先调用 listFunctions 获取总数,如需翻页则传入 offset=10 limit=10",
inputSchema: {
action: z
.enum(QUERY_FUNCTION_ACTIONS)
.describe("只读操作类型,例如 listFunctions、getFunctionDetail、listFunctionLogs"),
functionName: z.string().optional().describe("函数名称。函数相关 action 必填"),
limit: z.number().optional().describe("分页数量。列表类 action 可选"),
offset: z.number().optional().describe("分页偏移。列表类 action 可选"),
limit: z.number().optional().describe("分页数量(limit),用于列表类 action 控制返回条数"),
offset: z.number().optional().describe("分页偏移(offset),从 0 开始,用于列表类 action 翻页"),
codeSecret: z.string().optional().describe("代码保护密钥"),
startTime: z.string().optional().describe("日志查询开始时间"),
endTime: z.string().optional().describe("日志查询结束时间"),
Expand Down
Loading