relational-database-mcp-cloudbase
БесплатноБез исполняемых скриптовНе проверенThis is the required documentation for agents operating on the CloudBase Relational Database through MCP. It defines the canonical SQL management flow with…
от bighardperson★ 71 звезда на GitHubОб этом скилле
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,readSecurityRule, orwriteSecurityRule.
Then also read
- Web application integration ->
../relational-database-web/SKILL.md - Raw HTTP database access ->
../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
_openidand security-rule 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 security rules
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)
Recognize MCP context
- If you can call tools like
querySqlDatabase,manageSqlDatabase,readSecurityRule,writeSecurityRule, you are in MCP context. - In this context, never initialize SDKs for CloudBase Relational Database; use MCP tools instead.
- If you can call tools like
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 rules ->
readSecurityRule - Change rules ->
writeSecurityRule
- Read-only SQL and provisioning status checks ->
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
SELECTand other read-only SQL queries withaction="runQuery" - Checking whether MySQL already exists with
action="getInstanceInfo" - Inspecting asynchronous provisioning progress with
action="describeCreateResult"oraction="describeTaskStatus"
- Running
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 TABLEwithaction="runStatement" - Initializing tables and indexes with
action="initializeSchema"
- Provisioning MySQL with
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
describeTaskStatusafterward to inspect the destroy result.
3. readSecurityRule
- Purpose: Read security rules for a given SQL table.
- Use for:
- Understanding who can read/write a table
- Auditing permissions on sensitive tables
4. writeSecurityRule
- Purpose: Set or update security rules for a given SQL table.
- Use for:
- Hardening access to sensitive data
- Opening up read access while restricting writes
- Applying custom rules when needed
Recommended lifecycle flow
Scenario 1: MySQL is not provisione
Установить relational-database-mcp-cloudbase в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл relational-database-mcp-cloudbase?
This is the required documentation for agents operating on the CloudBase Relational Database through MCP. It defines the canonical SQL management flow with `querySqlDatabase`, `manageSqlDatabase`, `readSecurityRule`, and `writeSecurityRule`, including MySQL provisioning, destroy flow, async status checks, safe query execution, schema initialization, and security rule updates.
Как установить скилл relational-database-mcp-cloudbase?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл relational-database-mcp-cloudbase запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic