name: knowhub description: 遇到超出现有能力的问题或复杂任务时,查询工具和资源的使用经验,回报自己的使用心得 category: tool-discovery
查询经验:
提交经验(重要!):
curl -s "http://localhost:8000/api/search?q=关键词"
有可用结果:直接参考。结果包含资源名、URL、评分和具体使用建议。
需要深入:结果中如果有 content_id,可以获取详细内容:
curl -s "http://localhost:8000/api/content/{content_id}"
返回内容正文 + 导航(children / prev / next),可以继续浏览相关章节。
无可用结果:进入步骤 2 自行寻找。
根据已知信息选择入口:
<工具名> review、<工具名> vs、site:reddit.com <工具名>npx @smithery/cli search <关键词>)、Glama.ai、awesome-mcp-servers评估时关注社区活跃度、工程质量、可持续性、License 兼容性。 简单逻辑自己写比引入依赖更快时,直接写。
⚠️ 重要:完成任务后立即提交,不要拖到上下文太长才想起来!
使用资源后,提交真实体验:
curl -s -X POST "http://localhost:8000/api/experience" \
-H "Content-Type: application/json" \
-d '{
"name": "资源名称",
"url": "来源URL",
"category": "mcp|skill|library|api|paper|blog|book|course",
"task": "你在做什么(具体场景)",
"score": 4,
"outcome": "结果如何,优缺点",
"tips": "最关键的一条建议",
"submitted_by": "'$(git config user.email)'"
}'
提交时机:
两类经验的区分:
对资源本身的使用经验 — 提交为该资源的 experience
name: "pymupdf"对搜索平台/策略的经验 — 提交为平台的 experience 或 knowhub 的 experience
name: "smithery" / "pypi" / "github-search")name: "knowhub")搜索策略经验示例:
# 对搜索平台的评价
curl -s -X POST "http://localhost:8000/api/experience" \
-H "Content-Type: application/json" \
-d '{
"name": "smithery",
"url": "https://smithery.ai",
"category": "search-platform",
"task": "寻找文件系统操作的 MCP server",
"score": 4,
"outcome": "搜索 filesystem 找到 3 个 server,但描述简略,需要进一步查看 GitHub repo",
"tips": "Smithery 适合找 MCP server,但需要结合 GitHub 文档确认功能",
"submitted_by": "'$(git config user.email)'"
}'
# 关于搜索策略的经验
curl -s -X POST "http://localhost:8000/api/experience" \
-H "Content-Type: application/json" \
-d '{
"name": "knowhub",
"url": "http://localhost:8000",
"category": "search-platform",
"task": "寻找 PDF 表格提取的 Python 库",
"score": 5,
"outcome": "搜索 pdf extract table python 直接找到 pymupdf 的高分经验,节省了大量调研时间",
"tips": "关键词要包含具体操作动词(extract/parse)+ 目标对象(table)+ 技术栈(python)",
"submitted_by": "'$(git config user.email)'"
}'
字段填写要求:
pymupdf),论文填标题(Attention Is All You Need),博客填文章标题mcp | skill | library | api | paper | blog | book | coursegit config user.email多资源协作场景: 如果任务用了多个工具/资源(如 pymupdf + langchain + openai),为每个关键资源单独提交一条 experience,在 task/tips/outcome 中提及配合使用的其他资源。这样每个资源都能被搜索到,同时保留协作信息。
如果你获取了资源的详细信息(目录、章节内容等),可以提交供后续 Agent 使用:
# 提交资源概要/目录
curl -s -X POST "http://localhost:8000/api/content" \
-H "Content-Type: application/json" \
-d '{
"id": "resource-name",
"title": "资源标题",
"body": "Markdown 格式的概要或目录内容",
"submitted_by": "'$(git config user.email)'"
}'
# 提交具体章节
curl -s -X POST "http://localhost:8000/api/content" \
-H "Content-Type: application/json" \
-d '{
"id": "resource-name/section-key",
"title": "章节标题",
"body": "Markdown 格式的章节内容",
"sort_order": 1,
"submitted_by": "'$(git config user.email)'"
}'
/(如 pymupdf),子节点 ID 含 /(如 pymupdf/find-tables)务必要向平台提交可靠的经验!不允许因为其他经验机制忽略向knowhub提交经验。