File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
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/cli.cjs --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/cli.cjs " ]
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ startCommand:
34
34
# A function that produces the CLI command to start the MCP on stdio.
35
35
|-
36
36
(config) => {
37
- const args = ['dist/index.js '];
37
+ const args = ['dist/cli.cjs '];
38
38
if (config) {
39
39
if (config.atlasClientId) {
40
40
args.push('--apiClientId');
Original file line number Diff line number Diff line change 9
9
"request" : " launch" ,
10
10
"name" : " Launch Program" ,
11
11
"skipFiles" : [" <node_internals>/**" ],
12
- "program" : " ${workspaceFolder}/dist/index.js " ,
12
+ "program" : " ${workspaceFolder}/dist/cli.cjs " ,
13
13
"preLaunchTask" : " tsc: build - tsconfig.build.json" ,
14
14
"outFiles" : [" ${workspaceFolder}/dist/**/*.js" ]
15
15
}
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/cli.cjs "
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/cli.cjs
108
108
```
109
109
110
110
## Pull Request Guidelines
You can’t perform that action at this time.
0 commit comments