Tencent CloudBase backend for DeepSeek Harness — scaffold and deploy full-stack apps from chat, render query results as table cards with paging, sorting and CSV export, preview a deployment on its domain, and call the CloudBase MCP toolset (`mcp__cloudbase__*`) with device-code login.
Install
# from npm (prebuilt)
dsh plugin --profile web add @cloudbase/dsh-plugin
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:TencentCloudBase/CloudBase-AI-Toolkit#path:/dsh-plugin
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
在 DeepSeek Harness 里,从一句话到可用的全栈应用。
你在 DSH 里 vibecoding 时,最烦的事是什么?模型很聪明,但写完代码没地方跑——数据库要开控制台建、文件要自己传、部署要切去另一个网站。一离开对话,心流就断了。
@cloudbase/dsh-plugin把 CloudBase 后端搬进 DSH:
- 数据库:文档库和 PostgreSQL,对话里建表和查询
- 存储与认证:上传文件,配置登录
- 前后端部署:前端托管和后端部署,拿到可访问地址
你的模型(DeepSeek / Claude / 随便换)、你的后端(自己的 CloudBase 环境)、你的数据(本地会话 + 自己数据库)。
CloudBase backend for DeepSeek Harness. Compatible with DSH >=0.1.0-rc.6 <0.3.0 (verified on 0.2.0-rc.2) · Node >=18 · MCP tools follow @cloudbase/cloudbase-mcp@latest.
安装
Web UI(含工具卡片):
curl -fsSL https://raw.githubusercontent.com/TencentCloudBase/CloudBase-AI-Toolkit/main/dsh-plugin/scripts/install.sh | bash
或手动:
dsh plugin --profile web add @cloudbase/dsh-plugin
# pnpm ≥9 默认禁止依赖 install 脚本(protobufjs 会失败)
echo "enable-scripts=true" >> ~/.dsh/profiles/web/.npmrc
(cd ~/.dsh/profiles/web && pnpm install)
# UI 插件需要重建 DSH web 前端
pnpm --dir "$(dirname "$(dirname "$(command -v dsh)")")" run build:web || true
dsh --profile web
Headless(只要 MCP 工具,不要前端构建):
dsh plugin --profile headless add @cloudbase/dsh-plugin
dsh --profile headless "列出所有 mcp__cloudbase__ 工具"
登录(device-code,无需 API Key)
插件不传任何 CloudBase env、不传 API Key,登录走 cloudbase-mcp 自身的 device-code 流程(本机已有 tcb login 登录态时直接复用)。无登录态时,对模型说:
调用
mcp__cloudbase__auth,action=start_auth,authMode=device,把 verification URL 给我。
浏览器授权一次后登录态持久化。再用 mcp__cloudbase__auth(action=set_env)选择环境,后续工具自动使用该环境。
功能
| 能力 | 说明 |
|---|---|
| MCP 桥 | 注册 mcp__cloudbase__*(与 @cloudbase/cloudbase-mcp 工具集一致,当前 38 个) |
| DataTableCard | queryPgDatabase / queryMysqlDatabase / readNoSqlDatabaseContent 结果表格:分页、排序、复制 JSON、导出 CSV |
| DeployPreviewCard | manageHosting upload 后 iframe 预览真实域名 + 打开按钮 |
| 交付物行 | 会话尾部展示产物路径 + 域名 |
| Sites skill | downloadTemplate(react) → Vite → 建表 → manageHosting → 域名 |
写操作(SQL / 上传 / 删行)一律注入会话,由模型按 DSH approval 执行,插件 UI 不绕过权限模型。
注意事项
- pnpm v9+ 默认禁止依赖 install 脚本:必须
enable-scripts=true后再pnpm install(一键脚本已包含此步)。 - Web UI 插件要重建 DSH web 前端:装完看不到卡片时,从 DSH 安装目录执行
pnpm run build:web再重启;Headless 不需要。 - 首次 npx 拉包可能 10–90s:headless 首轮工具列表可能为空,重试即可。
- 不要给插件配置
CLOUDBASE_API_KEY:无效 Key 会挡住 device-code 登录。登录与环境选择全部走mcp__cloudbase__auth。 - 技能由插件注册,不拷进
~/.dsh/skills。环境用auth的set_env绑定,用action=status查看。插件不会按会话自动改环境。
隐私
凭据只存本机(tcb 登录态或 ~/.dsh/.credentials.yaml,权限 600),插件不上传密钥,读操作只访问你自己的 CloudBase 环境。
开发
cd dsh-plugin
npm install
npm test # vitest 单测
npm run build # dist/index.js(Host)+ dist/client.js(Web ModuleLoader factory)
npm run e2e:live # 需要网络 + 本机 tcb 登录态
除 peer(cordis / react)外运行时 0 依赖。
License
MIT
English
CloudBase backend for DeepSeek Harness. Database, storage, authentication, and frontend/backend deployment from chat, through the CloudBase MCP tools.
Install
Web UI:
curl -fsSL https://raw.githubusercontent.com/TencentCloudBase/CloudBase-AI-Toolkit/main/dsh-plugin/scripts/install.sh | bash
Headless (MCP bridge only, no frontend rebuild):
dsh plugin --profile headless add @cloudbase/dsh-plugin
Login
No env and no API key are forwarded — login goes through cloudbase-mcp's device-code flow (reuses local tcb login state). If unsigned, ask the model to call mcp__cloudbase__auth with action=start_auth, authMode=device, then pick an environment with action=set_env.
Notes
- pnpm v9+ blocks dependency install scripts — set
enable-scripts=truefirst (the one-shot script handles this). - Web UI plugins require rebuilding the DSH frontend:
pnpm run build:webin the DSH install dir. Headless does not. - First
npxfetch can take 10–90s; retry the headless turn if tools are missing. - Never configure
CLOUDBASE_API_KEY— an invalid key blocks device-code login. - The CloudBase skill is registered by the plugin and is not copied into
~/.dsh/skills. Bind an environment withauthset_env, and inspect it withaction=status. The plugin does not rebind the environment when the chat session changes.
Privacy
Credentials stay local (tcb login state or ~/.dsh/.credentials.yaml, mode 600). The plugin does not upload secrets.
License
MIT
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 35940
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
superdesigndev/treg★ 6483
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 4787
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
sixtysevenlf/dsh-blender-plugin★ 1461
Lets a DSH agent drive a local Blender over a direct TCP channel with 15 tools: viewport frames, custom-angle renders, Python execution, headless and job offload, transaction rollback, and a planning layer of 228 ops across 34 families.
anysearch-team/anysearch-dsh★ 669
AnySearch-powered real-time web and vertical search provider for DeepSeek Harness.
gitroomhq/postiz-agent#dsh-postiz★ 558
Connects DeepSeek Harness to Postiz over MCP: list connected social media channels, fetch per-platform posting rules, and schedule, draft, or publish posts to X, LinkedIn, Instagram, Facebook, Threads, TikTok, YouTube, Reddit, Bluesky, Mastodon, Discord, Slack, Telegram and more; adds a postiz workflow skill.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.