File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
packages/mcp-server-supabase/src Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js' ;
4
4
import { parseArgs } from 'node:util' ;
5
+ import { version } from '../package.json' ;
5
6
import { createSupabaseMcpServer } from './server.js' ;
6
7
7
8
async function main ( ) {
8
9
const {
9
- values : { [ 'access-token' ] : accessToken , [ 'api-url' ] : apiUrl } ,
10
+ values : {
11
+ [ 'access-token' ] : accessToken ,
12
+ [ 'api-url' ] : apiUrl ,
13
+ [ 'version' ] : showVersion ,
14
+ } ,
10
15
} = parseArgs ( {
11
16
options : {
12
17
[ 'access-token' ] : {
@@ -15,9 +20,17 @@ async function main() {
15
20
[ 'api-url' ] : {
16
21
type : 'string' ,
17
22
} ,
23
+ [ 'version' ] : {
24
+ type : 'boolean' ,
25
+ } ,
18
26
} ,
19
27
} ) ;
20
28
29
+ if ( showVersion ) {
30
+ console . log ( version ) ;
31
+ process . exit ( 0 ) ;
32
+ }
33
+
21
34
if ( ! accessToken ) {
22
35
console . error (
23
36
'Please provide a personal access token (PAT) with the --access-token flag'
You can’t perform that action at this time.
0 commit comments