Skip to content

Logpush jobs by accountID MCP Server #93

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

Merged
merged 1 commit into from
Apr 30, 2025

Conversation

cathychi
Copy link
Contributor

@cathychi cathychi commented Apr 29, 2025

image

This is adding the ability to fetch logpush jobs of an account, as long as the active account has been set by the user. The MCP server will return a condensed version of the logpush API. It will return the name, ID, dataset, last completed timestamp, along with the last error and message.

The intention is that Claude can then perform, say, "give me the latest job that failed"

@cathychi cathychi changed the title Logpush jobs by accountID Logpush jobs by accountID MCP Server Apr 29, 2025
@Maximo-Guk
Copy link
Member

Maximo-Guk commented Apr 30, 2025

This was merged in !101!
( I think once this PR get's rebased off the main branch fork in the fork, it should automatically reflect as merged )

  • Made a change to wrangler.jsonc to reference our observability scriptName in UserDetails durable object since we want to share the same DO namespace ( Ideally we probably want some other dedicated worker to host this durable object at some point )
  • Renamed OAUTH_KV_AUDITLOGS to OAUTH_KV ( since we reference OAUTH_KV in our auth code )
  • Rebased + added devHandler that we're now using in all our servers ( so you can now do DEV_CLOUDFLARE_API_TOKEN=<your_dev_token> & DEV_DISABLE_OAUTH=true if you want to skip oauth when developing and just use your dev token) , and moved to using apiHandler so that we get SSE + Streamable HTTP support
  • Changed this nullish coalescing operator as I was getting this error
Screenshot 2025-04-29 at 11 51 19 PM

Now I get
image
( I don't have logpush setup on my selected account )

@Maximo-Guk Maximo-Guk merged commit 9b37a84 into cloudflare:main Apr 30, 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