File tree 4 files changed +13
-8
lines changed
4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 4
4
.mcpregistry *
5
5
** /bin
6
6
cmd /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:
197
197
198
198
| Variable | Description | Default |
199
199
| ----------| -------------| ---------|
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
+
205
211
206
212
## Testing
207
213
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ func main() {
64
64
}
65
65
}()
66
66
67
- if cfg .Import {
67
+ if cfg .SeedImport {
68
68
log .Println ("Importing data..." )
69
69
database .ImportSeedFile (mongoDB , cfg .SeedFilePath )
70
70
log .Println ("Data import completed successfully" )
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ type Config struct {
12
12
CollectionName string `env:"COLLECTION_NAME" envDefault:"servers_v2"`
13
13
LogLevel string `env:"LOG_LEVEL" envDefault:"info"`
14
14
SeedFilePath string `env:"SEED_FILE_PATH" envDefault:"data/seed.json"`
15
+ SeedImport bool `env:"SEED_IMPORT" envDefault:"true"`
15
16
Version string `env:"VERSION" envDefault:"dev"`
16
17
GithubClientID string `env:"GITHUB_CLIENT_ID" envDefault:""`
17
18
GithubClientSecret string `env:"GITHUB_CLIENT_SECRET" envDefault:""`
18
- Import bool `env:"IMPORT" envDefault:"true"`
19
19
}
20
20
21
21
// NewConfig creates a new configuration with default values
You can’t perform that action at this time.
0 commit comments