MCP server for vue-hook-optimizer
npm install mcp-server-vue-hook-optimizerNode.js server implementing Model Context Protocol (MCP) for analyzing and optimizing Vue component hooks.
- Generate Mermaid diagrams for analyze Vue component hooks and their relationships
- Provide optimization suggestions
- Support for vue and react
- analyze
- Analyze Vue component hooks and provide optimization suggestions
- Input:
- filepath (string): Path to component file
- framework (string): vue or react
- Returns:
- Mermaid diagram showing hook relationships
- List of optimization suggestions
Add this to your claude_desktop_config.json:
``json`
{
"mcpServers": {
"vho": {
"command": "npx",
"args": [
"-y",
"mcp-server-vue-hook-optimizer"
]
}
}
}
- Files:
- packages/mcp/refactor_prompt_zh.md (Chinese Skill)packages/mcp/refactor_prompt_en.md
- (English Skill)name
- Both files already include valid Skill YAML frontmatter (, description) and detailed instructions.~/.claude/skills/
- Setup (choose one):
- Personal Skills: copy each file’s content to .claude/skills/
- Project Skills: copy to within your project~/.claude/skills/vho-refactor-zh/SKILL.md
- Example:
- → content from refactor_prompt_zh.md~/.claude/skills/vho-refactor-en/SKILL.md
- → content from refactor_prompt_en.mdvue-hook-optimizer
- Workflow:
- Ensure the MCP server is connected (as above)analyze
- Invoke the Skill; it will instruct the agent to call the MCP tool :absolutePath
- Input:
- : absolute path to the component fileframework
- : vue or react (default vue)mermaid
- Output:
- diagram (dependency graph)analyze
- Optimization suggestions (articulation points, isolated groups, chain calls, cycles)
- Follow the Skill’s decision framework to refactor
- Re-run after changes to validate (structure/design/quality/business checks)
- macOS/Linux:
- Add server:
- claude mcp add --transport stdio vho -- npx -y mcp-server-vue-hook-optimizerclaude mcp list
- Verify:
- claude mcp remove vho
- Remove:
- cmd /c
- Windows (native, not WSL):
- Use wrapper:claude mcp add --transport stdio vho -- cmd /c npx -y mcp-server-vue-hook-optimizer`
-
- Then verify/remove as above
MIT