mcp-server-vue-hook-optimizer
v0.0.84
Published
MCP server for vue-hook-optimizer
Readme
Vue Hook Optimizer MCP Server
Node.js server implementing Model Context Protocol (MCP) for analyzing and optimizing Vue component hooks.
Features
- Generate Mermaid diagrams for analyze Vue component hooks and their relationships
- Provide optimization suggestions
- Support for
vueandreact
API
Tools
- analyze
- Analyze Vue component hooks and provide optimization suggestions
- Input:
filepath(string): Path to component fileframework(string):vueorreact
- Returns:
- Mermaid diagram showing hook relationships
- List of optimization suggestions
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"vho": {
"command": "npx",
"args": [
"-y",
"mcp-server-vue-hook-optimizer"
]
}
}
}Using the Refactor Skills
- Files:
packages/mcp/refactor_prompt_zh.md(Chinese Skill)packages/mcp/refactor_prompt_en.md(English Skill)
- Both files already include valid Skill YAML frontmatter (
name,description) and detailed instructions. - Setup (choose one):
- Personal Skills: copy each file’s content to
~/.claude/skills/<skill-name>/SKILL.md - Project Skills: copy to
.claude/skills/<skill-name>/SKILL.mdwithin your project - Example:
~/.claude/skills/vho-refactor-zh/SKILL.md→ content fromrefactor_prompt_zh.md~/.claude/skills/vho-refactor-en/SKILL.md→ content fromrefactor_prompt_en.md
- Personal Skills: copy each file’s content to
- Workflow:
- Ensure the
vue-hook-optimizerMCP server is connected (as above) - Invoke the Skill; it will instruct the agent to call the MCP tool
analyze:- Input:
absolutePath: absolute path to the component fileframework:vueorreact(defaultvue)
- Output:
mermaiddiagram (dependency graph)- Optimization suggestions (articulation points, isolated groups, chain calls, cycles)
- Input:
- Follow the Skill’s decision framework to refactor
- Re-run
analyzeafter changes to validate (structure/design/quality/business checks)
- Ensure the
Add MCP to Claude Code (CLI)
- macOS/Linux:
- Add server:
claude mcp add --transport stdio vho -- npx -y mcp-server-vue-hook-optimizer
- Verify:
claude mcp list
- Remove:
claude mcp remove vho
- Add server:
- Windows (native, not WSL):
- Use
cmd /cwrapper:claude mcp add --transport stdio vho -- cmd /c npx -y mcp-server-vue-hook-optimizer
- Then verify/remove as above
- Use
License
MIT
