Skip to main content
Glama

Mycelium

Clean-room local MCP context server and incremental documentation generator with git commit-sha freshness stamps.

Mycelium implements the holon-skills context contract (query, status, fetch): agents query project documentation cheaply for orientation while always seeing whether the index is fresh or stale relative to HEAD, and still read source files straight from disk before editing or testing.

MCP Tools

  • mycelium_query: Natural-language BM25 search over all or selected components, returning ranked chunks with source paths and an echoed stamp.

  • mycelium_status: Reports indexed components, chunk counts, indexed paths, and live git commit-sha freshness against HEAD.

  • mycelium_fetch: Reads one indexed document whole by repo-relative path, echoing the stamp.

  • mycelium_refresh: Rebuilds the in-memory index from disk and returns the refreshed status and commit-sha stamp.

Related MCP server: shelfmark

CLI Commands

# Serve as a stdio MCP server (default)
node dist/cli.js serve --root /path/to/repo

# Generate or incrementally update a Mycelium site (manifest-diff)
node dist/cli.js generate --root /path/to/repo --init-config

# Print current index status and freshness JSON
node dist/cli.js status --root /path/to/repo

Quick start

npm install
npm run build
npm test

Run as a stdio MCP server against any repository:

node dist/cli.js --root /path/to/repo

Or register in a project's .mcp.json:

{
  "mcpServers": {
    "mycelium": {
      "command": "node",
      "args": ["/path/to/mycelium/dist/cli.js", "--root", "."]
    }
  }
}

Optional mycelium.json

Place mycelium.json at a target repository's root to declare custom components:

{
  "components": {
    "holon": ["LEXICON.md", "LEXICON-MAP.md", "docs/adr"],
    "docs": ["docs", "README.md"]
  }
}

Without mycelium.json, Mycelium auto-discovers holon (LEXICON.md, LEXICON-MAP.md, docs/adr) and docs (docs, README.md), ignoring .git, node_modules, and .scratch.

License

MIT

Available Tools

4 tools
mycelium_fetchA

Read one indexed Markdown document whole by repo-relative path, echoing the git commit-sha freshness stamp.

Inputs: sourcePath (required).

mycelium_queryB

Search indexed project documentation by natural-language query, optionally filtered by component names. Every response echoes the git commit-sha freshness stamp.

Inputs: query (required), limit, components.

mycelium_refreshA

Rebuild the in-memory Mycelium index from disk and return the updated status and fresh commit-sha stamp.

Inputs: no named parameters.

mycelium_statusA

Report indexed components, chunk counts, indexed paths, and live git commit-sha freshness against HEAD.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: status reports index health, query searches content, fetch reads a single document by path, and refresh rebuilds the index. There is no plausible overlap that would cause an agent to pick the wrong tool.

    Naming Consistency4/5

    All tools share a uniform 'mycelium_' prefix with a single lowercase operation word, which is very predictable. The only minor deviation is 'status' being a noun while the others are verbs, but the pattern remains easily readable.

    Tool Count4/5

    Four tools is on the lean side but well-matched to a focused documentation index/search server; each tool covers a distinct lifecycle stage (inspect, search, read, rebuild). Nothing feels redundant or missing at this count, though the surface is small.

    Completeness4/5

    The core lifecycle is covered: status for index health, query for discovery, fetch for retrieval, and refresh for rebuilding. A dedicated tool to enumerate components or list all indexed paths would round it out, but status partially covers this and agents can work around it via query.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables coding agents to query local notes, decisions, docs, and code with hybrid retrieval (BM25 + embeddings + reranking) and get path:line citations. It provides tools like rag_query for full-corpus search and search_knowledge for project-scoped knowledge recall.
      2
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to retrieve relevant sections from a repository's declared documentation scope using hybrid vector and full-text search, with incremental indexing.
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents and MCP hosts to query locally indexed notes, docs, chat logs, and other files via hybrid vector/BM25 retrieval with section-level citations. Exposes tools, resources, and prompts for searching and asking over the indexed content.
      -