Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

relational-database-mcp-cloudbaserelational 数据库 MCP cloudbase

Agent Skill

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

总安装

364

周安装

15

GitHub Stars

公开资料未说明

下载量

119
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add microck/ordinary-claude-skills --skill "relational-database-mcp-cloudbase"

简介

用于辅助数据库表结构、查询语句、迁移脚本和数据维护任务。

  • 适合分析 schema、编写 SQL、排查查询问题或生成迁移建议。
  • 使用时需明确数据库类型、连接环境和目标表,区分只读与写入操作。
  • 涉及删除、更新或批量导入时应优先 dry-run 或备份,避免误操作。
  • 安装前建议确认权限范围和敏感数据脱敏要求。

SKILL.md

name
relational-database-mcp-cloudbase
description
This is the required documentation for agents operating on the CloudBase Relational Database. It lists the only four supported tools for running SQL and managing security rules. Read the full content to understand why you must NOT use standard Application SDKs and how to safely execute INSERT, UPDATE, or DELETE operations without corrupting production data.
alwaysApply
false

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 data in tables
  • Modifying data or schema (INSERT/UPDATE/DELETE/DDL)
  • Reading or changing table security rules

Do NOT use this skill for:

  • Building Web or Node.js applications that talk to CloudBase Relational Database (use the Web/Node Relational Database skills)
  • Auth flows or user identity (use the Auth skills)

How to use this skill (for a coding agent)

  1. Recognize MCP context

- If you can call tools like executeReadOnlySQL, executeWriteSQL, readSecurityRule, writeSecurityRule, 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

- Reads → executeReadOnlySQL - Writes/DDL → executeWriteSQL - Inspect rules → readSecurityRule - Change rules → writeSecurityRule

  1. Always be explicit about safety

- Before destructive operations (DELETE, DROP, etc.), summarize what you are about to run and why. - Prefer running read-only SELECTs first to verify assumptions.


Available MCP tools (CloudBase Relational Database)

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

1. executeReadOnlySQL

  • Purpose: Run SELECT queries (read-only).
  • Use for:

- Listing rows, aggregations, joins. - Inspecting data before changing it.

Example call (conceptual):

SELECT id, email FROM users WHERE active = true ORDER BY created_at DESC LIMIT 50;

Call this through the MCP tool instead of embedding SQL in code.

2. executeWriteSQL

  • Purpose: Run write or DDL statements:

- INSERT, UPDATE, DELETE - CREATE TABLE, ALTER TABLE, DROP TABLE

  • Use for:

- Data migrations - Fixing or seeding data - Schema changes

Before calling this tool, confirm:

  • The target tables and conditions are correct.
  • You have run a corresponding SELECT via executeReadOnlySQL when appropriate.

3. readSecurityRule

  • Purpose: Read security rules for a given table.
  • Use for:

- Understanding who can read/write a table. - Auditing permissions on sensitive tables.

Security rule types typically include:

  • READONLY – anyone can read, no one can write
  • PRIVATE – only authenticated users can read/write
  • ADMINWRITE – anyone can read, only admins can write
  • ADMINONLY – only admins can read/write
  • CUSTOM – custom security logic

4. writeSecurityRule

  • Purpose: Set or update security rules for a table.
  • Use for:

- Hardening access to sensitive data - Opening up read access while restricting writes - Applying custom rules when needed

When using this tool:

  • Clearly explain the intent (who should read/write what).
  • Prefer standard rule types (READONLY, PRIVATE, etc.) before CUSTOM.

Scenario 1: Safely inspect data in a table

  1. Use executeReadOnlySQL with a limited SELECT:

- Include a LIMIT clause. - Filter by relevant conditions.

  1. Review the result set and confirm it matches expectations.

This pattern prevents accidental full-table scans and gives you context before any write operations.


Scenario 2: Apply a schema change

  1. Use executeReadOnlySQL to inspect the current schema or data (if needed).
  2. Plan the CREATE TABLE / ALTER TABLE statement.
  3. Run it once via executeWriteSQL.
  4. Optionally, validate by running SELECT again.

Always describe:

  • What schema change you are making.
  • Why it is safe in the current context.

Scenario 3: Tighten security rules on a sensitive table

  1. Call readSecurityRule for the table to see current settings.
  2. Decide on the target rule (e.g., from READONLYPRIVATE).
  3. Explain the change and why it matches the user’s requirements.
  4. Call writeSecurityRule with the new rule.
  5. Optionally, re-read the rule to confirm the update.

Key principle: MCP tools vs SDKs

  • MCP tools are for agent operations and database management:

- Run ad-hoc SQL. - Inspect and change security rules. - 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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

trae

28.41%
按下载量换算34

Antigravity

23.75%
按下载量换算28

windsurf

19.24%
按下载量换算23

Claude Code

13.91%
按下载量换算17

Codex

7.98%
按下载量换算9

Gemini CLI

3.65%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills