8000 feat(notes): find, read and write notes over MCP by adeelahmad · Pull Request #137 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

feat(notes): find, read and write notes over MCP - #137

Merged
adeelahmad merged 1 commit into
mainfrom
claude/notes-module-j9j30y
Oct 4, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/notes-module-j9j30y

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Description

Before: agents connected over MCP could read recordings, entities, topics and the graph, but not notes.

After: they get three tools.

  • find_notes searches by words or by PARA place, with links.
  • read_note returns a note's Markdown with its links and backlinks, by id or as the page of a thing.
  • write_note writes a note or a thing's page, marked as written by an assistant.

They have the same access as the person who signed the agent in: notes in the namespaces they can read. Writing needs a write-scope token and editor access.

Motivation and Context

Notes module: the assistant is the notes' primary user, and agents reach Lens over MCP. The assistant's find_notes now uses the same notebook.find as MCP, which also fixes its ordering: after title matches it shows the latest notes first, where before it showed the oldest.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it under ## Unreleased in CHANGELOG.md.

Checked locally: the MCP and notes tests pass and ruff is clean. The full backend suite is running.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XZQXJtCvJgbG1Z2H312KcS


Generated by Claude Code

Agents signed in over MCP get find_notes, read_note and write_note, with
the same access as the person: notes in the namespaces they can read,
writing with a write-scope token and editor access, marked as written by
an assistant. The assistant's find_notes shares the search, which now
puts the latest notes first after title matches.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XZQXJtCvJgbG1Z2H312KcS
@adeelahmad
adeelahmad merged commit 2726a5a into main Oct 4, 2026
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0