feat: add MongoDB data importer tool and update README
This commit is contained in:
parent
d25404bfd6
commit
8832b9a21a
1 changed files with 426 additions and 0 deletions
15
README.md
15
README.md
|
|
@ -30,6 +30,8 @@ The MCP Registry service provides a centralized repository for MCP server entrie
|
|||
│ └── service/ # Business logic
|
||||
├── pkg/ # Public libraries
|
||||
├── scripts/ # Utility scripts
|
||||
├── tools/ # Command line tools
|
||||
│ └── importer/ # MongoDB data importer tool
|
||||
└── build/ # Build artifacts
|
||||
```
|
||||
|
||||
|
|
@ -109,6 +111,19 @@ The fake service is useful for:
|
|||
- Testing API integrations
|
||||
- Example data structure reference
|
||||
|
||||
## Tools
|
||||
|
||||
### Data Importer
|
||||
|
||||
A command-line tool for importing server data from a JSON file into a MongoDB database:
|
||||
|
||||
```bash
|
||||
cd tools/importer
|
||||
go run main.go -uri mongodb://localhost:27017 -db mcp_registry -collection servers -seed ../../data/seed.json
|
||||
```
|
||||
|
||||
For more details on the importer tool, see the [importer README](./tools/importer/README.md).
|
||||
|
||||
## API Documentation
|
||||
|
||||
The API is documented using Swagger/OpenAPI. You can access the interactive Swagger UI at:
|
||||
|
|
|
|||
Loading…
Reference in a new issue