ai-model-nodejs
Use this skill for Node.js backend AI via @cloudbase/node-sdk (>=3.16.0) — cloud functions,…
CloudBase MCP reference. Use when connecting local or remote MCP, calling tools from the shell with mcporter, reading tool schemas, choosing the domestic or international endpoint, setting site, region, cloud mode, or plugin flags, or contributing a fix to the open-source MCP
$ npx -y skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-mcp --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cloudbase-mcpContext preview
The summary Claude sees to decide when to auto-load this skill.
CloudBase MCP reference. Use when connecting local or remote MCP, calling tools from the shell with mcporter, reading tool schemas, choosing the domestic or international endpoint, setting site, region, cloud mode, or plugin flags, or contributing a fix to the open-source MCP
name: cloudbase-mcp description: CloudBase MCP reference. Use when connecting local or remote MCP, calling tools from the shell with mcporter, reading tool schemas, choosing the domestic or international endpoint, setting site, region, cloud mode, or plugin flags, or contributing a fix to the open-source MCP server, skills, or CLI. version: 2.35.1 license: MIT alwaysApply: false
Open source:
The server source is `mcp/` in that repo. The package name is `@cloudbase/cloudbase-mcp`.
Sibling CloudBase skills ship beside this skill. Use local relative paths such as `../cloudbase-cli/SKILL.md`.
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do **not** HTTP-fetch remote skill or protocol markdown into the agent context.
| Mode | Address | |------|---------| | Remote, domestic | `https://tcb-api.cloud.tencent.com/mcp/v1` | | Remote, international | `https://tcb-api.tencentcloud.com/mcp/v1` | | Local | `npx @cloudbase/cloudbase-mcp@latest` (Node.js 18.15+) |
The hostname decides the site. Remote URLs do not take a `site` query parameter.
Remote mode cannot upload local files or download templates. The international site does not expose NoSQL tools.
When this session has no native MCP tools, use mcporter. The command list and the auth examples live in `../cloudbase/references/mcp-setup.md`. Read that file before login, environment binding, or `manageEnv`.
Check whether the server is configured:
npx mcporter list | grep cloudbase
If it is missing, add a stdio server named `cloudbase` in `config/mcporter.json`:
{
"mcpServers": {
"cloudbase": {
"command": "npx",
"args": ["@cloudbase/cloudbase-mcp@latest"],
"description": "CloudBase MCP",
"lifecycle": "keep-alive"
}
}
}Read the schema before the first call. `describe` without `--all-parameters` omits parameters.
npx mcporter describe cloudbase --all-parameters npx mcporter list cloudbase --schema
Call a tool with `server.tool` and `key=value` arguments:
npx mcporter call cloudbase.queryEnv action=list --output json
Do not put a Secret ID, Secret Key, or environment ID into `mcporter.json`. Login stays on `cloudbase.auth` or `tcb login`, as written in `mcp-setup.md`.
| Name | Effect | |------|--------| | `TCB_SITE` | `domestic` or `intl`. `ap-singapore` exists on both sites; a domestic Singapore environment must set `TCB_SITE=domestic`. | | `TCB_REGION` | API region, such as `ap-shanghai` or `ap-singapore`. | | `CLOUDBASE_MCP_CLOUD_MODE` or `MCP_CLOUD_MODE` | `true` disables local file and process tools for a self-hosted caller. | | `CLOUDBASE_MCP_PLUGINS_ENABLED` / `CLOUDBASE_MCP_PLUGINS_DISABLED` | Comma-separated plugin names for a local server. | | `enable_plugins` / `disable_plugins` | The same switch on a remote URL, comma-separated. |
Plugin names are the ones in `mcp/src/server.ts` (`env`, `database`, `functions`, `hosting`, `storage`, and the rest). A local server and a hosted remote server enable the same default set; turn one off for a given caller with `disable_plugins` on the remote URL or `CLOUDBASE_MCP_PLUGINS_DISABLED` on a local server.
Read `CONTRIBUTING.md` at the repo root. Fork, use a feature branch, and follow the commit types listed there (`feat`, `fix`, `docs`, and the rest). Install with corepack and `pnpm install`.
AI writes the code. CloudBase runs the backend. The CloudBase integration layer for AI coding tools: Plugin installs the stack, Skills steer how code is written, MCP operates databases, functions, storage, and deploys from chat.
Repo: TencentCloudBase/CloudBase-AI-Toolkit
Use this skill for Node.js backend AI via @cloudbase/node-sdk (>=3.16.0) — cloud functions,…
Use this skill when a browser/Web app (React, Vue, Next, Nuxt, static sites, SPAs,…
Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI (小程序, wx.cloud apps). Covers…
CloudBase Node SDK auth guide for server-side identity, user lookup, and custom login…
CloudBase auth provider configuration and login-readiness guide. This skill should be used…
CloudBase Web Authentication Quick Guide for frontend integration after auth-tool has already…