这是BluestoneApps编码标准和示例MCP服务器的Node.js实现。
此MCP服务器通过模型上下文协议(MCP)提供对React Native编码标准和代码示例的访问。它可以与如Windsurf IDE这样的MCP客户端一起使用。
npm install
npm run build
启动服务器:
npm start
要与MCP客户端一起使用,请配置它们连接到此服务器。
服务器提供了以下工具:
get_project_structure: 获取项目结构标准get_api_communication: 获取API通信标准get_component_design: 获取组件设计标准get_state_management: 获取状态管理标准get_component_example: 获取特定组件示例get_hook_example: 获取特定钩子示例get_service_example: 获取特定服务示例get_screen_example: 获取特定屏幕示例get_theme_example: 获取特定主题示例list_available_examples: 列出所有可用的代码示例对于Windsurf IDE,更新mcp_config.json如下所示:
{
"servers": {
"bluestoneapps": {
"command": "node",
"args": ["/path/to/build/index.js"],
"description": "BluestoneApps编码标准和示例",
"displayName": "BluestoneApps MCP服务器",
"timeout": 30000
}
}
}