Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
dir2mcp
command
|
|
|
elevenlabs-bridge
command
|
|
|
internal
|
|
|
anthropic
Package anthropic provides a direct-HTTP adapter for the Anthropic Messages API (POST {base}/v1/messages).
|
Package anthropic provides a direct-HTTP adapter for the Anthropic Messages API (POST {base}/v1/messages). |
|
avutil
Package avutil isolates audio/video media handling behind a small surface so the rest of the codebase does not depend on the ffmpeg/ffprobe binaries directly.
|
Package avutil isolates audio/video media handling behind a small surface so the rest of the codebase does not depend on the ffmpeg/ffprobe binaries directly. |
|
cohere
Package cohere provides a minimal direct-HTTP adapter for the Cohere v2 API: Rerank (POST /v2/rerank), Embed (POST /v2/embed), and Chat (POST /v2/chat).
|
Package cohere provides a minimal direct-HTTP adapter for the Cohere v2 API: Rerank (POST /v2/rerank), Embed (POST /v2/embed), and Chat (POST /v2/chat). |
|
colbertrerank
Package colbertrerank is a pure-Go client for a self-hosted late-interaction / multi-vector (ColBERT-style) reranking endpoint (dir2mcp#337).
|
Package colbertrerank is a pure-Go client for a self-hosted late-interaction / multi-vector (ColBERT-style) reranking endpoint (dir2mcp#337). |
|
corpusfs
Package corpusfs abstracts corpus discovery and media reads behind a small interface so callers (ingest scanning, multimodal embedding) work the same against a local filesystem (an NFS mount is just a local path) or a remote object store such as S3, without knowing which.
|
Package corpusfs abstracts corpus discovery and media reads behind a small interface so callers (ingest scanning, multimodal embedding) work the same against a local filesystem (an NFS mount is just a local path) or a remote object store such as S3, without knowing which. |
|
embedqueue
Package embedqueue implements the optional distributed-embedding job queue (SPEC §8.7): a coordinator enqueues embedding jobs for pending chunks and one or more stateless embed-workers lease those jobs, read the referenced corpus bytes directly via CorpusFS (§7.10), embed via the configured provider, and write the resulting vectors + chunk status back to a shared store.
|
Package embedqueue implements the optional distributed-embedding job queue (SPEC §8.7): a coordinator enqueues embedding jobs for pending chunks and one or more stateless embed-workers lease those jobs, read the referenced corpus bytes directly via CorpusFS (§7.10), embed via the configured provider, and write the resulting vectors + chunk status back to a shared store. |
|
gemini
Package gemini provides a direct-HTTP adapter for Google Gemini.
|
Package gemini provides a direct-HTTP adapter for Google Gemini. |
|
identity
Package identity derives a stable, unique server name for a dir2mcp instance from the absolute path of the directory it indexes.
|
Package identity derives a stable, unique server name for a dir2mcp instance from the absolute path of the directory it indexes. |
|
index/diskindex
Package diskindex implements the Tier-B on-disk vector backend (issue #246).
|
Package diskindex implements the Tier-B on-disk vector backend (issue #246). |
|
index/pgvectorindex
Package pgvectorindex implements the pluggable model.Index contract (issue #269) on top of PostgreSQL + the pgvector extension.
|
Package pgvectorindex implements the pluggable model.Index contract (issue #269) on top of PostgreSQL + the pgvector extension. |
|
index/qdrantindex
Package qdrantindex implements the pluggable model.Index (issue #247) contract on top of a Qdrant collection (issue #268, epic #250).
|
Package qdrantindex implements the pluggable model.Index (issue #247) contract on top of a Qdrant collection (issue #268, epic #250). |
|
index/topk
Package topk provides a bounded top-k selection heap shared by the local vector backends (internal/index.HNSWIndex and internal/index/diskindex).
|
Package topk provides a bounded top-k selection heap shared by the local vector backends (internal/index.HNSWIndex and internal/index/diskindex). |
|
ingest/docling
Package docling parses the structured DoclingDocument JSON emitted by `docling --to json` and linearizes it into an ordered sequence of blocks that preserve reading order, the section-heading hierarchy, and per-element provenance (page + bounding box).
|
Package docling parses the structured DoclingDocument JSON emitted by `docling --to json` and linearizes it into an ordered sequence of blocks that preserve reading order, the section-heading hierarchy, and per-element provenance (page + bounding box). |
|
langdetect
Package langdetect provides a pure-Go, deterministic best-effort language detector used to record a representation's language (SPEC §8.8).
|
Package langdetect provides a pure-Go, deterministic best-effort language detector used to record a representation's language (SPEC §8.8). |
|
latechunk
Package latechunk implements the opt-in "late chunking" embedding path (issue #332, Jina's technique).
|
Package latechunk implements the opt-in "late chunking" embedding path (issue #332, Jina's technique). |
|
netutil
Package netutil holds small, dependency-free networking helpers shared across packages that cannot import one another (e.g.
|
Package netutil holds small, dependency-free networking helpers shared across packages that cannot import one another (e.g. |
|
omniembed
Package omniembed is a pure-Go client for a self-hosted, unified multimodal embedding endpoint — the off-API multimodal path (dir2mcp#334), extending the self-hosted-endpoint capability (#240) and the GPU-VPS / dual-machine epic (#250) to multimodal embedding.
|
Package omniembed is a pure-Go client for a self-hosted, unified multimodal embedding endpoint — the off-API multimodal path (dir2mcp#334), extending the self-hosted-endpoint capability (#240) and the GPU-VPS / dual-machine epic (#250) to multimodal embedding. |
|
openai
Package openai provides a direct-HTTP adapter for the OpenAI-compatible API surface (POST {base}/embeddings, POST {base}/chat/completions).
|
Package openai provides a direct-HTTP adapter for the OpenAI-compatible API surface (POST {base}/embeddings, POST {base}/chat/completions). |
|
pdfutil
Package pdfutil provides minimal, dependency-isolated PDF helpers for multimodal embedding (SPEC 8.1.7): counting pages and extracting a single page as its own PDF, so each page can be embedded directly with a precise page citation.
|
Package pdfutil provides minimal, dependency-isolated PDF helpers for multimodal embedding (SPEC 8.1.7): counting pages and extracting a single page as its own PDF, so each page can be embedded directly with a precise page citation. |
|
promptfence
Package promptfence fences untrusted corpus text inside a model prompt.
|
Package promptfence fences untrusted corpus text inside a model prompt. |
|
promptrules
Package promptrules holds the shipped RAG prompt rules whose exact text a server behaviour keys on, and the `${rag.*}` references that let an operator's rag.system_prompt point at a rule instead of copying it (#965).
|
Package promptrules holds the shipped RAG prompt rules whose exact text a server behaviour keys on, and the `${rag.*}` references that let an operator's rag.system_prompt point at a rule instead of copying it (#965). |
|
provider
Package provider implements the spec 0.7.0 provider model: the normative capability matrix (SPEC 8.1.2), per-capability provider selection (8.1.3), and the embeddings corpus-lifetime identity (8.1.4).
|
Package provider implements the spec 0.7.0 provider model: the normative capability matrix (SPEC 8.1.2), per-capability provider selection (8.1.3), and the embeddings corpus-lifetime identity (8.1.4). |
|
providerfactory
Package providerfactory constructs concrete model.* adapters from a resolved provider.Profile (SPEC 0.7.0 / Design 0001).
|
Package providerfactory constructs concrete model.* adapters from a resolved provider.Profile (SPEC 0.7.0 / Design 0001). |
|
providerhttp
Package providerhttp holds the one hardened HTTP path that every provider adapter uses.
|
Package providerhttp holds the one hardened HTTP path that every provider adapter uses. |
|
quality
Package quality provides reusable, content-only gates that detect degenerate or hallucinated STT/OCR/translation output before it is chunked and embedded.
|
Package quality provides reusable, content-only gates that detect degenerate or hallucinated STT/OCR/translation output before it is chunked and embedded. |
|
relpath
Package relpath is the one rule for what a corpus-relative path may be.
|
Package relpath is the one rule for what a corpus-relative path may be. |
|
scancache
Package scancache provides an optional, sqlite-backed directory-discovery cache for the corpusfs LocalFS walker (issue #267 item 5).
|
Package scancache provides an optional, sqlite-backed directory-discovery cache for the corpusfs LocalFS walker (issue #267 item 5). |
|
secrets
Package secrets provides an OS keychain backend for provider credentials (SPEC §16.1.1: env → keychain → file → session).
|
Package secrets provides an OS keychain backend for provider credentials (SPEC §16.1.1: env → keychain → file → session). |
|
setupwizard
Package setupwizard holds the provider-credential and corpus-profile logic behind `dir2mcp config init` and the `dir2mcp up` first-run flow (SPEC §§ config init / charmbracelet/huh).
|
Package setupwizard holds the provider-credential and corpus-profile logic behind `dir2mcp config init` and the `dir2mcp up` first-run flow (SPEC §§ config init / charmbracelet/huh). |
|
statefs
Package statefs creates and repairs the local state hierarchy with owner-only permissions.
|
Package statefs creates and repairs the local state hierarchy with owner-only permissions. |
|
subtitle
Package subtitle renders WebVTT and SubRip (SRT) subtitle documents from a document's stored transcript chunks.
|
Package subtitle renders WebVTT and SubRip (SRT) subtitle documents from a document's stored transcript chunks. |
|
tei
Package tei is a pure-Go client for a self-hosted Hugging Face Text Embeddings Inference (TEI) server addressed on its NATIVE surface (SPEC 8.1.1 `kind: tei`, dir2mcp#565).
|
Package tei is a pure-Go client for a self-hosted Hugging Face Text Embeddings Inference (TEI) server addressed on its NATIVE surface (SPEC 8.1.1 `kind: tei`, dir2mcp#565). |
|
usage
Package usage provides per-query cost and latency observability primitives for dir2mcp (issue #327).
|
Package usage provides per-query cost and latency observability primitives for dir2mcp (issue #327). |
|
whisperapi
Package whisperapi is a pure-Go client for a self-hosted, OpenAI-compatible speech-to-text endpoint — the GPU-VPS path (dir2mcp#240, epic #250).
|
Package whisperapi is a pure-Go client for a self-hosted, OpenAI-compatible speech-to-text endpoint — the GPU-VPS path (dir2mcp#240, epic #250). |
|
tests
|
|
|
eval
Package tests holds the offline retrieval-quality eval + ablation harness (issue #322).
|
Package tests holds the offline retrieval-quality eval + ablation harness (issue #322). |
Click to show internal directories.
Click to hide internal directories.