MCP服务器构建工具

一个基于Bun的MCP服务器构建工具,支持通过规范文件自动生成服务器代码,并提供测试和调试功能。

  • by dotneet
  • TypeScript
  • 本地部署
  • 6 星标
  • 更新于
在 GitHub 查看 dotneet/bun-mcp-server

使用说明

Bun MCP服务器模板

用法

创建新项目

bun create github.com/dotneet/bun-mcp-server new_project_name
cd new_project_name

实施MCP服务器

使用 克劳德代码 或您喜欢的任何其他工具。

# Edit spec.txt to describe what you want
vim spec.txt
claude "Read spec.txt and implement an MCP Server according to the specifications."

构建服务器

bun run build

测试和调试

# You can use [inspector](https://github.com/modelcontextprotocol/inspector) for testing and debugging.
package_name=$(bun run show-package-name)
npx @modelcontextprotocol/inspector dist/$package_name

安装

# Install the command to $HOME/bin or your preferred path
cp dist/$package_name $HOME/bin/