supabase-mcp
supabase-mcp copied to clipboard
feat: cost confirmation flows
We need to be crystal clear on which tools incur additional costs and we need users to confirm their understanding before running them. To do this we add two new tools:
-
get_cost -
confirm_cost
Flow
-
The LLM calls
get_costto understand the cost of a new project or new branch (this will depend on the org plan and how many existing projects are in that org).The rules for new projects are:
- Free org: cost will be $0/month (if the user reaches their 2 project limit,
create_projectwill return an error) - Paid org with 0 projects: cost will be $0/month since the first project is included
- Paid org with >0 projects: cost will be $10/month
For new branches, cost is always $0.01344 / hour
- Free org: cost will be $0/month (if the user reaches their 2 project limit,
-
The the LLM shares this information with the user, then calls
confirm_costwhich the user can choose to run. -
confirm_costreturns a confirmation ID that is passed tocreate_projectorcreate_branch. Bothcreate_projectorcreate_branchrequire aconfirm_cost_idand will not run without them.