Integrates with Biome for code linting and formatting, ensuring code quality standards in the MCP server
Enables repository management and version control for MCP server development
Provides CI/CD pipelines for testing, building, and releasing MCP servers, with automated template synchronization to derived repositories
Runs on Node.js runtime environment with testing across multiple Node.js versions (18, 20, and 22)
Enables automated package publishing and version management for MCP servers
Automates version bumping and release creation based on commit messages
Built with TypeScript for type safety and modern JavaScript features in MCP server development
Provides comprehensive testing framework with coverage reporting for MCP tools
Used for dependency management and script execution in development workflow
Enables schema validation for MCP tool inputs with automatic JSON Schema generation
MCP Template
Build Status
Release Status
A TypeScript template for building MCP (Model Context Protocol) servers with automated template synchronization to downstream repositories.
Features
- 🚀 TypeScript with ES Modules - Modern JavaScript with full type safety
- 🧪 Comprehensive Testing - Vitest with coverage reporting
- 🔧 Code Quality - Biome for linting and formatting
- 📦 Automated Publishing - Semantic versioning and NPM publishing
- 🔄 Template Synchronization - Automatic updates to derived repositories
- 🛠️ Development Tools - Hot reload, watch mode, and CLI support
- 📋 Git Hooks - Automated linting and commit message validation
Quick Start
Using as Template
- Use this template on GitHub to create your new MCP server repository
- Clone your new repository:
- Install dependencies:
- Update configuration:
- Edit
package.json
with your server name and details - Update
src/index.ts
server name and version - Replace example tools in
src/tools/
with your implementations
- Edit
Development
Template Structure
Writing MCP Tools
Basic Tool Example
Register Tools in MCP Server
Template Synchronization
This template includes an automated synchronization system that keeps derived repositories up to date:
How It Works
- Template Changes: When you update the template repository
- Automatic Discovery: GitHub Actions discovers all repositories created from this template
- Sync Dispatch: Template changes are automatically synchronized to derived repos
- Pull Request Creation: Changes are proposed via pull requests for review
Template Marker
The .template-marker
file identifies repositories created from this template:
Customizing Sync Behavior
Edit .github/template-sync-config.yml
to control what gets synchronized:
CI/CD Pipeline
Continuous Integration
- Code Quality: Linting, formatting, and type checking
- Testing: Unit tests with coverage reporting
- Build Verification: Ensures TypeScript compiles successfully
- Multi-Node Testing: Tests on Node.js 18, 20, and 22
Automated Release
- Semantic Versioning: Automatic version bumping based on commit messages
- Changelog Generation: Automatically generated from commit history
- NPM Publishing: Automatic package publishing on release
- GitHub Releases: Automatic GitHub release creation
Commit Message Format
Follow Conventional Commits:
Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Commit changes:
git commit -m 'feat: add amazing feature'
- Push to branch:
git push origin feature/amazing-feature
- Open a Pull Request
License
This project is licensed under the CC BY-NC-SA 4.0 license.
Related Projects
This server cannot be installed
A TypeScript template for building Model Context Protocol servers that provides a structured foundation with automated tools, testing, and synchronization capabilities.
Related MCP Servers
- AsecurityAlicenseAqualityA production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.Last updated -1112JavaScriptMIT License
- AsecurityAlicenseAqualityA production-ready template for building Model Context Protocol servers in TypeScript, offering fast development with Bun, Biome linting, and automated version management.Last updated -11JavaScriptMIT License
- AsecurityFlicenseAqualityA TypeScript-based template for developing Model Context Protocol servers with features like dependency injection and service-based architecture, facilitating the creation and integration of custom data processing tools.Last updated -12TypeScript
- AsecurityAlicenseAqualityA TypeScript-based template for building Model Context Protocol servers, featuring fast testing, automated version management, and a clean structure for MCP tool implementations.Last updated -112TypeScriptMIT License