Skip to content

Commit be35dfa

Browse files
chore: update cli entrypoints
1 parent 3315ee7 commit be35dfa

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
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"

.smithery/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"]

.smithery/smithery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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');

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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
}

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
104104
This 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

0 commit comments

Comments
 (0)