接入你的智能体
發布者自己的指令。不是 PlugMCP 端點。
用我們的金鑰與日誌託管一份副本。
npx -y @wenaixi/[email protected]Claude Code 沒有本機指令的安裝連結。複製下方指令並在終端機中執行。
claude mcp add wenaixi-cfbridge -- npx -y @wenaixi/cfbridge@0.13.2在終端機中執行。
{ "mcpServers": { "wenaixi-cfbridge": { "command": "npx", "args": [ "-y", "@wenaixi/[email protected]" ] } }}claude_desktop_config.json
遠端 URL 還是本機指令? 兩種安裝方式的差異
A DeepSeek Harness (DSH) global bundle bridging Cloudflare's official Code Mode MCP (docs / search / execute) and 14 on-demand agent skills into all sessions. Mounting it to the web profile enables Cloudflare MCP tools across all conversations, paired with local project Wrangler CLI passthrough. Built with TypeScript, published as lib/cfbridge.js, distributed natively via dsh.bundle.
Prerequisites: A runnable DSH installation (dsh --profile web); Node and pnpm engines listed in the badges above; a Cloudflare API token — recommended: Account token (cfat_ with Account Resources: Read) or Zone token (cfut_ for DNS operations).
Add your token to your private environment file (git-ignored, never commit real credentials):
# %USERPROFILE%\.dsh\.env
CLOUDFLARE_API_TOKEN=your_token_here
Choose one of the installation methods below:
# Method A - npm (Recommended)
dsh plugin --profile web add @wenaixi/cfbridge
# Method B - GitHub direct install
dsh plugin --profile web add github:Wenaixi/dsh-cfbridge
# Method C - Local clone & build
git clone https://github.com/Wenaixi/dsh-cfbridge.git; cd dsh-cfbridge
npm install
npm run install:bundle # Installs to web profile by default; use -- --profile <name> for others
Pin a version by appending @<version> or #v<version> (check npm view @wenaixi/cfbridge version).
Restart DSH (dsh --profile web). New sessions automatically acquire mcp__cloudflare__docs/search/execute tools and the cfbridge skill.
Verify configuration with:
dsh --profile web --dump-config | Select-String "cfbridge"
DSH Bundle (Globally mounted, on-demand activation)
└─ Installed to web profile (default), auto-mounted across all sessions
├─ mcp__cloudflare__docs ← Semantic documentation search
├─ mcp__cloudflare__search ← OpenAPI endpoint & schema lookup
├─ mcp__cloudflare__execute ← Execution in official isolated sandbox
├─ cfbridge SkillProvider ← 14 skills discovered on demand
├─ cfbridge Skill ← Thin bridge: search-then-execute & approval rules
├─ 13 vendored Skills ← Official Cloudflare skills available offline
└─ npm run wrangler ... ← Pinned project Wrangler CLI passthrough
list(), only skill index metadata (name/description/whenToUse, ~120–180 tokens/skill, ~1.7–2.5k tokens total) is indexed. Full skill bodies are loaded strictly on demand during get() (e.g., wrangler ~4.5k tokens), eliminating context window waste.rank. This bundle defaults to rank: 0, having absolute first-priority precedence over project (100/200), custom (300), user (400/500), and system (600) layers.loadMode)cfbridge supports two operating modes, togglable via the plugin settings UI or config:
In DSH Web UI → Plugins → Cloudflare Bridge → Configure, enjoy a native, polished management console:
docs / search / execute);Core, Platform, CLI, AI / Agents, Storage, Zero Trust, etc.) and human-readable summaries;Standalone installation outside DSH is also supported:
# Claude Code
/plugin marketplace add cloudflare/skills -> /plugin install cloudflare@cloudflare
# Cursor
Settings -> Rules -> Add Rule -> Remote Rule (Github) -> cloudflare/skills
# Any Agent with skills CLI
npx skills add https://github.com/cloudflare/skills
Open DSH -> Plugins -> Cloudflare Bridge card -> Configure:
PanelController):
PanelController)._busy) physically eliminates React asynchronous microtask race conditions, preventing revision optimism lock conflicts caused by rapid double-clicks.form.mutate submission (only mutating disabledSkills) with zero legacy baggage.Config Schema)cfbridge exports a standard Schemastery Schema, customizable in your profile's cordis.patch.yml:
Example configuration overlay:
- insert:
- id: cfbridge
name: '@wenaixi/cfbridge'
config:
loadMode: preset
rank: 0
cache: true
watchSkills: false
modelHiddenSkills:
- wrangler
cfbridge features an integrated self-healing engine to recover corrupted or malformed configuration files:
.bak.<timestamp> backup before modifying files on disk.!!js token templates.node scripts/repair-config.js # Diagnose & heal root cordis.patch.yml
node scripts/repair-config.js --file <path> # Heal specified config file
node scripts/repair-config.js --profile web # Heal web profile configuration
node scripts/repair-config.js --dry-run # Dry-run inspection without modifying files
Always adhere to the "search before execute" principle:
// 1. Search: Look up Worker script endpoints from OpenAPI schema
async () => Object.entries(spec.paths)
.filter(([path, item]) => path.includes('workers/scripts') && item.get)
.slice(0, 10)
.map(([path, item]) => ({ path, params: Object.keys(item.get.parameters || {}) }))
// 2. Execute: Perform real API call after confirmation
async () => cloudflare.request({
method: 'GET',
path: `/accounts/${accountId}/workers/scripts`,
})
Run the comprehensive validation suite:
npm test # Canonical quality gate (15/15 passed): build, typechecks, provider, healer, panel, controller headless tests & security checks
npm run check # Security audit & repository checks (85/85 passed)
npm run validate:bundle -- --strict-router # Bundle structure & metadata validation (98/98 passed)
npm run test:wrangler # Wrangler CLI read-only contract verification (4/4 passed)
npm run dump:config # Inspect active profile composition layer
# Enable
dsh plugin --profile web add @wenaixi/cfbridge
# Disable / Uninstall
dsh plugin --profile web remove @wenaixi/cfbridge
# or: npm run uninstall:bundle -- --profile web
MIT License. See LICENSE for details.
Cloudflare Code Mode MCP 全局 Bundle,安装后所有 DSH 会话自动获得 docs/search/execute 三工具与 cfbridge Skill,配合项目本地 Wrangler CLI 透传。
{ "mcpServers": { "wenaixi-cfbridge": { "command": "npx", "args": [ "-y", "@wenaixi/[email protected]" ] } }}工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
這筆記錄未列出必要的環境變數。
@wenaixi/cfbridge 透過 stdio 在本機執行。
上次檢查時間:2026-11-10。 Cloudflare Code Mode MCP 全局 Bundle,安装后所有 DSH 会话自动获得 docs/search/execute 三工具与 cfbridge Skill,配合项目本地 Wrangler CLI 透传。