0.2.3 • Published 5 months ago

@razorpay/blade-mcp v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Blade MCP

npm version License: MIT TypeScript

Blade MCP is a Model Context Protocol (MCP) server that implements Razorpay's Design Guidelines and allows you to build Web Interfaces using Blade Design System.

Available Tools

Tool NameDescription
hi_bladeProvides a welcome message and overview of Blade MCP capabilities when user greets with "hi blade", "hey blade", etc.
create_new_blade_projectCreates a new project using Blade with Vite, React, and TypeScript setup. Should only be called when creating a new project from scratch.
create_blade_cursor_rulesCreates the cursor rules for Blade to help with code generation. Should be called before getting component docs and when the rule file doesn't exist.
get_blade_component_docsFetches the Blade Design System documentation for specific components. Useful when adding or modifying components in your project.

Prerequisites

Integrations

Cursor or VS Code

Create or update your mcp.json file with:

{
  "mcpServers": {
    "blade-mcp": {
      "command": "npx",
      "args": ["-y", "@razorpay/blade-mcp@latest"]
    }
  }
}

Claude Desktop

Add the following to claude_desktop_config.json:

{
  "mcpServers": {
    "blade-mcp": {
      "command": "npx",
      "args": ["-y", "@razorpay/blade-mcp@latest"]
    }
  }
}

!NOTE

How to use

  • Follow Integrations Guide to configure MCP servers in Cursor
  • Open Cursor, Click "Open Project" and select an empty folder
  • Press CMD + I (or CTRL + I) to open Cursor's chat
  • Type "Hi blade" and get started
Can you create a signup form with best UX practices using Blade?

The AI agents will use the MCP server to retrieve components and generate appropriate code.

Local Development Setup

Clone the repository

# Clone the repository
git clone https://github.com/razorpay/blade.git
cd blade

# Install dependencies
yarn

# Navigate to the MCP server package
cd packages/blade-mcp

# Build the package
yarn build

Local Development with Cursor

For local development with Cursor, update your mcp.json with the local path:

{
  "blade-mcp": {
    "command": "node",
    "args": ["<<USER_PATH>>/blade/packages/blade-mcp/dist/server.js"]
  }
}

Replace the <<USER_PATH>> with your actual local path to the repository.

Contributing

We welcome contributions! See CONTRIBUTING.md for details.

License

MIT © Razorpay

0.2.3

5 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.1.12

5 months ago

0.1.11

5 months ago

0.1.10

5 months ago

0.1.9

5 months ago

0.1.8

5 months ago

0.1.7

5 months ago

0.1.6

5 months ago

0.1.5

5 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago