MCP listings: readOnlyHint, list_documents structuredContent + exact folder filter, full https page links #110

Closed
opened 2026-11-27 20:51:12 +00:00 by jfro · 1 comment
Owner

Part of 1.10 (agent listings). Any MCP agent should be able to find and link documents without guessing.

  • Add annotations: {readOnlyHint: true} to every read-only tool (list_documents, search_notes, read_pages, view_page, get_stats, list_suggestions, list_changes); leave write tools without it.
  • list_documents returns structuredContent (plus outputSchema) alongside the text: per document id, title, folder (name), updated (ISO 8601), url (full https link), external_ref (null when unset).
  • list_documents gains an exact folder filter (folder name match, not substring/fuzzy), scoped to the key's allowed folders.
  • view_page, read_pages and every listing give full https page links (app base URL from config), never bare paths.

Done: tests cover each point; mix precommit clean; CI green.

Part of 1.10 (agent listings). Any MCP agent should be able to find and link documents without guessing. - Add `annotations: {readOnlyHint: true}` to every read-only tool (list_documents, search_notes, read_pages, view_page, get_stats, list_suggestions, list_changes); leave write tools without it. - list_documents returns `structuredContent` (plus outputSchema) alongside the text: per document `id`, `title`, `folder` (name), `updated` (ISO 8601), `url` (full https link), `external_ref` (null when unset). - list_documents gains an exact folder filter (folder name match, not substring/fuzzy), scoped to the key's allowed folders. - view_page, read_pages and every listing give full https page links (app base URL from config), never bare paths. Done: tests cover each point; `mix precommit` clean; CI green.
Author
Owner

Shipped in #112 (merged to main as 9c993e2).

Shipped in #112 (merged to main as 9c993e2).
jfro closed this issue 2026-11-27 21:11:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/rm-analyzer#110
No description provided.