Skip to content

Conversation

toyamarinyon
Copy link
Contributor

  • Allow access token to be set via environment variable (SUPABASE_ACCESS_TOKEN) as an alternative to the CLI flag
  • Improves developer experience by allowing tokens to be stored in environment instead of passed on command line

@sweatybridge sweatybridge requested a review from gregnr April 8, 2025 09:23
Copy link
Collaborator

@gregnr gregnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition, thanks @toyamarinyon 🎉

I added some docs to the README so that everyone is aware of this.

@gregnr gregnr merged commit 10b39e6 into supabase-community:main Apr 8, 2025
1 check passed
@toyamarinyon toyamarinyon deleted the stdio-updates branch April 9, 2025 06:10
@scheung38
Copy link

scheung38 commented Apr 29, 2025

Hi @gregnr

Is this correct?

  "supabase": {
      "command": "npx",
      "args": [
        "-y",
        "@supabase/mcp-server-supabase@latest",
        "$SUPABASE_ACCESS_TOKEN"
      ]
    }
  }
}

ps aux | grep npx does not seem to pick it up even after source .env

.env
SUPABASE_ACCESS_TOKEN="sbp_<MY_TOKEN>"

GQAdonis pushed a commit to skytok-net/supabase-mcp that referenced this pull request Aug 14, 2025
Add support for SUPABASE_ACCESS_TOKEN environment variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants