Skip to content

Conversation

@axiapubsub
Copy link

This PR adds DNS Analytic MCP that integrates MCP server with Cloudflare API to retrieve and analyze DNS Configurations.

async ({ zone, days }) => {
try {
console.log('fetching DNS record')
const client = getCloudflareClient(env.CLOUDFLARE_API_TOKEN)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we're passing a hardcoded API token here rather than using the user's api token that was granted to the server from oauth, is that intentional? Can we add a corresponding DNS oauth scope to our oauth app?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WIP.


const AnalyticsScopes = {
...RequiredScopes,
'account:read': 'See your account info such as account details, analytics, and memberships.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe can add todo comment to add dns scopes here so we don't forget

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@Maximo-Guk
Copy link
Member

Merged in !126!

@Maximo-Guk Maximo-Guk closed this May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants