# vue-harvest [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/virgilvox/vue-harvest  
**GitHub Stars:** 0  
**npm Downloads (last month):** 26  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/vue-harvest

## Description
Extract reusable component libraries and design tokens from Vue applications

## Tools
Capabilities this server exposes over MCP:

- **analyze-project** — Runs the full pipeline on a project path
- **list-components** — Lists components with filters (tier, confidence range)
- **inspect-component** — Full analysis with source code
- **extract-component** — Extracts with force option
- **deep-analyze** — Structured coupling analysis for LLM reasoning
- **suggest-refactor** — Before/after code for decoupling
- **generate-wrapper** — Creates composable wrappers for store-bound components
- **adapt-and-extract** — Full rewrite + extract in one step
- **batch-triage** — Prioritizes all reviewable components with effort estimates
- **coupling-report** — Project-wide coupling patterns
- **analyze-design-system** — Extracts design tokens
- **get-design-tokens** — Returns tokens filtered by type

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "vue-harvest": {
    "command": "npx",
    "args": ["-y","vue-harvest"]
  }
}
```

## Documentation

## What vue-harvest does

The vue-harvest MCP server connects an MCP-compatible client to a Vue project and exposes the project’s component and design-system analysis to an agent. It works with `.vue` files, parses component interfaces, builds dependency relationships, detects coupling patterns, and assigns each component a confidence score for reuse.

Components above the configured extraction threshold can be extracted into standalone bundles with rewritten imports and peer-dependency manifests. The broader toolset also supports inspection, forced extraction, refactoring suggestions, wrapper generation for store-bound components, and combined rewrite-and-extract operations.

CSS analysis covers colors, font families, font sizes, font weights, spacing, border radii, and shadows. Results can be returned as structured data and include generated CSS variables, JSON token data, and a visual HTML explorer through the project’s analysis workflow.

## How it works

The underlying analyzer parses Vue single-file components with `@vue/compiler-sfc`. It records props, emits, slots, dependencies, styles, and recognized coupling issues. Classification ranges from primitive and composite components to feature, page-bound, and app-specific components. The default extraction threshold is 70%, though the CLI configuration can change it.

The MCP layer is intended for cases that need reasoning rather than automatic extraction. Components in the 30–70% confidence range can be deep-analyzed, prioritized in batches, or reviewed with before-and-after decoupling suggestions. The server also exposes MCP resources for the registry, dependency graph, summary, individual component analyses, and design tokens, along with prompts for project analysis, extraction sessions, refactoring, and design-system work.

## Setup and configuration

Install the MCP package globally with `npm install -g vue-harvest-mcp`. For Claude Desktop, add a server entry whose command is `vue-harvest-mcp`; Claude Code can register the same command with `claude mcp add vue-harvest vue-harvest-mcp`.

The vue-harvest MCP server operates on a project path supplied to its tools. Optional project configuration belongs in `harvest.config.json`. Supported settings include include and exclude patterns, `extractionThreshold`, `outDir`, and the registry format. Path aliases are detected from `tsconfig.json`, including an `@` alias mapped to `src`.

## Tools and capabilities

Available MCP tools include:

- Run the full project pipeline and list components by tier or confidence range.
- Inspect a component with source code, interface details, dependencies, coupling, and styles.
- Extract a component, optionally forcing extraction, or analyze and extract after rewriting it.
- Deep-analyze coupling and generate decoupling suggestions with before-and-after code.
- Create composable wrappers for components tied to a store.
- Triage reviewable components with effort estimates and produce project-wide coupling reports.
- Analyze the design system and filter returned tokens by type.

## Limitations and notes

Extraction confidence is an analysis result, not a guarantee that a component needs no human review. Components with direct store access, router or i18n dependencies, global injection, environment references, unscoped CSS, provide/inject chains, implicit global components, or side-effect imports may require changes before reuse.

The server depends on an analysis having been run before its generated resources contain project results. Its documented workflow is focused on Vue projects and the component and CSS structures that the analyzer can parse.

_Full upstream README: https://allmcps.com/mcp/vue-harvest/readme_

