# Craft TS MCP [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/craft-ts/craft-ts  
**GitHub Stars:** 5  
**npm Downloads (last month):** 837  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/craft-ts-mcp

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

## Tools
Capabilities this server exposes over MCP:

- **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.
- **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.
- **find_examples** — Find Learn tutorials and demo examples that match a task (list, form, pagination, routing, optimistic update, …).
- **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.
- **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.
- **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.
- **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.

## Claude Desktop Quick Installation
Install path inferred — verify against the README before running it. Uses `npx` (confidence: medium):

```json
"mcpServers": {
  "craft-ts-mcp": {
    "command": "npx",
    "args": ["-y","@craft-ts/mcp"]
  }
}
```

## Documentation

## What @craft-ts/mcp does

@craft-ts/mcp supplies MCP tools for coding agents building with the CraftTS ecosystem, especially projects that import `@craft-ts/core`. It exposes the project’s coding-agent guidance, bundled documentation, tutorials, examples, Agent Skills, and public LLM documentation links. The package also provides analysis of CraftTS style graphs, including the visual impact of CSS custom-property changes, capture-matrix size, and known style-system gaps.

The documentation covers CraftTS concepts and APIs across areas such as reactive state, services, forms, routing, dependency injection, examples, and migration workflows. The best-practices output includes guidance on primitive selection, `yield*` usage, architecture and graph contracts, services, routes, ESLint, and an `AGENTS.md` snippet.

## How it works

An MCP-compatible coding agent calls focused tools rather than receiving one large context dump. `search_documentation` searches the bundled Learn, Guide, Reference, and Resources content. After finding a path, `get_documentation_page` returns that page as Markdown. `find_examples` locates tutorials and demos related to tasks such as lists, forms, pagination, routing, and optimistic updates.

Agent Skills are discoverable through `list_skills`; `get_skill` then returns either a skill’s `SKILL.md` or a specific referenced file. Available workflows include architecture tests, route work, specification translation, service migration, and full-application migration. `get_llms_txt` returns public `llms.txt` and `llms-full.txt` URLs along with an index of bundled documentation paths.

The style tools operate on the application’s style graph. `style_impact` identifies sheet classes reachable from changed CSS custom properties. `style_matrix` reports visual-state counts and summary statistics, while `style_debt` reports escape hatches, unresolved context obligations, unread variables, and components without known sheet coverage.

## Tools and capabilities

- Retrieve CraftTS coding conventions and an `AGENTS.md` starter snippet.
- Search and fetch bundled documentation as Markdown.
- Find task-specific Learn tutorials and demo examples.
- Discover and load workflow-oriented Agent Skills.
- Return public LLM documentation URLs and a documentation index.
- Analyze style impact, visual capture cost, and style-system debt.

## Limitations and notes

The server is aimed at coding agents working with CraftTS rather than general-purpose documentation search. Its style reports depend on the application’s known style graph: when a CSS custom-property name is unknown, `style_impact` intentionally returns the whole application as the affected scope. For `style_debt`, the `extractionGaps` result should be read first because the remaining findings are useful only when the graph is complete.

The underlying CraftTS project is described as being in beta, so APIs and documentation may change before a stable release.

_Full upstream README: https://allmcps.com/mcp/craft-ts-mcp/readme_

