一键导入
knowledge-vault
Query the Knowledge Vault MCP server — search sources, indexed dev-notes, transcripts/artifacts, and ask questions over scoped vault content.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Query the Knowledge Vault MCP server — search sources, indexed dev-notes, transcripts/artifacts, and ask questions over scoped vault content.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | knowledge-vault |
| description | Query the Knowledge Vault MCP server — search sources, indexed dev-notes, transcripts/artifacts, and ask questions over scoped vault content. |
| category | research |
Repo: /home/clawdbot/projects/knowledge-vault
Standalone read-only MCP server for the Agent Knowledge Vault. It exposes scoped PostgreSQL reads over knowledge_sources and knowledge_artifacts, including indexed /home/clawdbot/dev-notes markdown notes.
Scope defaults:
jerryjerry-private,hermes-private| Tool | Description |
|---|---|
vault_search | Search all sources by keyword, thinker, topic, or source type |
vault_search_notes | Search indexed dev-notes by keyword, area, project, note type, or status |
vault_thinkers | List thinkers/authors with counts and topics |
vault_topics | List topics with counts |
vault_get_source | Source metadata by source ID |
vault_get_artifact | Full transcript/article/note body text by artifact ID |
vault_get_transcript | Preferred source-ID → artifact-body lookup |
vault_ask | Natural language question → synthesized answer from scoped vault content |
cd /home/clawdbot/projects/knowledge-vault
uv run python scripts/index_dev_notes.py --dry-run
uv run python scripts/index_dev_notes.py
The indexer scans /home/clawdbot/dev-notes, excludes Archive/ by default, infers retrieval metadata from the new lanes (Areas, Projects, Resources, Learning, System), and writes stable dev-notes://... source URIs with full markdown artifacts.
Use vault_search_notes first for notes. It returns both source IDs and artifactId; call vault_get_artifact with artifactId for the full note.
Do not use ~/.hermes/archive as durable storage. For books, PDFs, articles, transcripts, or source bundles:
knowledge-vault://source/<id> and knowledge-vault://artifact/<id>#full-text URIs.vault_search, vault_get_source, and vault_get_transcript / vault_get_artifact.cd /home/clawdbot/projects/knowledge-vault
uv sync --extra dev
uv run python server.py
Requires DATABASE_URL, or an env file containing it. The server checks $HERMES_HOME/.env, ~/.hermes/.env, /home/clawdbot/.hermes/.env, ~/.hermes/hermes-agent/.env, and /home/clawdbot/projects/agent-memory/.env.
Add to ~/.hermes/config.yaml:
mcp_servers:
knowledge-vault:
command: uv
args:
- run
- --directory
- /home/clawdbot/projects/knowledge-vault
- python
- server.py
timeout: 120
connect_timeout: 60
Restart Hermes after editing MCP config.
uv run python -m py_compile server.py vault/db.py vault/dev_notes.py scripts/index_dev_notes.py
uv run python -m pytest -q
Direct smoke:
uv run python - <<'PY'
import asyncio, json
import server
async def main():
print([tool.name for tool in server.TOOLS])
result = await server.dispatch_tool('vault_search_notes', {'keyword': 'finite fields', 'area': 'bitcoin', 'limit': 2})
print(json.loads(result[0].text)[0]['notePath'])
asyncio.run(main())
PY