• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / mcp / 44151770059
98%

Build:
DEFAULT BRANCH: main
Ran 17 Nov 2026 06:51PM UTC
Jobs 1
Files 49
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Nov 2026 06:48PM UTC coverage: 97.731% (+0.003%) from 97.728%
44151770059

push

github

web-flow
fix(mcp-server-supabase): detect deno.jsonc as the default edge function import map (#559)

## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

Fixes #558.

When `deploy_edge_function` is called without `import_map_path` and the
function has no existing import map, the server guesses one from the
uploaded file names. The guess only matches `deno.json` and
`import_map.json`. A function configured through `deno.jsonc` therefore
deploys with no import map, and its `imports` are dropped, even though
the `files` description tells agents to include `deno.jsonc`. When
several matching files are present, the first one in `files` wins, so
the result depends on array order.

## What is the new behavior?

The default import map is chosen by a fixed precedence: `deno.json`,
then `deno.jsonc` (as `supabase functions deploy` does), then the legacy
`import_map.json`. File order no longer matters. An explicit
`import_map_path` still wins, and so does the import map of an existing
function. No tool metadata changes.

## How to Review

1. **Import map selection**
   - `packages/mcp-server-supabase/src/platform/api-platform.ts`
- `deployEdgeFunction` now calls `getDefaultImportMapPath`, which walks
`DEFAULT_IMPORT_MAP_FILENAMES` in order. Fallback order (explicit →
existing → heuristic) is unchanged.

2. **Tests**
   - `packages/mcp-server-supabase/src/server.functions.test.ts`
- A `deno.jsonc`-only deploy gets `import_map_path` ending in
`deno.jsonc`. With `import_map.json`, `deno.jsonc` and `deno.json`
passed in that order, `deno.json` is chosen.

**Review questions**

- [ ] Should `import_map.json` stay as the last fallback? This PR keeps
it for backward compatibility.
- [ ] Do the main execution paths preserve existing behavior?
- [ ] Do tests protect observable behavior rather than implementation
details?

## Verification

Run on Node 24.22.3 / pnpm 10.34.9 after `pnpm run build`:

- `pnpm --filter @supabase/mcp-server-supabas... (continued)

1313 of 1363 branches covered (96.33%)

Branch coverage included in aggregate %.

13 of 13 new or added lines in 3 files covered. (100.0%)

6183 of 6307 relevant lines covered (98.03%)

293.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44151770059.1 17 Nov 2026 06:51PM UTC 49
97.73
GitHub Action Run
Source Files on build 44151770059
  • Tree
  • List 49
  • Changed 4
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44151770059
  • 16bde199 on github
  • Prev Build on main (#44146712974)
  • Next Build on main (#44155886473)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc