get_setup
Retrieve Basecoat CSS setup code with CDN links to integrate UI components for building accessible web interfaces.
Instructions
Get Basecoat CSS setup code with CDN links
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:108-116 (handler)Core handler function that reads and returns the Basecoat CSS setup code from 'scripts/setup.html'.async getSetupCode() { const setupPath = path.join(__dirname, 'scripts', 'setup.html'); try { const content = await fs.readFile(setupPath, 'utf-8'); return content.trim(); } catch (error) { throw new Error(`Failed to read setup code: ${error.message}`); } }
- server.js:205-212 (registration)Registers the 'get_setup' tool with its name, description, and empty input schema.{ name: 'get_setup', description: 'Get Basecoat CSS setup code with CDN links', inputSchema: { type: 'object', properties: {}, }, },
- server.js:304-315 (handler)Tool dispatcher case that calls getSetupCode() and formats the response as markdown with instructions.case 'get_setup': { const setupCode = await this.getSetupCode(); return { content: [ { type: 'text', text: `# Basecoat CSS Setup\n\nAdd this to your HTML \`<head>\` section:\n\n\`\`\`html\n${setupCode}\n\`\`\``, node: `Use TailwindCSS classes for customization.` }, ], }; }
- server.js:208-211 (schema)Defines the input schema for the 'get_setup' tool (no required parameters).inputSchema: { type: 'object', properties: {}, },