Bun MCP服务器模板
用法
创建新项目```bash
bun create github.com/dotneet/bun-mcp-server new_project_name
cd new_project_name
## 实施MCP服务器
使用 克劳德代码 或您喜欢的任何其他工具。```bash
# Edit spec.txt to describe what you want
vim spec.txt
claude "Read spec.txt and implement an MCP Server according to the specifications."
构建服务器```bash
bun run build
## 测试和调试```bash
# 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
安装```bash
Install the command to $HOME/bin or your preferred path
cp dist/$package_name $HOME/bin/
```
