@lime-soda/mcp-server
v0.1.0
Published
MCP server for Lime Soda web components and design tokens
Maintainers
Readme
Lime Soda MCP Server
MCP server for accessing Lime Soda web components and design tokens.
Configuration
The server can be configured using environment variables. Create a .env file
in the mcp-server directory or set environment variables directly.
Environment Variables
| Variable | Default | Description |
| ------------------------------- | --------------------------------- | ------------------------------------------------------------------------- |
| CUSTOM_ELEMENTS_MANIFEST_GLOB | packages/*/custom-elements.json | Glob pattern for finding custom elements manifest files |
| WORKSPACE_ROOT | ../../ | Base path for resolving relative paths (relative to mcp-server directory) |
| TOKENS_PATH | support/tokens | Path to the design tokens directory |
Example .env file
# Custom location for manifest files
CUSTOM_ELEMENTS_MANIFEST_GLOB=components/*/manifest.json
# Different workspace structure
WORKSPACE_ROOT=../../../my-workspace
# Custom tokens location
TOKENS_PATH=design-system/tokensDevelopment
# Start development server with MCP inspector (opens web UI)
pnpm run dev
# Build for production
pnpm run build
# Run built server
pnpm run startMCP Inspector
The development server includes the MCP Inspector, which provides a web-based
interface for testing and debugging MCP tools. When you run pnpm run dev, it
will:
- Start the MCP server with hot reload
- Launch the MCP Inspector web interface
- Automatically connect the inspector to your server
The inspector allows you to:
- Test all available tools interactively
- View tool schemas and descriptions
- Debug tool responses and errors
- Monitor server logs and events
Available Tools
Component Tools
list-components- List all available web componentsget-component-details- Get detailed component information including attributes, slots, CSS parts, CSS custom properties, and propertiesget-component-css-properties- Get CSS custom properties for a specific componentsearch-components- Search components by name, description, properties, slots, CSS parts, or CSS custom properties
Token Tools
list-token-categories- List design token categoriesget-tokens- Get design tokens (optionally filtered)get-css-variables- Get CSS custom propertiessearch-tokens- Search tokens by name/value/descriptionget-component-token-exports- Get all component token exports (JavaScript and TypeScript)get-component-token-export- Get token exports for a specific component
