get-inspire-instructions
Generate new UI components by drawing inspiration from existing FlyonUI blocks. This tool provides instructions for creating components when users request inspiration-based generation.
Instructions
Get instructions for working with FlyonUI blocks. This tool provides instructions for creating new FlyonUI blocks by taking the inspiration from existing FlyonUI blocks. Use this tool when the user requests to generate a new component by inspirations. mentions /inspire-flyonui or /iui.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:52-74 (handler)The handler function that executes the tool logic: fetches instructions from `/instructions?path=inspire-ui.md` using the imported apiClient, handles errors, and returns the content as a formatted text response.async () => { try { const url = `/instructions?path=inspire-ui.md`; const response = await apiClient.get(url); if (response.status !== 200) { throw new Error(`HTTP error! status: ${response.status}`); } return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), } ], }; } catch (error) { console.error("Error fetching block metadata:", error); throw new Error("Failed to fetch block metadata"); } }
- src/index.ts:47-75 (registration)The registration of the 'get-inspire-instructions' tool using McpServer.registerTool method, including title, description, and inline handler."get-inspire-instructions", { title: "Get Instructions for generating FlyonUI blocks using the existing FlyonUI blocks as an inspiration.", description: "Get instructions for working with FlyonUI blocks. This tool provides instructions for creating new FlyonUI blocks by taking the inspiration from existing FlyonUI blocks. Use this tool when the user requests to generate a new component by inspirations. mentions /inspire-flyonui or /iui.", }, async () => { try { const url = `/instructions?path=inspire-ui.md`; const response = await apiClient.get(url); if (response.status !== 200) { throw new Error(`HTTP error! status: ${response.status}`); } return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), } ], }; } catch (error) { console.error("Error fetching block metadata:", error); throw new Error("Failed to fetch block metadata"); } } );