Skip to content

create_branch uncallable in project-scoped mode — confirm_cost not exposed #285

@ocean-views-228

Description

@ocean-views-228

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:

  1. 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.

  2. 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

  1. Connect the Supabase MCP server in project-scoped mode (passing project_ref parameter)
  2. Call list_branches → error: "Project reference is missing when validating permissions"
  3. Attempt to call create_branch → cannot provide required confirm_cost_id parameter because confirm_cost tool is
    not available in project-scoped mode
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MCPbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions