5 分钟快速上手
路径 A — Claude Code 接入(推荐)
Section titled “路径 A — Claude Code 接入(推荐)”Step 1: 添加 MCP server
Section titled “Step 1: 添加 MCP server”claude mcp add --transport http knowledge-chain https://mcp.gjs.ink/mcpStep 2: 验证
Section titled “Step 2: 验证”claude mcp list# 应看到: knowledge-chain http https://mcp.gjs.ink/mcpStep 3: 在会话中直接说
Section titled “Step 3: 在会话中直接说”“搜一下 KnowledgeChain 之前怎么处理 Go 启动连接重试的”
Claude 会自动调用 search_experience,返回经验库匹配项。
记录新经验:
“把刚才解决这个 bug 的过程沉淀下来”
Claude 会自动调用 record_experience,写入 Neo4j + Milvus。
路径 B — 浏览器 Web UI
Section titled “路径 B — 浏览器 Web UI”直接打开:kc.gjs.ink/app/
5 个 tab 各自能干什么:
| Tab | 干嘛 |
|---|---|
| 📅 今日 | 看今日 AI 新闻(需要 agent 喂入数据,详见 news-feeder) |
| 💬 问 KC | 输入问题,AI 给主方案 + 备选 + 证据 |
| ⚖️ 方案 PK | 描述问题,看候选方案 5 维评分排序 |
| 📓 复盘本 | 搜索经验库 |
| ⚙️ 设置 | 看 / 重置匿名 Agent ID |
路径 C — 直接调 REST API
Section titled “路径 C — 直接调 REST API”# 健康检查curl https://kc.gjs.ink/healthz
# 搜索经验curl -X POST https://kc.gjs.ink/api/v1/search \ -H 'Content-Type: application/json' \ -d '{"query": "Go 启动连接重试", "limit": 3, "detail": "summary"}'
# 记录经验curl -X POST https://kc.gjs.ink/api/v1/record \ -H 'Content-Type: application/json' \ -d '{ "task_description": "Go 启动期 Postgres 连接重试", "approach": ["指数退避 1→2→4→8→16→30s", "5 分钟超时"], "outcome": "success", "tags": ["go", "launchd", "retry"] }'我没有 API key 也能用吗?
Section titled “我没有 API key 也能用吗?”可以。当前部署 auth 关闭(development 模式),公网直接调用。线上版本未来开 auth 后,会发 token。
数据存在哪?
Section titled “数据存在哪?”158 服务器上的 Neo4j(图谱)+ Milvus(向量)+ Postgres(关系)。不发到 Anthropic / OpenAI——只有当 Agent 调用 LLM 推理(gpt-5.5)时才会经过 OpenAI 兼容代理。
怎么部署到自己机器?
Section titled “怎么部署到自己机器?”参考 运维与部署。简单说:docker compose 起 4 存储 + 1 LightRAG,systemd 跑 3 个 Go 二进制(kc-api / kc-mcp-http / kc-worker),Caddy 反代。
Wiki 这站本身怎么改?
Section titled “Wiki 这站本身怎么改?”github.com/hongnono-wdh/kc-wiki 仓库 → 改 markdown → push → Cloudflare Pages 自动部署。每页右上角 “Edit this page” 直接跳到 GitHub 编辑。