mirror of
https://github.com/hanzoai/mcp-server-cloudflare.git
synced 2026-10-30 18:28:06 +00:00
* Add dns analytic mcp. * Add zone list call. * Format code and update README. * Rebase and prepare for oauth scope. * Update wrangler.jsonc for staging and dev env. Add UserDetails binding for active account id. * Address comments. * Address comments. * Add TODOs. * t * Linting fixes + add scopes * Use MCP common zones_list tool --------- Co-authored-by: axia <[email protected]>
23 lines
527 B
TypeScript
23 lines
527 B
TypeScript
import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config'
|
|
|
|
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>,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|