TypeScript CLI for ContextMesh - npm-like package manager for MCP connectors.
- Node.js 18+
- TypeScript 5.3
- Commander.js for CLI
- Jest for testing
# Install dependencies
npm install
# Run in development
npm run dev publish ./test-connector
# Run tests
npm test
# Type checking
npm run typecheck
# Build
npm run buildsrc/
├── cli.ts # Main CLI entry point
├── commands/ # CLI commands
│ └── publish.ts # Publish command implementation
├── utils/ # Utility functions
│ ├── manifest.ts # Manifest handling
│ ├── validator.ts # Schema validation
│ └── publisher.ts # Publishing logic
└── types/ # TypeScript types
- Manifest validation with JSON Schema
- ZIP archive creation with file filtering
- SHA-256 checksum generation
- Progress indicators
- Dry-run mode
- Unit tests for all utilities
- Integration tests for commands
- Mock registry API for testing
- GitHub Actions for testing
- Automatic npm publishing on release