Describe the bug
On hosted projects get_logs is hidden (hidden: Boolean(queryLogs) in getDebuggingTools), so query_logs is the only logs tool in tools/list. Its ClickHouse schemaHint lists 'edge_logs', 'postgres_logs' and 'function_edge_logs' as the common sources, but not 'function_logs', which is where Edge Function console.log output actually goes.
The result: an agent asked "what did my edge function log?" reaches for function_edge_logs, gets the request envelope (status code, method, execution_time_ms), and reports it can't find the logs. The name similarity makes the wrong source look like the more specific choice.
The source clearly exists on ClickHouse: getClickHouseLogQuery already emits where source = 'function_logs' for the edge-function-runtime service. get_logs has a description that explains the split ("edge-function returns invocation/request logs, while edge-function-runtime returns console output from inside the function"), but that is the tool that gets hidden on hosted projects, so the agent never reads it.
To Reproduce
- On a fresh hosted project, deploy an Edge Function that does
console.log('smoke test') and invoke it once.
- Connect an MCP client to
@supabase/mcp-server-supabase@0.11.0 with --project-ref (hosted, ClickHouse dialect). tools/list exposes query_logs; its sql description does not mention function_logs.
- Ask the agent, without naming any source: "what did my edge function log?"
- The agent follows the hint to
source = 'function_edge_logs' and gets only envelope rows (GET | 200 | https://.../functions/v1/smoke). The console output sitting in function_logs is never surfaced.
Reproduced today (2026-08-24) against a fresh free-tier project, both on the published 0.11.0 and on main at fc54ea2.
Expected behavior
The hint should name both Edge Function sources so the model can pick the right one: 'function_edge_logs' for invocation/request logs, and 'function_logs' for console output from inside the function.
Proposal: add the missing source to the ClickHouse schemaHint only. The BigQuery hint is correct as-is: self-hosted Logflare does not serve function_logs, and the existing not.toContain('function_logs') assertion in server.test.ts should stay untouched.
I have a fix ready (a one-line addition to the ClickHouse hint plus a test assertion) and will open a PR right after this issue.
System information
@supabase/mcp-server-supabase 0.11.0 (also built from main at fc54ea2)
- Hosted project (ClickHouse logs dialect)
Describe the bug
On hosted projects
get_logsis hidden (hidden: Boolean(queryLogs)ingetDebuggingTools), soquery_logsis the only logs tool intools/list. Its ClickHouseschemaHintlists'edge_logs','postgres_logs'and'function_edge_logs'as the common sources, but not'function_logs', which is where Edge Functionconsole.logoutput actually goes.The result: an agent asked "what did my edge function log?" reaches for
function_edge_logs, gets the request envelope (status code, method, execution_time_ms), and reports it can't find the logs. The name similarity makes the wrong source look like the more specific choice.The source clearly exists on ClickHouse:
getClickHouseLogQueryalready emitswhere source = 'function_logs'for theedge-function-runtimeservice.get_logshas a description that explains the split ("edge-function returns invocation/request logs, while edge-function-runtime returns console output from inside the function"), but that is the tool that gets hidden on hosted projects, so the agent never reads it.To Reproduce
console.log('smoke test')and invoke it once.@supabase/mcp-server-supabase@0.11.0with--project-ref(hosted, ClickHouse dialect).tools/listexposesquery_logs; itssqldescription does not mentionfunction_logs.source = 'function_edge_logs'and gets only envelope rows (GET | 200 | https://.../functions/v1/smoke). The console output sitting infunction_logsis never surfaced.Reproduced today (2026-08-24) against a fresh free-tier project, both on the published 0.11.0 and on main at
fc54ea2.Expected behavior
The hint should name both Edge Function sources so the model can pick the right one:
'function_edge_logs'for invocation/request logs, and'function_logs'for console output from inside the function.Proposal: add the missing source to the ClickHouse
schemaHintonly. The BigQuery hint is correct as-is: self-hosted Logflare does not servefunction_logs, and the existingnot.toContain('function_logs')assertion inserver.test.tsshould stay untouched.I have a fix ready (a one-line addition to the ClickHouse hint plus a test assertion) and will open a PR right after this issue.
System information
@supabase/mcp-server-supabase0.11.0 (also built from main atfc54ea2)