-
-
Couldn't load subscription status.
- Fork 10.3k
feat: self-hosted MCP debugging tools #39366
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
💡 Enable Vercel Agent with $100 free credit for automated AI reviews |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Studio E2E Results
Artifacts: https://github.com/supabase/supabase/actions/runs/18418850578 Last updated: Thursday 16, October, 2025 16:33:41 (UTC) |
Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
|
Fix for the edge function logs is included in logflare v1.23.0 and CLI v2.50.8 See also update to the self-hosted compose file #39468 (comment). Updating this PR accordingly. |
* feat: stub `getDebuggingOperations` * fix: logflare variables in `generateLocalEnv.js` * chore: upgrade `supabase`, `@supabase/mcp-server-supabase` * feat: shared `retrieveAnalyticsData`, implement `getLogs` for MCP * feat: shared `getLints`, implement MCP security/performance advisors with filter * chore: update lockfile * fix: prefer `??` Co-authored-by: Greg Richardson <greg.nmr@gmail.com> * docs: comment origin of `LINT_SQL` Co-authored-by: Greg Richardson <greg.nmr@gmail.com> * chore: bump `supabase` devDependency for latest images Changes rely on fix from loglare v1.23.0 * fix: edge function logs query Based on https://github.com/supabase/supabase/pull/39388/files#diff-b4e9726d34a406fa1a6133a18bdb972c90be9df0c89598de0695592514e22941R199-R206 --------- Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

Follow-up from #38797
Implements
DebuggingOperationsfor the self-hosted remote MCP endpoint.Refactors common logic:
/api/platform/projects/[ref]/analytics/endpoints/[name]->lib/api/self-hosted/logs.ts/api/platform/projects/[ref]/run-lints->lib/api/self-hosted/lints.tsFixes a couple Logflare environment variables and bumps CLI dep for local dev (see Slack context). Note you may need to
pnpm installandpnpm supabase stop --no-backupbeforepnpm dev:studio-localfor this to take effect in containers.To test run
pnpm dev:studio-local, open MCP tab in Connect dialog and install to your MCP client then ask it to call the tools (e.g. "get my postgres logs", "get my security advisors", "get my performance advisors" etc.). You should also see "debugging" features as one of the groups you can select in the URL builder.Notes:
Edge function logs are known to not be working, this is being addressed in fix: update queries for local edge function and cron logs #39388 (see also Slack context)(edit: fixed)logs.tsare adapted from genDefaultQuery (or copied from the dashboard)Resolves AI-160