
一个CLI工具,用于快速搭建模型上下文协议(MCP)服务器应用,支持TypeScript和现代开发工具
概览
一个强大的脚手架工具包,用于创建具有现代开发实践的模型上下文协议(MCP)应用。 Create-MCP-App 是一个单一仓库项目,提供构建 MCP 应用的工具和模板。它采用现代开发实践和工具,确保开发体验顺畅。该项目旨在帮助开发者快速搭建并开始构建 MCP 应用,采用最佳实践和现代工具。 - 🚀 MCP应用的即时项目支架 - 📦 一流的TypeScript支持及严格类型检查 - 🔧 现代开发工具链,支持ESLint、Prettier和Husky - 🎯 服务器和客户端可扩展且可定制的模板 - 🏗️ Monorepo架构配合Turborepo实现高效开发 - 📝 详尽文档和示例 - 🔍 内置测试设置(含Jest) - 🛠️ 开发工具和实用工具 该项目以单仓库形式组织,使用 Turborepo 技术,包含: 为了创建一个新的MCP服务器......
概述(AI 翻译)
一个强大的脚手架工具包,用于创建具有现代开发实践的模型上下文协议(MCP)应用。
概述
Create-MCP-App 是一个单一仓库项目,提供构建 MCP 应用的工具和模板。它采用现代开发实践和工具,确保开发体验顺畅。该项目旨在帮助开发者快速搭建并开始构建 MCP 应用,采用最佳实践和现代工具。
特色
- 🚀 MCP应用的即时项目支架
- 📦 一流TypeScript支持,具备严格类型检查
- 🔧 现代开发工具链,包含ESLint、Prettier和Husky
- 🎯 可扩展且可定制的服务器和客户端模板
- 🏗️ Monorepo架构与Turborepo,实现高效开发
- 📝 全面的文档和示例
- 🔍 Jest 内置测试设置
- 🛠️ 开发工具与实用工具
项目结构
该项目以单仓库形式组织,使用 Turborepo 技术,包含:
快速启动
创建新的MCP服务器应用(详见详细指南):
创建新的MCP客户端应用程序(详见详细指南):
发展
先决条件
- 节点。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
create-mcp-app
A powerful scaffolding toolkit for creating Model Context Protocol (MCP) applications with modern development practices.
Overview
create-mcp-app is a monorepo project that provides tools and templates for building MCP applications. It uses modern development practices and tools to ensure a smooth development experience. The project is designed to help developers quickly set up and start building MCP applications with best practices and modern tooling.
Features
- 🚀 Instant project scaffolding for MCP applications
- 📦 First-class TypeScript support with strict type checking
- 🔧 Modern development toolchain with ESLint, Prettier, and Husky
- 🎯 Extensible and customizable templates for both server and client
- 🏗️ Monorepo architecture with Turborepo for efficient development
- 📝 Comprehensive documentation and examples
- 🔍 Built-in testing setup with Jest
- 🛠️ Development tools and utilities
Project Structure
This project is organized as a monorepo using Turborepo, containing:
create-mcp-app/
├── apps/ # Application packages
│ ├── create-mcp-server-app/ # Server application template
│ │ ├── src/ # Source code
│ │ ├── boilerplate/ # Template files
│ │ ├── docs/ # Documentation
│ │ └── dist/ # Build output
│ │
│ └── create-mcp-client-app/ # Client application template
│ ├── src/ # Source code
│ ├── boilerplate/ # Template files
│ ├── docs/ # Documentation
│ └── dist/ # Build output
│
├── packages/ # Shared packages and configurations
├── .vscode/ # VS Code configuration
└── package.json # Root package configuration
Quick Start
To create a new MCP server application (see detailed guide):
npx create-mcp-server-app@latest my-mcp-server
To create a new MCP client application (see detailed guide):
npx create-mcp-client-app@latest my-mcp-client
Development
Prerequisites
- Node.js 16.x or later
- pnpm 7.x or later
Package Management
This project uses pnpm for package management. To get started with development:
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run development environment
pnpm dev
# Run tests
pnpm test
# Lint code
pnpm lint
Contributing
We welcome contributions! Here’s how you can help:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please make sure to:
- Follow the existing code style
安装
npx create-mcp-server-app@latest my-mcp-server