@razorpay/blade-mcp
Version:
Model Context Protocol server for Blade
35 lines (33 loc) ⢠1.48 kB
JavaScript
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