mirror of
https://github.com/aaronsb/obsidian-mcp-plugin.git
synced 2026-07-22 06:45:14 +00:00
Refined through design dialogue: - paginate/no-paginate boundary is a CHARACTER budget (READ_PAGE_CHARS, default 50000), not a line count (line count is an invalid proxy for context cost — 1500 short vs 1500 long lines differ by orders of magnitude) - bookends stay line-based (lineStart/lineEnd/totalLines) so edit.at_line on a large file still works; a page = longest whole-line run within the char budget - fits budget → whole file verbatim, one load (common case, no ceremony) - exceeds → bookended page 1 (single contiguous block, not chunk array) + nextPage hint; sequential paging via new `page` param - returnFullFile:true RETAINED and repurposed as the explicit whole-large-file override (not retired) - hard invariant recorded: a default read must never hand the agent a context-breaking raw dump Alternatives added: no-guard full dump, line-count budget, chunk-array — all rejected with rationale. |
||
|---|---|---|
| .. | ||
| adr | ||
| architecture | ||
| scripts | ||
| tools | ||
| bases-implementation-fixes.md | ||
| bases-implementation-status.md | ||
| bases-implementation.md | ||
| bases-mcp-reference.md | ||
| graph-traversal.md | ||
| Plugin_UI_July_2025.png | ||
| PROJECT_STRUCTURE.md | ||
| SECURITY-IMPLEMENTATION.md | ||
| troubleshooting.md | ||