# io.github.RoleModel/optics-mcp (npm · optics-mcp)

MCP Server for Optics Design System documentation and token usage.

- Trust score: 70/100 (medium)
- Change this week: +17
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `optics-mcp`: 70/100 (this document), [markdown](https://verifymcp.io/servers/rolemodel-optics-mcp/optics-mcp.md), [page](https://verifymcp.io/servers/rolemodel-optics-mcp/optics-mcp)

## Channel facts

- Registry: `npm`
- Package: `optics-mcp`
- Version: `0.2.6`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 86/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 44/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 240 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 82/100
  - 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 887 tokens (~31/item across 28 items; 14 tools + 14 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 27/100
  - Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add rolemodel-optics-mcp -- npx -y optics-mcp
```

### Codex

```bash
codex mcp add rolemodel-optics-mcp -- npx -y optics-mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "rolemodel-optics-mcp": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "optics-mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add rolemodel-optics-mcp --command npx --arg -y --arg optics-mcp
```

### Hermes

```yaml
mcp_servers:
  rolemodel-optics-mcp:
    command: "npx"
    args: ["-y", "optics-mcp"]
```

### Other

```json
{
  "mcpServers": {
    "rolemodel-optics-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "optics-mcp"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-03 (score 70, −3)

No change was recorded against any check on this day. Supply Chain Security went from 97 to 86. Other categories moved too: Stability & Change Management rose 4.

### 2026-08-02 (score 73, +58)

- [security improvement] Malware scan: unverified → pass
- [security improvement] Known CVEs: unverified → partial
- [functional improvement] Stability: unverified → 0.23
- [functional improvement] MCP protocol: unverified → pass
- [functional improvement] Schema quality: unverified → 100
- [functional improvement] Tool coverage: unverified → 100

### 2026-08-01 (score 15, −39)

- [security regression] Known CVEs: partial → unverified
- [security] Stability: Stability not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet.
- [functional regression] Schema quality: 100 → unverified
- [functional regression] Tool coverage: 100 → unverified
- [functional regression] Capabilities: pass → unverified

### 2026-07-31 (score 54, +12)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-30 (score 42, −39)

- [security regression] Known CVEs: partial → unverified
- [security regression] Malware scan: pass → unverified
- [security regression] Provenance: fail → unverified
- [security regression] Install scripts: pass → unverified
- [functional regression] License: pass → unverified
- [functional regression] Dependency health: partial → unverified
- [functional regression] Maintenance: pass → unverified
- [functional] Licence: MIT

### 2026-07-29 (score 81, +56)

- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → pass
- [security improvement] Known CVEs: unverified → partial
- [functional regression] Security disclosure: unverified → fail
- [functional improvement] Schema quality: unverified → good
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] Schema quality: unverified → 100
- [functional improvement] License: unverified → pass
- [functional improvement] Tool coverage: unverified → 100
- [functional] Licence: MIT

### 2026-07-28 (score 25, −28)

- [functional regression] Tool coverage: 100 → unverified
- [functional regression] Security disclosure: fail → unverified
- [functional regression] Schema quality: 100 → unverified
- [functional improvement] Dependency health: unverified → partial

### 2026-07-27 (score 53)

First indexed and scored.

## MCP tools (14)

### `get_token` (~44 tokens)

Get detailed information about a specific design token by name

Input parameters:

- `tokenName` (string, required): The name of the design token (e.g., "color-primary", "spacing-md")

### `search_tokens` (~55 tokens)

Search for design tokens by category or name pattern

Input parameters:

- `category` (string): Filter by category (color, spacing, typography, border, shadow)
- `namePattern` (string): Search pattern for token names (case-insensitive)

### `get_token_usage_stats` (~20 tokens)

Get statistics about design token usage across the system

### `get_component_info` (~46 tokens)

Get detailed information about a component including its design token dependencies

Input parameters:

- `componentName` (string, required): The name of the component (e.g., "Button", "Card", "Input")

### `list_components` (~17 tokens)

List all available components in the design system

### `get_component_tokens` (~32 tokens)

Get all design tokens used by a specific component

Input parameters:

- `componentName` (string, required): The name of the component

### `search_documentation` (~27 tokens)

Search through Optics documentation

Input parameters:

- `query` (string, required): Search query for documentation content

### `generate_theme` (~106 tokens)

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.

Input parameters:

- `brandName` (string, required): Name of the brand/theme (e.g., "Acme Corp")
- `primary` (string, required): Primary brand color (hex, e.g., "#0066CC")
- `secondary` (string): Secondary color (hex, optional)

### `validate_token_usage` (~34 tokens)

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

Input parameters:

- `code` (string, required): CSS or component code to validate

### `replace_hard_coded_values` (~50 tokens)

Replace hard-coded values with design tokens

Input parameters:

- `autofix` (boolean): Whether to automatically fix the code (default: false)
- `code` (string, required): Code containing hard-coded values

### `check_contrast` (~44 tokens)

Check WCAG contrast ratio between two color tokens

Input parameters:

- `backgroundToken` (string, required): Background color token name
- `foregroundToken` (string, required): Foreground color token name

### `suggest_token_migration` (~61 tokens)

Suggest design tokens for a hard-coded value

Input parameters:

- `category` (string): Optional category filter (color, spacing, typography)
- `value` (string, required): Hard-coded value to find tokens for (e.g., "#0066CC", "16px")

### `generate_component_scaffold` (~68 tokens)

Generate a React component scaffold with proper token usage

Input parameters:

- `componentName` (string, required): Name of the component (e.g., "Alert", "Card")
- `description` (string, required): Brief description of the component
- `tokens` (array, required): List of token names the component should use

### `generate_sticker_sheet` (~92 tokens)

Generate a visual style guide with color swatches and component examples

Input parameters:

- `framework` (string): Target framework: react, vue, svelte, or html (default: react)
- `includeColors` (boolean): Include color swatches (default: true)
- `includeComponents` (boolean): Include component examples (default: true)
- `includeTypography` (boolean): Include typography specimens (default: true)

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/rolemodel-optics-mcp/optics-mcp#diagnostics

## Score history

- 2026-08-03: 70
- 2026-08-02: 73
- 2026-08-01: 15
- 2026-07-31: 54
- 2026-07-30: 42
- 2026-07-29: 81
- 2026-07-28: 25
- 2026-07-27: 53

## Links

- npm package: https://www.npmjs.com/package/optics-mcp
- Socket report: https://socket.dev/npm/package/optics-mcp
- Repository: https://github.com/RoleModel/optics-mcp
- Changelog RSS feed: https://verifymcp.io/servers/rolemodel-optics-mcp/optics-mcp/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/rolemodel-optics-mcp/optics-mcp/changelog.json
- HTML version of this page: https://verifymcp.io/servers/rolemodel-optics-mcp/optics-mcp
