Skip to content

Commit 7a4a3d4

Browse files
committed
docs: document monitoring server health and metrics endpoints
1 parent 6fbf952 commit 7a4a3d4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ npx -y mongodb-mcp-server@latest --transport http --httpHost=0.0.0.0 --httpPort=
277277

278278
> **Note:** The default transport is `stdio`, which is suitable for integration with most MCP clients. Use `http` transport if you need to interact with the server over HTTP.
279279
280-
##### Monitoring server (health check and metrics)
280+
##### Monitoring server health checks
281281

282282
When running with `--transport http`, you can optionally start a **separate** monitoring HTTP server that exposes a health-check endpoint and, optionally, a metrics endpoint. It listens on its own host and port, independent of the main MCP HTTP server, so you can keep it on an internal-only interface.
283283

@@ -286,7 +286,7 @@ The monitoring server is only started when **both** `--monitoringServerHost` and
286286
```shell
287287
npx -y mongodb-mcp-server@latest --transport http \
288288
--httpHost=0.0.0.0 --httpPort=3000 \
289-
--monitoringServerHost=0.0.0.0 --monitoringServerPort=8080
289+
--monitoringServerHost=127.0.0.1 --monitoringServerPort=8080
290290
```
291291

292292
It exposes the following routes:
@@ -299,7 +299,7 @@ It exposes the following routes:
299299
Check the health endpoint:
300300

301301
```shell
302-
curl http://0.0.0.0:8080/health
302+
curl http://127.0.0.1:8080/health
303303
# {"status":"ok"}
304304
```
305305

@@ -308,7 +308,7 @@ Use `--monitoringServerFeatures` (or `MDB_MCP_MONITORING_SERVER_FEATURES`) to co
308308
```shell
309309
npx -y mongodb-mcp-server@latest --transport http \
310310
--httpHost=0.0.0.0 --httpPort=3000 \
311-
--monitoringServerHost=0.0.0.0 --monitoringServerPort=8080 \
311+
--monitoringServerHost=127.0.0.1 --monitoringServerPort=8080 \
312312
--monitoringServerFeatures=health-check,metrics
313313
```
314314

0 commit comments

Comments
 (0)