Skip to content

Commit 7883655

Browse files
committed
chore: comment on timestmap
1 parent 67878a0 commit 7883655

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/mcp-server-supabase/src/server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ export function createSupabaseMcpServer(options: SupabaseMcpServerOptions) {
347347
.describe('The service to fetch logs for'),
348348
}),
349349
execute: async ({ project_id, service }) => {
350+
// Omitting start and end time defaults to the last minute.
351+
// But since branch actions are async, we need to wait longer
352+
// for jobs to be scheduled and run to completion.
350353
const timestamp =
351354
service === 'branch-action'
352355
? new Date(Date.now() - 5 * 60 * 1000)
@@ -359,7 +362,6 @@ export function createSupabaseMcpServer(options: SupabaseMcpServerOptions) {
359362
ref: project_id,
360363
},
361364
query: {
362-
// Omitting start and end time defaults to the last minute
363365
iso_timestamp_start: timestamp?.toISOString(),
364366
sql: getLogQuery(service),
365367
},

0 commit comments

Comments
 (0)