supabase-mcp: list_edge_function error "File URL path must be absolute"

Bug report

Describe the bug

When trying to list Edge Functions using the Supabase MCP server (mcp_supabase_list_edge_functions), the operation consistently fails with the error:

{"error":{"name":"TypeError","message":"File URL path must be absolute"}}

To Reproduce

  1. Ask in cursor a prompt like “list the edge function. Use Supabase MCP.”
  2. It tries to list the edge function by calling the list_edge_function tool with the parameter of my project_id
  3. The result is “{“error”:{“name”:“TypeError”,“message”:“File URL path must be absolute”}}”

Expected behavior

MCP function should list the edge functions

Screenshots

Image

System information

  • OS: Windows
  • Cursor
  • LLM Claude Sonnet 3.7 with thinking
  • Version of Node.js: v23.10.0

Additional context

MCP-Config: “supabase”: { “command”: “cmd”, “args”: [ “/c”, “npx”, “-y”, “@supabase/mcp-server-supabase@latest”, “–access-token”, “***” ] },

Other tools of this MCP are working fine

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17

Most upvoted comments

Hi all - this is now merged and available in the latest version. If you are using the @latest tag, simply restart your MCP client (ie. Cursor) for the changes to take effect. Let me know if you continue to experience this issue after restarting.

Hi all - this is now merged and available in the latest version. If you are using the @latest tag, simply restart your MCP client (ie. Cursor) for the changes to take effect. Let me know if you continue to experience this issue after restarting.

thank youuuu

Hi all - this is now merged and available in the latest version. If you are using the @latest tag, simply restart your MCP client (ie. Cursor) for the changes to take effect. Let me know if you continue to experience this issue after restarting.

Can confirm it’s working!

Spent a few days learning the CLI which is always good haha

Thanks for reporting @itbc-git & @unpacify. To help debug this, could you share a bit about what your edge functions look like?

For example:

  • How many edge functions do you have?
  • What files do you have in them (TS files, deno.json, import_map.json)
  • How the edge functions were originally deployed (CLI, web dashboard, MCP)
  • Any other useful information that you think could help

7 edge functions index.ts files Initially my project was setup via lovable - later on I tried cursor and windsurf. The latest edge functions was deployed by Cursor using the MCP tool “deploy_edge_function” As I did not use this MCP before, previous edge function deployments might be different (just don´t remember details)

I have the same issue. I originally deployed them through lovable.dev and everything was working correctly until a couple of hours ago where I can’t use the MCP correctly in Cursor.

I have about 10 to 12 Edge functions.

@unpacify - strange, I just tried this (on Windows) and both list_edge_functions and deploy_edge_function worked. Can you share any logs from Cursor (see Output > [Dropdown] Cursor MCP) as well as your mcp.json file (omitting access token)?

Hi all - this is now merged and available in the latest version. If you are using the @latest tag, simply restart your MCP client (ie. Cursor) for the changes to take effect. Let me know if you continue to experience this issue after restarting.

okay so it looks like the “list_edge_functions” tool is working, but the “deploy_edge_function” doesnt work. i attached my chat so you can see whats happening.

Image

Windows 11 - still not fixed.

Followed the installations to set it up to the letter.

i need to get backend stuff done and i really dont wanna use the CLI lol

Windows 11 - still not fixed.

Followed the installations to set it up to the letter.