{"at":"2026-11-23T06:26:06.095Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T06:26:06.563Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T06:26:06.714Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T06:26:07.182Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{},"resources":{},"tools":{}},"protocolVersion":"2025-11-25","serverInfo":{"name":"optics-mcp","version":"0.1.0"}}}}
{"at":"2026-11-23T06:26:07.182Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T06:26:07.182Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T06:26:07.185Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Get detailed information about a specific design token by name","inputSchema":{"properties":{"tokenName":{"description":"The name of the design token (e.g., \"color-primary\", \"spacing-md\")","type":"string"}},"required":["tokenName"],"type":"object"},"name":"get_token"},{"description":"Search for design tokens by category or name pattern","inputSchema":{"properties":{"category":{"description":"Filter by category (color, spacing, typography, border, shadow)","type":"string"},"namePattern":{"description":"Search pattern for token names (case-insensitive)","type":"string"}},"type":"object"},"name":"search_tokens"},{"description":"Get statistics about design token usage across the system","inputSchema":{"properties":{},"type":"object"},"name":"get_token_usage_stats"},{"description":"Get detailed information about a component including its design token dependencies","inputSchema":{"properties":{"componentName":{"description":"The name of the component (e.g., \"Button\", \"Card\", \"Input\")","type":"string"}},"required":["componentName"],"type":"object"},"name":"get_component_info"},{"description":"List all available components in the design system","inputSchema":{"properties":{},"type":"object"},"name":"list_components"},{"description":"Get all design tokens used by a specific component","inputSchema":{"properties":{"componentName":{"description":"The name of the component","type":"string"}},"required":["componentName"],"type":"object"},"name":"get_component_tokens"},{"description":"Search through Optics documentation","inputSchema":{"properties":{"query":{"description":"Search query for documentation content","type":"string"}},"required":["query"],"type":"object"},"name":"search_documentation"},{"description":"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.","inputSchema":{"properties":{"brandName":{"description":"Name of the brand/theme (e.g., \"Acme Corp\")","type":"string"},"primary":{"description":"Primary brand color (hex, e.g., \"#0066CC\")","type":"string"},"secondary":{"description":"Secondary color (hex, optional)","type":"string"}},"required":["brandName","primary"],"type":"object"},"name":"generate_theme"},{"description":"Validate code for hard-coded values that should use design tokens","inputSchema":{"properties":{"code":{"description":"CSS or component code to validate","type":"string"}},"required":["code"],"type":"object"},"name":"validate_token_usage"},{"description":"Replace hard-coded values with design tokens","inputSchema":{"properties":{"autofix":{"description":"Whether to automatically fix the code (default: false)","type":"boolean"},"code":{"description":"Code containing hard-coded values","type":"string"}},"required":["code"],"type":"object"},"name":"replace_hard_coded_values"},{"description":"Check WCAG contrast ratio between two color tokens","inputSchema":{"properties":{"backgroundToken":{"description":"Background color token name","type":"string"},"foregroundToken":{"description":"Foreground color token name","type":"string"}},"required":["foregroundToken","backgroundToken"],"type":"object"},"name":"check_contrast"},{"description":"Suggest design tokens for a hard-coded value","inputSchema":{"properties":{"category":{"description":"Optional category filter (color, spacing, typography)","type":"string"},"value":{"description":"Hard-coded value to find tokens for (e.g., \"#0066CC\", \"16px\")","type":"string"}},"required":["value"],"type":"object"},"name":"suggest_token_migration"},{"description":"Generate a React component scaffold with proper token usage","inputSchema":{"properties":{"componentName":{"description":"Name of the component (e.g., \"Alert\", \"Card\")","type":"string"},"description":{"description":"Brief description of the component","type":"string"},"tokens":{"description":"List of token names the component should use","items":{"type":"string"},"type":"array"}},"required":["componentName","description","tokens"],"type":"object"},"name":"generate_component_scaffold"},{"description":"Generate a visual style guide with color swatches and component examples","inputSchema":{"properties":{"framework":{"description":"Target framework: react, vue, svelte, or html (default: react)","enum":["react","vue","svelte","html"],"type":"string"},"includeColors":{"description":"Include color swatches (default: true)","type":"boolean"},"includeComponents":{"description":"Include component examples (default: true)","type":"boolean"},"includeTypography":{"description":"Include typography specimens (default: true)","type":"boolean"}},"type":"object"},"name":"generate_sticker_sheet"}]}}}
