File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
packages/mcp-server-supabase Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 11
11
"build" : " tsup --clean" ,
12
12
"prepublishOnly" : " npm run build" ,
13
13
"test" : " vitest" ,
14
- "test:e2e" : " vitest --project e2e" ,
15
14
"test:unit" : " vitest --project unit" ,
15
+ "test:e2e" : " vitest --project e2e" ,
16
+ "test:integration" : " vitest --project integration" ,
16
17
"test:coverage" : " vitest --coverage" ,
17
18
"generate:management-api-types" : " openapi-typescript https://api.supabase.com/api/v1-json -o ./src/management-api/types.ts"
18
19
},
Original file line number Diff line number Diff line change 1
1
import { Client } from '@modelcontextprotocol/sdk/client/index.js' ;
2
2
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js' ;
3
3
import { describe , expect , test } from 'vitest' ;
4
- import {
5
- ACCESS_TOKEN ,
6
- MCP_CLIENT_NAME ,
7
- MCP_CLIENT_VERSION ,
8
- } from '../test/mocks.js' ;
4
+ import { ACCESS_TOKEN , MCP_CLIENT_NAME , MCP_CLIENT_VERSION } from './mocks.js' ;
9
5
import { LoggingMessageNotificationSchema } from '@modelcontextprotocol/sdk/types.js' ;
10
6
11
7
type SetupOptions = {
@@ -36,7 +32,8 @@ async function setup(options: SetupOptions = {}) {
36
32
}
37
33
} ) ;
38
34
39
- const args = [ '-y' , '@supabase/mcp-server-supabase' ] ;
35
+ const command = 'npx' ;
36
+ const args = [ '@supabase/mcp-server-supabase' ] ;
40
37
41
38
if ( accessToken ) {
42
39
args . push ( '--access-token' , accessToken ) ;
@@ -51,7 +48,7 @@ async function setup(options: SetupOptions = {}) {
51
48
}
52
49
53
50
const clientTransport = new StdioClientTransport ( {
54
- command : 'npx' ,
51
+ command,
55
52
args,
56
53
} ) ;
57
54
Original file line number Diff line number Diff line change @@ -34,4 +34,11 @@ export default defineWorkspace([
34
34
testTimeout : 60_000 ,
35
35
} ,
36
36
} ,
37
+ {
38
+ test : {
39
+ name : 'integration' ,
40
+ include : [ 'test/**/*.integration.ts' ] ,
41
+ setupFiles : [ './vitest.setup.ts' ] ,
42
+ } ,
43
+ } ,
37
44
] ) ;
You can’t perform that action at this time.
0 commit comments