Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

OAuth grant with DNS Read cannot list zone DNS records (error 10000) — zones list works

Closed
#202 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Start with the execute tool's OAuth handling and the permission or account-scope checks used for GET /zones/{zone_id}/dns_records; compare them with the successful GET /zones?name= path. Reproduce both calls in the same restricted OAuth session, then verify that DNS records are returned without error 10000 while existing zone listing behavior remains unchanged.

Written by the indexing model from the issue text.

Description

bug
MCP Client

Other (please specify below)

MCP Client Version

opencode 1.18.21

Authentication Type

OAuth

OAuth Scopes (if applicable)

Read-only grant, 193 permissions total (verified in My Profile → Access Management → Connected Applications). Includes, among others:

  • DNS Read
  • Zone Read
  • Zone DNS Settings Read
  • Account DNS Settings Read
  • Zone Settings Read
  • Account Read / Memberships Read

Account restriction at consent: 1 account selected (the account that owns the affected zone).

MCP Server Configuration
Server URL: https://mcp.cloudflare.com/mcp
Access path: Cloudflare Zero Trust MCP server portal → upstream mcp.cloudflare.com
Server auth mode: OAuth credentials = Automatic (dynamic client registration, RFC 7591)
Client: [opencode]
Failing Endpoint / Tool

MCP tool: execute API endpoint: GET /zones/{zone_id}/dns_records

Bug Description

An OAuth grant that explicitly includes DNS Read and Zone Read can list zones and resolve a zone by name, but any call to GET /zones/{zone_id}/dns_records through the execute tool is deterministically rejected with Cloudflare error 10000 (Authentication error).

The zone belongs to the single account selected at OAuth consent, so both the permission and the account restriction should cover this call. This looks like the same class of problem as #170 (OAuth full-access grant rejected on zone SSL/custom-hostname endpoints), affecting a different endpoint family: DNS records.

Steps to Reproduce
  1. Connect an MCP client to https://mcp.cloudflare.com/mcp via OAuth. At consent, select read permissions including DNS Read, and restrict the grant to one account.
  2. Call the execute tool with: GET /zones?name= → succeeds; returns the zone, owned by the granted account.
  3. Call the execute tool with: GET /zones/<zone_id>/dns_records → fails with error 10000.
  4. Retry with pagination params, with and without an account_id tool argument → same failure.
Expected Behavior

DNS records for the zone are returned, since the grant includes DNS Read and the zone belongs to the account selected at consent.

Actual Behavior

{"success": false, "errors": [{"code": 10000, "message": "Authentication error"}], "messages": [], "result": null}

The failure is deterministic (every attempt), while GET /zones succeeds in the same session with the same grant.

Relevant Logs / Error Output
Session sequence (same OAuth session, consecutive calls):

GET /zones?name=<zone>
→ success: true, returns zone id + account (matches the granted account)

GET /zones/<zone_id>/dns_records
→ success: false, errors: [{ code: 10000, message: "Authentication error" }]

GET /zones/<zone_id>/dns_records (with account_id set)
→ same 10000 error
Additional Context

No response

Dominant language
TypeScript
Stars
972
Forks
143
Avg merge
2d 1h
Merged PRs (30d)
44

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudflare/mcp

All issues in cloudflare/mcp

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.