Skip to content

Commit dac4636

Browse files
committed
t
1 parent 5890c3a commit dac4636

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

apps/dns-analytics/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ It integrates tools powered by the [Cloudflare DNS Analytics API](https://develo
99

1010
Currently 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

1919
This 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

apps/dns-analytics/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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'
1010
import { getEnv } from '@repo/mcp-common/src/env'
1111
import { 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

1415
import { MetricsTracker } from '../../../packages/mcp-observability/src'
1516
import { registerAnalyticTools } from './tools/analytics'
1617

1718
import type { AuthProps } from '@repo/mcp-common/src/cloudflare-oauth-handler'
1819
import type { Env } from './context'
19-
import { getUserDetails, UserDetails } from '@repo/mcp-common/src/durable-objects/user_details'
2020

2121
export { UserDetails }
2222

apps/dns-analytics/src/tools/analytics.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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'
55
import { z } from 'zod'
66

77
import { getCloudflareClient } from '@repo/mcp-common/src/cloudflare-api'
88
import { getEnv } from '@repo/mcp-common/src/env'
99

10-
import type { DNSAnalyticsMCP } from '../index'
1110
import type { Env } from '../context'
11+
import type { DNSAnalyticsMCP } from '../index'
1212

1313
const env = getEnv<Env>()
1414

apps/dns-analytics/wrangler.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
{
2727
"class_name": "UserDetails",
28-
"name": "USER_DETAILS",
28+
"name": "USER_DETAILS"
2929
}
3030
]
3131
},

0 commit comments

Comments
 (0)