MCP 远程服务器(Node.js 版本)
这是 BluestoneApps 编码标准和示例 MCP 服务器的 Node.js 实现。
概述
此 MCP 服务器通过模型上下文协议 (MCP) 提供对 React Native 编码标准和代码示例的访问。它可以与 Windsurf IDE 等 MCP 客户端一起使用。
特征
- 访问 React Native 编码标准
- 组件、钩子、屏幕、服务和主题代码示例
- 通过名称查找示例的模糊匹配
- 与 MCP 协议完全集成
安装
- 克隆此存储库
- 安装依赖项:
- 构建项目:
用法
启动服务器:
要与 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
:列出所有可用的代码示例
使用 MCP 客户端进行配置
对于 Windsurf IDE,使用以下内容更新mcp_config.json
:
{
"servers": {
"bluestoneapps": {
"command": "node",
"args": ["/path/to/build/index.js"],
"description": "BluestoneApps Coding Standards and Examples",
"displayName": "BluestoneApps MCP Server",
"timeout": 30000
}
}
}