Skip to content

feat(management): add v2 api client - #419

Merged
jordienr merged 4 commits into
mainfrom
jordi/add-management-v2-client
Sep 8, 2026
Merged

jordienr merged 4 commits into
mainfrom
jordi/add-management-v2-client

Conversation

@jordienr

@jordienr jordienr commented Sep 8, 2026

Copy link
Copy Markdown
Member

Problem

Health Advisor is exposed through Management API v2, but the MCP only has a generated v1 client.

Fix

Generate and validate v2 Management API types alongside v1, and add a typed v2 client with the existing bearer-token behavior.

How to test

  • Run

@supabase/[email protected] generate:management-api-types /Users/jordi/Documents/supabase/projects/supabase/mcp/packages/mcp-server-supabase
pnpm generate:management-api-v1-types && pnpm generate:management-api-v2-types

@supabase/[email protected] generate:management-api-v1-types /Users/jordi/Documents/supabase/projects/supabase/mcp/packages/mcp-server-supabase
node scripts/generate-management-api-types.mjs

@supabase/[email protected] generate:management-api-v2-types /Users/jordi/Documents/supabase/projects/supabase/mcp/packages/mcp-server-supabase
node scripts/generate-management-api-v2-types.mjs

  • Expected result: both v1 and v2 type files regenerate without a diff.
  • Run

@supabase/[email protected] typecheck /Users/jordi/Documents/supabase/projects/supabase/mcp/packages/mcp-server-supabase
tsc --noEmit

  • Expected result: type checking passes.

@coveralls

coveralls commented Sep 8, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 34212729573

Warning

Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →

Coverage increased (+0.02%) to 96.419%

Details

  • Coverage increased (+0.02%) from the base build.
  • Patch coverage: 14 of 14 lines across 1 file are fully covered (100%).
  • 2 coverage regressions across 1 file.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

2 previously-covered lines in 1 file lost coverage.

File Lines Losing Coverage Coverage
packages/mcp-server-supabase/src/tools/database-operation-tools.ts 2 97.08%

Coverage Stats

Coverage Status
Relevant Lines: 3576
Covered Lines: 3466
Line Coverage: 96.92%
Relevant Branches: 529
Covered Branches: 492
Branch Coverage: 93.01%
Branches in Coverage %: Yes
Coverage Strength: 60.23 hits per line

💛 - Coveralls

@jordienr
jordienr marked this pull request as ready for review September 8, 2026 08:57
@jordienr
jordienr requested a review from a team as a code owner September 8, 2026 08:57

@barryroodt barryroodt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good with one non-blocking request. Could we consolidate the two type generators into one script so the shared generation logic lives in one place? Details inline.

@barryroodt

Copy link
Copy Markdown
Contributor

LGTM! thanks @jordienr

@jordienr
jordienr merged commit 02ca542 into main Sep 8, 2026
6 checks passed
@supabase-releaser supabase-releaser Bot mentioned this pull request Sep 8, 2026
barryroodt pushed a commit that referenced this pull request Sep 17, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>mcp-server-supabase: 0.13.0</summary>

##
[0.13.0](mcp-server-supabase-v0.12.0...mcp-server-supabase-v0.13.0)
(2026-09-17)


### ⚠ BREAKING CHANGES

* **mcp:** confirm destructive SQL via elicitation and rename
costConfirmation option
([#408](#408))

### Features

* add --http local HTTP entry to mcp-server-supabase
([#401](#401))
([ff063b4](ff063b4))
* **management:** add v2 api client
([#419](#419))
([02ca542](02ca542))
* **mcp:** confirm destructive SQL via elicitation and rename
costConfirmation option
([#408](#408))
([c9c4e3f](c9c4e3f))
* support skip_elicitations in the local HTTP server
([#434](#434))
([9442e82](9442e82))
* URL-mode secret collection for create_edge_function_secret
([#412](#412))
([fb88629](fb88629))


### Bug Fixes

* discourage host-filesystem access in raw-SQL tool descriptions
([#410](#410))
([641ed1e](641ed1e))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants