File tree Expand file tree Collapse file tree 8 files changed +13
-13
lines changed Expand file tree Collapse file tree 8 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 55
55
rm -rf node_modules
56
56
npm pkg set scripts.prepare="exit 0"
57
57
npm install --omit=dev
58
- - run : npx -y @modelcontextprotocol/inspector --cli --method tools/list -- node dist/index.js --connectionString "mongodb://localhost"
58
+ - run : npx -y @modelcontextprotocol/inspector --cli --method tools/list -- node dist/cjs/ index.js --connectionString "mongodb://localhost"
Original file line number Diff line number Diff line change @@ -27,4 +27,4 @@ RUN npm ci --production --ignore-scripts
27
27
# Expose no ports (stdio only)
28
28
29
29
# Default command
30
- CMD ["node" , "dist/index.js" ]
30
+ CMD ["node" , "dist/cjs/ index.js" ]
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ startCommand:
40
40
# A function that produces the CLI command to start the MCP on stdio.
41
41
|-
42
42
(config) => {
43
- const args = ['dist/index.js'];
43
+ const args = ['dist/cjs/ index.js'];
44
44
if (config) {
45
45
if (config.atlasClientId) {
46
46
args.push('--apiClientId');
Original file line number Diff line number Diff line change 18
18
"request" : " launch" ,
19
19
"name" : " Launch Program" ,
20
20
"skipFiles" : [" <node_internals>/**" ],
21
- "program" : " ${workspaceFolder}/dist/index.js" ,
21
+ "program" : " ${workspaceFolder}/dist/cjs/ index.js" ,
22
22
"preLaunchTask" : " tsc: build - tsconfig.build.json" ,
23
23
"outFiles" : [" ${workspaceFolder}/dist/**/*.js" ]
24
24
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ This project implements a Model Context Protocol (MCP) server for MongoDB and Mo
33
33
{
34
34
"mcpServers" : {
35
35
"MongoDB" : {
36
- "command" : " /path/to/mongodb-mcp-server/dist/index.js"
36
+ "command" : " /path/to/mongodb-mcp-server/dist/cjs/ index.js"
37
37
}
38
38
}
39
39
}
@@ -104,7 +104,7 @@ npm run inspect
104
104
This is equivalent to:
105
105
106
106
``` shell
107
- npx @modelcontextprotocol/inspector -- node dist/index.js
107
+ npx @modelcontextprotocol/inspector -- node dist/cjs/ index.js
108
108
```
109
109
110
110
## Pull Request Guidelines
Original file line number Diff line number Diff line change 6
6
"exports" : {
7
7
"." : {
8
8
"import" : {
9
- "types" : " ./dist/lib.d.ts" ,
10
- "default" : " ./dist/lib.js"
9
+ "types" : " ./dist/esm/ lib.d.ts" ,
10
+ "default" : " ./dist/esm/ lib.js"
11
11
},
12
12
"require" : {
13
13
"types" : " ./dist/cjs/lib.d.ts" ,
22
22
"url" : " https://github.com/mongodb-js/mongodb-mcp-server.git"
23
23
},
24
24
"bin" : {
25
- "mongodb-mcp-server" : " dist/index.js"
25
+ "mongodb-mcp-server" : " dist/cjs/ index.js"
26
26
},
27
27
"publishConfig" : {
28
28
"access" : " public"
33
33
"build:update-package-info" : " tsx scripts/update-package-info.ts" ,
34
34
"build:esm" : " tsc --project tsconfig.esm.json && echo '{\" type\" :\" module\" }' > dist/package.json" ,
35
35
"build:cjs" : " tsc --project tsconfig.cjs.json && echo '{\" type\" :\" commonjs\" }' > dist/cjs/package.json" ,
36
- "build:chmod" : " chmod +x dist/index.js" ,
36
+ "build:chmod" : " chmod +x dist/cjs/ index.js" ,
37
37
"build" : " npm run build:clean && npm run build:esm && npm run build:cjs && npm run build:chmod" ,
38
- "inspect" : " npm run build && mcp-inspector -- dist/index.js" ,
38
+ "inspect" : " npm run build && mcp-inspector -- dist/cjs/ index.js" ,
39
39
"prettier" : " prettier" ,
40
40
"check" : " npm run build && npm run check:types && npm run check:lint && npm run check:format" ,
41
41
"check:lint" : " eslint ." ,
Original file line number Diff line number Diff line change 3
3
"compilerOptions" : {
4
4
"module" : " esnext" ,
5
5
"moduleResolution" : " bundler" ,
6
- "outDir" : " ./dist"
6
+ "outDir" : " ./dist/esm "
7
7
}
8
8
}
You can’t perform that action at this time.
0 commit comments