diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-08-29 09:15:24 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-08-29 09:15:24 +0900 |
| commit | 5b063df8868ef8cdc2a6aab7a670f911bc0ea9a4 (patch) | |
| tree | ad42c80733be664ccee5dcf3211ba3bb63328acf /src/mcp/tools/common/history.h | |
| parent | d57577637c1c1a16176d63d5a89e9eec3c1e4d7c (diff) | |
大きなメッセージをMCPホストのtool result上限に触れず取得できるよう、read_messagesへcontent viewを追加する。UTF-8 byte単位のcontent_offset/content_limitとnext_content_offsetにより、文字境界を壊さず反復取得できる。
各chunkにrevisionとtotal_bytesを返し、expected_revisionで取得途中の更新をCONFLICTとして検出する。未知または削除済みmessageはNOT_FOUND、不正な範囲はVALIDATION_ERRORとする。読み取りには既存memory indexを利用し、永続data、revision、I/O counterを変更しない。
新規MCP toolは増やさず、従来の7 tool構成とhistory/context/sessionsの契約を維持する。storage recordとsnapshot形式も変更しないためmigrationとrebuildは不要。
README、設計書、MCPリファレンスを更新し、多言語UTF-8本文の完全再構成、境界・limit・revision・削除済みmessage、read-only I/O、既存view回帰をprotocol testで検証する。
Tests: ctest --test-dir build/range-read-test -C Release --output-on-failure (20/20 passed)
Diffstat (limited to 'src/mcp/tools/common/history.h')
0 files changed, 0 insertions, 0 deletions
