Repository navigation
Agents
In addition to the web app and the CLI, an account's notes can be entrusted to an agent: an
assistant like Claude, which searches, reads, writes and files the notes on demand, in natural language.
"Find my note about taxes", "file my November meeting notes in
Work/Meetings", "summarize my notes tagged #recipe".
It is the CLI's tide mcp command that makes this possible (see CLI). MCP is the protocol through which an
agent discovers the tools it is given and calls them. Here, the tools are the notes.
| It can | Detail |
|---|---|
| Search | In the title and the content, with the matching line; recent notes; the notes of a tag |
| Read | A note's content, its path, its tags; a folder's content; the list of tags; a note's version history; its links, backlinks and notes with the same tags, and the account's broken links; images (which it sees) and attachments |
| Write | Create notes in markdown (its first heading becomes the title, its #tags its tags), rewrite a note or only a passage, a section or its title, add or remove tags on many notes at once, replace a text in every note (Advanced plan), attach a file, import markdown files |
| File | Create a folder, rename it, move a note or a folder, rename, merge or delete a tag, export to markdown; read and write the snippets and the smart folders (Advanced) |
| Delete | Move a note or a folder to the trash, see the trash, take an item out of it |
It goes through the same business code as the app and the CLI: a note it creates gets its title, its tags and its links exactly like a hand-written note, and it is encrypted the same way.
What it cannot do: read the full graph (it sees its neighborhood note by note), touch the plan, the settings and the accounts, create a tag alone, and empty the trash for good.
The agent has no account and no password: it acts for the account logged in on the machine where it
runs, the one from tide login. Log in once, and the agent inherits it.
An agent that cannot log in where it runs (a container, a hosted agent) receives an API token instead, made
in Settings > Applications of the web app (or tide add token "agent" --expires 30d), through the TIDE_SESSION
variable, with the server's address in TIDE_URL. Both win over the saved login. The token opens the whole account: keep it like a password, in the secrets of the agent's platform, never in a
shared or versioned configuration file. TIDE_SESSION=<token> tide logout revokes only that token.
Three things to know before using it:
- The agent has all the rights of the account, including that of moving a whole folder to the trash. Read-only exists only for the MCP over HTTP, with a read-only API token or OAuth connection: the writing tools are then not offered. There is no account reserved for agents.
- Renaming or deleting a tag rewrites the text of the notes that carry it, as from the app; each changed note keeps its previous text in its history.
- The server asks no confirmation. Each tool tells the client whether it only reads or deletes and overwrites, so the client can ask before acting; one that has each action validated is the right way to start, and a backup before a big reorganization remains useful.
Nothing is lost for all that: a deletion goes through the trash, and a rewritten note keeps its previous text in its history. But the trash empties itself once the account's retention period has passed.
The agent does not run in the app: it is an MCP client (Claude Code, Claude Desktop, Codex...) that launches
tide mcp as a subprocess, on a machine that reaches the server. In practice it is the computer where the CLI is
already used: tide mcp is a client of the API, like the CLI, and listens on no port.
-
Install the CLI and log in:
go install github.com/cyril-fl/tide/cmd/tide@latest, thentide login <url>. - Check that
tide whoamianswers. If it does, the MCP will work without any variable in the client. - Declare
tide mcpin the client, with the absolute path of the binary: a client launched from the Finder has not the shell'sPATH(echo "$(go env GOPATH)/bin/tide"gives it).
Claude Code:
claude mcp add tide -- "$(go env GOPATH)/bin/tide" mcpCodex, in ~/.codex/config.toml:
[mcp_servers.tide]
command = "/Users/<me>/go/bin/tide"
args = ["mcp"].mcp.json or Claude Desktop:
{
"mcpServers": {
"tide": { "command": "/Users/<me>/go/bin/tide", "args": ["mcp"] }
}
}The pitfall: a variable given by the client always wins over the saved login. An env block copied from another installation, with a TIDE_URL or a TIDE_SESSION, sends the agent to another server or account even when the machine's login is right.
Do not run tide mcp by hand to use it: the client starts it, stops it and talks to it on its standard input and output. The setup in detail, in French, is in MCP.md, with the twenty-four tools and how an agent should use them.
The Claude app (phone, web, Desktop) and ChatGPT call the server from their cloud, not from your device, so they cannot launch tide mcp. For them the server serves the same tools over HTTP, at /mcp, on an address of its own that holds nothing else but the MCP and its OAuth sign-in. Only that address is opened to the Internet; the API and the app stay behind Tailscale or your proxy.
- It is enabled by
tide-server serve --mcp-addr <address>.compose.prod.yamldoes it onTIDE_MCP_LISTEN(127.0.0.1:8081by default, closed until a tunnel points at it). -
Two ways to sign in. An API token pasted in the client, for one that accepts a fixed header (
Authorization: Bearer notes_…). Or an OAuth connection: the client needs only the URL, opens a Tide sign-in page and renews its tokens by itself. Claude's "Connect" and ChatGPT use OAuth. - Read-only exists here: a read-only token or connection gets the reading tools only, and the API refuses it any change.
- Each tool tells the client whether it only reads or deletes and overwrites, so the client asks before acting.
- A tunnel gives the HTTPS: Tailscale Funnel, Cloudflare Tunnel, or a proxy already exposed.
Tested with Claude on 2026-11-15:
- Tailscale Funnel must be on port 443. Claude does not reach another port (8443 was tried and fails).
-
To try it, run the funnel in the foreground (without
--bg): it closes withCtrl+C, so nothing stays open to the internet after the test. -
If port 8081 is already taken on the machine, the server container does not start (
address already in use). SetTIDE_MCP_LISTENin.envto another local address and point the tunnel at it.
The exact commands, the Claude and ChatGPT declarations and a curl check are in MCP.md. The agents connected by OAuth are listed in Settings > Applications, where revoking one disconnects it.
An agent that can run commands is often better served by the CLI than by the MCP: every reading command takes --json, and a loop over hundreds of notes costs one script instead of hundreds of tool calls.
Tide
Using Tide
Terminal and agents
Hosting and development