registry/internal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Frenchie 78c482b8d9
feat(validators): Validate that Server versions are not ranges (#435)
<!-- Provide a brief summary of your changes -->

Validates that server versions are not ranges.


**NB:** This also introduces `validateVersion` as a check on the
top-level `ValidateServerJSON`, as previously we were only checking
version ranges of packages via `validatePackageField` (i.e. `latest`
would have still been a valid top level server version), despite #413's
wording suggesting otherwise.

## Motivation and Context
Solves https://github.com/modelcontextprotocol/registry/issues/415

## How Has This Been Tested?

Tests added in `internal/validators/validators_test.go`

`make check` is clean.

## Breaking Changes
As per @domdomegg's comment, we should
> check nobody has done this in the existing registry data (if they
have, we should explore and understand why people have done this / if
it's valid etc.).

## Types of changes
<!-- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update

## Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply. -->
- [x] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [x] I have added appropriate error handling
- [x] I have added or updated documentation as needed

## Additional context
<!-- Add any other context, implementation notes, or design decisions
-->
2025-09-11 17:14:59 -07:00
..
api Add test for filtered servers (#426) 2025-09-11 07:51:57 +00:00
auth Deduplicate server JSON structs between publisher and registry (#318) 2025-08-28 14:58:15 +01:00
config Add registry validators (#350) 2025-09-04 22:45:59 +01:00
database Use a connection pool instead of a single DB connection (#408) 2025-09-10 06:45:30 -07:00
importer Clean up schema by simplifying version structure (#379) 2025-09-08 14:32:59 -07:00
service Clean up schema by simplifying version structure (#379) 2025-09-08 14:32:59 -07:00
telemetry Add OpenTelemetry metrics instrumentation (#290) 2025-08-21 14:23:37 +01:00
validators feat(validators): Validate that Server versions are not ranges (#435) 2025-09-11 17:14:59 -07:00