Skip to content

feat(advisors): add health advisor support - #420

Merged
jordienr merged 9 commits into
mainfrom
jordi/add-health-advisor-v2
Oct 6, 2026
Merged

jordienr merged 9 commits into
mainfrom
jordi/add-health-advisor-v2

Conversation

@jordienr

@jordienr jordienr commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Problem

The MCP exposes security and performance advisors but cannot report Health Advisor error-rate findings.

Fix

Add health to get_advisors for backends that support it. Use the v2 Management API to request only high error-rate checks for Data API, Auth, Storage, and Edge Functions. Database connection and infrastructure checks are not requested.

Hide project_not_active and advisor_check_unavailable for now. Return the existing grouped advisor format and preserve compatibility with custom backends that only support security and performance.

How to test

  • Run pnpm --filter @supabase/mcp-server-supabase typecheck.
  • Run CI=1 pnpm --filter @supabase/mcp-server-supabase test -- --run src/server.test.ts src/management-api-v2/index.test.ts. Tests cover the four-check request, hidden unavailable statuses, grouped output, and legacy backend compatibility.
  • Run pnpm exec biome ci ..

An earlier live local MCP call verified v2 access-token authentication. The latest check selection and status preservation are validated with mocked API responses.

@jordienr
jordienr changed the base branch from jordi/add-management-v2-client to main September 8, 2026 10:05
@coveralls

coveralls commented Sep 15, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 35973330254

Coverage decreased (-0.04%) to 96.995%

Details

  • Coverage decreased (-0.04%) from the base build.
  • Patch coverage: 4 uncovered changes across 1 file (55 of 59 lines covered, 93.22%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
packages/mcp-server-supabase/src/tools/debugging-tools.ts 21 17 80.95%
Total (2 files) 59 55 93.22%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 4475
Covered Lines: 4363
Line Coverage: 97.5%
Relevant Branches: 717
Covered Branches: 673
Branch Coverage: 93.86%
Branches in Coverage %: Yes
Coverage Strength: 88.63 hits per line

💛 - Coveralls

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

@raulb raulb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you @jordienr !

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


<details><summary>mcp-utils: 0.9.0</summary>

##
[0.9.0](mcp-utils-v0.8.0...mcp-utils-v0.9.0)
(2026-10-14)


### Features

* **mcp-utils:** add bounded request lifecycle observations
([#427](#427))
([b11d62b](b11d62b))
</details>

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

##
[0.14.0](mcp-server-supabase-v0.13.0...mcp-server-supabase-v0.14.0)
(2026-10-14)


### Features

* **advisors:** add health advisor support
([#420](#420))
([8a26508](8a26508))
* **mcp-server-supabase:** add bounded cost lifecycle observations
([#428](#428))
([657d1f3](657d1f3))
* **mcp-server-supabase:** add destructive SQL observations
([#455](#455))
([4595698](4595698))


### Bug Fixes

* **mcp:** clarify cost and deploy tool descriptions for OpenAI scanner
([#467](#467))
([1f9da03](1f9da03))
* **mcp:** stop double cost confirmation on create_project and
create_branch ([#468](#468))
([3c3b1fc](3c3b1fc))
</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