Skip to content

Add DNS Analytic MCP #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed

Add DNS Analytic MCP #121

wants to merge 11 commits into from

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