mirror of
https://github.com/hanzoai/mcp-server-cloudflare.git
synced 2026-10-30 18:28:06 +00:00
Created comprehensive MCP server for managing Cloudflare Tunnels with the following tools: - tunnels_list: List all tunnels in account - tunnel_create: Create new tunnels with optional pre-generated secrets - tunnel_get: Get detailed tunnel information - tunnel_config_get: Retrieve tunnel configuration - tunnel_config_update: Update ingress rules and WARP routing - tunnel_delete: Delete tunnels - tunnel_token_get: Get installation tokens for connectors - tunnel_connections_list: List active tunnel connections This enables easy management of Cloudflare Zero Trust infrastructure via MCP, allowing automated configuration of tunnels for the many hosts in the Hanzo ecosystem. Co-authored-by: Hanzo Dev <[email protected]>
25 lines
578 B
TypeScript
25 lines
578 B
TypeScript
import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config'
|
|
|
|
import type { Env } from './src/bindings.context'
|
|
|
|
export interface TestEnv extends Env {
|
|
CLOUDFLARE_MOCK_ACCOUNT_ID: string
|
|
CLOUDFLARE_MOCK_API_TOKEN: string
|
|
}
|
|
|
|
export default defineWorkersConfig({
|
|
test: {
|
|
poolOptions: {
|
|
workers: {
|
|
wrangler: { configPath: `${__dirname}/wrangler.jsonc` },
|
|
miniflare: {
|
|
bindings: {
|
|
CLOUDFLARE_MOCK_ACCOUNT_ID: 'mock-account-id',
|
|
CLOUDFLARE_MOCK_API_TOKEN: 'mock-api-token',
|
|
} satisfies Partial<TestEnv>,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|