relational-database-mcp-cloudbase

Manages CloudBase Relational Database via MCP tools for SQL queries, MySQL provisioning, and permissions.

Updated May 14, 2026
One-click install
npx skills add https://github.com/study-yang/Vieb-Coding-- --skill relational-database-mcp-cloudbase-study-yang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: relational-database-mcp-cloudbase
Source: https://github.com/study-yang/Vieb-Coding--/tree/main/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F-%E5%BF%AB%E8%AE%B0/.codebuddy/skills/relational-database-tool
Command: npx skills add https://github.com/study-yang/Vieb-Coding-- --skill relational-database-mcp-cloudbase-study-yang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Agents working with CloudBase Relational Database need a canonical, safe workflow for running SQL, provisioning or destroying MySQL instances, and managing table permissions through MCP tools instead of SDKs. ## Core Features & Use Cases - SQL Query and Mutation: Run read-only queries with querySqlDatabase and execute INSERT, UPDATE, DELETE, or DDL statements with manageSqlDatabase. - MySQL Lifecycle Management: Provision or destroy MySQL instances and poll asynchronous status via describeCreateResult and describeTaskStatus. - Permission Management: Inspect and update table-level security rules with queryPermissions and managePermissions, including the required _openid column for per-user access control. - Use Case: An agent provisions MySQL for a new environment, waits until the instance is READY, initializes tables with the _openid column, then sets READONLY permissions on sensitive tables. ## Quick Start Ask the agent to check whether MySQL is provisioned in the current CloudBase environment and run a SELECT query on a specified table using the MCP database tools.

Frequently Asked Questions about relational-database-mcp-cloudbase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query CloudBase Relational Database with MCP tools?

Use querySqlDatabase with action="runQuery" and a read-only SELECT statement, including LIMIT and filters. For writes or DDL, use manageSqlDatabase with action="runStatement" after confirming the MySQL instance is ready.

How do I provision MySQL in CloudBase via MCP?

Call manageSqlDatabase with action="provisionMySQL" and confirm=true, then poll querySqlDatabase with action="describeCreateResult" until the lifecycle status is READY before running any SQL.

When should I use MCP tools instead of the CloudBase SDK?

Use MCP tools for agent-driven database management such as provisioning, ad-hoc SQL, and permission changes. Use SDKs only inside application code, such as Web or Node.js apps, and never mix SDK initialization into an MCP flow.

Why is the _openid column required when creating tables?

CloudBase uses _openid for per-user access control on SQL tables. New tables must include _openid VARCHAR(64) DEFAULT '' NOT NULL, and the server populates it automatically from the authenticated session during inserts.

How do I update table permissions in CloudBase Relational Database?

Call managePermissions with action="updateResourcePermission", resourceType="sqlDatabase", the table name as resourceId, and a permission such as READONLY. Use queryPermissions with action="getResourcePermission" to audit current rules first.

What happens when I destroy a MySQL instance in CloudBase?

manageSqlDatabase with action="destroyMySQL" removes the environment's SQL instance after explicit confirmation. Poll querySqlDatabase with action="describeTaskStatus" until the destroy task completes, then verify with getInstanceInfo.