{"_id":"@1e0zj/mcp-frontend-search","name":"@1e0zj/mcp-frontend-search","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@1e0zj/mcp-frontend-search","version":"1.0.0","description":"MCP Server for frontend code vector search — index Vue/JS/TS projects, semantic search via Qdrant + BM25 hybrid","type":"module","bin":{"mcp-frontend-search":"dist/index.js"},"scripts":{"build":"tsc","prepare":"npm run build","dev":"npx fastmcp dev src/index.ts","start":"node dist/index.js"},"dependencies":{"@qdrant/js-client-rest":"^1.12.0","fastmcp":"^4.0.0","zod":"^3.24.0"},"devDependencies":{"tsx":"^4.19.0","typescript":"^5.7.0","@types/node":"^22.0.0"},"keywords":["mcp","qdrant","vector-search","vue","frontend","semantic-search","bm25"],"license":"MIT","repository":{"type":"git","url":"https://gitee.com/le0zj/mcp-frontend-search.git"},"_id":"@1e0zj/mcp-frontend-search@1.0.0","gitHead":"0df1fa44a438bfb84132d16389033c1471993003","_nodeVersion":"24.14.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-jNKSHgCZlr8Mnj9bc6jLDXx3QvBkGINbeM7ZkfpO0OmecI1Av6lB6vdeKAWOikj2U028xX+pk8BkI2Rp97Ds5Q==","shasum":"223f7a978a7c2518b7816097722ed6e62758f015","tarball":"https://registry.npmjs.org/@1e0zj/mcp-frontend-search/-/mcp-frontend-search-1.0.0.tgz","fileCount":14,"unpackedSize":54964,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBgYKmsjWgJAs+piv3Ix28zCZEDQMUi8HMAuD5R1mZX0AiAQ5zL0fSw1WdDbavTpXgAUElxUTJlQhRsazEnXatKkXQ=="}]},"_npmUser":{"name":"1e0zj","email":"1038681076@qq.com"},"directories":{},"maintainers":[{"name":"1e0zj","email":"1038681076@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-frontend-search_1.0.0_1780234153368_0.25694550310966013"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-31T13:29:13.179Z","1.0.0":"2026-05-31T13:29:13.501Z","modified":"2026-05-31T13:29:13.750Z"},"maintainers":[{"name":"1e0zj","email":"1038681076@qq.com"}],"description":"MCP Server for frontend code vector search — index Vue/JS/TS projects, semantic search via Qdrant + BM25 hybrid","keywords":["mcp","qdrant","vector-search","vue","frontend","semantic-search","bm25"],"repository":{"type":"git","url":"https://gitee.com/le0zj/mcp-frontend-search.git"},"license":"MIT","readme":"# @le0zj/mcp-frontend-search\n\nMCP Server for frontend code vector semantic search.\n\nIndex Vue / JS / TS projects into Qdrant vector database, then search with natural language queries using hybrid vector + BM25 search with RRF fusion.\n\n## Tools\n\n| 工具 | 说明 |\n|------|------|\n| `index_frontend` | 初始化前端向量索引（解析 Vue/JS/TS，生成向量索引到 Qdrant） |\n| `search_frontend` | 自然语言搜索前端组件（向量 + BM25 混合搜索） |\n\n## Install\n\n```bash\nnpm install -g @le0zj/mcp-frontend-search\n# 或直接用 npx\n```\n\n## 快速开始\n\n### 1. 前置依赖\n\n- **Qdrant** 向量数据库（默认 `localhost:6333`）\n- **智谱 Embedding API Key**（[申请地址](https://open.bigmodel.cn/)）\n\n```bash\ndocker run -d -p 6333:6333 qdrant/qdrant\n```\n\n### 2. 全局注册一次\n\n```bash\nclaude mcp add frontend-search \\\n  -e EMBEDDING_API_KEY=your_key \\\n  -- npx @le0zj/mcp-frontend-search\n```\n\n### 3. 进到项目目录，启动 Claude Code\n\n```bash\ncd D:/code/admin-web\nclaude\n```\n\n### 4. 直接对话\n\n```\n> 初始化前端索引\n> 搜索用户管理相关的组件\n> 搜索频道列表页面\n```\n\n## 索引隔离\n\nQdrant 中的索引按 `project` 字段（目录名）隔离，不同项目互不影响：\n\n```\nD:/code/admin-web/      → project: \"admin-web\"     ← 独立索引\nD:/code/mobile-app/     → project: \"mobile-app\"    ← 独立索引\n```\n\n## Environment Variables\n\n| 变量 | 必须 | 说明 |\n|------|------|------|\n| `EMBEDDING_API_KEY` | ✅ | 智谱 Embedding API Key |\n\n## Requirements\n\n- Node.js >= 18\n- [Qdrant](https://qdrant.tech/) vector database\n- Zhipu (智谱) Embedding API key\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-67feeed93a8a5827cfdcce1c5baa9f7a"}