DocsMCP & agents
DocsUse
MCP & agents
Connect AI agents to Memora over MCP: API keys or OAuth, the discovery card, methods, results and errors, privacy rules and all 87 tools.
On this page
- Transport
- Connecting an agent
- With an API key
- With OAuth
- Test from a shell
- Discovery card
- Methods
- Resources
- Results and errors
- What each key sees
- Privacy rules
- Tools
- Notes (note)
- Search (search)
- Query (query)
- Tags (tag)
- Folders (folder, ops)
- Graph (graph)
- Versioning (version)
- Bulk writes (write)
- Collaboration (collab)
- Activity and health (ops)
- Identity (identity)
- Import and export (interop)
- Checks, to-dos and pins (ux)
- Kanban boards (kanban, kanbancards, kanbanboards, kanban_embed)
- Admin tools (admin)
- Identity and tracking
Memora exposes the vault to agents through the Model Context Protocol. The server speaks JSON-RPC 2.0 over the Streamable HTTP transport at /mcp, on the same port as the HTTP API and the web UI. There is one MCP endpoint and one tool catalog.
| Endpoint | POST /mcp |
| Protocol versions | 2025-06-18 (preferred), 2025-03-26, 2024-11-05 |
| Auth | API key in Authorization: Bearer <key> or X-API-Key: <key>, or an OAuth 2.1 access token |
| Discovery card | GET /.well-known/mcp.json (public) |
| Readable catalog | GET /tools (HTML page, public) |
| Catalog size | 87 tools, plus 5 admin tools for keys with the admin scope |
initialize answers with the protocol version the client asks for when it is one of the three above, and with 2025-06-18 otherwise.
Transport#
- Requests are JSON-RPC 2.0 objects sent with
POST /mcp. Batches (JSON arrays) are not supported. - Responses are plain JSON (
application/json), with one exception below. initializereturns anMcp-Session-Idheader (<catalog epoch>.<random>). The epoch is a hash of the server version and the tools the caller may use, so it changes when the server is upgraded, a tool is switched on or off, or the key's scopes or tool grant change. No session id is ever refused: unknown or old ids work, and malformed ones count as no session.- When a request carries a session id whose catalog has changed since that session last heard, and its
Acceptheader allowstext/event-stream, the answer is an SSE stream with two events: the notificationnotifications/tools/list_changed, then the normal response. Each change is sent once per session (remembered in memory; a restart forgets, and the epoch in the id takes over). JSON-only clients always get plain JSON. GET /mcpreturns405 Method Not Allowed(there is no standalone server stream).DELETE /mcpwith a session id returns204 No Content; without one it returns405.- A notification (a
notifications/*method without anid) gets202 Acceptedand no body. /mcpneeds a configured vault. Until one is chosen it returns409 {"error":"vault not configured","needs_vault":true}.- A browser session (cookie) may also call
/mcp. It then needs a same-origin request, like the rest of the JSON API.
The server speaks Streamable HTTP only. A client that can only launch local stdio servers can use a bridge such as mcp-remote (see below).
Connecting an agent#
With an API key#
Create a key in the web UI (Agents, then New agent), with memora-cli (/keys), or with POST /api/keys. The raw key (memora_live_...) is shown once. By default a key gets the scopes mcp, read and write and may call every tool. See Tool switches and per-key permissions to narrow it.
Use http://localhost:8400/mcp for a local install, or your public URL such as https://memora.example.com/mcp behind a reverse proxy. When the server sets MEMORA_DOMAIN or MEMORA_BASE_URL, requests for any other host get 404, so use that domain.
Claude Code:
claude mcp add --transport http memora https://memora.example.com/mcp \
--header "Authorization: Bearer memora_live_REPLACE_WITH_YOUR_KEY"Cursor, Windsurf and other clients with an mcpServers JSON config (VS Code uses the key servers in .vscode/mcp.json):
{
"mcpServers": {
"memora": {
"type": "http",
"url": "http://localhost:8400/mcp",
"headers": {
"Authorization": "Bearer memora_live_REPLACE_WITH_YOUR_KEY"
}
}
}
}Codex (~/.codex/config.toml), with the key in the MEMORA_API_KEY environment variable:
[mcp_servers.memora]
url = "https://memora.example.com/mcp"
bearer_token_env_var = "MEMORA_API_KEY"Clients that only run local stdio servers, such as the Claude Desktop config file, can bridge with mcp-remote (needs Node.js):
{
"mcpServers": {
"memora": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://memora.example.com/mcp",
"--header", "Authorization: Bearer memora_live_REPLACE_WITH_YOUR_KEY"
]
}
}
}Some clients send the key as X-API-Key: <key> instead. Both headers are accepted.
With OAuth#
Clients that support MCP authorization (for example Claude and ChatGPT custom connectors, or Claude Code without a --header) can connect with only the URL:
claude mcp add --transport http memora https://memora.example.com/mcpThe flow:
- The client calls
/mcpwithout credentials and gets401withWWW-Authenticate: Bearer resource_metadata="https://memora.example.com/.well-known/oauth-protected-resource". - It reads the protected resource metadata (RFC 9728) and the authorization server metadata at
/.well-known/oauth-authorization-server(RFC 8414; also served at/.well-known/openid-configurationand under a/mcpsuffix). - It registers itself with dynamic client registration at
POST /oauth/register(RFC 7591), or uses an HTTPS client metadata document URL as itsclient_id. The owner can also register clients in the web UI. Redirect URIs must be HTTPS, or plain HTTP onlocalhost,127.0.0.1or[::1]. - It opens
/oauth/authorize(authorization code with PKCES256only). The browser lands on the Memora sign-in page, and the signed-in owner approves or denies the connection on a consent card. Codes are valid for 10 minutes. - It exchanges the code at
POST /oauth/tokenand receives an access token and a refresh token. The only OAuth scope ismcp.
The access token is a regular Memora API key named after the client. It starts with the default scopes (mcp, read, write) and every tool, and it shows up on the Agents page like any other agent, so you can restrict, disable or delete it there. The access token has no expiry. A refresh_token grant replaces it with a fresh one (the old token stops working at once) and rotates the refresh token. Disabling or deleting the key ends the connection.
Set MEMORA_BASE_URL (for example https://memora.example.com) when the server runs behind a proxy, so the issuer and endpoint URLs in the metadata are the public ones. Without it the server derives them from the request headers.
Test from a shell#
curl -s -X POST http://localhost:8400/mcp \
-H "Authorization: Bearer memora_live_REPLACE_WITH_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Discovery card#
GET /.well-known/mcp.json needs no auth and returns:
| Field | Value |
|---|---|
name | memora |
version | The server version |
description | One-line description of the server |
mcp | {endpoint: "/mcp", transports: ["streamable-http"], protocolVersion: "2025-06-18"} |
auth | {type: "api-key", headers: ["Authorization: Bearer <key>", "X-API-Key: <key>"], oauth: "/.well-known/oauth-authorization-server"} |
capabilities | {tools: true, resources: true, prompts: false} |
tools | Every catalog tool as {name, category, description, enabled}. enabled is false for tools switched off on this server. Admin tools are not listed. |
resources | [{uri, name}] for the three resources below |
The card is the same for every caller. To see what a given key may call, use tools/list with that key.
Methods#
| Method | Purpose |
|---|---|
initialize | Handshake. Returns protocolVersion, serverInfo ({name, version}) and capabilities (tools with listChanged: true, resources with listChanged: false). |
notifications/initialized | Client notification. Without an id it gets 202 Accepted. |
tools/list | The tools the caller may use, each with name, description (what it does and when to use it), inputSchema, and _meta.category. |
tools/call | Runs one tool. Params are {name, arguments}. |
resources/list | Lists the three resources below. |
resources/read | Reads one resource. Params are {uri}. |
There are no prompts and no pagination cursors. The only notification the server sends is notifications/tools/list_changed (see Transport).
Resources#
| URI | Content |
|---|---|
memory://catalog | Every catalog tool with name, category, description, when, and inputSchema (JSON) |
memory://schema | Data shapes for a note, a folder, the graph, and activity (JSON) |
memory://guide | A short guide for agents using the vault (Markdown) |
resources/read returns {contents: [{uri, mimeType, text}]}.
Results and errors#
A successful tool call returns the tool's JSON result as text:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"content": [{ "type": "text", "text": "{...}" }],
"isError": false
}
}A tool that fails (bad arguments, note not found, unknown tool name) returns the same envelope with isError: true and the error message as the text. The HTTP status stays 200.
JSON-RPC errors:
| Code | When |
|---|---|
-32700 | The body is not valid JSON (HTTP 400). |
-32600 | The body is not a JSON-RPC request object (HTTP 400). |
-32601 | Unknown method: unsupported method: <method>. |
-32602 | resources/read with an unknown URI: unknown resource: <uri>. |
-32003 | The tool exists but the caller may not use it. Messages: tool not allowed for this API key: <name>, tool disabled on this server: <name>, API key lacks the 'write' scope for tool: <name>. |
HTTP errors before JSON-RPC runs:
| Status | When |
|---|---|
401 | No key, or a key that is unknown, disabled, deleted or replaced by a roll (invalid API key). Carries a WWW-Authenticate header that points OAuth clients at the protected resource metadata. |
403 | The key lacks the mcp scope ({"error":"API key lacks the 'mcp' scope","required_scope":"mcp"}), or a browser request failed the same-origin check. |
405 | Any method other than POST. |
409 | No vault is configured yet. |
429 | Rate limit or cooldown after failed attempts. |
What each key sees#
tools/list is filtered per caller:
- A tool switched off on the server is hidden for everyone.
- A key whose tool list is not
"*"only sees the tools in its list. - A key without the
writescope only sees read-only tools. - Admin tools are added for keys with the
adminscope (and for browser sessions).
tools/call on a tool that tools/list would hide returns -32003. Details are in Tool switches and per-key permissions.
Privacy rules#
The owner can hide notes and folders from specific agents (web UI, /api/privacy, or the privacy_* admin tools). For an API key covered by a rule, every tool works as if the hidden paths did not exist: they are left out of listings, search, the graph, tags, events, logs, locks and folder metadata; a hidden path named in an argument is answered as not found, for reads and writes alike; and folder operations that would carry hidden items along are refused. If the rules cannot be read, the key sees nothing (fail closed). Browser sessions are never filtered.
Tools#
R = read-only (needs only the mcp scope). W = changes the vault or server state (also needs the write scope). Unless marked required, arguments are optional. Paths are vault-relative, for example Projects/Plan.md. A path copied in the web app (Copy path in a note or folder menu) works as is as the path argument of read_memory and the other tools.
Notes (note)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
list_memory | R | none | Every note grouped by its folder, the full parent path (Projects/Atlas; Root for the top level): {folder: [{path, name, folder, mtime}]}. |
read_memory | R | path (string, required) | Markdown body, frontmatter, tags and backlinks of one note. A \ in a path is read as /; replies echo the normalized path. |
create_memory | W | title (string, required), folder (string relative to the vault, default Memory when omitted or empty; Root for the top level), content (string; default is a stub with created frontmatter and a heading) | Creates <folder>/<title>.md and returns {ok, path}. A trailing .md in the title is dropped; / and \ in a title, an absolute folder and a folder that is a note are refused. Spaces are kept; : * ? " < > | # ^ [ ] and a leading dot are removed and names are cut at 80 characters; the reply then adds renamed_from and a note. A note whose name differs only in case from an existing one is refused. |
save_memory | W | path (string, required), content (string, required) | Replaces the whole note. |
patch_memory | W | path (string, required), ops (array, required) | Partial edits. Each op is an object: {op:"append", text}, {op:"prepend", text}, {op:"replace", find, with}, {op:"set_field", field, value}, {op:"add_tag", tag}, {op:"remove_tag", tag}. |
delete_memory | W | path (string, required), permanent (boolean, default false) | Moves a note to the Trash (.Trash), remembering where it came from and who deleted it: {ok, path, trashed, to}. list_trash shows it and restore_trash brings it back. permanent: true deletes it for good instead ({ok, path, permanent}) and is refused for keys without the admin scope. With version history on, every earlier version is erased from the history as well (every name the note had, its trash record and the commit messages naming it; other notes keep their versions but their revision ids change), so no one, agents included, can read it again. |
move_memory | W | path (string, required), folder (string, required; relative to the vault, Root for the top level) | Moves a note into another folder. Wikilinks are rewritten where needed so each still names the note it named before (same-named notes included). |
rename_memory | W | path (string, required), new_name (string, required) | Renames a note in its folder. |
upload_image | W | path (string, required: the note the image belongs to), name (string, required, e.g. diagram.png), data (string, required: base64 or a data:image/...;base64, URL), alt (string), append (boolean, default false) | Stores a PNG, JPEG, WebP or GIF in the note's own folder (checked by content; the upload limit in Settings, Images applies, 5 MB by default). Identical bytes reuse the existing file; a taken name gets -1, -2 ...: {ok, path, name, bytes, url, markdown}. Show it in the note with the returned markdown line, ; append: true adds that line to the end of the note. The image then moves, goes to the Trash, is restored and is deleted with its note. |
list_images | R | folder (string; Root or empty for the top level) or path (a note) | The images of one folder (not its sub folders), each with used_in (the notes and sections that show it); with path, the images that note shows and every image of its folder. |
Search (search)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
get_stats | R | none | Counts of notes, links and folders. |
search_memory | R | q (string, required; query is accepted as an alias), limit (integer, default 12) | Search titles and bodies. Supports tag:x and #x. |
Query (query)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
query_memory | R | folder, tags, author, type, status (strings), limit (integer, default 50) | Filter notes by frontmatter. |
find_similar | R | path (string, required), limit (integer, default 8) | Notes most similar to one note (shared tags and words). |
suggest_links | R | path (string, required), limit (integer, default 8) | Similar notes not yet linked from this one. |
list_tags | R | none | Every tag with its usage count. |
rename_tag | W | old (string, required), new (string, required) | Renames a tag across the vault. |
merge_tag | W | a (string, required), b (string, required) | Merges tag a into tag b across every note. |
Tags (tag)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
get_tags | R | path (string; not in the advertised schema) | Every tag with its count, or the tags of one note when path is given. |
search_by_tag | R | tag (string, required), limit (integer, default 50; not in the advertised schema) | Every note carrying a tag. |
add_tags | W | path (string, required), tags (string, required, comma-separated) | Adds tags to a note. A leading # is stripped. |
remove_tags | W | path (string, required), tags (string, required, comma-separated) | Removes tags from a note. |
set_tags | W | path (string, required), tags (string, required, comma-separated) | Replaces a note's tag list. |
Folders (folder, ops)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
list_folders | R | none | {count, folders: [{name, count, color}]}. |
create_folder | W | name (string, required) | Creates a folder. |
rename_folder | W | folder (string, required), name (string, required, one segment) | Renames a folder in place. Notes, sub folders, color and icon move along. |
move_folder | W | folder (string, required), into (string; empty or Root = top level) | Moves a folder with everything in it. |
move_folder_contents | W | folder (string, required), into (string; empty = top level) | Moves everything inside a folder into another folder, then removes the empty folder. Name clashes get a -N suffix. |
delete_folder | W | folder (string, required), into (string), mode (move or trash) | Deletes a folder. By default its notes (at any depth) move to the folder's parent (Root for a top-level folder), keeping the sub folder structure below it; wikilinks to them are rewritten. into sends them to another existing folder instead (Root = top level). mode: "trash" moves every note to .Trash instead (list_trash / restore_trash bring them back) and cannot be combined with into. Other files in the folder are deleted. |
folder_stats | R | folder (string, required) | Note count and metadata for one folder. |
get_folder_meta | R | folder (string) | Color, icon and description of one folder, or of every folder. |
set_folder_meta | W | folder (string, required), color, icon, desc (strings) | Sets folder display metadata. A field sent as an empty string is cleared. |
Graph (graph)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
get_graph | R | none | Whole graph: {nodes: [{id, path, folder, color, degree, tags, mtime}], links: [{source, target}]}. Links name notes by path (a node's id is still the note name, which can repeat across folders). |
get_neighbors | R | path (string, required), depth (integer, default 1) | Notes within N hops. |
get_subgraph | R | path (string, required), depth (integer, default 1), max_nodes (integer, default 60) | Subgraph around one note. |
find_path | R | source (string, required), target (string, required) | Shortest wikilink path between two notes. |
get_hubs | R | limit (integer, default 10) | Most connected notes. |
get_isolated | R | none | Notes with no links in or out. |
link_stats | R | path (string, required) | Outgoing, incoming and unresolved links of one note. links_to / linked_from list note names; links_to_paths / linked_from_paths list the same notes by path, so same-named notes stay apart. |
broken_links | R | none | Wikilinks pointing at notes that do not exist. |
The graph is keyed by note path, so notes with the same name in different folders (several Index.md, say) are separate nodes for backlinks, link_stats, get_hubs, get_neighbors, get_subgraph, find_path and get_isolated. Links resolve the way opening them does: a path-qualified link ([[Projects/Index]]) must match that path; a bare [[Index]] prefers the linking note's own folder, then the shallowest path, then the first alphabetically.
Versioning (version)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
get_history | R | path (string, required), limit (integer, default 20, at least 1) | Git history of a note, newest first, always an array of {rev, date, author, message, version, total} (plus path for commits under an earlier name: the history follows renames). author is the agent or user whose call made the change. version numbers the revisions from 1 (the oldest) to total (the current one), whatever limit is. |
get_note_at | R | path (string, required), rev (string, required) | {ok, path, rev, content} at a revision. rev is one revision: a rev from get_history, snap-<label>, HEAD~1 or HEAD@{<date>}. Unknown revisions, dates before the history and empty rev are errors. |
diff | R | path (string, required), rev_a (string, required), rev_b (string) | {path, from, to, changed, diff} between two revisions, or rev_a against the current note. Ranges (a..b) and unknown revisions are errors. |
restore_memory | W | path (string, required), rev (string, required) | Restores a note to a revision (a new commit). Give the current path; content under an earlier name is found. Restoring the old path of a renamed note is refused and names the current one. |
snapshot | W | label (string, required) | Commits pending changes and tags the last commit snap-<label> (letters, digits, ., _, -; spaces become -; at most 40 characters; must be new). Use the tag as rev. |
soft_delete | W | path (string, required) | Moves a note to .Trash and remembers where it came from. |
list_trash | R | none | Notes in .Trash, newest first: {name, path, original, deleted, by, title} (by = {id, name, kind} of who deleted it, null when unknown). |
restore_trash | W | name (string, required; .md optional), into (string) | Restores a note from .Trash to the path it was deleted from, or into the folder into (Root = top level). |
All versioning tools except soft_delete, list_trash and restore_trash need version history on (see CONFIGURATION.md); otherwise they answer "version history is off".
Bulk writes (write)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
batch_create | W | notes (array, required) of {title (required), folder (default Memory), content} | Creates many notes in one call; titles and folders follow create_memory. Every item is checked first and nothing is created when one is malformed (missing title, wrong type, unknown key). The reply has one result per item: {ok, path} or {ok: false, item, title, error}. |
duplicate_memory | W | path (string, required) | Copies a note as <name>-copy in the same folder (a long name is shortened so the suffix fits in 80 characters). |
merge_memory | W | paths (array of strings, required: existing notes, each once, not into), into (string, required; .md optional) | Appends the body of each source, without its frontmatter, to into under ## from <name>, and adds the sources' tags to the target's tags. into is created when missing. The sources are kept. Returns {ok, into, created, merged, sources, tags_added}. |
template_create | W | template (string, required; a note in Templates/, as Meeting or Meeting.md), title (string, required), folder (string, default Root), variables (object) | Creates a note from a template with {{var}} substitution. {{title}} (the note title) and {{date}} (today, YYYY-MM-DD) are built in unless given in variables. Only notes in Templates/ can be templates. |
bulk_replace | W | find (string, required), replace (string, required), folder (string), regex (boolean, default false), dry_run (boolean, default false) | Find and replace across notes. find must not be empty or (with regex) match an empty string. folder includes its subfolders (Root = top level only); a missing folder is an error. With regex, replace expands $1 / ${name} ($$ is a literal $); unknown groups are errors. Needs write even with dry_run. |
bulk_delete | W | paths (array of strings), folder (string) | Moves many notes to .Trash (recoverable with restore_trash), by list and / or folder (with subfolders). Any invalid path (missing, outside the vault, a folder, not a note) refuses the whole call and is listed. |
Collaboration (collab)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
lock_node | W | path (string, required), owner (string, default the caller), ttl (integer seconds, default 300) | Soft lock on a note. |
release_lock | W | path (string, required), owner (string, default the caller) | Releases a lock. |
get_locks | R | none | Active locks. |
mention_agent | W | agent (string, required), path (string, required), message (string) | Writes > @agent: message into a note. With agent mnemo, Memora's own agent answers it in the note (the request is struck through and the reply quoted under it). |
get_assignments | R | agent (string) | Notes with assigned_to in their frontmatter. |
Activity and health (ops)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
get_events | R | since (number, unix time), folder, actor (strings), limit (integer, default 50) | Recent note created, updated and deleted events. |
presence | R | window (integer seconds, default 300) | Agents active within the window. |
get_logs | R | range (string, default 1d; also 7d, today, yesterday), actor (string), limit (integer, default 100) | Activity log for a period. |
search_logs | R | q (string, required), range (string, default 7d), actor (string), limit (integer, default 100) | Keyword search in the activity log. |
digest | R | folder (string), since (number) | Event counts per actor and per type. |
healthcheck | R | none | Note count, broken links, orphans and git status. |
stale_detection | R | days (integer, default 30) | Notes untouched for more than N days. |
Identity (identity)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
set_my_name | W | name (string, required) | Sets the display alias shown in the activity feed and log. |
set_my_color | W | color (string, required; #rrggbb, or "" to reset) | Sets the calling API key's display color. Fails for browser sessions. |
list_actors | R | none | {me, aliases}: the caller and every known alias. |
Import and export (interop)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
export_memory | W | paths (array of strings, required; notes or folders), out_path (string), overwrite (boolean, default false) | Writes a zip of the given paths to the server's exchange folder and returns {ok, path, name, bytes, replaced}, where path and name are the zip's file name. Every path must exist; missing ones are listed and nothing is written. out_path is a plain file name ending in .zip (letters, digits, ., _, -, at most 120 characters); the default is memora-export-<unix seconds>.zip. An existing zip of that name is only replaced with overwrite: true. |
import_memory | W | zip_path (string, required), overwrite (boolean, default false) | Imports the .md notes of a zip in the exchange folder, by the file name export_memory returned. Returns {ok, added, overwritten, skipped, unsafe, failed}: skipped are existing notes kept (no overwrite), unsafe are entries with an absolute or escaping path ({entry, reason}), failed are entries too large or unreadable. |
The exchange folder is exchange in the state directory (<MEMORA_STATE>/exchange), one per Memora instance, created with mode 0700. Tools never read or write anywhere else on the server's disk.
Checks, to-dos and pins (ux)#
| Tool | Arguments | Purpose | |
|---|---|---|---|
get_todos | R | path (string) | Open checklist items (- [ ]) in one note or the whole vault. |
follow_ups | R | none | Notes whose status is still awaiting action. |
validate_memory | R | path (string, required) | Checks a note: frontmatter present and well formed, a valid created date, tags, and broken links (named in the issue and listed in broken_links). |
list_pins | R | none | The owner's pinned notes and folders in sidebar order: {count, pins:[{kind, path, position, missing}]}. missing is true when the path no longer exists (renamed or deleted outside Memora). |
pin | W | path (string, required), kind (note or folder; default: what the path is on disk), position (integer from 0; default: the end) | Pins an existing note or folder, or moves its pin. A note path may leave out .md. At most 200 pins. Returns the list. |
unpin | W | path (string, required), kind | Removes a pin; the note or folder is not touched. Returns the list with removed. |
Pins are shared by every browser of the owner (/api/pins). They follow their note or folder through renames and moves done by Memora (over MCP or HTTP, including notes inside a moved folder) and are removed when the item is deleted or moved to the trash; deleting a folder removes every pin under it. A key whose privacy rules hide a path neither lists nor changes its pin, and position counts only the pins the key can see.
Kanban boards (kanban, kanban_cards, kanban_boards, kanban_embed)#
Notes in the Obsidian Kanban format (kanban-plugin in the frontmatter; see KANBAN.md). The tools come in four categories, so each can be switched on or off on its own: kanban reads boards (read-only), kanban_cards changes cards and lanes, kanban_boards creates, converts, renames, moves, copies, deletes and styles boards, kanban_embed embeds boards in notes. All are on by default, like the note tools; the three write categories need the write scope.
Lanes are named by title (case is ignored when no title matches exactly) or by their position from 0 written as digits. Cards are named by the id from kanban_get_board, which stays while the card's text stays (moving or ticking it off keeps it). Board edits take an optional version from kanban_get_board: when the board changed since, the call fails with board changed: ... read it again and nothing is written. Each write is one commit (kanban: <what> in <path>), a node_updated event and an Activity entry, and touches only the lines it changes; the %% kanban:settings block changes only when a setting, color or style changes, and then only the member that changed (unknown keys and the order of keys stay). A note that is not a board is refused. Private paths and notes locked by another agent are refused as by the note tools.
Cards have structured fields, written in the board's own syntax and settings (date-trigger, time-trigger, date-format, time-format): links ([[note]]), tags (#tag), date (@{YYYY-MM-DD}), time (@@{HH:mm}), checklist (- [ ] step lines indented under the card) and color. Pieces already in the text stay where they are; new ones go at the end of the first line. A card's color is kept in the settings under memora.cards by the card's block id ( ^abc123, added to its first line when it has none); lane colors (memora.lanes, by title) and the board's color and icon (memora.board) live there too. WIP limits are the (N) after a lane title; tag colors are the plugin's own tag-colors.
One note is one board. For several boards in one note, create a board note per board and embed each in the note with kanban_embed (a ![[Board name]] line): the web app shows every embedded board live in the note.
| Tool | Arguments | Purpose | |
|---|---|---|---|
kanban_list_boards | R | folder (string; includes subfolders, Root = top level) | Boards the caller may see, most recently changed first: {count, boards:[{path, title, lanes:[{title, cards}], cards, done, archived, version, mtime}]}. |
kanban_due | R | range (overdue, today, upcoming or all, default all), days (integer, default 7, at most 366), today (YYYY-MM-DD, default the server's local day), folder (string; includes subfolders) | Open cards with a due date across the boards the caller may see: {today, days, counts:{overdue, today, upcoming}, overdue, due_today, upcoming}, each card {board, board_title, lane, lane_index, card, title, date, block} sorted by date. A card's due date is its earliest date; done and archived cards are left out. Tick one off with kanban_update_card (checked: true) or move it with kanban_move_card, using board as path and card. |
kanban_get_board | R | path (string, required; .md optional, or a note name) | {path, version, lanes:[{index, title, max_items, color, complete, cards}], archive, counts:{lanes, cards, done, archived}, style:{color, icon}, tag_colors:{tag:{color, background}}, settings}. A card is {id, text, title, checked, task, tags, links, dates, times, block, color, checklist:[{text, done}], fields:{text, links, tags, date, time}}; fields.text is the free text (without the pieces, the checklist and the block id). settings is the whole settings object. |
kanban_add_card | W | path, lane, text (strings, required), position (integer from 0, default the bottom), checked (boolean), links, tags (arrays of strings), date (YYYY-MM-DD), time (HH:mm), checklist (array of {text, done}), color (string), version (string) | Adds - [ ] text (more lines indented under it) with the fields. Returns the board with card (the new id), changed and the new version. |
kanban_move_card | W | path, card, lane (strings, required), position (integer from 0, default the bottom), version | Moves the card into the lane (the same lane to reorder). Into a complete lane checks it, out of one unchecks it. Returns the board and card. |
kanban_update_card | W | path, card (strings, required), text, links, tags, date ("" clears), time ("" clears), checklist (the whole list; [] removes it), color (null clears), checked, archived (boolean), lane, version | The fields apply over the card's current text: text replaces the free text, everything left out stays. archived: true moves the card under the board's ## Archive (made when missing), archived: false brings an archived card back into lane (default the first lane); archived cannot be combined with other changes. Returns the board and card (the id after the change). |
kanban_card | W | path, card, action (required: duplicate, delete, restore), lane, version | duplicate copies the card just below it (with its color, under a new block id); delete removes it for good; restore brings an archived card back into lane (default the first lane). Returns the board and card. |
kanban_lane | W | path, action (required: add, rename, move, delete, duplicate, archive_cards, clear, color, limit), lane, title, position (integer from 0), color (string or null), max (integer from 0), version | Lanes: add (title, position), rename (the WIP limit and color stay), move (position), delete (an empty lane), duplicate (cards too; optional new title), archive every card, delete every card, set or clear the color, set the WIP limit (max, 0 removes it). Returns the board. |
kanban_board | W | action (required: create, convert, rename, move, duplicate, delete, style, tag_color, settings), path, folder, title, lanes (array of strings), to, color, icon, tag, background, settings (object), version | create: a board note title in folder (default Memory) with lanes (default To do, Doing, Done with Done marked Complete). convert: the note path becomes a board (headings become lanes, list items cards, other text is dropped and counted in converted.dropped; lanes names the default lanes); a normal save, so the old text stays in history. rename (to = new name), move (to or folder), duplicate, delete (to the Trash) behave exactly like rename_memory, move_memory, duplicate_memory and soft_delete. style: color and icon (null clears). tag_color: tag's color (null removes) and background. settings: Obsidian Kanban settings {key: value} (null removes), such as date-colors, tag-colors, lane-width, date-format, time-format, date-trigger, time-trigger, date-display-format, show-checkboxes, hide-tags-in-title, hide-date-in-title, show-relative-date, link-date-to-daily-note, new-card-insertion-method, archive-with-date, max-archive-size; other keys are refused. |
kanban_embed | W | note, board (strings, required), remove (boolean) | Adds ![[Board]] (or ![[Folder/Board]] when the name alone would find another note) at the end of note after a blank line; with remove, takes out every line that is only an embed of or a link to the board. board must be a board and note must not be one. A normal save of the note. Returns {ok, note, board, link, changed}. |
Admin tools (admin)#
Listed and callable only for keys with the admin scope (and for browser sessions). They are not part of the switchable catalog: global tool switches and a key's tool list do not apply to them, and they do not need write.
| Tool | Arguments | Purpose |
|---|---|---|
admin_list_tools | none | {tools: [{name, category, description, enabled}]} for every catalog tool. |
admin_set_tool | name (string, required), enabled (boolean, required) | Switches a catalog tool on or off for every key. Returns {ok, name, enabled}. |
privacy_list | path (string), kind (node or folder) | Without path: every privacy rule. With path: that note or folder's own rule, the folder rules it inherits, and which agents can see it. |
privacy_set | path (string, required), agents (array of key ids or names, required; a comma-separated string also works), kind (node or folder), mode (deny or allow_only, default deny) | Replaces the rule on a path. deny hides it from the listed agents; allow_only hides it from every other agent, including keys created later. deny with no agents removes the rule. A node rule follows its note through renames and moves. |
privacy_clear | path (string, required), kind (node or folder) | Removes the path's own rule. Rules on parent folders still apply. |
When kind is omitted it is taken from the path on disk: a folder if a folder exists there, otherwise a note.
Identity and tracking#
Every tool call is published to the web UI's realtime activity stream as an ai_activity start and end pair, named after the API key (or the signed-in user), with the note paths involved. Calls are also counted per key: the Agents page and GET /api/keys show each key's uses, last_ip, and the tools it has called recently. initialize registers the connection under the key's name (GET /api/aliases). set_my_name changes the alias shown in the activity feed and log, and set_my_color changes the key's color in the UI. See API.md for the HTTP endpoints.