MCP远程服务器
通过 HTTP 实现模型上下文协议(MCP),以提供对 BluestoneApps 编码标准和 React Native 代码示例的远程访问。
可用工具 (10 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
get_project_structure
Get project structure standards for React Native development
该工具无需必填参数,直接调用即可
get_api_communication
Get API communication standards for React Native development
该工具无需必填参数,直接调用即可
get_component_design
Get component design standards for React Native development
该工具无需必填参数,直接调用即可
get_state_management
Get state management standards for React Native development
该工具无需必填参数,直接调用即可
get_component_example 1 个参数 需填 1 项
Get a React Native component example
必填参数:component_name
get_hook_example 1 个参数 需填 1 项
Get a React Native hook example
必填参数:hook_name
get_service_example 1 个参数 需填 1 项
Get a React Native service example
必填参数:service_name
get_screen_example 1 个参数 需填 1 项
Get a React Native screen example
必填参数:screen_name
get_theme_example 1 个参数 需填 1 项
Get code for a React Native theme
必填参数:theme_name
list_available_examples
List all available code examples by category
该工具无需必填参数,直接调用即可
服务介绍
MCP 远程服务器 (Node.js 版本)
这是 BluestoneApps 编码标准和示例 MCP 服务器的 Node.js 实现。
概述
该 MCP 服务器通过 Model Context Protocol (MCP) 提供对 React Native 编码标准和代码示例的访问。它可以与像 Windsurf IDE 这样的 MCP 客户端一起使用。
功能
- 访问 React Native 编码标准
- 组件、钩子、屏幕、服务和主题代码示例
- 通过名称模糊匹配查找示例
- 完全集成 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: 列出所有可用的代码示例
配置 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
}
}
}