timepicker-ui-mcp

v2.2.0
io.github.pglejzer/timepicker-ui-mcp Checked 1 hour ago Published 19 days ago

MCP server for timepicker-ui: options, events, themes, public API, snippets and time validation.

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

list_themes List timepicker-ui themes

Lists the 12 built-in themes with their CSS import paths. Select one with ui.theme. For a custom look use ui.cssClass (see generate_custom_theme).

list_modes List timepicker-ui UI modes

Lists the UI modes (clock, wheel, compact-wheel) and which plugin each needs.

list_plugins List timepicker-ui plugins

Lists the optional plugins (range, timezone, wheel) with import paths and the option that turns each on.

list_events List timepicker-ui events

Lists the events picker.on(event, handler) can subscribe to, with the payload type and its fields, extracted from source. Internal and deprecated events are left out unless asked for.

ParameterTypeDescription
includeDeprecatedbooleanAlso list deprecated events such as hide, select:am and select:pm.
includeInternalbooleanAlso list internal events (open:request, range:minute:commit, animation:*). 5.0 removes them from the event map.

list_api List the public API

Lists the TimepickerUI instance and static methods with signatures, deprecations, and the getValue/setValue contract.

list_css_classes List tp-ui- CSS classes

Lists the tp-ui- class names and state modifiers, with an example selector for each styled class. Prefer --tp- variables; class names change in 5.0.

list_css_variables List --tp- CSS variables

Lists the --tp- CSS custom properties with group, default value and whether built-in themes override them. Variables no rule reads are left out unless asked for.

ParameterTypeDescription
groupstringLimit to one group, e.g. Color, Typography, Focus, Wheel.
includeUnreadbooleanAlso list variables that no rule reads. Setting them changes nothing and 5.0 removes them.

get_options Get grouped options

Returns the grouped options reference (clock, ui, labels, behavior, callbacks, timezone, range, wheel, clearBehavior) with type, default, description and nested fields, extracted from options.d.ts. Deprecated options are left out unless asked for. Pass a group to narrow it.

ParameterTypeDescription
groupstringLimit to a single option group.
includeDeprecatedbooleanAlso return deprecated options (old names that still work in 4.x and are removed in 5.0).

explain_option Explain a single option

Returns the full detail (type, default, description, example, deprecation, nested fields) for one option. Use a dotted name for nested fields, e.g. "disabledTime.ranges".

ParameterTypeDescription
group *stringOption group.
name *stringOption name within the group, e.g. "showSeconds" or "disabledTime.ranges".

get_theme Get a built-in theme variable set

Returns the --tp- CSS variables a built-in theme sets, with their values, to start a custom theme from.

ParameterTypeDescription
name *stringBuilt-in theme name.

framework_recipe Framework integration recipe

Returns an integration recipe (lifecycle, SSR notes and code) for vanilla, react, react-wrapper (timepicker-ui-react), next, vue, angular or svelte.

ParameterTypeDescription
framework *stringTarget framework.

migration_guide Migration guide

Returns migration guidance. "v3->v4": flat to grouped option mapping. "v4.3->v4.4" and "v4.4->v4.5": non-breaking changes, with every renamed option. "v4.6->v4.7": new API and the ARIA, event and theme changes to check. "v4.5->v5": draft list of what 5.0 removes and changes, and the steps that work on 4.5.0 today.

ParameterTypeDescription
pathstringWhich migration to return.

generate_snippet Generate a timepicker-ui setup snippet

Generates a ready-to-paste vanilla JS or React snippet wiring up TimepickerUI with the chosen theme, mode, clock type, seconds and plugins (CSS imports and plugin registration included). For full framework lifecycle and SSR notes, use framework_recipe.

ParameterTypeDescription
clockTypestring12-hour, 24-hour, or 'auto' (from the browser locale).
frameworkstringOutput flavor.
modestringUI mode.
pluginsarrayPlugins to import and register. wheel is added for the wheel modes.
selectorstringCSS selector of the target input (vanilla only).
showSecondsbooleanAdd a seconds field (clock.showSeconds).
themestringTheme name.

generate_custom_theme Generate a custom theme stylesheet

Writes the CSS for a custom theme applied with ui.cssClass: a .tp-ui-wrapper.<name> block of --tp- variables. Pass `overrides` to emit only those, or leave it empty for an editable scaffold of the variables built-in themes change. Unknown variables and variables no rule reads are reported.

ParameterTypeDescription
name *stringClass name for ui.cssClass, e.g. 'ocean'. Letters, digits, - and _.
onlyCommonbooleanFor the scaffold, include only the variables built-in themes override.
overridesobjectMap of CSS variables to values, e.g. { 'tp-primary': '#0ea5e9' }.

validate_time Validate a time string

Validates a time string against a 12h or 24h clock and returns the parsed parts. Accepts "HH:MM", "HH:MM:SS", "h:MM AM/PM" and "h:MM:SS AM/PM".

ParameterTypeDescription
time *stringThe time string, e.g. "14:30", "14:30:15" or "2:30:15 PM".
clockTypestring

validate_disabled_time Validate a disabledTime config

Validates a clock.disabledTime config: hours, minutes and seconds lists, and range strings in ranges ("10:00 AM - 12:00 PM", "10:00:30 - 10:05"). Returns per-issue feedback.

ParameterTypeDescription
clockTypestring
hoursarrayDisabled hours.
intervalDeprecated old name of ranges; ranges wins when both are set.
minutesarrayDisabled minutes.
rangesRange string or array, e.g. "10:00 AM - 12:00 PM".
secondsarrayDisabled seconds (used with clock.showSeconds).

search_reference Search the timepicker-ui reference

Keyword search across options (including nested fields), events, CSS variables, CSS classes, methods, themes and troubleshooting entries. Use it when you do not know the exact name. Pass a few keywords, not a sentence, e.g. "disable time range", "focus ring color" or "seconds increment". Deprecated items rank lower and are flagged.

ParameterTypeDescription
query *stringKeywords, e.g. "seconds increment" or "backdrop".
limitintegerMaximum number of results.