
🚀 MCP 样板
由 Bun 提供支持
适用于模型上下文协议 (MCP) 应用程序的现代、快速样板
🔥 特点
超快 MCP与 Bun
现代 TypeScript 优先架构
开箱即用的 MCP SDK 集成(
@modelcontextprotocol/sdk)Express 5.x 服务器具有适当的 TypeScript 支持
使用 Zod 模式进行稳健验证
与 Morgan 一起进行智能伐木
环境配置支持
CLI 就绪实施
Related MCP server: MCP Server Starter
🛠️ 先决条件
包管理器(
bun、npm、pnpm或yarn)
⚡ 快速入门
# Clone repository
git clone https://github.com/jhon2c/mcp-boilerplate.git
cd mcp-boilerplate
# Install dependencies (with Bun) [Recommended]
bun install
# OR with npm
npm install
# Start development server
bun run dev🚄 开发脚本
命令 | 描述 |
| 使用热重载启动开发服务器 |
| 编译 TypeScript |
| 运行已编译的 CLI |
🌐 环境设置
创建 .env 文件:
PORT=3000
MCP_API_KEY=your_api_key_here
DEBUG=mcp:*✨ 在 Cursor 上设置 MCP 服务器
安装并运行服务器
转至光标 MCP 设置
Files > Preferences > Cursor Settings > MCP添加新的 MCP 服务器
+ Add new global MCP server粘贴设置 JSON
{
"mcpServers": {
"mcp-boilerplate": {
"url": "http://localhost:3001/sse"
}
}
}📂 项目结构
mcp-boilerplate/
├── src/
│ ├── index.ts
│ ├── config/
│ ├── services/
│ └── types/
└── build/📦关键依赖项
运行时:
开发者:
🤝 贡献 Fork 仓库
创建功能分支
提交更改
推送分支
开放 PR
📄 MIT 许可证 - 请参阅许可证
祝您编码愉快!
This server cannot be installed
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.