MCP server for ExFig - a design system automation tool that validates, lints, inspects, and exports design resources (colors, icons, images, typography) from Figma to multiple platforms (iOS, Android, Flutter, Web) using PKL configuration.
ExFig MCP server has 6 tools with explicit definitions in MCPToolDefinitions.swift. All tools have descriptions (10-250 chars, within baseline 34-392 range) and input schemas with basic type information. However, critical gaps emerge: (1) Parameter descriptions are inconsistent, some parameters lack descriptions entirely (e.g., 'resource_type' in exfig_inspect has a description, but enum values are not explained); (2) No output schemas are documented, LLMs cannot predict response structures; (3) Parameter relationships and defaults are mentioned in descriptions but lack formal constraint declarations (e.g., 'auto-detects exfig.pkl in current directory if omitted' is helpful but not machine-parseable); (4) Error handling is absent, no guidance on what errors can occur, whether they are retryable, or how to recover; (5) Tool naming lacks action verbs (e.g., 'exfig_tokens_info' is generic; 'inspect_tokens' would be clearer); (6) No toolAnnotations present (readOnlyHint, destructiveHint, idempotentHint) despite 5 of 6 being READ_ONLY and 1 being WRITE. All tools show detailed parameter documentation and enums are used appropriately (e.g., resource_type, format, severity), which elevates the score from the 50s into the 60s. The server would benefit most from documented output schemas and error handling guidance.
Export design data from Figma as W3C Design Tokens JSON. Returns JSON directly in the response — does not write files. Requires FIGMA_PERSONAL_TOKEN.
Run platform code export (Swift/Kotlin/Dart/CSS) from PKL config. Writes generated files to disk and returns a structured JSON report. Requires FIGMA_PERSONAL_TOKEN.
List Figma resources (colors, icons, images, typography) without exporting. Returns JSON with resource names, counts, and metadata. Requires FIGMA_PERSONAL_TOKEN.
Lint Figma file structure against ExFig PKL config. Checks naming conventions, frame/page structure, variable bindings, dark mode setup, duplicate components, and deleted variables. Returns JSON with diagnostics. Requires FIGMA_PERSONAL_TOKEN.
Inspect a W3C DTCG .tokens.json file. Returns token counts by type, top-level groups, alias count, and any parse warnings. Does not require FIGMA_PERSONAL_TOKEN.
No output schemas documented. LLMs cannot predict response structures or chain tools effectively. E.g., does exfig_export return file paths, generated code, or both?
No error handling guidance. Tools mention 'returns JSON with diagnostics' or 'returns JSON error if validation fails' but do not specify error codes, error messages, recovery steps, or retryability. LLMs cannot self-correct without this information.
Tool names lack action verbs. 'exfig_tokens_info' and 'exfig_inspect' are vague (does 'inspect' list, validate, or export?). Better: 'exfig_list_tokens' or 'exfig_get_tokens_info', 'exfig_list_resources' instead of inspect.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 64 | 2026-07-28+ | v2 |
Validate an ExFig PKL configuration file. Returns a JSON summary with platforms, entry counts, and file IDs — or the full PKL error if validation fails. Does not require FIGMA_PERSONAL_TOKEN.
Missing tool annotations. Five tools are READ_ONLY, one is WRITE. Schema does not declare readOnlyHint for safe tools or destructiveHint for exfig_export. LLMs cannot determine tool safety without this metadata.
Parameter relationship documentation is incomplete. E.g., exfig_export accepts 'cache' and 'force' as independent booleans, but 'force' overrides 'cache'. This dependency is mentioned in descriptions but not formally declared. Unclear which parameter takes precedence.
Enum values not self-documenting. 'resource_type' accepts 'colors', 'icons', 'images', 'typography', 'all' but descriptions do not explain what each type includes or when to use 'all'. LLMs may choose wrong type.
Implicit defaults without validation guidance. Multiple tools mention 'Auto-detects exfig.pkl in current directory if omitted' and 'default: false', 'default: 10', 'default: 4', 'default: info' but no input validation schema or examples show what happens if the file is not found or defaults are invalid.
Pagination and result limits not documented. Tools like exfig_lint and exfig_inspect may return large result sets. No limit parameter, pagination guidance, or maximum result count is specified. Risk of context window overflow.