rtfm-mcp
v0.9.3Read The Full Manual — local document-corpus search MCP server.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search
Search the corpus. Returns dedup'd hits, each listing up to `max_locations` paths its content lives at, plus total_locations. Auto-reindex: before searching, every dir source touched by this query is checked for staleness with a cheap (relpath, mtime) scan — no extraction. A source within the auto-reindex budget (RTFM_AUTO_REINDEX_MAX, default 10 new/changed files) is reindexed inline so newly-added/edited files just work; a larger delta is left to an explicit reindex() and reported in WARNING rather than blocking the query on extraction. git_repo sources always…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
max_files | integer | |
max_locations | integer | |
source |
read
Read a page range (PDF) or line range (text) from a file in a source. Use after `search` to read around a hit's locator.
| Parameter | Type | Description |
|---|---|---|
relpath * | string | |
source * | string | |
end | ||
start | integer |
reindex
Build/refresh the index. The ONLY tool that extracts. Pass a source name to rebuild just that source, or omit to rebuild all dir and git_repo sources. Returns a per-source summary.
| Parameter | Type | Description |
|---|---|---|
source |
find_duplicates
List contents stored at multiple paths (byte-identical files under different paths or versions). With `source`, reports contents duplicated WITHIN that source — the count and listed paths are scoped to it. Without `source`, reports duplicates across the whole corpus. Groups are sorted by location count, descending.
| Parameter | Type | Description |
|---|---|---|
min_locations | integer | |
source |
list_sources
List configured sources with indexed-file and unique-content counts. Read-only: never mutates the index; git_repo status for managed sources may fetch. git_repo sources also report their url, the ref being tracked (declared ref or the remote's default branch), and a git_status in git's own terms: "up to date" (indexed commit == origin/ref), "behind" (origin/ref moved on), "ahead" (the indexed content is ahead of origin/ref — a linked clone with unpushed commits), "diverged" (both sides moved), "dirty" (uncommitted changes in the working tree), "detached" (trackin…
health_check
Check server health: corpus home, schema version, index DB, PDF extractors, git presence, sources.