Token导航 LogoToken导航

Agent Skill · 前端设计

relational-database-mcp-cloudbase(relational 数据库 MCP cloudbase)

用于辅助数据库表结构、查询语句、迁移脚本和数据维护任务。它适合让 Agent 分析 schema、编写 SQL、排查查询问题、整理索引或生成迁移建议。使用时需要明确数据库类型、连接环境和目标表,区分只读分析与写入变更;涉及删除、更新、迁移和批量导入时,应优先 dry-run、备份或事务保护,避免误操作。

relational-database-mcp-cloudbase 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 592。

总安装 17,112周安装 699GitHub Stars 51下载 5,480核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:relational-database-mcp-cloudbase(relational 数据库 MCP cloudbase)
来源仓库:https://github.com/tencentcloudbase/skills
仓库路径:skills/relational-database-mcp-cloudbase
安装命令:
npx skills add https://github.com/tencentcloudbase/skills --skill relational-database-mcp-cloudbase
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/tencentcloudbase/skills --skill relational-database-mcp-cloudbase

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

四个 MCP 工具,用于在 CloudBase 关系数据库上安全执行 SQL 和安全规则管理。

四个工具涵盖所有代理操作:executeReadOnlySQL 对于 SELECT 查询,执行WriteSQL 对于插入/更新/删除/DDL,readSecurityRule 检查权限,并写入SecurityRule 更新访问控制 仅在代理上下文中使用 MCP 工具;当这些工具可用时,不要初始化 CloudBase SDK 在进行破坏性操作之前,始终先运行只读 SELECT 来验证假设;包含 LIMIT 子句以防止全表扫描 新表必须包含 _openid VARCHAR(64) DEFAULT '' NOT NULL 每用户访问控制列;服务器自动为经过身份验证的用户填充此字段

来源仓库内路径:skills/relational-database-mcp-cloudbase

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/tencentcloudbase/skills --skill relational-dat…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

relational-database-mcp-cloudbase 怎么安装?

在终端执行 npx skills add https://github.com/tencentcloudbase/skills --skill relational-database-mcp-…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

relational-database-mcp-cloudbase 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

relational-database-mcp-cloudbase 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/tencentcloudbase/skills --skill relational-database-mcp-cloudbase;npx skills add tencentcloudbase/skills --skill "relational-database-mcp-cloudbase" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

relational-database-mcp-cloudbase 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

relational-database-mcp-cloudbase 用的人多吗?

公开数据是累计安装 17,112 次,近一周安装 699 次,下载 5,480 次,GitHub 51 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

relational-database-mcp-cloudbase 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
relational-database-mcp-cloudbase

relational 数据库 MCP cloudbase · 本页

17,11251执行命令MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Standalone Install Note

If this environment only installed the current skill, start from the CloudBase main entry and use the published cloudbase/references/... paths for sibling skills.

  • CloudBase main entry: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.md
  • Current skill raw source: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/relational-database-tool/SKILL.md

Keep local references/... paths for files that ship with the current skill directory. When this file points to a sibling skill such as auth-tool or web-development, use the standalone fallback URL shown next to that reference.

Activation Contract

Use this first when

  • The agent must inspect SQL data, execute SQL statements, provision or destroy MySQL, initialize table structure, or manage table security rules through MCP tools.

Read before writing code if

  • The task includes querySqlDatabase, manageSqlDatabase, queryPermissions, or managePermissions.

Then also read

  • Web application integration -> ../relational-database-web/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/relational-database-web/SKILL.md)
  • Raw HTTP database access -> ../http-api/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/http-api/SKILL.md)

Do NOT use for

  • Frontend or backend application code that should use SDKs instead of MCP operations.

Common mistakes / gotchas

  • Initializing SDKs in an MCP management flow.
  • Running write SQL or DDL before checking whether MySQL is provisioned and ready.
  • Treating document database tasks as MySQL management tasks.
  • Skipping _openid and permissions review after creating new SQL tables.
  • Destroying MySQL without explicit confirmation or without checking whether the environment still needs the instance.

When to use this skill

Use this skill when an agent needs to operate on CloudBase Relational Database via MCP tools, for example:

  • Inspecting or querying SQL data
  • Provisioning MySQL for an environment
  • Destroying MySQL for an environment
  • Polling MySQL provisioning status
  • Modifying data or schema (INSERT/UPDATE/DELETE/DDL)
  • Initializing tables and indexes after MySQL is ready
  • Reading or changing table permissions

Do NOT use this skill for:

  • Building Web or Node.js applications that talk to CloudBase Relational Database directly through SDKs
  • Auth flows or user identity management

How to use this skill (for a coding agent)

  1. Recognize MCP context

- If you can call tools like querySqlDatabase, manageSqlDatabase, queryPermissions, managePermissions, you are in MCP context. - In this context, never initialize SDKs for CloudBase Relational Database; use MCP tools instead.

  1. Pick the right tool for the job

- Read-only SQL and provisioning status checks -> querySqlDatabase - MySQL provisioning, MySQL destruction, write SQL, DDL, schema initialization -> manageSqlDatabase - Inspect permissions -> queryPermissions(action="getResourcePermission") - Change permissions -> managePermissions(action="updateResourcePermission")

  1. Always be explicit about safety

- Before destructive operations (DELETE, DROP, etc.), summarize what you are about to run and why. - Prefer querySqlDatabase(action="getInstanceInfo") or a read-only SQL check before writes. - Provisioning or destroying MySQL requires explicit confirmation because both actions have environment-level impact.


