registry/internal/validators/registries
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam jones 8f5e17d0fe
Enforce and document file hash requirement for MCPB packages (#368)
## Summary
Implements mandatory file hash validation for MCPB (MCP Bundle) packages
to ensure file integrity and security.

## Changes
- **Validator enforcement**: MCPB packages now require `file_sha256`
field at publish time
- **Test coverage**: Updated all MCPB test cases to include valid
SHA-256 hashes
- **Documentation**: Updated publisher guide and schema to reflect hash
requirement
- **Error handling**: Clear error message when hash is missing

## Security Impact
This ensures the complete security workflow for MCPB packages:
1. Authors generate and provide SHA-256 hashes when publishing
2. Registry validates hash is present (but doesn't verify content)
3. MCP clients validate hash matches downloaded file before installation

Fixes #351
2025-09-08 11:38:25 -07:00
..
mcpb.go Enforce and document file hash requirement for MCPB packages (#368) 2025-09-08 11:38:25 -07:00
mcpb_test.go Enforce and document file hash requirement for MCPB packages (#368) 2025-09-08 11:38:25 -07:00
npm.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00
npm_test.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00
nuget.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00
nuget_test.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00
oci.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00
oci_test.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00
pypi.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00
pypi_test.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00
testutils_test.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00