File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/mcp-server-supabase/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { createSupabaseMcpServer } from './server.js';
8
8
async function main ( ) {
9
9
const {
10
10
values : {
11
- [ 'access-token' ] : accessToken ,
11
+ [ 'access-token' ] : cliAccessToken ,
12
12
[ 'api-url' ] : apiUrl ,
13
13
[ 'version' ] : showVersion ,
14
14
} ,
@@ -31,9 +31,12 @@ async function main() {
31
31
process . exit ( 0 ) ;
32
32
}
33
33
34
+ // Use access token from CLI argument or environment variable
35
+ const accessToken = cliAccessToken || process . env . SUPABASE_ACCESS_TOKEN ;
36
+
34
37
if ( ! accessToken ) {
35
38
console . error (
36
- 'Please provide a personal access token (PAT) with the --access-token flag'
39
+ 'Please provide a personal access token (PAT) with the --access-token flag or set the SUPABASE_ACCESS_TOKEN environment variable '
37
40
) ;
38
41
process . exit ( 1 ) ;
39
42
}
You can’t perform that action at this time.
0 commit comments