关于 Node Omnibus MCP Server
Node Omnibus MCP Server 为 Node.js 开发提供项目脚手架、组件生成、配置管理和文档创建工具,适用于希望将这些操作交给 MCP 客户端调用的开发者。它支持 React、Next.js、Express、Fastify 和普通 Node.js 项目。
主要功能
- 01创建多种 Node.js 项目
- 02安装和管理依赖
- 03生成 React 组件与类型定义
- 04管理 TypeScript、脚本及配置
- 05生成 README、API 和组件文档
- 06提供代码分析与调试提示词
适用场景
- 01创建带 TypeScript 配置的新项目
- 02为 React 项目生成组件和类型
- 03更新 npm 脚本或 tsconfig
- 04从 MCP 客户端生成项目文档
MCP 相关
这是通过 stdio 运行的 MCP 服务,向兼容客户端提供项目、依赖、组件、配置和文档工具,并提供相关提示词。
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
工具
本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。
详细介绍
Node Omnibus MCP 服务
一款功能全面的 Model Context Protocol(MCP)服务,提供高级 Node.js 开发工具和自动化能力。
功能
项目管理
- 项目创建:使用内置支持的模板搭建新项目:
- React
- Next.js
- Express
- Fastify
- 纯 Node.js
- TypeScript 集成:自动配置并设置 TypeScript
- 包管理:智能安装依赖并管理版本
组件生成
- 创建 React 组件(函数式或基于类)
- 生成 TypeScript 接口
- 自动定义属性类型
- 生成组件文档
配置管理
- TypeScript 配置管理
- NPM 脚本管理
- 更新 Package.json
- 环境设置
文档
- 生成项目 README
- API 文档
- 组件文档
- TypeScript 类型定义文档
AI 驱动的辅助功能
- 项目创建指导
- 代码分析与改进
- 组件生成辅助
- Git 提交信息建议
- 错误调试辅助
安装
通过 Smithery 安装
要通过 Smithery 自动为 Claude Desktop 安装 Node Omnibus Server:
npx -y @smithery/cli install @bsmi021/mcp-node-omnibus-server --client claude
- 克隆仓库
- 安装依赖:
npm install
使用方法
该服务通过 stdio 使用 Model Context Protocol 运行,可与任何兼容 MCP 的客户端集成。
启动服务
npm start
可用工具
-
create_project{ name: string; type: 'react' | 'node' | 'next' | 'express' | 'fastify'; path: string; typescript?: boolean; } -
install_packages{ packages: string[]; path: string; dev?: boolean; } -
generate_component{ name: string; path: string; type: 'functional' | 'class'; props?: Record<string, string>; } -
create_type_definition{ name: string; path: string; properties: Record<string, string>; } -
add_script{ path: string; name: string; command: string; } -
update_tsconfig{ path: string; options: Record<string, unknown>; } -
create_documentation{ path: string; type: 'readme' | 'api' | 'component'; name?: string; }
可用提示词
-
create-project{ projectType: string; // react, node, next, express, fastify features?: string; // comma-separated list of features } -
analyze-code{ code: string; language: string; } -
generate-component{ name: string; type: string; // functional or class } -
git-commit{ changes: string; // Git diff or description of changes } -
debug-error{ error: string; // Error message or stack trace }
项目结构
node-omnibus-server/
├── src/
│ └── index.ts # Main server implementation
├── dist/ # Compiled JavaScript
├── node_modules/ # Dependencies
├── package.json # Project configuration
└── tsconfig.json # TypeScript configuration
开发
构建
npm run build
运行测试
npm test
开发模式
npm run dev
集成
VSCode 配置
添加到 VSCode 设置中:
{
"mcpServers": {
"node-omnibus": {
"command": "node",
"args": ["path/to/node-omnibus-server/dist/index.js"]
}
}
}
客户端使用示例
const client = new McpClient();
await client.connect(transport);
// Create a new React project
const result = await client.callTool('create_project', {
name: 'my-app',
type: 'react',
path: './projects',
typescript: true
});
// Use AI assistance for project setup
const guidance = await client.getPrompt('create-project', {
projectType: 'react',
features: 'typescript,testing,docker'
});
贡献
- Fork 仓库
- 创建功能分支
- 进行修改
- 提交 pull request
许可证
MIT 许可证 — 详情请参阅 LICENSE 文件
要求
- Node.js >= 14.x
- npm >= 6.x
- TypeScript >= 4.x
依赖项
- @modelcontextprotocol/sdk
- axios
- typescript(开发依赖)
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。