需要 Node.js 18+
git clone https://github.com/coderyi/ContentAug.git
cd ContentAug
npm install && npm run buildcontentaug init # 创建 ~/.contentaug/profiles.json
contentaug add "https://example.com/docs"
contentaug add-repo "https://github.com/owner/repo" # 默认 README.md、docs/;可 --paths
contentaug status
contentaug serve{
"mcpServers": {
"contentaug": {
"command": "contentaug",
"args": ["serve"],
"env": {
}
}
}
}未全局安装时:将 command 设为 node,args 为 ["/绝对路径/本仓库/dist/cli.js", "serve"]。具体配置文件路径见各客户端文档。
| 命令 | 说明 |
|---|---|
init [id], init --all |
按配置拉取并重建索引 |
use <id> / profiles |
切换 / 列出 Profile |
status [id] / validate |
状态 / 校验配置 |
add <url> / add-repo <repo> |
加网页;仓库支持写 GitHub HTTPS URL(亦支持 owner/repo);--paths、--profile |
serve |
MCP Server |
search_docs(query)、switch_profile、list_profiles、add_document。