Skip to content

Commit ebd50a4

Browse files
committed
docs: remove seed.json endpoint copy from readme
1 parent c69542e commit ebd50a4

File tree

1 file changed

+4
-105
lines changed

1 file changed

+4
-105
lines changed

README.md

Lines changed: 4 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@ make dev-compose
5555

5656
This will start the MCP Registry service and MongoDB with Docker, running at [`localhost:8080`](http://localhost:8080).
5757

58-
### Registry Composability
59-
60-
The registry supports composability through seed data import/export, allowing registry instances to share data:
61-
62-
```bash
63-
# Start first registry with seed data
64-
MCP_REGISTRY_SEED_FILE_PATH=data/seed.json ./registry
65-
66-
# Start second registry importing from first via HTTP
67-
./registry --seed-file-path=http://localhost:8080/v0/seed.json
68-
```
69-
7058
## Building
7159

7260
If you prefer to run the service locally without Docker, you can build and run it directly:
@@ -399,53 +387,6 @@ Response example:
399387
}
400388
```
401389

402-
#### Export Seed Data
403-
404-
```
405-
GET /v0/seed.json
406-
```
407-
408-
Exports all servers in the registry in seed format for import by other registry instances.
409-
410-
Response example:
411-
```json
412-
[
413-
{
414-
"id": "01129bff-3d65-4e3d-8e82-6f2f269f818c",
415-
"name": "io.github.gongrzhe/redis-mcp-server",
416-
"description": "A Redis MCP server implementation for interacting with Redis databases.",
417-
"repository": {
418-
"url": "https://github.com/GongRzhe/REDIS-MCP-Server",
419-
"source": "github",
420-
"id": "907849235"
421-
},
422-
"version_detail": {
423-
"version": "0.0.1-seed",
424-
"release_date": "2025-05-16T19:13:21Z",
425-
"is_latest": true
426-
},
427-
"packages": [
428-
{
429-
"registry_name": "docker",
430-
"name": "@gongrzhe/server-redis-mcp",
431-
"version": "1.0.0",
432-
"package_arguments": [
433-
{
434-
"description": "Docker image to run",
435-
"is_required": true,
436-
"format": "string",
437-
"value": "mcp/redis",
438-
"default": "mcp/redis",
439-
"type": "positional",
440-
"value_hint": "mcp/redis"
441-
}
442-
]
443-
}
444-
]
445-
}
446-
]
447-
```
448-
449390
### Ping Endpoint
450391

451392
```
@@ -495,68 +436,26 @@ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main-20250806-a1b2
495436

496437
**Configuration:** The Docker images support all environment variables listed in the [Configuration](#configuration) section. For production deployments, you'll need to configure the database connection and other settings via environment variables.
497438

498-
### Command Line Flags
499-
500-
Command line flags take precedence over environment variables:
501-
502-
| Flag | Description | Environment Variable |
503-
|------|-------------|---------------------|
504-
| `--seed-file-path` | Path or URL to import seed file | `MCP_REGISTRY_SEED_FILE_PATH` |
505-
506-
## Registry Composability
507-
508-
The MCP Registry supports composability through seed data export/import functionality, enabling registry instances to share data with each other via HTTP endpoints.
509-
510-
### Use Cases
511-
512-
1. **Distributed Registries**: Set up multiple registry instances that share a common dataset
513-
2. **Registry Synchronization**: Import data from a central registry to local instances
514-
3. **Development Environments**: Import production data to development instances
515-
4. **Registry Migration**: Move data between different registry deployments
516-
517-
### Export Seed Data
518-
519-
Any registry instance can export its complete dataset:
520-
521-
```bash
522-
# Export all servers in seed format
523-
curl http://localhost:8080/v0/seed.json > exported_data.json
524-
```
525-
526439
### Import Seed Data
527440

528441
Registry instances can import data from:
529442

530443
**Local files:**
531444
```bash
532445
# Via environment variable
533-
MCP_REGISTRY_SEED_FILE_PATH=data/seed_2025_05_16.json ./registry
446+
MCP_REGISTRY_SEED_FILE_PATH=data/seed.json ./registry
534447

535448
# Via command line flag
536-
./registry --seed-file-path=data/seed_2025_05_16.json
449+
./registry --seed-file-path=data/seed.json
537450
```
538451

539452
**HTTP endpoints:**
540453
```bash
541454
# Via environment variable
542-
MCP_REGISTRY_SEED_FILE_PATH=http://localhost:8080/v0/seed.json ./registry
455+
MCP_REGISTRY_SEED_FILE_PATH=http://other-registry:8080 ./registry
543456

544457
# Via command line flag
545-
./registry --seed-file-path=http://other-registry:8080/v0/seed.json
546-
```
547-
548-
### Composability Workflow Example
549-
550-
```bash
551-
# Step 1: Start primary registry with initial seed data
552-
MCP_REGISTRY_SEED_FILE_PATH=data/seed_2025_05_16.json ./registry
553-
554-
# Step 2: Start secondary registry importing from primary
555-
./registry --seed-file-path=http://localhost:8080/v0/seed.json --server-address=:8081
556-
557-
# Step 3: Verify both registries have the same data
558-
curl http://localhost:8080/v0/servers | jq '.servers | length'
559-
curl http://localhost:8081/v0/servers | jq '.servers | length'
458+
./registry --seed-file-path=http://other-registry:8080
560459
```
561460

562461
## Testing

0 commit comments

Comments
 (0)