/tencentcloudbase:relational-database-mcp-cloudbasefrom tencentcloudbase
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.
Ships in tencentcloudbase. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when an agent needs to operate on CloudBase Relational Database via MCP tools, for example:
Do NOT use this skill for:
Recognize MCP context
executeReadOnlySQL, executeWriteSQL, readSecurityRule, writeSecurityRule, you are in MCP context.Pick the right tool for the job
executeReadOnlySQLexecuteWriteSQLreadSecurityRulewriteSecurityRuleAlways be explicit about safety
These tools are the only supported way to interact with CloudBase Relational Database via MCP:
executeReadOnlySQLSELECT queries (read-only).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.
executeWriteSQLINSERT, UPDATE, DELETECREATE TABLE, ALTER TABLE, DROP TABLEImportant: When creating a new table, you must include the _openid column for per-user access control:
_openid VARCHAR(64) DEFAULT '' NOT NULL
💡 Note about
_openid: When a user is logged in, the_openidfield is automatically populated by the server with the current user's identity. You do NOT need to manually set this field in INSERT operations - the server will fill it automatically based on the authenticated user's session.
Before calling this tool, confirm:
SELECT via executeReadOnlySQL when appropriate.readSecurityRuleSecurity rule types typically include:
READONLY – anyone can read, no one can writePRIVATE – only authenticated users can read/writeADMINWRITE – anyone can read, only admins can writeADMINONLY – only admins can read/writeCUSTOM – custom security logicwriteSecurityRuleWhen using this tool:
READONLY, PRIVATE, etc.) before CUSTOM.executeReadOnlySQL with a limited SELECT:
LIMIT clause.This pattern prevents accidental full-table scans and gives you context before any write operations.
executeReadOnlySQL to inspect the current schema or data (if needed).CREATE TABLE / ALTER TABLE statement.executeWriteSQL.SELECT again.Always describe:
readSecurityRule for the table to see current settings.READONLY → PRIVATE).writeSecurityRule with the new rule.MCP tools are for agent operations and database management:
SDKs are for application code:
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.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ulpi-io/plugin-marketplace --plugin tencentcloudbase24 skills in this plugin
/ai-model-nodejsUse this skill when developing Node.js backend services or CloudBase cloud functions (Express/Koa/NestJS, serverless, backend APIs) that need AI capabilities. Features text generation (generateText), streaming (streamText), AND image generation (generateImage) via @cloudbase/node-sdk ≥3.16.0. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended), DeepSeek (deepseek-v3.2 recommended), and hunyuan-image for images. This is the ONLY SDK that supports image generation. NOT for browser/Web apps (use ai-model-web) or WeChat Mini Program (use ai-model-wechat)./ai-model-webUse this skill when developing browser/Web applications (React/Vue/Angular, static websites, SPAs) that need AI capabilities. Features text generation (generateText) and streaming (streamText) via @cloudbase/js-sdk. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended) and DeepSeek (deepseek-v3.2 recommended). NOT for Node.js backend (use ai-model-nodejs), WeChat Mini Program (use ai-model-wechat), or image generation (Node SDK only)./ai-model-wechatUse this skill when developing WeChat Mini Programs (小程序, 企业微信小程序, wx.cloud-based apps) that need AI capabilities. Features text generation (generateText) and streaming (streamText) with callback support (onText, onEvent, onFinish) via wx.cloud.extend.AI. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended) and DeepSeek (deepseek-v3.2 recommended). API differs from JS/Node SDK - streamText requires data wrapper, generateText returns raw response. NOT for browser/Web apps (use ai-model-web), Node.js backend (use ai-model-nodejs), or image generation (not supported).