Bug report
Describe the bug
When using the Supabase MCP server in project-scoped mode (recommended security configuration), the branching tools are fully non-functional:
-
create_branch requires a confirm_cost_id parameter, which can only be obtained from confirm_cost. But confirm_cost (and get_cost) are in the Account Management feature group, which is disabled in project-scoped mode. This makes create_branch uncallable.
-
list_branches returns the error: "Project reference is missing when validating permissions." This makes the entire branching surface non-functional — even if a branch were created via the dashboard, the MCP cannot see or manage it.merge_branch is presumed to fail the same way.
The branching tools are listed in the Branching feature group, which is documented as available in project-scoped mode. The bug
is that they depend on an account-scoped prerequisite (confirm_cost) that is unavailable in the same mode.
To Reproduce
- Connect the Supabase MCP server in project-scoped mode (passing
project_ref parameter)
- Call
list_branches → error: "Project reference is missing when validating permissions"
- Attempt to call
create_branch → cannot provide required confirm_cost_id parameter because confirm_cost tool is
not available in project-scoped mode
- All branching operations are blocked
Expected behavior
Branching tools should be fully functional in project-scoped mode. Either:
- Expose
get_cost / confirm_cost in project-scoped mode (scoped to the connected project), or
- Allow
create_branch without confirm_cost_id in project-scoped mode (project is already identified, cost is deterministic), or
- Fix project reference resolution for
list_branches / merge_branch in project-scoped connections
Screenshots
N/A — MCP tool calls, not browser UI.
System information
- OS: N/A (cloud-hosted MCP via Claude.ai)
- Browser: N/A
- Version of supabase-js: N/A
- Version of Node.js: N/A
- MCP access method: Claude.ai MCP integration
- Supabase plan: Pro
- MCP connection mode: project-scoped
- Region: us-west-2
Additional context
This blocks the staging-branch workflow for MCP-managed migrations. The intended workflow is create_branch → apply_migration on dev branch → verify → merge_branch to production. Without functional branching, migrations must be applied directly to production with no staging validation.
Bug report
Describe the bug
When using the Supabase MCP server in project-scoped mode (recommended security configuration), the branching tools are fully non-functional:
create_branchrequires aconfirm_cost_idparameter, which can only be obtained fromconfirm_cost. Butconfirm_cost(andget_cost) are in the Account Management feature group, which is disabled in project-scoped mode. This makescreate_branchuncallable.list_branchesreturns the error: "Project reference is missing when validating permissions." This makes the entire branching surface non-functional — even if a branch were created via the dashboard, the MCP cannot see or manage it.merge_branchis presumed to fail the same way.The branching tools are listed in the Branching feature group, which is documented as available in project-scoped mode. The bug
is that they depend on an account-scoped prerequisite (
confirm_cost) that is unavailable in the same mode.To Reproduce
project_refparameter)list_branches→ error: "Project reference is missing when validating permissions"create_branch→ cannot provide requiredconfirm_cost_idparameter becauseconfirm_costtool isnot available in project-scoped mode
Expected behavior
Branching tools should be fully functional in project-scoped mode. Either:
get_cost/confirm_costin project-scoped mode (scoped to the connected project), orcreate_branchwithoutconfirm_cost_idin project-scoped mode (project is already identified, cost is deterministic), orlist_branches/merge_branchin project-scoped connectionsScreenshots
N/A — MCP tool calls, not browser UI.
System information
Additional context
This blocks the staging-branch workflow for MCP-managed migrations. The intended workflow is create_branch → apply_migration on dev branch → verify → merge_branch to production. Without functional branching, migrations must be applied directly to production with no staging validation.