Home / Servers / Supabase Management API / v1_update_a_function
Update a function
An MCP tool from the Supabase Management API server, hosted on mcp.hjlabs.in.
Update a function Updates a function with the specified slug and project. [PATCH /v1/projects/{ref}/functions/{function_slug}]
Name on the gateway: supabase_api__v1_update_a_function · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
ref required | string | Project ref |
function_slug required | string | Function slug |
slug | string | slug parameter |
name | string | name parameter |
verify_jwt | string | verify_jwt parameter |
import_map | string | import_map parameter |
entrypoint_path | string | entrypoint_path parameter |
import_map_path | string | import_map_path parameter |
ezbr_sha256 | string | ezbr_sha256 parameter |
body_name | string | |
body | string | |
body_verify_jwt | boolean |
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_update_a_function",
"arguments": {
"ref": "…",
"function_slug": "…"
}
}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 update a function tool with ref set to ….