blade-mcp

v1.33.1
@razorpay/blade-mcp Checked 3 days ago Published 1 month ago

Model Context Protocol server for Blade

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_blade_skill

Creates the UI code guidelines skill for AI-assisted frontend code generation with Blade. Scaffolds the skill in .agents/skills/ui-code-guidelines and creates a symlink in .claude/skills for Claude Code support.

ParameterTypeDescription
currentProjectRootDirectory *stringThe working root directory of the consumer's project. Do not use root directory, do not use '.', only use absolute path to current directory

get_blade_component_docs

Fetch the Blade Design System docs for the given list of components. Use this to get information about the components and their props while adding or changing a component.

ParameterTypeDescription
componentsList *stringComma separated list of semantic blade component names. E.g. "Button, Accordion". Make sure to use the semantic components (like PasswordInput for passwords). Possible values: Accordion, ActionList, A…
currentProjectRootDirectory *stringThe working root directory of the consumer's project. Do not use root directory, do not use '.', only use absolute path to current directory
clientNamestringThe name of the client that is calling the tool. It can be "claude", "cursor", or "unknown".

get_blade_pattern_docs

Fetch the Blade Design System pattern docs. Use this to get information about design patterns, best practices, and implementation guidelines.

ParameterTypeDescription
currentProjectRootDirectory *stringThe working root directory of the consumer's project. Do not use root directory, do not use '.', only use absolute path to current directory
patternsList *stringComma separated list of blade pattern names. E.g. "ListView, DetailedView". Possible values: Confirmation, CreationView, Dashboard, DetailedView, FormGroup, ListView, Settings, SparkAnimation. Here is…
clientNamestringThe name of the client that is calling the tool. It can be "claude", "cursor", or "unknown".

get_blade_general_docs

Fetch general Blade Design System documentation. Use this to get information about setup, installation, theming, tokens, and general guidelines.

ParameterTypeDescription
currentProjectRootDirectory *stringThe working root directory of the consumer's project. Do not use root directory, do not use '.', only use absolute path to current directory
topicsList *stringComma separated list of general documentation topics. E.g. "Installation, Theming". Possible values: AvailableIcons, ChartColorSystem, ChoosingComponents, Tokens, Usage, WhiteLabelling. Here is guide…
clientNamestringThe name of the client that is calling the tool. It can be "claude", "cursor", or "unknown".

hi_blade

Call this when the user says "hi blade", "hey blade" or "namaste blade" in any language. Tool that returns how to use blade mcp

create_new_blade_project

Create a new project using blade. Uses vite, react, and typescript for setup. Call this tool ONLY when you are creating a new project from scratch.

ParameterTypeDescription
currentProjectRootDirectory *stringThe working root directory of the consumer's project. Do not use root directory, do not use '.', only use absolute path to current directory

get_figma_to_code

Converts Figma designs into Blade Design System code. Provide a Figma design URL to generate the corresponding React components using Blade's component library.

ParameterTypeDescription
currentProjectRootDirectory *stringThe working root directory of the consumer's project. Do not use root directory, do not use '.', only use absolute path to current directory
fileKey *stringThe unique identifier of your Figma file, found in the URL after "figma.com/file/" or "figma.com/design/". For example, in "figma.com/file/abc123XYZ/MyDesign", the fileKey would be "abc123XYZ". This k…
nodeId *stringThe specific element or frame ID within your Figma file that you want to convert. Found in the URL as "node-id=xyz123" when you select an element in Figma. For example, in "figma.com/design/file_id/fi…

get_blade_changelog

Get the changelog of blade to help consumer with blade upgrades and checking release notes. Either for a specific version or a range of two versions, Intent examples: - help me with upgrades -> read `package.json` to get consumer's blade version to use it as `fromVersion` and then use `toVersion` as `latest` version (range) - what was changed in x.x.x version? -> Just `fromVersion` (set isRange to false & omit toVersion) - what was changed between x.x.x and y.y.y versions? -> `fromVersion` and `toVersion` (set isRange to true) - what is the latest version of blade? -> `fromVersion` as `lates…

ParameterTypeDescription
currentProjectRootDirectory *stringThe working root directory of the consumer's project. Do not use root directory, do not use '.', only use absolute path to current directory
fromVersion *stringThe start version of the range to get the changelog for. E.g. 10.15.0
isRangebooleanWhether to get the changelog for a range of versions or a specific version, this is based on intent of user.
toVersionstringThe end version of the range to get the changelog for. E.g. 10.16.0

publish_lines_of_code_metric

Report the **diff size** of the most recent code edit. The goal is to capture **net code-churn**—how many changes were added and how many were removed—so that the Blade team can track adoption and productivity. Use the same convention that `git diff --numstat` outputs: * **A new line** → counts as **1 _added_** line. * **A deleted line** → counts as **1 _removed_** line. * **A modified line** (content changed in place) → counts as **1 removed** **and** **1 added** (because the old content vanished and new content appeared). Keep these numbers **exactly** as your diff tool repor…

ParameterTypeDescription
currentProjectRootDirectory *stringThe working root directory of the consumer's project. Do not use root directory, do not use '.', only use absolute path to current directory
files *arrayBreakdown of line changes per file in this operation.
linesAddedTotal *integerTotal lines added across all files.
linesRemovedTotal *integerTotal lines removed across all files.
bladeUiLinesAddedTotalintegerTotal lines of UI code that import or reference Blade components (e.g., <Button />, <TextInput />) that were added across all files.
bladeUiLinesRemovedTotalintegerTotal lines of UI code that import or reference Blade components that were removed across all files.
nonBladeUiLinesAddedTotalintegerTotal lines of UI component code (React/JSX/TSX) added that do NOT import or use Blade components — e.g., custom components or components from other libraries such as Material UI
nonBladeUiLinesRemovedTotalintegerTotal lines of UI component code that does NOT use Blade components that were removed across all files.
nonUiLinesAddedTotalintegerTotal lines of non-UI code such as business logic, state management, data fetching, utility functions, etc. that were added.
nonUiLinesRemovedTotalintegerTotal lines of non-UI code such as business logic, state management, data fetching, utility functions, etc. that were removed.
toolsUsedarrayList of Blade MCP tool names that were invoked during the conversation