edgeport

v0.1.0
io.github.CloudCorpRecords/edgeport Checked 2 days ago Published 1 month ago

Zones, DNS, cache purge, Workers, KV, and R2 through the Cloudflare API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_accounts

List Cloudflare accounts accessible with the API token.

ParameterTypeDescription
per_pageintegerMaximum number of accounts to return per page of results.

list_zones

List zones, optionally filtered by account or name.

ParameterTypeDescription
account_idstringCloudflare account identifier to restrict the zone list to zones in that account.
namestringZone (domain) name to filter the zone list by exact name match.
per_pageintegerMaximum number of zones to return per page of results.

get_zone

Get one zone by its id.

ParameterTypeDescription
zone_id *stringIdentifier of the Cloudflare zone to retrieve.

list_dns_records

List DNS records in a zone, optionally filtered by type or name.

ParameterTypeDescription
zone_id *stringIdentifier of the zone whose DNS records should be listed.
namestringDNS record name to filter records by.
per_pageintegerMaximum number of DNS records to return per page of results.
typestringDNS record type (such as A, AAAA, CNAME, or MX) to filter records by.

create_dns_record

Create a DNS record in a zone.

ParameterTypeDescription
content *stringContent of the DNS record, such as an IP address or target hostname.
name *stringName of the DNS record, such as a hostname within the zone.
type *stringDNS record type to create, such as A, AAAA, CNAME, or MX.
zone_id *stringIdentifier of the zone in which to create the DNS record.
commentstringOptional comment describing the DNS record.
proxiedbooleanWhether Cloudflare should proxy traffic through its network for this record.
ttlintegerTime to live in seconds for the DNS record, where 1 means automatic.

update_dns_record

Update a DNS record in a zone.

ParameterTypeDescription
record_id *stringIdentifier of the DNS record to update.
zone_id *stringIdentifier of the zone containing the DNS record to update.
commentstringNew comment describing the DNS record.
contentstringNew content for the DNS record, such as an IP address or target hostname.
namestringNew name for the DNS record, such as a hostname within the zone.
proxiedbooleanWhether Cloudflare should proxy traffic through its network for this record.
ttlintegerNew time to live in seconds for the DNS record, where 1 means automatic.
typestringNew DNS record type, such as A, AAAA, CNAME, or MX.

delete_dns_record

Delete a DNS record from a zone.

ParameterTypeDescription
record_id *stringIdentifier of the DNS record to delete.
zone_id *stringIdentifier of the zone containing the DNS record to delete.

purge_cache

Purge cached content for a zone, by file, tag, host, or everything.

ParameterTypeDescription
zone_id *stringIdentifier of the zone whose cache should be purged.
filesarrayList of URLs whose cached content should be purged.
hostsarrayList of hostnames whose cached content should be purged.
purge_everythingbooleanWhether to purge all cached content for the zone.
tagsarrayList of cache tags whose associated cached content should be purged.

list_workers_scripts

List Worker scripts in an account.

ParameterTypeDescription
account_idstringIdentifier of the account whose Worker scripts should be listed, falling back to CLOUDFLARE_ACCOUNT_ID when omitted.

get_worker_script

Get a Worker script's metadata and shape only, without its body.

ParameterTypeDescription
script_name *stringName of the Worker script to inspect.
account_idstringIdentifier of the account containing the Worker script, falling back to CLOUDFLARE_ACCOUNT_ID when omitted.

list_kv_namespaces

List Workers KV namespaces in an account.

ParameterTypeDescription
account_idstringIdentifier of the account whose KV namespaces should be listed, falling back to CLOUDFLARE_ACCOUNT_ID when omitted.

list_r2_buckets

List R2 buckets in an account.

ParameterTypeDescription
account_idstringIdentifier of the account whose R2 buckets should be listed, falling back to CLOUDFLARE_ACCOUNT_ID when omitted.