The MCP Remote Server (Node.js) provides access to React Native coding standards and code examples through the Model Context Protocol. It serves as a reference for developers using MCP clients like Windsurf IDE, offering coding standards and example implementations for components, hooks, screens, services, and themes.
To install the MCP Remote Server:
npm install
npm run build
To start the MCP server:
npm start
To configure Windsurf IDE to connect to this server, update the mcp_config.json
file with:
{
"servers": {
"bluestoneapps": {
"command": "node",
"args": ["/path/to/build/index.js"],
"description": "BluestoneApps Coding Standards and Examples",
"displayName": "BluestoneApps MCP Server",
"timeout": 30000
}
}
}
Make sure to replace /path/to/build/index.js
with the actual path to the built server.
The MCP server provides access to the following tools:
get_project_structure
: Retrieve project structure standardsget_api_communication
: Retrieve API communication standardsget_component_design
: Retrieve component design standardsget_state_management
: Retrieve state management standardsget_component_example
: Get a specific component exampleget_hook_example
: Get a specific hook exampleget_service_example
: Get a specific service exampleget_screen_example
: Get a specific screen exampleget_theme_example
: Get a specific theme examplelist_available_examples
: List all available code examplesThe server includes fuzzy matching capabilities for finding examples by name, making it easier to locate the code examples you need.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.