Add MCP server implementation for generating CSS from igniteui-theming library #480
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds a complete MCP (Model Context Protocol) server implementation to the igniteui-theming repository, enabling developers and AI assistants to generate production-ready CSS from the library's theming presets. This addresses the need for developers to easily implement design system CSS as handed off from design tools like Figma, Sketch, and Adobe XD.
What's New
MCP Server (
mcp-server/)A fully functional MCP server that exposes 5 powerful tools for CSS generation:
generate_color_palette- Generates comprehensive color palette CSS variablesgenerate_typography- Generates typography definitions and utility classesgenerate_elevations- Generates Material Design elevation definitionsgenerate_sizing_spacing- Generates sizing and spacing utilitiesgenerate_complete_theme- Generates complete theme bundlesCLI Tool
Command-line interface for testing and direct usage:
Example Output
Generated CSS follows best practices with CSS custom properties:
Use Cases
Technical Details
@modelcontextprotocol/sdkfor MCP protocol compliancesass-embeddedfor high-performance Sass compilationpostcssfor CSS post-processingDocumentation
Comprehensive documentation included:
Testing
Usage with MCP Clients
Configure in Claude Desktop or other MCP clients:
{ "mcpServers": { "igniteui-theming": { "command": "node", "args": ["/path/to/igniteui-theming/mcp-server/index.js"] } } }Files Changed
mcp-server/directory with complete implementationpackage.jsonto include MCP server in npm package filesREADME.mdwith MCP server documentation sectionNo Breaking Changes
This PR introduces only new functionality with zero breaking changes to the existing codebase. All existing tests, builds, and functionality remain unchanged.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.