# MCP tools

> waddle mcp is an MCP server that gives agents your notes, the context you let them read, and a way to tell Limen about Waddle.

## Add it

```sh
claude mcp add --scope user waddle -- waddle mcp
```

`--scope user` adds it for every folder, not only this one.

Any agent that speaks MCP can start `waddle mcp` the same way, as a local server on stdio. It talks only to Waddle on this Mac, and Waddle does the reading and writing, so Waddle has to be running. Apps opened from the Dock need the command's full path: Preferences → Agents shows the line with it, and a Copy button.

## Notes

| Tool | What it does | Allowed by |
|---|---|---|
| `notes_search` {query, limit?} | Words (typos forgiven), `#tag`, `in:folder`, `"exact words"`. Empty gives the newest. 10 results, 50 at most. | Read and search |
| `notes_read` {note} | One note's markdown, by path or title. If none matches, the closest, and it says so. | Read and search |
| `notes_create` {title, text, folder?} | A new note, in `inbox` unless it names a folder. Never writes over one. | Make new notes |
| `notes_append` {note, text} | Adds the text at the end. | Add to a note |
| `notes_rewrite` {note, text} | Replaces the whole note. | Rewrite a note |
| `notes_trash` {note} | Into the macOS Trash. | Move a note to the Trash |

You choose what agents may do, in Preferences → Agents → Your notes. Rewrite and the Trash are off until you turn them on. A tool that's off isn't listed, and a call to it is refused by Waddle too. When you change a switch, a running agent is told the tool list changed.

## Your context

| Tool | What it does |
|---|---|
| `context_list` | The pages this agent may read here. The context tools are listed once your shelves have a page. |
| `context_read` {page} | One page, if it may read it here. |
| `context_search` {query, limit?} | Words in the pages it may read here. |
| `context_propose` {page, lesson, words?, said?, why?} | A lesson for one page, with your exact words. It waits in Waddle for your yes. |

What each agent may read is set per agent and per folder, in Waddle. Waddle knows the agent by the name its client gives, and the folder by where the agent started the server.

## A note to Limen

| Tool | What it does |
|---|---|
| `feedback_send` {happened, expected?, more?} | A short note about Waddle itself: a bug, something confusing, an idea. Never about the project the agent is in. |

You pick what happens to it, in Preferences → Agents: by default it opens in Waddle for you to read and send.

## The protocol

- JSON-RPC 2.0 over stdio, one message a line. Logs go to stderr.
- Protocol versions `2025-06-18`, `2025-03-26` and `2024-11-05`.
- `ping`, `tools/list`, `tools/call`; `notifications/tools/list_changed` when what's allowed changes.
- A tool that fails returns `isError: true` with a sentence saying what to do.
- When stdin closes, it finishes what it's doing and exits 0.
