Skip to main content
Glama
NingFlos

cloudflare-workspace-mcp

by NingFlos

cloudflare_deploy

Deploy a workspace directory to Cloudflare Pages, setting project, branch, source directory, and build command. Falls back to an existing deploy script when parameters are omitted.

Instructions

部署工作区目录到 Cloudflare Pages(动线上,需用户明确授权后调用)。project/branch/src_dir/build_cmd 均可参数化;不传参数且工作区有部署脚本(CFMCP_DEPLOY_SCRIPT,默认 deploy.sh)时优先执行脚本。需要 wrangler(npm install -g wrangler)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchNo部署分支,默认 main
projectNoPages 项目名(默认 .env 的 CFMCP_PAGES_PROJECT)
src_dirNo部署源目录(相对 /workspace),默认 .env 的 CFMCP_DEPLOY_SRC 或工作区根
build_cmdNo部署前构建命令(可选,如 node build.js)
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries behavioral burden. It discloses the production-impacting nature, the need for explicit authorization, the script execution behavior, and the wrangler dependency. It does not cover rollback or error behavior, but the most critical safety and invocation traits are transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences front-load the purpose and risk, then detail parameterization and dependencies. No redundant filler; every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a deploy tool with four optional parameters and no output schema, the description covers prerequisites, invocation modes, and risk. It lacks explicit return-value expectations but is otherwise complete enough for an agent to use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% coverage with descriptions for all four parameters, so the baseline is 3. The description only restates that parameters are configurable and adds the deploy-script context, which is useful but does not add per-parameter meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb '部署' (deploy) with a clear resource 'Cloudflare Pages' and names all key inputs (project/branch/src_dir/build_cmd). It clearly distinguishes itself from sibling tools like cloudflare_status or d1_query by focusing on deployment.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit context: requires user authorization for production changes, and mentions the script-based fallback and wrangler prerequisite. However, it does not explicitly state when to prefer this over alternatives like execute_command or cloudflare_api, so it stops short of a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NingFlos/cloudflare-workspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server