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 5555 rm -rf node_modules
5656 npm pkg set scripts.prepare="exit 0"
5757 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
2727# Expose no ports (stdio only)
2828
2929# 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:
3434 # A function that produces the CLI command to start the MCP on stdio.
3535 |-
3636 (config) => {
37- const args = ['dist/index.js '];
37+ const args = ['dist/cli.cjs '];
3838 if (config) {
3939 if (config.atlasClientId) {
4040 args.push('--apiClientId');
Original file line number Diff line number Diff line change 99 "request" : " launch" ,
1010 "name" : " Launch Program" ,
1111 "skipFiles" : [" <node_internals>/**" ],
12- "program" : " ${workspaceFolder}/dist/index.js " ,
12+ "program" : " ${workspaceFolder}/dist/cli.cjs " ,
1313 "preLaunchTask" : " tsc: build - tsconfig.build.json" ,
1414 "outFiles" : [" ${workspaceFolder}/dist/**/*.js" ]
1515 }
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
3333 {
3434 "mcpServers" : {
3535 "MongoDB" : {
36- "command" : " /path/to/mongodb-mcp-server/dist/index.js "
36+ "command" : " /path/to/mongodb-mcp-server/dist/cli.cjs "
3737 }
3838 }
3939 }
@@ -104,7 +104,7 @@ npm run inspect
104104This is equivalent to:
105105
106106``` shell
107- npx @modelcontextprotocol/inspector -- node dist/index.js
107+ npx @modelcontextprotocol/inspector -- node dist/cli.cjs
108108```
109109
110110## Pull Request Guidelines
You can’t perform that action at this time.
0 commit comments