Hive Vault

v1.12.2
io.github.mlorentedev/hive-vault Checked 44 minutes ago Published 6 months ago

On-demand Obsidian vault access for AI coding assistants — 17 tools, 5 resources, 4 prompts.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

vault_list Vault List

List vault projects, or files within a project. When called without arguments, lists all available projects. When called with a project, lists files in that project directory.

ParameterTypeDescription
pathstringSubdirectory within the project. Empty = project root.
patternstringGlob pattern to filter files (e.g. 'adr-*', '*.md').
projectstringProject slug. Empty = list all projects.

vault_query Vault Query

Read content from a vault project — use instead of direct filesystem access.

ParameterTypeDescription
project *stringProject slug (directory under 10_projects/), or '_meta' for 00_meta/.
include_metadatabooleanPrepend a structured metadata line from YAML frontmatter.
max_linesintegerMaximum lines to return. 0 = unlimited.
pathstringRelative path to a specific .md file within the project. Overrides section.
sectionstringShortcut name (context, tasks, roadmap, lessons). Ignored if path is set.

session_briefing Session Briefing

Call at the start of every new session to load project context. Assembles active tasks, recent lessons, git activity, and project health into a single response — replaces 3-4 manual tool calls.

ParameterTypeDescription
project *stringProject slug (directory under 10_projects/).

vault_write Vault Write

Write to the vault: append, replace a section, or create a new file. Modes: - append/replace: Update a project section. Requires section. - create: Create a new file with auto-generated frontmatter. Requires path and doc_type.

ParameterTypeDescription
content *stringMarkdown content to write (body only for create mode).
project *stringProject slug or '_meta' for cross-project content.
doc_typestringDocument type for frontmatter. For create mode.
operationstring'append', 'replace', or 'create'. Default 'append'.
pathstringRelative path for new file. For create mode.
sectionstringSection shortcut (context, tasks, roadmap, lessons). For append/replace.

vault_patch Vault Patch

Surgical find-and-replace in a vault file with auto git commit. Supports single or multi-replacement. For a single replacement, provide ``find`` and ``replace``. For multiple replacements, provide ``patches`` — a list of ``{"find": "...", "replace": "..."}`` dicts applied in sequence. Do not mix both modes. Each ``find`` value must appear exactly once in the file (after prior patches in the list have been applied). If any patch fails validation, no changes are written. Uses 3-pass cascading match: exact → body-only → whitespace-normalized.

ParameterTypeDescription
path *stringRelative path to the file within the project.
project *stringProject slug or '_meta' for cross-project content.
findstringExact text to find (single mode). Empty = not set.
patchesarrayList of {"find", "replace"} dicts (multi mode).
replacestringReplacement text (single mode). Empty = not set.

vault_health Vault Health

Return vault health metrics, validation, and optional usage analytics. Without parameters, returns a health summary for all projects. When checks are specified, runs drift detection (frontmatter, stale, links). When include_usage is True, appends tool usage analytics.

ParameterTypeDescription
checksarrayValidation checks to run. Empty = health summary only. Options: frontmatter, stale, links.
include_usagebooleanAppend vault tool usage analytics. Default False.
max_issuesintegerMaximum validation issues to report. Default 50.
projectstringProject slug to validate. Empty = all projects.
usage_daysintegerUsage look-back window in days. Default 30.

capture_lesson Capture Lesson

Capture lessons: inline (structured fields) or batch (raw text via worker). Inline mode (default): provide title, context, problem, solution. Batch mode: provide text to extract lessons automatically via worker.

ParameterTypeDescription
project *stringProject slug (directory under 10_projects/).
contextstringWhat you were doing (inline mode).
max_lessonsintegerMaximum lessons to extract in batch mode. Default 5.
min_confidencenumberMinimum confidence for batch extraction. Default 0.7.
problemstringWhat went wrong or what decision was needed (inline mode).
solutionstringWhat fixed it or what was decided (inline mode).
tagsarrayOptional tags (e.g. ["python", "testing"]).
textstringRaw text to extract lessons from (batch mode).
titlestringShort descriptive title (inline mode).

delegate_task Delegate Task

Offload work to a cheaper model or summarize vault files. When project is provided, reads a vault file. Small files (≤50 lines) are returned directly. Large files are auto-delegated to a worker for summarization — falls back to raw content if workers are unavailable.

ParameterTypeDescription
contextstringOptional system context for the model.
max_cost_per_requestnumberMax USD. 0 = free models only.
max_summary_linesintegerTarget summary length for summarization.
max_tokensintegerMaximum tokens in the response.
modelstring'auto', 'ollama', 'openrouter-free', 'openrouter' (paid), or model ID.
pathstringRelative path to a .md file. Overrides section.
projectstringProject slug for vault summarization mode.
promptstringThe task description or code to process.
sectionstringShortcut name for summarization. Ignored if path is set.

worker_status Worker Status

Show worker health: budget, connectivity, available models, and usage stats.

ParameterTypeDescription
include_modelsbooleanInclude available model list from all providers. Default True.