Agenda Support for Model Context Protocol (MCP)

,

+1 for allowing edit. I’m coming back to Agenda from NotePlan and I was using Claude + Noteplan quite a bit to update notes; travel plan changes, financial figures, etc.

How were you using it there? What sort of operations were you using? Eg. Just getting the full text of a note, editing it, and setting it all for the note?

Or were you getting the content of the note, and doing edits like “insert text after paragraph with identifier xyz”?

If you give me an idea of how you prefer it to work, the type of operations you want, I can probably add them.

My main use case: Claude reads a note via get_note, modifies the markdown, and writes it back. The simplest API surface would be a text (or markdown) parameter on edit_note that replaces the full body — same pattern as setting the title.

The specific scenario that prompted this: I migrated notes from NotePlan and the checkboxes came over as font glyphs (◉, ◯) instead of proper markdown checkboxes (- , - ). Claude could read the note and see the problem, but couldn’t fix it in place. Had to create a new note and delete the old one.

Other cases where this comes up:

  • Updating a value in a note (e.g., changing a balance or a date)
  • Toggling a specific checkbox in a checklist
  • Find-and-replace across a note’s content

If full body replacement is too complex given the internal data model, a replace_text(old_str, new_str) operation would cover most of these. That’s actually the pattern Anthropic uses for Claude’s own code editing tools — match a unique string, replace it.

I’ll see what I can do. Will try to allow a “set” option for markdown. Should be possible for Agenda to do a diff to see what is changing, and only update the relevant paragraphs.

OK, I’ve put a “markdown” parameter into edit_note. You will want to test this properly and be careful to begin with, because in theory it can remove the content of the note.

This will be in the next release. Not sure exactly when yet, but probably a minor release in a the next weeks.

2 Likes

Impressive. Thank you for being so responsive. I’ll keep my eyes peeled for the release. Cheers!