Available MCP tools (CloudBase Relational Database)

These tools are the supported way to interact with CloudBase Relational Database via MCP:

1. querySqlDatabase

  • Purpose: Query SQL data and provisioning state.
  • Use for:

- Running SELECT and other read-only SQL queries with action="runQuery" - Checking whether MySQL already exists with action="getInstanceInfo" - Inspecting asynchronous provisioning progress with action="describeCreateResult" or action="describeTaskStatus"

Example flow:

{
  "action": "runQuery",
  "sql": "SELECT id, email FROM users ORDER BY created_at DESC LIMIT 50"
}

2. manageSqlDatabase

  • Purpose: Manage SQL lifecycle and execute mutating SQL.
  • Use for:

- Provisioning MySQL with action="provisionMySQL" - Destroying MySQL with action="destroyMySQL" - Executing INSERT, UPDATE, DELETE, CREATE TABLE, ALTER TABLE, DROP TABLE with action="runStatement" - Initializing tables and indexes with action="initializeSchema"

Important: When creating a new table, you must include the _openid column for per-user access control:

_openid VARCHAR(64) DEFAULT '' NOT NULL

Note: when a user is logged in, _openid is automatically populated by the server from the authenticated session. Do not manually fill it in normal inserts.

Before calling this tool, confirm:

  • The current environment has a ready MySQL instance, or you have just provisioned one.
  • The target tables and conditions are correct.
  • You have run a corresponding read-only query when appropriate.

When destroying MySQL, confirm:

  • The current environment really should lose the SQL instance.
  • You have explicit confirmation for the destructive action.
  • You are prepared to query describeTaskStatus afterward to inspect the destroy result.

3. queryPermissions

  • Purpose: Read permission configuration for a given SQL table.
  • Use for:

- Understanding who can read/write a table - Auditing permissions on sensitive tables - Call shape: queryPermissions(action="getResourcePermission", resourceType="sqlDatabase", resourceId="<tableName>")

4. managePermissions

  • Purpose: Set or update permissions for a given SQL table.
  • Use for:

- Hardening access to sensitive data - Opening up read access while restricting writes - Updating resource-level permission configuration - Call shape: managePermissions(action="updateResourcePermission", resourceType="sqlDatabase", resourceId="<tableName>", permission="READONLY")

Compatibility

  • Canonical plugin name: permissions
  • Legacy plugin aliases security-rule, security-rules, secret-rule, secret-rules, and access-control are still routed to permissions
  • Legacy tools readSecurityRule and writeSecurityRule are removed; always use queryPermissions and managePermissions

Recommended lifecycle flow

Scenario 1: MySQL is not provisioned yet

  1. Call querySqlDatabase(action="getInstanceInfo").
  2. If no instance exists, call manageSqlDatabase(action="provisionMySQL", confirm=true).
  3. Poll provisioning status with:

- querySqlDatabase(action="describeCreateResult") - querySqlDatabase(action="describeTaskStatus")

  1. Only continue when the returned lifecycle status is READY.
  2. For MySQL provisioning, prefer describeCreateResult; reserve describeTaskStatus for destroy flows whose task response carries TaskName.

Scenario 2: Safely inspect data in a table

  1. Use querySqlDatabase(action="runQuery") with a limited SELECT.
  2. Include LIMIT and relevant filters.
  3. Review the result set and confirm it matches expectations before any write operation.

Scenario 3: Apply schema initialization after provisioning

  1. Confirm MySQL is ready.
  2. Prepare ordered DDL statements.
  3. Run them through manageSqlDatabase(action="initializeSchema").
  4. After creating tables, verify permissions with queryPermissions or managePermissions.

Scenario 4: Execute a targeted write or DDL change

  1. Use querySqlDatabase(action="runQuery") to inspect current data or schema if needed.
  2. Run the mutation once with manageSqlDatabase(action="runStatement").
  3. Validate with another read-only query or by checking security rules.

Scenario 5: Destroy MySQL when the environment no longer needs it

  1. Use querySqlDatabase(action="getInstanceInfo") to confirm the current environment still has a SQL instance.
  2. Call manageSqlDatabase(action="destroyMySQL", confirm=true).
  3. Query querySqlDatabase(action="describeTaskStatus") until the destroy task completes or fails.
  4. If the task succeeds, optionally call querySqlDatabase(action="getInstanceInfo") to confirm the instance no longer exists.
  5. If the task fails, treat the returned error as the terminal result and let the caller decide whether to retry.

Key principle: MCP tools vs SDKs

  • MCP tools are for agent operations and database management:

- Provision MySQL. - Destroy MySQL. - Poll lifecycle state. - Run ad-hoc SQL. - Inspect and change resource permissions. - Do not depend on application auth state.

  • SDKs are for application code:

- Frontend Web apps -> Web Relational Database skill. - Backend Node apps -> Node Relational Database quickstart.

When working as an MCP agent, always prefer these MCP tools for CloudBase Relational Database, and avoid mixing them with SDK initialization in the same flow.

平台分布

Claude Code

29.99%
按下载量换算1,643

Cursor

21.93%
按下载量换算1,202

Codex

19.05%
按下载量换算1,044

trae

14.05%
按下载量换算770

codebuddy

7.37%
按下载量换算404

trae-cn

3.71%
按下载量换算203

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/tencentcloudbase/skills --skill relational-database-mcp-cloudbase;npx skills add tencentcloudbase/skills --skill "relational-database-mcp-cloudbase" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills