Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
1251751
chore: sync shared codegen files from staging-next
musa-cf Apr 23, 2026
2e66d76
chore(abuse_reports): update generated types and methods
musa-cf Apr 23, 2026
09e0332
chore(accounts): update generated types and methods
musa-cf Apr 23, 2026
e7422f6
chore(acm): update generated types and methods
musa-cf Apr 23, 2026
3e4be7a
chore(addressing): update generated types and methods
musa-cf Apr 23, 2026
17e967b
chore(ai_gateway): update generated types and methods
musa-cf Apr 23, 2026
80e2304
chore(aisearch): update generated types and methods
musa-cf Apr 23, 2026
a95d426
chore(alerting): update generated types and methods
musa-cf Apr 23, 2026
e6824a3
chore(api_gateway): update generated types and methods
musa-cf Apr 23, 2026
0bec2b7
chore(argo): update generated types and methods
musa-cf Apr 23, 2026
da0ddbd
chore(billing): update generated types and methods
musa-cf Apr 23, 2026
a8350fb
chore(botnet_feed): update generated types and methods
musa-cf Apr 23, 2026
e22947b
chore(brand_protection): update generated types and methods
musa-cf Apr 23, 2026
1d32b17
chore(browser_rendering): update generated types and methods
musa-cf Apr 23, 2026
b6a6d2c
feat(cache): update generated types and methods
musa-cf Apr 23, 2026
98339f3
chore(calls): update generated types and methods
musa-cf Apr 23, 2026
fc0ba1e
chore(certificate_authorities): update generated types and methods
musa-cf Apr 23, 2026
3a8884f
chore(cloud_connector): update generated types and methods
musa-cf Apr 23, 2026
8f907ce
chore(cloudforce_one): update generated types and methods
musa-cf Apr 23, 2026
7a03cb0
chore(connectivity): update generated types and methods
musa-cf Apr 23, 2026
736b6fb
chore(content_scanning): update generated types and methods
musa-cf Apr 23, 2026
c274554
chore(custom_certificates): update generated types and methods
musa-cf Apr 23, 2026
7f5f3be
chore(custom_hostnames): update generated types and methods
musa-cf Apr 23, 2026
9d559ba
chore(custom_pages): update generated types and methods
musa-cf Apr 23, 2026
bdb9bab
chore(d1): update generated types and methods
musa-cf Apr 23, 2026
e43dd81
chore(diagnostics): update generated types and methods
musa-cf Apr 23, 2026
b695910
chore(dns_firewall): update generated types and methods
musa-cf Apr 23, 2026
abb1925
chore(durable_objects): update generated types and methods
musa-cf Apr 23, 2026
70720d8
chore(email_routing): update generated types and methods
musa-cf Apr 23, 2026
bc8abd6
chore(email_security): update generated types and methods
musa-cf Apr 23, 2026
bcded2f
chore(email_sending): update generated types and methods
musa-cf Apr 23, 2026
99db868
chore(firewall): update generated types and methods
musa-cf Apr 23, 2026
4b6d025
chore(google_tag_gateway): update generated types and methods
musa-cf Apr 23, 2026
8f54916
chore(healthchecks): update generated types and methods
musa-cf Apr 23, 2026
1ca114d
chore(hostnames): update generated types and methods
musa-cf Apr 23, 2026
243cb18
chore(hyperdrive): update generated types and methods
musa-cf Apr 23, 2026
02b247f
feat(iam): update generated types and methods
musa-cf Apr 23, 2026
6aed6c2
chore(images): update generated types and methods
musa-cf Apr 23, 2026
06b2450
chore(intel): update generated types and methods
musa-cf Apr 23, 2026
afd9531
chore(kv): update generated types and methods
musa-cf Apr 23, 2026
6f4d512
chore(leaked_credential_checks): update generated types and methods
musa-cf Apr 23, 2026
589e721
chore(load_balancers): update generated types and methods
musa-cf Apr 23, 2026
b51e7cc
chore(logpush): update generated types and methods
musa-cf Apr 23, 2026
b7c4620
chore(logs): update generated types and methods
musa-cf Apr 23, 2026
ee88218
chore(magic_cloud_networking): update generated types and methods
musa-cf Apr 23, 2026
6d9479f
chore(magic_network_monitoring): update generated types and methods
musa-cf Apr 23, 2026
50ae0f4
chore(magic_transit): update generated types and methods
musa-cf Apr 23, 2026
28308ee
chore(mtls_certificates): update generated types and methods
musa-cf Apr 23, 2026
3d9c445
chore(network_interconnects): update generated types and methods
musa-cf Apr 23, 2026
a84fac0
feat(organizations): update generated types and methods
musa-cf Apr 23, 2026
79566f0
chore(origin_tls_client_auth): update generated types and methods
musa-cf Apr 23, 2026
36b7762
chore(page_shield): update generated types and methods
musa-cf Apr 23, 2026
5f1a40b
chore(pages): update generated types and methods
musa-cf Apr 23, 2026
3f228b9
chore(queues): update generated types and methods
musa-cf Apr 23, 2026
2cc16d5
chore(r2): update generated types and methods
musa-cf Apr 23, 2026
86f018c
chore(r2_data_catalog): update generated types and methods
musa-cf Apr 23, 2026
99a0c49
chore(realtime_kit): update generated types and methods
musa-cf Apr 23, 2026
dfb1ec1
chore(registrar): update generated types and methods
musa-cf Apr 23, 2026
a778bed
chore(request_tracers): update generated types and methods
musa-cf Apr 23, 2026
85e0fec
chore(resource_sharing): update generated types and methods
musa-cf Apr 23, 2026
aa86329
chore(resource_tagging): update generated types and methods
musa-cf Apr 23, 2026
42df871
chore(rules): update generated types and methods
musa-cf Apr 23, 2026
84f2de9
chore(rulesets): update generated types and methods
musa-cf Apr 23, 2026
bebfaab
chore(rum): update generated types and methods
musa-cf Apr 23, 2026
8de1180
chore(schema_validation): update generated types and methods
musa-cf Apr 23, 2026
9772c41
chore(secrets_store): update generated types and methods
musa-cf Apr 23, 2026
a9972f4
chore(security_center): update generated types and methods
musa-cf Apr 23, 2026
05ae177
chore(snippets): update generated types and methods
musa-cf Apr 23, 2026
fc3d8d1
chore(spectrum): update generated types and methods
musa-cf Apr 23, 2026
c98ce59
chore(speed): update generated types and methods
musa-cf Apr 23, 2026
3b289b6
chore(ssl): update generated types and methods
musa-cf Apr 23, 2026
947ef10
chore(stream): update generated types and methods
musa-cf Apr 24, 2026
e02cd26
chore(token_validation): update generated types and methods
musa-cf Apr 24, 2026
b0eee6b
chore(turnstile): update generated types and methods
musa-cf Apr 24, 2026
e7895c8
chore(url_scanner): update generated types and methods
musa-cf Apr 24, 2026
dc57f13
chore(vectorize): update generated types and methods
musa-cf Apr 24, 2026
59512de
chore(vulnerability_scanner): update generated types and methods
musa-cf Apr 24, 2026
6602494
chore(waiting_rooms): update generated types and methods
musa-cf Apr 24, 2026
9493f95
chore(web3): update generated types and methods
musa-cf Apr 24, 2026
506ddaf
chore(workers_for_platforms): update generated types and methods
musa-cf Apr 24, 2026
635e9b0
chore(workflows): update generated types and methods
musa-cf Apr 24, 2026
5f9e8dc
chore(zaraz): update generated types and methods
musa-cf Apr 24, 2026
a8a3954
chore(zero_trust): update generated types and methods
musa-cf Apr 24, 2026
0edc035
chore(zones): update generated types and methods
musa-cf Apr 24, 2026
e029a78
chore: integrate 17 resources with companion file cleanup
musa-cf Apr 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 2184
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3d7d43f051a510c54ae71adb4b85cbb422565a40942cde4de0c3f8eb6ba8023b.yml
openapi_spec_hash: e85824f16c3ba923a34e514c06dac7cd
config_hash: a84b6a70b6374c30a50b477fe248eb3a
configured_endpoints: 2194
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ce49e6bb0d3819f135b9a567b661205fdf5df21cff157eab2b7abd7b5b50347.yml
openapi_spec_hash: 512a5bb3a32860590c8949765605d65a
config_hash: 5367ae3e3a9a0d6578c2756965a99e3a
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ It is generated with [Stainless](https://www.stainless.com/).

Use the Cloudflare MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.

[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=cloudflare-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImNsb3VkZmxhcmUtbWNwIl0sImVudiI6eyJDTE9VREZMQVJFX0FQSV9UT0tFTiI6IlNuM2xaSlRCWDZra2c3T2RjQlVBeE9POTYzR0VJeUdRcW5GVE9GWVkiLCJDTE9VREZMQVJFX0FQSV9LRVkiOiI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LjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cloudflare-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22cloudflare-mcp%22%5D%2C%22env%22%3A%7B%22CLOUDFLARE_API_TOKEN%22%3A%22Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY%22%2C%22CLOUDFLARE_API_KEY%22%3A%22144c9defac04969c7bfad8efaa8ea194%22%2C%22CLOUDFLARE_EMAIL%22%3A%22user%40example.com%22%2C%22CLOUDFLARE_API_USER_SERVICE_KEY%22%3A%22v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719%22%2C%22CLOUDFLARE_ACCOUNT_ID%22%3A%22f037e56e89293a057740de681ac9accp%22%2C%22CLOUDFLARE_ZONE_ID%22%3A%22f037e56e89293a057740de681ac9accp%22%7D%7D)
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=cloudflare-mcp&config=eyJjb21tYW5k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LjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cloudflare-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22cloudflare-mcp%22%5D%2C%22env%22%3A%7B%22CLOUDFLARE_API_TOKEN%22%3A%22Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY%22%2C%22CLOUDFLARE_API_KEY%22%3A%22144c9defac04969c7bfad8efaa8ea194%22%2C%22CLOUDFLARE_EMAIL%22%3A%22user%40example.com%22%2C%22CLOUDFLARE_API_USER_SERVICE_KEY%22%3A%22v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719%22%7D%7D)

