You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
deploy_edge_function ignores deno.jsonc when choosing a default import map #558
deploy_edge_function picks a default import map when import_map_path isn't passed and the function doesn't already have one. That heuristic (deployEdgeFunction in packages/mcp-server-supabase/src/platform/api-platform.ts) only recognises deno.json and import_map.json:
deno.jsonc is ignored. The files parameter description tells agents to "Include the deno.json and deno.jsonc files to configure the Deno runtime (e.g., compiler options, imports) if they exist", but a function whose config is deno.jsonc deploys with no import_map_path. Its imports aren't applied, so bare specifiers that resolve locally fail at runtime after deployment.
The choice depends on file order. If files contains both import_map.json and deno.json, whichever comes first wins. The Supabase CLI always prefers deno.json, then deno.jsonc (apps/cli/src/shared/functions/deploy.ts in supabase/cli).
Steps to reproduce
Call deploy_edge_function for a new function with:
The function deploys with import_map_path set to deno.jsonc, as it would through supabase functions deploy. If several config files are present, the server uses deno.json, then deno.jsonc, then import_map.json, regardless of their order in files.
Actual behavior
The function deploys without an import map (import_map: false). With both import_map.json and deno.json present, the result depends on array order.
Activity
fix(mcp-server-supabase): detect deno.jsonc as the default edge funct…