Files
zeekayandHanzo Dev 9d6a72dac0 Add Cloudflare Tunnels MCP Server
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]>
2025-06-26 17:11:06 -04:00

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>,
},
},
},
},
})