From ae24924f3974c57fcea6403d751468167743d649 Mon Sep 17 00:00:00 2001 From: Avinash Sridhar Date: Thu, 24 Apr 2025 15:17:25 -0400 Subject: [PATCH] Update README with database configuration details and run instructions --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ac69b03..c2a1d0f 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ This will create the `registry` binary in the `build/` directory. Alternatively, run ```bash -make run +DATABASE_URL="mongodb://localhost:27017" ./build/registry ``` By default, the service will run on `http://localhost:8080`. @@ -190,9 +190,12 @@ The service can be configured using environment variables: | Variable | Description | Default | |----------|-------------|---------| -| `APP_ENV` | Application environment (production, test) | production | -| `APP_VERSION`| Application version | dev | -| `DATABASE_URL` | MongoDB connection string | mongodb://localhost:27017 | +| `APP_ENV` | Application environment (production, test) | `production` | +| `APP_VERSION`| Application version | `dev` | +| `DATABASE_URL` | MongoDB connection string | `mongodb://localhost:27017` | +| `DATABASE_NAME` | MongoDB database name | `mcp-registry` | +| `COLLECTION_NAME` | MongoDB collection name for server registry | `servers_v2` | + ## Testing