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

supabase / mcp / 45371955792
98%

Build:
DEFAULT BRANCH: main
Ran 24 Nov 2026 10:11AM 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

24 Nov 2026 10:08AM UTC coverage: 98.16% (+0.001%) from 98.159%
45371955792

push

github

web-flow
fix(mcp-server-supabase): stop reusing a removed import map on edge function redeploy (#588)

## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

Fixes #587. The fix follows the expected behavior described in that
issue.

An import map is the file that tells an Edge Function where its imports
come from: `deno.json`, `deno.jsonc`, or `import_map.json`.

When `deploy_edge_function` redeploys a function and the caller does not
pass `import_map_path`, the tool reuses the path from the last deploy.
It does this even when that file is no longer in the upload.

Example: a function was deployed with `import_map.json`. It is
redeployed with `index.ts` and `deno.jsonc`. The request still names
`import_map.json` as the import map. That file was not sent, and the
tool ignores the new `deno.jsonc`. The Management API then rejects the
deploy with `import map path does not exist`.

This is the move the docs recommend: [Managing
dependencies](https://supabase.com/docs/guides/functions/dependencies)
calls `import_map.json` legacy and says to use `deno.json`. A redeploy
that makes this move is the case that breaks.

## What is the new behavior?

When `import_map_path` is not passed, the tool reuses the old path only
if that file is in the new upload. If it is not, the tool picks the
import map from the new files, the same way it does on a first deploy.

| Redeploy without `import_map_path` | Before | After |
| --- | --- | --- |
| Upload still has the old import map | old path | old path |
| Upload has `deno.jsonc` instead | old path | `deno.jsonc` |
| Upload has no import map | old path | no import map |

A file sent as `./import_map.json` counts as `import_map.json`, so
redeploys that use `./` names work as before. If the caller passes
`import_map_path`, the tool still uses it. No tool metadata changes.

## How to Review

1. **Import map choice**
   - `packages/mcp-server-supabase/src/platform/api-platform.ts`
- In `deployEdgeFun... (continued)

1344 of 1392 branches covered (96.55%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

6285 of 6380 relevant lines covered (98.51%)

297.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45371955792.1 24 Nov 2026 10:11AM UTC 49
98.16
GitHub Action Run
Source Files on build 45371955792
  • Tree
  • List 49
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45371955792
  • 56093a69 on github
  • Prev Build on main (#45366330996)
  • Next Build on main (#45575886203)
  • 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