Skip to content

Supabase MCP fails with ReferenceError when ask to list edge functions #105

@amitchavan90

Description

@amitchavan90

Bug report

Describe the bug

A simple prompt in windsurf/cursor to list all my supbase edge functions gives error as follows:

{
  "error": {
    "name": "ReferenceError",
    "message": "File is not defined"
  }
}

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Prompt in windsur/cursor:

list edge functions from supabase server

Expected behavior

Supabase MCP should have return all the edge functions from my project

Screenshots

Image

System information

  • OS: macOS 15.5
  • Version of supabase-js: 2.48.1
  • Version of Node.js: 18.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions