Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Hive provides on-demand access to an Obsidian vault.

When to use each tool

  • Start of session: Call session_briefing(project) to load tasks, lessons, git activity, and health in one call.

  • Browsing vault structure: Use vault_list to discover projects and navigate directories. Call vault_query to read their content.

  • Reading vault files: Use vault_query instead of direct filesystem access. Supports section shortcuts (context, tasks, roadmap, lessons) and arbitrary paths. Use scope:project syntax when project names are ambiguous across scopes.

  • Finding information: Use vault_search for keyword/regex lookup with filters. Add ranked=True for relevance-ranked results, or since_days=N for recent changes.

  • Recording lessons: Call capture_lesson when a bug fix, architectural decision, or useful insight emerges during work. Default is inline mode — pass title, context, problem, and solution. Pass text=... for batch mode when you want a worker model to extract multiple lessons from a free-form text block.

  • Writing to vault: Use vault_write to create, append, or replace files. Use vault_patch for surgical find-and-replace edits. Pass commit=False to defer the git commit; flush a batch of deferred writes with vault_commit(message=...). When obsidian-git is configured on the vault, commit=False is safe — vault_health surfaces the detected interval.

  • Deleting a file: Use vault_delete(project, path) to remove a single file (git-recoverable). Destructive — only on explicit user request.

  • Offloading work: Use delegate_task for summarization, boilerplate generation, or analysis. Use delegate_task(project=...) to summarize vault files. Best for boilerplate and format conversion, not for architecture or security decisions.

  • Checking workers: Call worker_status before delegate_task to verify the worker is configured and reachable.

  • Checking vault health: Call vault_health after modifying vault files or periodically to detect drift. Add include_usage=True for usage statistics.

Use project='_meta' to access cross-project content (patterns, templates). Read-only tools are safe to call freely. Write tools auto-commit to git.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
vault_listB

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.

vault_queryB

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

vault_searchB

Search the vault: full-text, ranked, or recent changes.

Default mode: flat full-text search across all vault files. Ranked mode (ranked=True): results scored by relevance. Recent mode (since_days>0): files changed in the last N days. rank_by mode (rank_by != 'bm25'): lessons-only, ranked by usage.

session_briefingA

Call at the start of every new session to load project context.

Without a project, returns the available project list with a usage hint — discoverability parity with vault_health() and worker_status(). With a project, assembles active tasks, recent lessons, git activity, and project health into a single response (replaces 3-4 manual calls).

vault_writeA

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. Requires path, relative to the project directory. Frontmatter is generated (doc_type defaults to "note") unless content opens with its own block, which is kept as is. Inferred automatically when you pass a path with no section, so operation may be omitted.

vault_patchA

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.

vault_commitA

Commit every unstaged and untracked change in the vault, in one commit.

Companion to vault_write(commit=False) and vault_patch(commit=False): callers that opt out of per-write commits batch many writes and then flush with a single vault_commit call.

It also sweeps edits made outside hive. A path that already has a staged change is left out and named in the result: it belongs to whoever staged it, often another session sharing the vault. Commit one deliberately with git commit -- <path>.

Returns the new commit SHA on success, a clean-tree notice when there is nothing to commit, or a human-readable error.

vault_deleteA

Delete a single file from the vault (destructive; recoverable via git).

Removes one file and, by default, commits the deletion so it stays recoverable from git history (git revert / git show). Files only — directories are rejected. A non-existent path is an error, unless idempotency_key is set (then a retry against an already-gone file is a no-op success).

vault_healthA

Return vault health metrics, validation, and optional usage analytics.

Always emits the ## server identity block (version, python, vault path, backend presence, started_at) at the top.

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. When include_runtime is True, appends runtime metadata (uptime, tools, budget).

capture_lessonA

Capture lessons: inline / batch write, or lookup by keyword.

Inline mode (default): provide title, context, problem, solution. Batch mode: provide text to extract lessons automatically via worker. Lookup mode: provide find to surface top-ranked existing lessons whose heading matches the keyword.

delegate_taskA

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.

worker_statusA

Show worker health: configuration, reachability, model, and usage.

HIVE-384 reshaped this tool, and the reshape is the point rather than a side effect. The old output led with a dollar budget and reported two providers by configuration: it said "Ollama: offline / OpenRouter: no API key" for an unknown length of time while every caller treated the worker as a working capability. A status surface that cannot distinguish "configured" from "answers" is how a dead backend stays invisible.

So reachability is probed, not inferred, and reported separately from configuration. The dollar figures are gone: NaN bills in credits and exposes no per-request cost, so they would read zero forever, and a gauge that always says the same thing looks like a working gauge.

vault_askA

Ask a natural-language question; get a source-cited synthesized answer (semantic retrieval / RAG) or relevant vault sections when no synthesis model is configured.

OPTIONAL — disabled by default. Requires the [semantic] extra plus an embeddings backend (HIVE_EMBED_BASE_URL); until then it returns a short how-to-enable message and never errors. Set HIVE_SYNTH_MODEL to enable LLM synthesis on top of retrieval. For keyword / regex lookups use vault_search instead.

Prompts

Interactive templates invoked by user choice

NameDescription
retrospectiveQuick end-of-session review that extracts lessons and appends them to the vault.
delegateStructured protocol for delegating tasks to cheaper models via hive-worker.
vault_syncPost-sprint vault synchronization — reconcile docs with shipped code.
benchmarkEstimate token savings from hive MCP tools in the current session.

Resources

Contextual data attached and managed by the client

NameDescription
projects_resourceList all vault projects with file counts and available shortcuts.
health_resourceVault health metrics for all projects.

TDQS

A3.8/5.0

Scored across 13 tools

Disambiguation3/5

Most tools are separable, but several pairs blur: vault_query vs delegate_task both read a vault file (delegate_task's project mode duplicates vault_query's core behavior), vault_write's 'replace section' overlaps vault_patch's find-and-replace, and capture_lesson writes content that could also go through vault_write. vault_search vs vault_ask is the one overlap the descriptions handle well (keyword vs semantic). An agent could pick the right tool most of the time, but boundaries require reading descriptions carefully.

Naming Consistency4/5

All names are snake_case, but there are two conventions in play: a dominant vault_-prefixed noun group (vault_query, vault_list, vault_search, vault_write, vault_patch, vault_commit, vault_delete, vault_health, vault_ask) and a verb_noun group without the prefix (worker_status, session_briefing, capture_lesson, delegate_task). Readable and mostly predictable, with only minor structural deviation.

Tool Count4/5

13 tools is within a healthy range for a vault/knowledge-management server and each maps to a plausible operation. Slight lean toward over-scoping given the diagnostic/session aids (worker_status, vault_health, session_briefing) sit alongside the core vault CRUD surface.

Completeness4/5

Lifecycle coverage is strong: list, read, search, write, patch, delete, commit, plus health, lessons, and Q&A. Minor gaps remain — no rename/move, no git history/revert/rollback tool despite commit semantics, and no directory management — but agents can work around these with standard git or delegating to shell.

Maintenance

ActivityActive
ResponsivenessNo recent community issues