Skip to content

Commit 26ea329

Browse files
committed
fix: seed from production API by default to ensure validation passes
Fixes #584 Changes the default seed source from local file to production API with filtering to keep startup fast. This ensures local development environments mirror production behavior and all seed data passes validation by default. - Default seed: production API with search filter (4 servers, fast startup) - Updated seed.json with filtered production data for offline development - Added clear documentation for offline and full-server modes - Keeps validation enabled by default in docker-compose.yml
1 parent 843783a commit 26ea329

File tree

4 files changed

+84
-12597
lines changed

4 files changed

+84
-12597
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ MCP_REGISTRY_VERSION=dev
88
MCP_REGISTRY_DATABASE_URL=postgres://username:password@localhost:5432/mcp-registry
99

1010
# Path or URL to import seed data (supports local files and HTTP URLs)
11-
MCP_REGISTRY_SEED_FROM=data/seed.json
11+
# For offline development, use: data/seed.json
12+
MCP_REGISTRY_SEED_FROM=https://registry.modelcontextprotocol.io/v0/servers
1213

1314
# GitHub OAuth configuration
1415
# These creds are for local development with the 'MCP Registry Login (Local)' GitHub App

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ Often (but not always) ideas flow through this pipeline:
4040
make dev-compose
4141
```
4242

43-
This starts the registry at [`localhost:8080`](http://localhost:8080) with PostgreSQL and seed data. The database uses ephemeral storage and is reset each time you restart the containers, ensuring a clean state for development and testing.
43+
This starts the registry at [`localhost:8080`](http://localhost:8080) with PostgreSQL. The database uses ephemeral storage and is reset each time you restart the containers, ensuring a clean state for development and testing.
44+
45+
By default, the registry seeds from the production API with a filtered subset of servers (to keep startup fast). This ensures your local environment mirrors production behavior and all seed data passes validation. For offline development you can seed from a file without validation with `MCP_REGISTRY_SEED_FROM=data/seed.json MCP_REGISTRY_ENABLE_REGISTRY_VALIDATION=false make dev-compose`.
4446

4547
The setup can be configured with environment variables in [docker-compose.yml](./docker-compose.yml) - see [.env.example](./.env.example) for a reference.
4648

0 commit comments

Comments
 (0)