Kimen

v0.8.0
io.github.kimen-dev/kimen Checked 11 hours ago Published 8 hours ago

List and describe Kimen components, validate UI specs and render them as MCP Apps surfaces.

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

kimen_list_components List Kimen components

List every component of the Kimen catalog with its usage guidance (when to use it, when not). Use it first, to choose the components of a UI spec. Not for one component's props, slots or events: use kimen_describe_component.

kimen_describe_component Describe a Kimen component

Describe one Kimen catalog component: its props (types, allowed values, defaults, required), slots and events, and the design tokens and parts it exposes for theming. Use it before writing a spec node for that component.

ParameterTypeDescription
tag *stringThe component tag, for example "ki-button".

kimen_validate_spec Validate a Kimen UI spec

Validate a Kimen UI spec exactly as the guarded renderer judges it, without rendering. A Kimen UI spec is JSON data, never code: {"version": 1, "actions"?: ["<name>", ...], "root": <node>}, where <node> is {"id"?: "<node id>", "component": "<catalog tag>", "props"?: {...}, "action"?: "<declared action>" or {"<declared event>": "<declared action>", ...}, "collect"?: {"<data name>": "<node id>", ...}, "slots"?: {"<slot>": [<node or text>, ...]}} and "" is the default slot. An action name fires on the event the component derives; a map fires each listed event's own action, so a confirmation repor…

ParameterTypeDescription
spec *The UI spec: a JSON object (or the same JSON as text). Validated by the server, so a defect comes back as named issues instead of being rejected here.

check_theme Check a Kimen theme

Check Kimen theme CSS for unknown, private or unread tokens, incompatible values and overrides blocked by a preference mode. Set theme to onmars for its component rules.

ParameterTypeDescription
css *stringStylesheet text.
filestringFilename label for findings.
themestringApply the onmars component rules.

kimen_render_spec Render a Kimen UI spec

Show a Kimen UI spec to the person. An MCP Apps host displays it as interactive Kimen components; any other host shows a text outline. A Kimen UI spec is JSON data, never code: {"version": 1, "actions"?: ["<name>", ...], "root": <node>}, where <node> is {"id"?: "<node id>", "component": "<catalog tag>", "props"?: {...}, "action"?: "<declared action>" or {"<declared event>": "<declared action>", ...}, "collect"?: {"<data name>": "<node id>", ...}, "slots"?: {"<slot>": [<node or text>, ...]}} and "" is the default slot. An action name fires on the event the component derives; a map fires each li…

ParameterTypeDescription
spec *The UI spec: a JSON object (or the same JSON as text). Validated by the server, so a defect comes back as named issues instead of being rejected here.

kimen_surface_action Kimen surface action

Receives a declared action from a Kimen surface. App-only; not for the model.

ParameterTypeDescription
action *string
dataobject
idstring
revisioninteger