Skip to main content
Glama

get_component_developer_notes

Retrieve developer implementation notes for accessibility components, including code examples, WCAG mappings, and technical guidance for web or native platforms.

Instructions

Get developer implementation notes for a component. Includes code examples, WCAG mappings, and technical guidance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformYesPlatform (web or native)
componentYesComponent name (e.g., "button", "checkbox")

Implementation Reference

  • Primary handler function that executes the tool logic: fetches developer notes via ContentLoader for the specified platform and component, returns as MCP text content, handles errors with suggestions and available formats.
    async function handleGetComponentDeveloperNotes(args: any) { try { const content = await contentLoader.getComponentContent(args.platform, args.component, 'developerNotes'); return { content: [ { type: 'text', text: content, }, ], }; } catch (error: any) { const suggestions = contentLoader.getSimilarComponents(args.platform, args.component); const formats = contentLoader.getAvailableFormats(args.platform, args.component); return { content: [ { type: 'text', text: JSON.stringify( { error: error.message, component: args.component, suggestions, availableFormats: formats, }, null, 2 ), }, ], isError: true, }; }
  • Tool schema definition including name, description, and input schema requiring 'platform' (web/native) and 'component'.
    { name: 'get_component_developer_notes', description: 'Get developer implementation notes for a component. Includes code examples, WCAG mappings, and technical guidance.', inputSchema: { type: 'object', properties: { platform: { type: 'string', enum: ['web', 'native'], description: 'Platform (web or native)', }, component: { type: 'string', description: 'Component name (e.g., "button", "checkbox")', }, }, required: ['platform', 'component'], }, },
  • src/index.ts:66-67 (registration)
    Registration in the MCP CallToolRequestSchema handler switch statement, delegating to the handler function.
    case 'get_component_developer_notes': return await handleGetComponentDeveloperNotes(args);
  • Inline handler for the Netlify HTTP deployment, simplified version fetching and returning developer notes content.
    case 'get_component_developer_notes': { const content = await contentLoader.getComponentContent(args.platform, args.component, 'developerNotes'); return { content: [{ type: 'text', text: content }] };
  • Tool registration and inline handling in the Netlify api.js switch for HTTP MCP transport.
    case 'get_component_developer_notes': { const content = await contentLoader.getComponentContent(args.platform, args.component, 'developerNotes'); return { content: [{ type: 'text', text: content }] };

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/joe-watkins/magentaa11y-mcp-remote'

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