Back to MCP directory
publicPublicdnsLocal runtime

BluestoneApps React Native Standards

Node.js实现的MCP远程服务器,提供React Native编码标准和代码示例

article

README

🚀 MCP 远程服务器(Node.js 版本)

本项目是一个基于 Node.js 实现的 MCP 服务器,它遵循 BluestoneApps 编码标准,提供了丰富的 React Native 编码标准和代码示例,能与 MCP 客户端协同工作,为开发者带来便捷的开发体验。

🚀 快速开始

MCP 服务器借助模型上下文协议 (MCP) 实现对 React Native 编码标准和代码示例的访问,可与 MCP 客户端(如 Windsurf IDE)搭配使用。

启动服务器:

npm start

若要与 MCP 客户端一起使用,需配置它们连接到此服务器。

✨ 主要特性

  • 可访问 React Native 编码标准。
  • 提供组件、钩子、屏幕、服务和主题的代码示例。
  • 支持模糊匹配,能通过名称查找示例。
  • 与 MCP 协议完全集成。

📦 安装指南

  1. 克隆此仓库:
    git clone <repository-url>
    
  2. 安装依赖项:
    npm install
    
  3. 构建项目:
    npm run build
    

💻 使用示例

基础用法

启动服务器:

npm start

高级用法

若要与 MCP 客户端(如 Windsurf IDE)一起使用,需进行如下配置: 对于 Windsurf IDE,请更新 mcp_config.json

{
  "servers": {
    "bluestoneapps": {
      "command": "node",
      "args": ["/path/to/build/index.js"],
      "description": "BluestoneApps 编码标准和示例",
      "displayName": "BluestoneApps MCP 服务器",
      "timeout": 30000
    }
  }
}

📚 详细文档

该服务器提供以下工具: | 工具名称 | 详情 | | ---- | ---- | | 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 | 列出所有可用代码示例 |

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client