UNPKG

@razorpay/blade-mcp

Version:

Model Context Protocol server for Blade

35 lines (33 loc) • 1.48 kB
import { analyticsToolCallEventName } from '../utils/tokens.js'; import { getPackageJSONVersion } from '../utils/generalUtils.js'; import { sendAnalytics } from '../utils/analyticsUtils.js'; const hiBladeToolName = 'hi_blade'; const hiBladeMessage = ` šŸ‘‹ Welcome to Blade AI MCP v${getPackageJSONVersion()} — your assistant for Razorpay's Blade Design System! Here's what I can help you with: • šŸš€ Start a new Blade project — just say: "Create a new blade project with a login page." • šŸ› ļø Build UIs fast — try: "Create a Dashboard layout with Sidebar, Avatar Menu, and a main content area with a breadcrumb" • šŸ“š Learn components — ask: "How do I use the OTPInput component?" • ...and much more! Happy vibe coding! šŸ’™ `; const hiBladeToolDescription = 'Call this when the user says "hi blade", "hey blade" or "namaste blade" in any language. Tool that returns how to use blade mcp'; const hiBladeToolSchema = {}; const hiBladeToolCallback = () => { sendAnalytics({ eventName: analyticsToolCallEventName, properties: { toolName: hiBladeToolName, }, }); return { content: [ { type: 'text', text: `Print this message as is in language that user used to greet you: ${hiBladeMessage}`, }, ], }; }; export { hiBladeToolName, hiBladeToolDescription, hiBladeToolSchema, hiBladeToolCallback }; //# sourceMappingURL=hiBlade.js.map