Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {}, }, },
  • 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.` }, ], }; }
  • Defines the input schema for the 'get_setup' tool (no required parameters).
    inputSchema: { type: 'object', properties: {}, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GustavoGomezPG/basecoat-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server