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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/component-search.ts:53-57 (handler)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(); }
- src/index.ts:268-275 (handler)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: {}, }, },
- src/index.ts:138-142 (schema)Input schema definition (empty object, no parameters required).inputSchema: { type: 'object', properties: {}, }, },