MCPcopy Index your code
hub / github.com/compassvpn/cf-tools

github.com/compassvpn/cf-tools @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
18 symbols 41 edges 1 files 15 documented · 83%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CloudFlare Tools

This Go script processes and filters IPv4 prefixes associated with CloudFlare. It converts these prefixes into /24 blocks and checks if they belong to the CloudFlare CDN or WARP service.

Features

  • Fetches Cloudflare IPv4 BGP prefixes from bgp.tools.
  • Converts filtered prefixes into /24 blocks.
  • Checks prefixes for CloudFlare CDN or WARP services.
  • Outputs results to specified files.

Usage

Flags

  • -h, --help: Show help.
  • -f, --fetch: Fetch and convert to /24 only.
  • -c, --cdn: Run the CDN checker.
  • -w, --warp: Run the WARP checker.
  • -o, --output: Specify the output file name.

Core symbols most depended-on inside this repo

incrementIP
called by 2
main.go
runChecker
called by 2
main.go
showHelp
called by 1
main.go
fetchAndFilterPrefixes
called by 1
main.go
convertTo24AndWrite
called by 1
main.go
processPrefix
called by 1
main.go
servesCloudflareTrace
called by 1
main.go
prefixHasValidIP
called by 1
main.go

Shape

Function 16
Struct 2

Languages

Go100%

Modules by API surface

main.go18 symbols

For agents

$ claude mcp add cf-tools \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact