mcp
v0.12.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Keywords, API names, or a task |
limit | integer | |
section | string | Limit 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Docs 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, …).
| Parameter | Type | Description |
|---|---|---|
query * | string | |
limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Skill directory name, for example craft-ts-routes or translate-spec-to-craft-ts |
reference | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
changed * | array | Custom property names, e.g. --ds-accent |
dumpPath | string | Path 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.
| Parameter | Type | Description |
|---|---|---|
dumpPath | string | Path 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.
| Parameter | Type | Description |
|---|---|---|
dumpPath | string | Path to the style dump the build plugin writes. Defaults to tmp/craft-style-graph.json. |