工具 API
deploy_ edge_ function
将 Edge Function 部署到 Supabase 项目。如果函数已存在,这将创建新版本。示例:import "jsr:@supabase/functions-js/edge-runtime.d.ts";Deno.serve(async (req: Request) => { const data = { message: "Hello there!" }; return new Response(JSON.stringify(data), { headers: { 'Content-Type': 'application/json', 'Connection': 'keep-alive' } });});
调用信息
- 工具标识
- supabase-mcp.deploy_edge_function
- 服务提供方
- Supabase
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
project_id必填string
name必填The name of the function
entrypoint_path必填The entrypoint of the function
import_map_pathThe import map for the function.
verify_jwt必填Whether to require a valid JWT in the Authorization header. You SHOULD ALWAYS enable this to ensure authorized access. ONLY disable if the function previously had it disabled OR you've confirmed the function body implements custom authentication (e.g., API keys, webhooks) OR the user explicitly requested it be disabled.
files必填The files to upload. This should include the entrypoint, deno.json, and any relative dependencies. Include the deno.json and deno.jsonc files to configure the Deno runtime (e.g., compiler options, imports) if they exist.