File tree Expand file tree Collapse file tree 4 files changed +22
-22
lines changed Expand file tree Collapse file tree 4 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ It integrates tools powered by the [Cloudflare DNS Analytics API](https://develo
99
1010Currently available tools:
1111
12- | ** Category** | ** Tool** | ** Description** |
13- | ---------------------- | ------------------------- | ---------------------------------------------------------------- -------------------------------------------------------------- |
14- | ** DNS Analytics** | ` dns-report ` | Fetch the DNS Report for a given zone over a given time frame. |
15- | ** Account DNS Setting** | ` show-account-dns-settings ` | Fetch the DNS setting for the current active account. |
16- | ** Zone DNS Setting** | ` show-zone-dns-settings ` | Fetch the DNS setting for a given zone. |
17- | ** Zone Information** | ` list-zones-under-account ` | List zones under the current active account. |
12+ | ** Category** | ** Tool** | ** Description** |
13+ | ----------------------- | --------------------------- | -------------------------------------------------------------- |
14+ | ** DNS Analytics** | ` dns-report ` | Fetch the DNS Report for a given zone over a given time frame. |
15+ | ** Account DNS Setting** | ` show-account-dns-settings ` | Fetch the DNS setting for the current active account. |
16+ | ** Zone DNS Setting** | ` show-zone-dns-settings ` | Fetch the DNS setting for a given zone. |
17+ | ** Zone Information** | ` list-zones-under-account ` | List zones under the current active account. |
1818
1919This MCP server is still a work in progress, and we plan to add more tools in the future.
2020
@@ -38,12 +38,12 @@ Replace the content with the following configuration:
3838
3939``` json
4040{
41- "mcpServers" : {
42- "cloudflare" : {
43- "command" : " npx" ,
44- "args" : [" mcp-remote" , " https://dns-analytics.mcp.cloudflare.com/sse" ]
45- }
46- }
41+ "mcpServers" : {
42+ "cloudflare" : {
43+ "command" : " npx" ,
44+ "args" : [" mcp-remote" , " https://dns-analytics.mcp.cloudflare.com/sse" ]
45+ }
46+ }
4747}
4848```
4949
Original file line number Diff line number Diff line change @@ -5,18 +5,18 @@ import {
55 createAuthHandlers ,
66 handleTokenExchangeCallback ,
77} from '@repo/mcp-common/src/cloudflare-oauth-handler'
8- import { CloudflareMCPServer } from '@repo/mcp-common/src/server '
9- import { registerAccountTools } from '@repo/mcp-common/src/tools/account '
8+ import { handleDevMode } from '@repo/mcp-common/src/dev-mode '
9+ import { getUserDetails , UserDetails } from '@repo/mcp-common/src/durable-objects/user_details '
1010import { getEnv } from '@repo/mcp-common/src/env'
1111import { RequiredScopes } from '@repo/mcp-common/src/scopes'
12- import { handleDevMode } from '@repo/mcp-common/src/dev-mode'
12+ import { CloudflareMCPServer } from '@repo/mcp-common/src/server'
13+ import { registerAccountTools } from '@repo/mcp-common/src/tools/account'
1314
1415import { MetricsTracker } from '../../../packages/mcp-observability/src'
1516import { registerAnalyticTools } from './tools/analytics'
1617
1718import type { AuthProps } from '@repo/mcp-common/src/cloudflare-oauth-handler'
1819import type { Env } from './context'
19- import { getUserDetails , UserDetails } from '@repo/mcp-common/src/durable-objects/user_details'
2020
2121export { UserDetails }
2222
Original file line number Diff line number Diff line change 1- import { AccountGetParams } from 'cloudflare/resources/accounts/accounts.mjs'
2- import { ReportGetParams } from 'cloudflare/resources/dns/analytics.mjs'
3- import { ZoneGetParams } from 'cloudflare/resources/dns/settings.mjs'
4- import { ZoneListParams } from 'cloudflare/resources/zones/zones.mjs'
1+ import type { AccountGetParams } from 'cloudflare/resources/accounts/accounts.mjs'
2+ import type { ReportGetParams } from 'cloudflare/resources/dns/analytics.mjs'
3+ import type { ZoneGetParams } from 'cloudflare/resources/dns/settings.mjs'
4+ import type { ZoneListParams } from 'cloudflare/resources/zones/zones.mjs'
55import { z } from 'zod'
66
77import { getCloudflareClient } from '@repo/mcp-common/src/cloudflare-api'
88import { getEnv } from '@repo/mcp-common/src/env'
99
10- import type { DNSAnalyticsMCP } from '../index'
1110import type { Env } from '../context'
11+ import type { DNSAnalyticsMCP } from '../index'
1212
1313const env = getEnv < Env > ( )
1414
Original file line number Diff line number Diff line change 2525 },
2626 {
2727 "class_name" : " UserDetails" ,
28- "name" : " USER_DETAILS" ,
28+ "name" : " USER_DETAILS"
2929 }
3030 ]
3131 },
You can’t perform that action at this time.
0 commit comments