local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
MCP 服务器启动器
使用 TypeScript 构建模型上下文协议 (MCP) 服务器的生产就绪入门模板。
🚀 快速入门
- 克隆存储库
- 安装依赖项:Copy
✨ 主要特点
- 用于快速测试和开发的 Bun
- Biome 用于 linting 和格式化
- 使用标准版本进行自动化版本管理
- 干净、可维护的项目结构
📂 项目结构
Copy
⚙️ 配置
创建新工具
该项目包括一个帮助创建新 MCP 工具的脚本:
Copy
这将:
- 在
src/tools/<tool-name>
下创建一个新的工具目录 - 生成基本工具结构包括:
- index.ts(主要实现)
- schema.ts(工具参数的 JSON 架构)
- test.ts(测试文件)
- 更新工具索引文件以导出新工具
例子:
Copy
🛠️ 开发
- 运行测试:
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 桌面配置:
Copy
You must be authenticated.
Tools
一个可用于生产的模板,用于使用 TypeScript 创建模型上下文协议服务器,提供高效测试、开发和部署的工具。
- 🚀 Quick Start
- ✨ Key Features
- 📂 Project Structure
- ⚙️ Configuration
- 🛠️ Development
- 📜 Version Management
- 📦 Publishing to npm
- Installing from npm (after publishing)