Repository navigation
Add Notes filters, accounts, stats, tags, and attachment listing - #337
Closed
oliverames wants to merge 2 commits into
Closed
oliverames wants to merge 2 commits into
oliverames wants to merge 2 commits into
Conversation
added 2 commits
November 16, 2026 12:51
Tags, word counts, and the features a note contains come from its decoded contents, so they live in plain functions of TopoText's public values. That lets the test target cover them without a Notes database.
notes_fetch gains tag, has, pinned, locked, word-count, created-date, and includeRecentlyDeleted filters; notes carry a notes:// link, folders a path. New read-only tools: notes_accounts, notes_stats, notes_tags, notes_attachments. Everything still reads through TopoText 0.2.0.
This was referenced Nov 16, 2026
oliverames
marked this pull request as ready for review
November 18, 2026 18:24
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does and why
iMCP can list and read notes, but it can't answer questions like which notes are pinned, which ones have a checklist, or which attachments a note holds. This PR adds those read-only answers using what TopoText 0.2.0 already exposes. It adds no entitlements, helpers, or writes. It is the read side of what sweetrb/apple-notes-mcp covers, and it follows the order Mattt suggested on #311: read parity before any writes.
What changed
notes_fetchkeeps its current parameters and gainstag,has(attachment, checklist, table, link, drawing, image, pdf, audio, video, scan),pinned,locked,minWords,maxWords,createdStart,createdEnd, andincludeRecentlyDeleted.nextCursorand says so. Locked or undecodable notes are listed inunreadableNoteIDs.notes_fetchandnotes_readnow carry aurlandisRecentlyDeleted. When contents were read, they also carry tags,has, links, andwordCount.notes_foldersadds apathfor nested folders.notes_accounts,notes_stats(metadata only, capped at 10,000 notes),notes_tags(from the most recent notes, 500 by default and 5,000 at most), andnotes_attachments(name, kind, type, URL, and size, without file contents).NotesQuery.swiftso the test target can compile it, because TopoText'sNoteandFolderhave no public initializers.Testing
NotesTestscovers the filter and output logic with synthetic data.Not verified
urlformatnotes://showNote?identifier=<id>has not been confirmed to open the right note.Screenshots
This is the Notes page in the current Settings window of my integration build, whose sidebar still says "Developer & Advanced" (since renamed "Advanced"). The read tools listed here (Fetch Notes, Read Note, List Note Attachments, List Note Accounts, Summarize Notes, List Note Tags, List Note Folders) are this PR's. The "Private Notes features" section and the "Allow writes" row come from other work (#342 and a fork-only branch), not from this PR.