You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: consolidate documentation and remove redundancy
- Remove CLAUDE.md with Import statement in favor of direct README.md reference
- Consolidate CONTRIBUTING.md content into README.md Contributing section
- Move architecture details and useful developer info from old CLAUDE.md to README.md
- Remove redundant information that was duplicated between files
This reduces documentation maintenance overhead by having a single source of truth
in README.md while keeping Claude Code functional.
_Guidance for Claude Code (claude.ai/code) when working in this repository. If it's also useful to humans (probably most things!), put the instructions in README.md instead._
2
3
3
-
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
-
5
-
## Overview
6
-
MCP Registry is a community-driven registry service for Model Context Protocol (MCP) servers. It provides a centralized repository for discovering and managing MCP implementations.
7
-
8
-
## Development Setup
9
-
10
-
### Prerequisites
11
-
-**Go 1.23.x** - The project requires this specific version (check with `go version`)
12
-
- Consider using a Go version manager like `g` or `gvm` if you work on multiple projects
Copy file name to clipboardExpand all lines: README.md
+83-15Lines changed: 83 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,15 @@ A community driven registry service for Model Context Protocol (MCP) servers.
4
4
5
5
## Development Status
6
6
7
-
This project is being built in the open and is currently in the early stages of development. Please see the [overview discussion](https://github.com/modelcontextprotocol/registry/discussions/11) for the project scope and goals. If you would like to contribute, please check out the [contributing guidelines](CONTRIBUTING.md).
7
+
This project is being built in the open and is currently in the early stages of development. Please see the [overview discussion](https://github.com/modelcontextprotocol/registry/discussions/11) for the project scope and goals.
8
+
9
+
### Contributing
10
+
11
+
Use [Discussions](https://github.com/modelcontextprotocol/registry/discussions) to propose and discuss product and/or technical **requirements**.
12
+
13
+
Use [Issues](https://github.com/modelcontextprotocol/registry/issues) to track **well-scoped technical work** that the community agrees should be done at some point.
14
+
15
+
Open [Pull Requests](https://github.com/modelcontextprotocol/registry/pulls) when you want to **contribute work towards an Issue**, or you feel confident that your contribution is desireable and small enough to forego community discussion at the requirements and planning levels.
8
16
9
17
## Overview
10
18
@@ -55,8 +63,21 @@ go build ./cmd/registry
55
63
```
56
64
This will create the `registry` binary in the current directory. You'll need to have MongoDB running locally or with Docker.
57
65
66
+
You can also run the service directly:
67
+
```bash
68
+
# Direct execution
69
+
go run cmd/registry/main.go
70
+
```
71
+
58
72
By default, the service will run on `http://localhost:8080`.
59
73
74
+
There is also a CLI tool to publish MCP servers to the registry. You can build it with:
-**Factory Pattern** for service creation with dependency injection
150
+
-**Repository Pattern** for database abstraction
151
+
-**Context Pattern** for timeout management (5-second DB operations)
152
+
-**Cursor-based Pagination** using UUIDs for stateless pagination
105
153
106
-
The API is documented using Swagger/OpenAPI. You can access the interactive Swagger UI at:
154
+
## API Endpoints
155
+
156
+
### API Documentation
107
157
108
158
```
109
-
/v0/swagger/index.html
159
+
GET /v0/swagger/index.html
110
160
```
111
161
112
-
This provides a complete reference of all endpoints with request/response schemas and allows you to test the API directly from your browser.
113
-
114
-
## API Endpoints
162
+
The API is documented using Swagger/OpenAPI. This page provides a complete reference of all endpoints with request/response schemas and allows you to test the API directly from your browser.
115
163
116
164
### Health Check
117
165
@@ -333,6 +381,22 @@ The service can be configured using environment variables:
333
381
334
382
## Testing
335
383
384
+
### Unit Tests
385
+
386
+
```bash
387
+
# Run unit tests
388
+
go test -v -race -coverprofile=coverage.out -covermode=atomic ./internal/...
389
+
```
390
+
391
+
### Integration Tests
392
+
393
+
```bash
394
+
# Run integration tests
395
+
./tests/integration/run.sh
396
+
```
397
+
398
+
### API Endpoint Tests
399
+
336
400
Run the test script to validate API endpoints:
337
401
338
402
```bash
@@ -346,10 +410,14 @@ You can specify specific endpoints to test:
346
410
./scripts/test_endpoints.sh --endpoint servers
347
411
```
348
412
349
-
##License
413
+
### Publish Endpoint Test
350
414
351
-
See the [LICENSE](LICENSE) file for details.
415
+
```bash
416
+
# Test publish endpoint (requires GitHub token)
417
+
export BEARER_TOKEN=your_github_token_here
418
+
./scripts/test_publish.sh
419
+
```
352
420
353
-
## Contributing
421
+
## License
354
422
355
-
See the [CONTRIBUTING](CONTRIBUTING.md) file for details.
0 commit comments