mcp-css-first

v0.2.0
mcp-css-first Checked 5 days ago Published 1 year ago

MCP server for CSS first search

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

suggest_css_solution

Suggests CSS-first solutions for UI implementation tasks by searching MDN documentation. Provides detailed CSS property information, browser support, and asks for user consent before recommending usage.

ParameterTypeDescription
task_description *stringDescription of the UI task or problem to solve
preferred_approachstringPreferred CSS approach - modern (latest features), compatible (wide browser support), or progressive (with fallbacks)
target_browsersarrayTarget browsers/versions (e.g., ["Chrome 90+", "Firefox 88+", "Safari 14+"])

check_css_browser_support

Checks browser support for specific CSS properties using MDN data and provides detailed compatibility information.

ParameterTypeDescription
css_property *stringCSS property name to check browser support for
include_experimentalbooleanInclude experimental/draft features in results

get_css_property_details

Retrieves comprehensive information about a CSS property from MDN documentation including syntax, examples, and use cases.

ParameterTypeDescription
css_property *stringCSS property name to get details for
include_examplesbooleanInclude code examples in the response

confirm_css_property_usage

Confirms user consent for using a specific CSS property and provides implementation guidance.

ParameterTypeDescription
css_property *stringCSS property name user wants to use
user_consent *booleanUser consent to use this CSS property
fallback_neededbooleanWhether fallback solutions are needed