Skip to content

feat(docs): 📚 improve documentation clarity and tool descriptions#694

Merged
binggg merged 3 commits intomainfrom
feat/improve-docs-and-star-prompt
Apr 30, 2026
Merged

feat(docs): 📚 improve documentation clarity and tool descriptions#694
binggg merged 3 commits intomainfrom
feat/improve-docs-and-star-prompt

Conversation

@binggg
Copy link
Copy Markdown
Member

@binggg binggg commented Apr 30, 2026

Summary

  • Add star prompt to README/README-EN for release notifications
  • Reorganize mcp-tools.md from table to grouped list
  • Update tool descriptions in scripts/tools.json to distinguish server-side vs client-side usage
  • Add SDK vs MCP tools distinction in prompt docs
  • Add domain management tools clarification in cloudbase-platform.mdx
  • Add role management documentation in cloudbase-platform.mdx
  • Fix phone auth example in auth-web.mdx (signUp instead of signInWithOtp)
  • Remove outdated video tutorial from TutorialsGrid.tsx
  • Update doc/index.mdx tips

Changes

  • README.md / README-EN.md: added friendly star reminder for release notifications
  • doc/mcp-tools.md: restructured from flat table to grouped tool list
  • scripts/tools.json: improved tool descriptions with server/client distinction
  • doc/prompts/*.mdx: added clarification sections for domain tools, SDK vs MCP, and role management
  • doc/components/TutorialsGrid.tsx: removed outdated video entry
  • Deleted two incorrectly named files ({ and {})

Checklist

  • Commit message follows conventional changelog style with emoji
  • Pushed to GitHub remote only (not cnb)
  • Branch is up to date with main

- Add star prompt to README/README-EN for release notifications
- Reorganize mcp-tools.md from table to grouped list
- Update tool descriptions in scripts/tools.json to distinguish server-side vs client-side usage
- Add SDK vs MCP tools distinction in prompt docs
- Add domain management tools clarification in cloudbase-platform.mdx
- Add role management documentation in cloudbase-platform.mdx
- Fix phone auth example in auth-web.mdx (signUp instead of signInWithOtp)
- Remove outdated video tutorial from TutorialsGrid.tsx
- Update doc/index.mdx tips
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fdb5daa9a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread doc/prompts/auth-web.mdx Outdated
Comment on lines 146 to 149
- 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' })
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore signInWithOtp for phone OTP login example

In the Login Methods section, the phone OTP flow now uses auth.signUp({ phone }) as the primary example, which is a registration path and will fail for users who already have an account; this makes the documented login path incorrect for a common production scenario. This also conflicts with the repo’s own SDK hint mapping (mcp/src/tools/app-auth.ts) where phone OTP login is auth.signInWithOtp({ phone }), so readers following this section can implement a non-working login flow for existing users.

Useful? React with 👍 / 👎.

binggg added 2 commits April 30, 2026 11:34
signUp is registration-only and fails for existing users.
signInWithOtp with shouldCreateUser (default true) correctly
handles both new and existing users.
- Fix source SKILL.md: restore signInWithOtp for phone OTP login
  (signUp is registration-only, fails for existing users)
- Regenerate doc/prompts/auth-web.mdx from corrected source
@binggg binggg merged commit 66e102f into main Apr 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant