Integrations
Integrates Biome for code linting and formatting, ensuring consistent code quality in the MCP server implementation.
Utilizes Bun for runtime execution and development environment, providing fast testing and execution capabilities for the MCP server.
Supports publishing the MCP server as an npm package, allowing for easy distribution and installation in Claude Desktop environments.
MCP 服务器启动器
使用 TypeScript 构建模型上下文协议 (MCP) 服务器的生产就绪入门模板。
🚀 快速入门
- 克隆存储库
- 安装依赖项:Copy
✨ 主要特点
- 用于快速测试和开发的 Bun
- Biome 用于 linting 和格式化
- 使用标准版本进行自动化版本管理
- 干净、可维护的项目结构
📂 项目结构
⚙️ 配置
创建新工具
该项目包括一个帮助创建新 MCP 工具的脚本:
这将:
- 在
src/tools/<tool-name>
下创建一个新的工具目录 - 生成基本工具结构包括:
- index.ts(主要实现)
- schema.ts(工具参数的 JSON 架构)
- test.ts(测试文件)
- 更新工具索引文件以导出新工具
例子:
🛠️ 开发
- 运行测试:
bun test
- 格式代码:
bun run format
- Lint 代码:
bun run lint
- 构建项目:
bun run build
要将您的开发 MCP 服务器添加到 Claude Desktop:
- 构建项目:Copy
- 添加到您的 Claude 桌面配置:Copy
📜 版本管理
本项目使用standard-version进行自动化版本管理。运行bun run release
即可创建新版本。
提交消息格式
feat
:新功能(提升小版本)fix
:错误修复(补丁版本)BREAKING CHANGE
:重大变更(重大版本更新)
📦 发布到 npm
- 确保您已登录 npm:Copy
- 构建项目:Copy
- 发布包:Copy
在发布新版本之前,请记住使用bun run release
更新版本号。
从 npm 安装(发布后)
添加到您的 Claude 桌面配置:
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
一个可用于生产的模板,用于使用 TypeScript 构建模型上下文协议服务器,具有用于快速开发的 Bun、用于 linting 的 Biome 以及用于创建 MCP 工具的有组织的结构。
Related Resources
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 -1712JavaScriptMIT 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 -17JavaScriptMIT License
- 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 -172TypeScriptMIT License
- -securityFlicense-qualityA TypeScript framework for building Model Context Protocol (MCP) servers with automatic discovery and loading of tools, resources, and prompts.Last updated -67TypeScript