The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: mention MCP debugging tools and Supabase agent skill in debugging docs (#48978)
Jordi Enric7c46793a3f93
diff --git a/apps/docs/content/guides/monitoring-and-debugging.mdx b/apps/docs/content/guides/monitoring-and-debugging.mdxindex f6b732836ae..61e018404a2 100644--- a/apps/docs/content/guides/monitoring-and-debugging.mdx+++ b/apps/docs/content/guides/monitoring-and-debugging.mdx@@ -4,6 +4,8 @@ title: Monitoring and DebuggingMonitor your project, debug errors, and understand what's happening across the Supabase stack.+Debugging with an AI agent? See [Debug with AI tools](/docs/guides/monitoring-and-debugging/debugging#debug-with-ai-tools) for the MCP tools and agent skill that let it read your logs and advisors.+<ContentListings id="telemetry-debugging" /><ContentListings id="telemetry-monitoring" />diff --git a/apps/docs/content/guides/monitoring-and-debugging/debugging.mdx b/apps/docs/content/guides/monitoring-and-debugging/debugging.mdxindex 0c84be99fce..0c820e038f4 100644--- a/apps/docs/content/guides/monitoring-and-debugging/debugging.mdx+++ b/apps/docs/content/guides/monitoring-and-debugging/debugging.mdx@@ -6,6 +6,17 @@ description: 'Isolate and fix Supabase issues by reading the error, isolating thDebug by evidence, not by guessing. A Supabase error almost always surfaces at one layer but originates at another, so the fastest path to a fix is finding _where_ the problem is, not pattern-matching the symptom. Retrying a failed request rarely helps; isolating the layer does.+## Debug with AI tools++An AI agent can work through this loop for you, but only if it can read your project's evidence instead of guessing from the error message.++Debugging with an agent needs two things:++- The [Supabase MCP server](/docs/guides/ai-tools/mcp) provides the tools this guide relies on: `get_logs` for a per-service log dump, `query_logs` to run read-only SQL against your logs for filtering and aggregation, `get_advisors` for security and performance findings, and `execute_sql` to inspect your schema and policies.+- The [Supabase agent skill](/docs/guides/ai-tools/ai-skills) teaches the agent this workflow: locate the failing layer, gather evidence from the matching log source, and verify the fix by re-running the operation that failed.++Install both in one step with the [Supabase plugin for AI coding agents](/docs/guides/ai-tools/plugins). Connecting an agent to your project carries security risks, so read the [MCP security best practices](/docs/guides/ai-tools/mcp#security-risks) first.+## Follow these debugging stepsWork through these steps in order, skipping straight to a fix before you have evidence for the cause is the most common way to waste time on a bug.