> Note: You may need to set environment variables in your MCP client.

Expand Down
72 changes: 0 additions & 72 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ class Cloudflare(SyncAPIClient):
api_key: str | None
api_email: str | None
user_service_key: str | None
account_id: str | None
zone_id: str | None

def __init__(
self,
Expand All @@ -321,8 +319,6 @@ def __init__(
api_key: str | None = None,
api_email: str | None = None,
user_service_key: str | None = None,
account_id: str | None = None,
zone_id: str | None = None,
base_url: str | httpx.URL | None = None,
api_version: str | None = None,
timeout: float | Timeout | None | NotGiven = not_given,
Expand Down Expand Up @@ -350,8 +346,6 @@ def __init__(
- `api_key` from `CLOUDFLARE_API_KEY`
- `api_email` from `CLOUDFLARE_EMAIL`
- `user_service_key` from `CLOUDFLARE_API_USER_SERVICE_KEY`
- `account_id` from `CLOUDFLARE_ACCOUNT_ID`
- `zone_id` from `CLOUDFLARE_ZONE_ID`
"""
if api_token is None:
api_token = os.environ.get("CLOUDFLARE_API_TOKEN")
Expand All @@ -369,14 +363,6 @@ def __init__(
user_service_key = os.environ.get("CLOUDFLARE_API_USER_SERVICE_KEY")
self.user_service_key = user_service_key

if account_id is None:
account_id = os.environ.get("CLOUDFLARE_ACCOUNT_ID")
self.account_id = account_id

if zone_id is None:
zone_id = os.environ.get("CLOUDFLARE_ZONE_ID")
self.zone_id = zone_id

if base_url is None:
base_url = os.environ.get("CLOUDFLARE_BASE_URL")
if base_url is None:
Expand Down Expand Up @@ -1123,8 +1109,6 @@ def copy(
api_key: str | None = None,
api_email: str | None = None,
user_service_key: str | None = None,
account_id: str | None = None,
zone_id: str | None = None,
base_url: str | httpx.URL | None = None,
api_version: str | None = None,
timeout: float | Timeout | None | NotGiven = not_given,
Expand Down Expand Up @@ -1163,8 +1147,6 @@ def copy(
api_key=api_key or self.api_key,
api_email=api_email or self.api_email,
user_service_key=user_service_key or self.user_service_key,
account_id=account_id or self.account_id,
zone_id=zone_id or self.zone_id,
base_url=base_url or self.base_url,
api_version=api_version or self.api_version,
timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,
Expand All @@ -1179,24 +1161,6 @@ def copy(
# client.with_options(timeout=10).foo.create(...)
with_options = copy

def _get_account_id_path_param(self) -> str:
from_client = self.account_id
if from_client is not None:
return from_client

raise ValueError(
"Missing account_id argument; Please provide it at the client level, e.g. Cloudflare(account_id='abcd') or per method."
)

def _get_zone_id_path_param(self) -> str:
from_client = self.zone_id
if from_client is not None:
return from_client

raise ValueError(
"Missing zone_id argument; Please provide it at the client level, e.g. Cloudflare(zone_id='abcd') or per method."
)

@override
def _make_status_error(
self,
Expand Down Expand Up @@ -1237,8 +1201,6 @@ class AsyncCloudflare(AsyncAPIClient):
api_key: str | None
api_email: str | None
user_service_key: str | None
account_id: str | None
zone_id: str | None

def __init__(
self,
Expand All @@ -1247,8 +1209,6 @@ def __init__(
api_key: str | None = None,
api_email: str | None = None,
user_service_key: str | None = None,
account_id: str | None = None,
zone_id: str | None = None,
base_url: str | httpx.URL | None = None,
api_version: str | None = None,
timeout: float | Timeout | None | NotGiven = not_given,
Expand Down Expand Up @@ -1276,8 +1236,6 @@ def __init__(
- `api_key` from `CLOUDFLARE_API_KEY`
- `api_email` from `CLOUDFLARE_EMAIL`
- `user_service_key` from `CLOUDFLARE_API_USER_SERVICE_KEY`
- `account_id` from `CLOUDFLARE_ACCOUNT_ID`
- `zone_id` from `CLOUDFLARE_ZONE_ID`
"""
if api_token is None:
api_token = os.environ.get("CLOUDFLARE_API_TOKEN")
Expand All @@ -1295,14 +1253,6 @@ def __init__(
user_service_key = os.environ.get("CLOUDFLARE_API_USER_SERVICE_KEY")
self.user_service_key = user_service_key

if account_id is None:
account_id = os.environ.get("CLOUDFLARE_ACCOUNT_ID")
self.account_id = account_id

if zone_id is None:
zone_id = os.environ.get("CLOUDFLARE_ZONE_ID")
self.zone_id = zone_id

if base_url is None:
base_url = os.environ.get("CLOUDFLARE_BASE_URL")
if base_url is None:
Expand Down Expand Up @@ -2049,8 +1999,6 @@ def copy(
api_key: str | None = None,
api_email: str | None = None,
user_service_key: str | None = None,
account_id: str | None = None,
zone_id: str | None = None,
base_url: str | httpx.URL | None = None,
api_version: str | None = None,
timeout: float | Timeout | None | NotGiven = not_given,
Expand Down Expand Up @@ -2089,8 +2037,6 @@ def copy(
api_key=api_key or self.api_key,
api_email=api_email or self.api_email,
user_service_key=user_service_key or self.user_service_key,
account_id=account_id or self.account_id,
zone_id=zone_id or self.zone_id,
base_url=base_url or self.base_url,
api_version=api_version or self.api_version,
timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,
Expand All @@ -2105,24 +2051,6 @@ def copy(
# client.with_options(timeout=10).foo.create(...)
with_options = copy

def _get_account_id_path_param(self) -> str:
from_client = self.account_id
if from_client is not None:
return from_client

raise ValueError(
"Missing account_id argument; Please provide it at the client level, e.g. AsyncCloudflare(account_id='abcd') or per method."
)

def _get_zone_id_path_param(self) -> str:
from_client = self.zone_id
if from_client is not None:
return from_client

raise ValueError(
"Missing zone_id argument; Please provide it at the client level, e.g. AsyncCloudflare(zone_id='abcd') or per method."
)

@override
def _make_status_error(
self,
Expand Down
Loading
Loading