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
- Ask in cursor a prompt like “list the edge function. Use Supabase MCP.”
- It tries to list the edge function by calling the list_edge_function tool with the parameter of my project_id
- The result is “{“error”:{“name”:“TypeError”,“message”:“File URL path must be absolute”}}”
Expected behavior
MCP function should list the edge functions
Screenshots
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
Hi all - this is now merged and available in the latest version. If you are using the
@latesttag, 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
Can confirm it’s working!
Spent a few days learning the CLI which is always good haha
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_functionsanddeploy_edge_functionworked. Can you share any logs from Cursor (see Output > [Dropdown] Cursor MCP) as well as yourmcp.jsonfile (omitting access token)?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.
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.