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
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_token

Get detailed information about a specific design token by name

search_tokens

Search for design tokens by category or name pattern

get_token_usage_stats

Get statistics about design token usage across the system

get_component_info

Get detailed information about a component including its design token dependencies

list_components

List all available components in the design system

get_component_tokens

Get all design tokens used by a specific component

search_documentation

Search through Optics documentation

generate_theme

Generate a custom Optics theme with CSS variable overrides. Includes installation instructions for @rolemodel/optics via npm or CDN (jsDelivr/unpkg). Output includes complete setup guide with actual Optics token names.

validate_token_usage

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

replace_hard_coded_values

Replace hard-coded values with design tokens

check_contrast

Check WCAG contrast ratio between two color tokens

suggest_token_migration

Suggest design tokens for a hard-coded value

generate_component_scaffold

Generate a React component scaffold with proper token usage

generate_sticker_sheet

Generate a visual style guide with color swatches and component examples

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
explain-token-systemExplain how a specific token category works in Optics
design-reviewReview a design or component for Optics token usage and best practices
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 Overview - READ THIS FIRSTCRITICAL: Comprehensive guide to understanding the Optics token architecture. Explains the HSL-based color system, token naming patterns, and common mistakes. MUST READ before using any Optics tools.
Introduction to OpticsOverview of the Optics design system
Getting StartedHow to get started with Optics
Design TokensComplete list of design tokens
Color SystemColor palette and usage guidelines
Spacing SystemSpacing tokens and grid system
TypographyTypography tokens and guidelines
ComponentsComponent library overview
AccessibilityAccessibility guidelines
All Design TokensComplete list of all design tokens
Color TokensAll color design tokens
Spacing TokensAll spacing design tokens
Typography TokensAll typography design tokens
All ComponentsComplete component library

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