mcp

v0.12.0
@craft-ts/mcp Checked 5 hours ago Published 1 day ago

MCP server, Agent Skills, and LLM files for coding agents using @craft-ts/core

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

get_best_practices

Return the CraftTS coding-agent guide: which primitive to use, yield* rules, the architecture/ graph contract, services, routes, ESLint, and the AGENTS.md snippet to drop into an app that imports @craft-ts/core. Call this before writing or reviewing Craft code.

search_documentation

Search the bundled CraftTS documentation (Learn, Guide, Reference, Resources). Use it when you need the current API, a decision page, or a recipe. Prefer this over guessing from training data.

ParameterTypeDescription
query *stringKeywords, API names, or a task
limitinteger
sectionstringLimit results to one docs section. `examples` covers Learn plus /resources/examples.

get_documentation_page

Return one documentation page as markdown. Use a path from search_documentation, such as /guide/state/local-state or /learn/01-first-state.

ParameterTypeDescription
path *stringDocs path, for example /guide/concepts/mental-model

find_examples

Find Learn tutorials and demo examples that match a task (list, form, pagination, routing, optimistic update, …).

ParameterTypeDescription
query *string
limitinteger

list_skills

List Agent Skills shipped with @craft-ts/mcp (architecture tests, routes, spec translation, service migration, full-app migration). Load one with get_skill before following a workflow.

get_skill

Return a CraftTS Agent Skill. Omit `reference` to get SKILL.md; pass a reference filename from list_skills to load that file only.

ParameterTypeDescription
name *stringSkill directory name, for example craft-ts-routes or translate-spec-to-craft-ts
referencestringOptional references/*.md filename

get_llms_txt

Return the public llms.txt / llms-full.txt URLs and a short index of bundled documentation paths. Use llms.txt as the internet entry point; use search_documentation for offline lookup.

style_impact

Which sheet classes a change to one or more CSS custom properties can be seen in. Use it before rerunning a visual suite: changing one token should recapture what reaches it, not everything. Answers `narrowed: false` when a name is unknown to the graph, in which case the answer is the whole application on purpose.

ParameterTypeDescription
changed *arrayCustom property names, e.g. --ds-accent
dumpPathstringPath to the style dump the build plugin writes. Defaults to tmp/craft-style-graph.json.

style_matrix

What the application costs to capture: the number of visual states per sheet class, the total, the median and the largest. The median and the largest are the two numbers that decide whether matrix reduction is worth opening at all.

ParameterTypeDescription
dumpPathstringPath to the style dump the build plugin writes. Defaults to tmp/craft-style-graph.json.

style_debt

What the style system is owed: escape hatches taken with their stated reason, context obligations required and discharged nowhere, variables declared and never read, and the components no sheet is known to style. Read `extractionGaps` first — the rest is only worth its answer on a complete graph.

ParameterTypeDescription
dumpPathstringPath to the style dump the build plugin writes. Defaults to tmp/craft-style-graph.json.