MCP Server

Set up jsrepo MCP server for Cursor and Windsurf workflows.

Overview

Use MCP with jsrepo to make block discovery and installation easier in AI IDEs like Cursor and Windsurf.

Reference: jsrepo MCP docs

Cursor Setup

Create or update `.cursor/mcp.json`

.cursor/mcp.json
{
  "mcpServers": {
    "jsrepo": {
      "command": "npx",
      "args": ["jsrepo", "mcp"]
    }
  }
}

Windsurf Setup

Create or update `.codeium/windsurf/mcp_config.json`

.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "jsrepo": {
      "command": "npx",
      "args": ["jsrepo", "mcp"]
    }
  }
}

Run MCP Server

Terminal
npm install -g jsrepo
jsrepo mcp

Verification

After setup, ask your AI IDE to list available registry items and verify it can resolve `@sv/cnblocks` entries.

Need the base setup first? Return to Installation.