Skip to main content
Glama
jonthebeef

Superdesign MCP Server

by jonthebeef

superdesign_list

List all designs in your workspace to manage and organize UI assets, enabling efficient wireframing, component creation, and design workflows within the Superdesign MCP Server.

Instructions

List all created designs in the workspace

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspace_pathNoWorkspace path (defaults to current directory)

Implementation Reference

  • The main handler function for the superdesign_list tool. It lists all design files (.html, .svg) in the design_iterations directory and JSON files in design_system directory within the superdesign workspace, formats them into a text response.
    case "superdesign_list": { const { workspace_path } = ListDesignsSchema.parse(args); try { const superdesignDir = getSuperdeignDirectory(workspace_path); const designIterationsDir = path.join(superdesignDir, 'design_iterations'); const designSystemDir = path.join(superdesignDir, 'design_system'); const designFiles = await glob('*.{html,svg}', { cwd: designIterationsDir }); const systemFiles = await glob('*.json', { cwd: designSystemDir }); let result = `Superdesign workspace: ${superdesignDir}\n\n`; if (designFiles.length > 0) { result += `Design iterations (${designFiles.length}):\n`; designFiles.forEach(file => { result += ` - ${file}\n`; }); } else { result += "No design iterations found.\n"; } result += "\n"; if (systemFiles.length > 0) { result += `Design systems (${systemFiles.length}):\n`; systemFiles.forEach(file => { result += ` - ${file}\n`; }); } else { result += "No design systems found.\n"; } return { content: [{ type: "text", text: result }], }; } catch (error: any) { return { content: [{ type: "text", text: `Error listing designs: ${error.message}` }], }; } }
  • Zod input schema for the superdesign_list tool, defining an optional workspace_path parameter.
    const ListDesignsSchema = z.object({ workspace_path: z.string().optional().describe("Workspace path (defaults to current directory)") });
  • src/index.ts:1991-2000 (registration)
    Registration of the superdesign_list tool in the listTools response, including name, description, and inputSchema matching the Zod schema.
    { name: "superdesign_list", description: "List all created designs in the workspace", inputSchema: { type: "object", properties: { workspace_path: { type: "string", description: "Workspace path (defaults to current directory)" } }, }, },

Other Tools

Related Tools

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/jonthebeef/superdesign-mcp-claude-code'

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