Skip to content

Commit 5fcbf05

Browse files
authored
docs: add @latest to encourage auto-updates (#402)
1 parent c4eb7f1 commit 5fcbf05

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Use your Atlas API Service Accounts credentials. Must follow all the steps in [A
109109
Start Server using npx command:
110110

111111
```shell
112-
npx -y mongodb-mcp-server --apiClientId="your-atlas-service-accounts-client-id" --apiClientSecret="your-atlas-service-accounts-client-secret" --readOnly
112+
npx -y mongodb-mcp-server@latest --apiClientId="your-atlas-service-accounts-client-id" --apiClientSecret="your-atlas-service-accounts-client-secret" --readOnly
113113
```
114114

115115
- For a complete list of arguments see [Configuration Options](#configuration-options)
@@ -118,7 +118,7 @@ Start Server using npx command:
118118
#### Option 4: Standalone Service using environment variables
119119

120120
```shell
121-
npx -y mongodb-mcp-server --readOnly
121+
npx -y mongodb-mcp-server@latest --readOnly
122122
```
123123

124124
You can use environment variables in the config file or set them and run the server via npx.
@@ -247,13 +247,13 @@ You can run the MongoDB MCP Server as an HTTP server instead of the default stdi
247247
To start the server with HTTP transport, use the `--transport http` option:
248248

249249
```shell
250-
npx -y mongodb-mcp-server --transport http
250+
npx -y mongodb-mcp-server@latest --transport http
251251
```
252252

253253
By default, the server will listen on `http://127.0.0.1:3000`. You can customize the host and port using the `--httpHost` and `--httpPort` options:
254254

255255
```shell
256-
npx -y mongodb-mcp-server --transport http --httpHost=0.0.0.0 --httpPort=8080
256+
npx -y mongodb-mcp-server@latest --transport http --httpHost=0.0.0.0 --httpPort=8080
257257
```
258258

259259
- `--httpHost` (default: 127.0.0.1): The host to bind the HTTP server.
@@ -352,7 +352,7 @@ export MDB_MCP_LOGGERS="disk,stderr"
352352
##### Example: Set logger via command-line argument
353353

354354
```shell
355-
npx -y mongodb-mcp-server --loggers mcp stderr
355+
npx -y mongodb-mcp-server@latest --loggers mcp stderr
356356
```
357357

358358
##### Log File Location
@@ -529,7 +529,7 @@ export MDB_MCP_LOG_PATH="/path/to/logs"
529529
Pass configuration options as command-line arguments when starting the server:
530530

531531
```shell
532-
npx -y mongodb-mcp-server --apiClientId="your-atlas-service-accounts-client-id" --apiClientSecret="your-atlas-service-accounts-client-secret" --connectionString="mongodb+srv://username:[email protected]/myDatabase" --logPath=/path/to/logs --readOnly --indexCheck
532+
npx -y mongodb-mcp-server@latest --apiClientId="your-atlas-service-accounts-client-id" --apiClientSecret="your-atlas-service-accounts-client-secret" --connectionString="mongodb+srv://username:[email protected]/myDatabase" --logPath=/path/to/logs --readOnly --indexCheck
533533
```
534534

535535
#### MCP configuration file examples

0 commit comments

Comments
 (0)