Skip to main content
Glama
RoleModel

Optics MCP Server

by RoleModel

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_tokenA

Get detailed information about a specific design token by name

get_token_usage_statsB

Get statistics about design token usage across the system

search_tokensA

Search for design tokens by category or name pattern

list_componentsA

List all available components in the design system

get_component_infoB

Get detailed information about a component including its design token dependencies

get_component_tokensB

Get all design tokens used by a specific component

search_documentationC

Search through Optics documentation

generate_themeB

Generate a complete theme with CSS variables and Figma Variables JSON using Optics design tokens

validate_token_usageB

Validate code for hard-coded values that should use design tokens

replace_hard_coded_valuesB

Replace hard-coded values with design tokens

check_contrastC

Check WCAG contrast ratio between two color tokens

suggest_token_migrationA

Suggest design tokens for a hard-coded value

generate_component_scaffoldB

Generate a React component scaffold with proper token usage

generate_sticker_sheetC

Generate a visual style guide with color swatches and component examples

validate_color_pairC

Check if the pair is meant to be used together

Prompts

Interactive templates invoked by user choice

NameDescription
create-themed-componentGenerate a component styled with Optics design tokens
migrate-to-tokensConvert hard-coded CSS values to Optics design tokens
accessible-color-comboSuggest accessible foreground/background color token combinations
design-reviewReview a design or component for Optics token usage and best practices
explain-token-systemExplain how a specific token category works in Optics
get-token-referenceGet complete list of all available Optics design tokens - USE THIS to prevent token name hallucination

Resources

Contextual data attached and managed by the client

NameDescription
system-overviewCritical errors AI agents make, quick reference for Cache Components
documentation-sectionDocumentation sections for the Optics design system
tokens-allComplete list of all Optics design tokens
tokens-categoryDesign tokens filtered by category (color, spacing, typography, border, shadow)
components-allComplete list of all Optics components
documentation-introductionintroduction documentation
documentation-getting-startedgetting-started documentation
documentation-design-tokensdesign-tokens documentation
documentation-color-systemcolor-system documentation
documentation-spacingspacing documentation
documentation-typographytypography documentation
documentation-componentscomponents documentation
documentation-accessibilityaccessibility documentation
tokens-colorDesign tokens for color
tokens-spacingDesign tokens for spacing
tokens-typographyDesign tokens for typography
tokens-borderDesign tokens for border
tokens-shadowDesign tokens for shadow

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/RoleModel/optics-mcp'

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