Skip to content

Commit 62ddcb2

Browse files
committed
Fix formatting
1 parent fee1aaf commit 62ddcb2

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

apps/radar/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ Internet traffic insights, trends and other utilities.
1010

1111
Currently available tools:
1212

13-
| **Category** | **Tool** | **Description** |
14-
| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
15-
| **HTTP Requests** | `get_http_requests_data` | Fetches HTTP request data (timeseries, summaries, and grouped timeseries across dimensions like `deviceType`, `botClass`) |
16-
| **L7 Attacks** | `get_l7_attack_data` | Fetches L7 attack data (timeseries, summaries, and grouped timeseries across dimensions like `mitigationProduct`, `ipVersion`) |
17-
| **Autonomous Systems** | `list_autonomous_systems` | Lists ASes; filter by location and sort by population size |
18-
| | `get_as_details` | Retrieves detailed info for a specific ASN |
19-
| **IP Addresses** | `get_ip_details` | Provides details about a specific IP address |
20-
| **Traffic Anomalies** | `get_traffic_anomalies` | Lists traffic anomalies; filter by AS, location, start date, and end date |
21-
| **Domains** | `get_domains_ranking` | Get top or trending domains |
22-
| | `get_domain_rank_details` | Get domain rank details |
23-
| **URL Scanner** | `scan_url` | Scans a URL via [Cloudflare’s URL Scanner](https://developers.cloudflare.com/radar/investigate/url-scanner/) |
13+
| **Category** | **Tool** | **Description** |
14+
| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
15+
| **HTTP Requests** | `get_http_requests_data` | Fetches HTTP request data (timeseries, summaries, and grouped timeseries across dimensions like `deviceType`, `botClass`) |
16+
| **L7 Attacks** | `get_l7_attack_data` | Fetches L7 attack data (timeseries, summaries, and grouped timeseries across dimensions like `mitigationProduct`, `ipVersion`) |
17+
| **Autonomous Systems** | `list_autonomous_systems` | Lists ASes; filter by location and sort by population size |
18+
| | `get_as_details` | Retrieves detailed info for a specific ASN |
19+
| **IP Addresses** | `get_ip_details` | Provides details about a specific IP address |
20+
| **Traffic Anomalies** | `get_traffic_anomalies` | Lists traffic anomalies; filter by AS, location, start date, and end date |
21+
| **Domains** | `get_domains_ranking` | Get top or trending domains |
22+
| | `get_domain_rank_details` | Get domain rank details |
23+
| **URL Scanner** | `scan_url` | Scans a URL via [Cloudflare’s URL Scanner](https://developers.cloudflare.com/radar/investigate/url-scanner/) |
2424

2525
This MCP server is still a work in progress, and we plan to add more tools in the future.
2626

apps/radar/src/tools/radar.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
DomainParam,
1818
DomainRankingTypeParam,
1919
HttpDimensionParam,
20-
L7AttackDimensionParam,
2120
IpParam,
21+
L7AttackDimensionParam,
2222
LocationArrayParam,
2323
LocationListParam,
2424
LocationParam,
@@ -324,7 +324,6 @@ export function registerRadarTools(agent: RadarMCP) {
324324
}
325325
)
326326

327-
328327
agent.server.tool(
329328
'get_l7_attack_data',
330329
'Retrieve L7 app attack trends. Provide either a `dateRange`, or both `dateStart` and `dateEnd`, to define the time window. ' +

apps/radar/src/types/radar.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import { z } from 'zod'
55

66
import type { HTTPTimeseriesParams, RankingTopParams } from 'cloudflare/resources/radar'
7-
import type { Layer7TimeseriesParams } from 'cloudflare/resources/radar/attacks'
8-
97
import type { ASNListParams } from 'cloudflare/resources/radar/entities'
108

119
export const AsnParam = z
@@ -158,11 +156,13 @@ export const HttpDimensionParam = z
158156

159157
export const L7AttackDimensionParam = z
160158
.enum([
161-
162159
'httpMethod',
163160
'httpVersion',
164161
'ipVersion',
165162
'mitigationProduct',
163+
'managedRules',
164+
'vertical',
165+
'industry',
166166
])
167167
.optional()
168168
.describe(

0 commit comments

Comments
 (0)