Skip to main content
Glama

mcp-server-cloudflare

Official
by cloudflare
deploy-published-packages.ts935 B
import { Command } from '@commander-js/extra-typings' import { validateArg } from '@jahands/cli-tools' import z from 'zod' import { getPublishedPackages } from '../changesets' export const deployPublishedWorkersCmd = new Command('deploy-published-workers') .description( 'Deploy Cloudflare Workers (based on which packages changesets marked as published in the release)' ) .requiredOption( '-e, --env <staging|production>', 'The environment to deploy to', validateArg(z.enum(['staging', 'production'])) ) .action(async ({ env }) => { const publishedPackages = await getPublishedPackages() // This technically includes all versioned packages (including non-Workers), // but that's fine because only Workers include a `deploy` package.json script. const filters = publishedPackages.flatMap((p) => ['-F', p.name]) satisfies string[] await $({ verbose: true, })`turbo deploy ${filters} -- --env ${env}` })

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/cloudflare/mcp-server-cloudflare'

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