Skip to content

Commit d3b607b

Browse files
committed
docs: update env var docs in readme
1 parent d32b528 commit d3b607b

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ data
44
.mcpregistry*
55
**/bin
66
cmd/registry/registry
7-
registry

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,17 @@ The service can be configured using environment variables:
197197

198198
| Variable | Description | Default |
199199
|----------|-------------|---------|
200-
| `MCP_REGISTRY_ENVIRONMENT` | Application environment (production, test) | `production` |
201-
| `MCP_REGISTRY_APP_VERSION` | Application version | `dev` |
202-
| `MCP_REGISTRY_DATABASE_URL` | MongoDB connection string | `mongodb://localhost:27017` |
203-
| `MCP_REGISTRY_DATABASE_NAME` | MongoDB database name | `mcp-registry` |
204-
| `MCP_REGISTRY_COLLECTION_NAME` | MongoDB collection name for server registry | `servers_v2` |
200+
| `MCP_REGISTRY_APP_VERSION` | Application version | `dev` |
201+
| `MCP_REGISTRY_COLLECTION_NAME` | MongoDB collection name | `servers_v2` |
202+
| `MCP_REGISTRY_DATABASE_NAME` | MongoDB database name | `mcp-registry` |
203+
| `MCP_REGISTRY_DATABASE_URL` | MongoDB connection string | `mongodb://localhost:27017` |
204+
| `MCP_REGISTRY_GITHUB_CLIENT_ID` | GitHub App Client ID | |
205+
| `MCP_REGISTRY_GITHUB_CLIENT_SECRET` | GitHub App Client Secret | |
206+
| `MCP_REGISTRY_LOG_LEVEL` | Log level | `info` |
207+
| `MCP_REGISTRY_SEED_FILE_PATH` | Path to import seed file | `data/seed.json` |
208+
| `MCP_REGISTRY_SEED_IMPORT` | Import `seed.json` on first run | `true` |
209+
| `MCP_REGISTRY_SERVER_ADDRESS` | Listen address for the server | `:8080` |
210+
205211

206212
## Testing
207213

cmd/registry/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func main() {
6464
}
6565
}()
6666

67-
if cfg.Import {
67+
if cfg.SeedImport {
6868
log.Println("Importing data...")
6969
database.ImportSeedFile(mongoDB, cfg.SeedFilePath)
7070
log.Println("Data import completed successfully")

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ type Config struct {
1212
CollectionName string `env:"COLLECTION_NAME" envDefault:"servers_v2"`
1313
LogLevel string `env:"LOG_LEVEL" envDefault:"info"`
1414
SeedFilePath string `env:"SEED_FILE_PATH" envDefault:"data/seed.json"`
15+
SeedImport bool `env:"SEED_IMPORT" envDefault:"true"`
1516
Version string `env:"VERSION" envDefault:"dev"`
1617
GithubClientID string `env:"GITHUB_CLIENT_ID" envDefault:""`
1718
GithubClientSecret string `env:"GITHUB_CLIENT_SECRET" envDefault:""`
18-
Import bool `env:"IMPORT" envDefault:"true"`
1919
}
2020

2121
// NewConfig creates a new configuration with default values

0 commit comments

Comments
 (0)