一个全面的模型上下文协议(MCP)服务器,提供高级的Node.js开发工具和自动化功能。
要通过Smithery自动安装Node Omnibus Server到Claude Desktop:
npx -y @smithery/cli install @bsmi021/mcp-node-omnibus-server --client claude
npm install
该服务器使用Model Context Protocol通过stdio运行。它可以与任何兼容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; // 特性逗号分隔列表
}
analyze-code
{
code: string;
language: string;
}
generate-component
{
name: string;
type: string; // 函数式或类式
}
git-commit
{
changes: string; // Git diff或更改描述
}
debug-error
{
error: string; // 错误消息或堆栈跟踪
}
node-omnibus-server/
├── src/
│ └── index.ts # 主服务器实现
├── dist/ # 编译后的JavaScript
├── node_modules/ # 依赖项
├── package.json # 项目配置
└── tsconfig.json # TypeScript配置
npm run build
npm test
npm run dev
在您的VSCode设置中添加:
{
"mcpServers": {
"node-omnibus": {
"command": "node",
"args": ["path/to/node-omnibus-server/dist/index.js"]
}
}
}
const client = new McpClient();
await client.connect(transport);
// 创建一个新的React项目
const result = await client.callTool('create_project', {
name: 'my-app',
type: 'react',
path: './projects',
typescript: true
});
// 使用AI辅助进行项目设置
const guidance = await client.getPrompt('create-project', {
projectType: 'react',
features: 'typescript,testing,docker'
});
MIT许可证 - 查看LICENSE文件获取详细信息