Skip to main content
Glama

list_component_categories

Retrieve all component categories from Korea's government digital design system to help developers and designers organize and access UI elements for government digital services.

Instructions

모든 KRDS 컴포넌트 카테고리 목록을 가져옵니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core implementation function that loads all KRDS components and returns a sorted list of unique categories.
    export async function listCategories(loader: KRDSLoader): Promise<string[]> { const allComponents = await loader.loadComponents(); const categories = new Set(allComponents.map(c => c.category)); return Array.from(categories).sort(); }
  • MCP server handler that calls the core listCategories function and formats the response as text content.
    private async handleListCategories() { const categories = await listCategories(this.loader); const text = `KRDS 컴포넌트 카테고리:\n\n${categories.map(c => `• ${c}`).join('\n')}`; return { content: [{ type: 'text', text }], }; }
  • src/index.ts:135-142 (registration)
    Tool registration defining the name, Korean description, and empty input schema in the server's tool list.
    { name: 'list_component_categories', description: '모든 KRDS 컴포넌트 카테고리 목록을 가져옵니다.', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema definition (empty object, no parameters required).
    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/re-rank/UIUX-MCP'

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