Skip to main content
Glama
MarySuneela

Visa Design System MCP Server

by MarySuneela

get-design-token-categories

Retrieve all available design token categories from Visa's Design System to access structured styling resources for consistent UI development.

Instructions

Get all available design token categories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler logic: Retrieves all design tokens, extracts unique categories using a Set, sorts them alphabetically, and returns the list.
    async getTokenCategories(): Promise<string[]> { const tokens = await this.getTokens(); const categories = new Set(tokens.map(token => token.category)); return Array.from(categories).sort(); }
  • MCP server tool handler: Calls DesignTokenService.getTokenCategories() and formats the result as JSON text content with category list and count.
    private async handleGetDesignTokenCategories(args: Record<string, any>): Promise<CallToolResult> { const categories = await this.designTokenService.getTokenCategories(); return { content: [ { type: 'text', text: JSON.stringify({ categories, count: categories.length }, null, 2) } ] }; }
  • Tool registration in getToolDefinitions(): Defines the tool name, description, and empty input schema (no parameters required).
    { name: 'get-design-token-categories', description: 'Get all available design token categories', inputSchema: { type: 'object', properties: {} } },
  • Input schema definition: Accepts an empty object (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/MarySuneela/mcp-vpds'

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