Home / Servers / Supabase Management API / v1_deploy_a_function
Deploy a function
An MCP tool from the Supabase Management API server, hosted on mcp.hjlabs.in.
Deploy a function A new endpoint to deploy functions. It will create if function does not exist. [POST /v1/projects/{ref}/functions/deploy]
Name on the gateway: supabase_api__v1_deploy_a_function · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
ref required | string | Project ref |
slug | string | slug parameter |
bundleOnly | string | bundleOnly parameter |
file required | array | |
metadata required | object |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "supabase_api__v1_deploy_a_function",
"arguments": {
"ref": "…",
"file": [],
"metadata": "…"
}
}Or connect the Supabase Management API server directly, which lists 167 tools including this one:
claude mcp add --transport http hj-supabase-api https://mcp.hjlabs.in/mcp/supabase-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the deploy a function tool with ref set to ….