@raydeck/mcp-registry-validator
v1.0.0
Published
A validator tool for MCP server.json files to ensure they meet publication criteria
Downloads
23
Maintainers
Readme
MCP Registry Validator
A TypeScript-based validator tool for MCP server.json files to ensure they meet publication criteria for the MCP registry.
Installation
Install globally via npm:
npm install -g mcp-registry-validatorOr use with npx (no installation required):
npx mcp-registry-validatorUsage
Validate in current directory
npx mcp-registry-validatorThis will look for server.json in the current directory.
Validate in a specific directory
npx mcp-registry-validator path/to/directoryThis will look for server.json in the specified directory.
Validate a specific file
npx mcp-registry-validator path/to/server.jsonThis will validate the specific file at the given path.
Exit Codes
- 0: Validation successful, no errors found
- 1: Validation failed with errors
What it validates
The validator checks the following:
Required Fields
$schemanametitledescriptionversionpackages(non-empty array)
Field Length Limits
title: max 50 charactersdescription: max 100 charactershomepage: max 200 characters
Name Format
Must follow the pattern: io.github.username/server or com.domain/server
Version Format
Must follow semantic versioning (e.g., 1.0.0)
Homepage (if present)
Must be a valid HTTP(S) URL
Package Configuration
Each package must have:
registryType: one ofnpm,pypi,nuget,oci,mcpbidentifier: max 100 charactersversiontransport.type: one ofstdio,sse,streamable-http
Environment Variables (if present)
- Descriptions must be max 200 characters
- Lists required environment variables
Development
Build
npm install
npm run buildTest locally
npm run devLicense
MIT
