File tree Expand file tree Collapse file tree 4 files changed +13
-8
lines changed
Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 44.mcpregistry *
55** /bin
66cmd /registry /registry
7- registry
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments