dsh-local-rag
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DSH_RAG_DOCS | No | Workspace documentation directories to index for the `doc` source, separated by the system path separator (Windows `;`, Linux/macOS `:`), e.g. "D:/proj;D:/notes". Alternatively, configure `{ "docs": [...] }` in ~/.dsh/rag/config.json. If unset, workspace docs are simply not indexed (no error). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| rag_searchA | 在本地资料库里做全文检索(中文按二字组切分,SQLite FTS5 + BM25 排序)。资料库包含:历史会话记录、工作区文档、技能库、人设与记忆文件。当需要回忆以前聊过什么、翻某个项目的旧决定、查文档里的细节时用它。返回按相关度排序的片段,带来源和 id,可用 rag_open 取上下文。 |
| rag_openA | 取某一条检索结果的相邻片段(前后各若干块),用于看完整上下文。id 来自 rag_search 的返回。 |
| rag_indexA | 增量更新索引:只重建有改动的内容,没变的文件跳过。首次建库或改动很多时用命令行跑全量更快。不传 source 则更新全部四类来源。 |
| rag_statsA | 查看索引状态:总块数、文本量、各类来源的块数、上次构建时间。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool maps to a distinct operation in the RAG lifecycle: rag_search retrieves, rag_open expands context around a hit, rag_index rebuilds, and rag_stats reports status. Descriptions explicitly cross-reference each other (rag_open consumes ids from rag_search; rag_index notes the full-rebuild CLI alternative), leaving no overlap.
All four tools use the same rag_ prefix plus a short lowercase verb (open, index, stats, search), fully consistent snake_case with no stray styles. The namespace prefix also makes the tools instantly recognizable as belonging to one server.
Four tools is on the thin side, but each covers a genuinely needed verb (search, fetch-context, build, inspect) with no filler. It is well-scoped for a local index server, though one or two more operations (e.g. source listing or pruning) would not feel redundant.
The read path (search → open for context) and the maintenance path (index → stats) are both covered, which handles the core recall and rebuild workflows. Minor gaps remain: no way to remove or exclude stale content, and no listing of which sources exist beyond the aggregate counts in rag_stats.