Inkling
All docs

Using Inkling

Inkling MCP Connector

Connecting Claude and other MCP clients, every tool, and a guide for agents.

Rendered from docs/MCP.md in the repository. Markdown source

Connects Claude (Claude Code, claude.ai) so it can read and write your Inkling notes. Each user signs in and grants consent with their own account, so Claude sees only what that user can see on the web (workspaces you are a member of, shared pages, and your own 🔒 private pages; other people's private pages and other workspaces are off limits). 한국어: MCP.ko.md.

MCP server URL: https://<your domain>/mcp (the examples below use notes.example.com). Add ?profile=core for the smaller tool list (see "Tool profiles" below); without it the connection lists every tool.

Claude Code

claude mcp add --transport http inkling https://notes.example.com/mcp
# or, with the core tools only (32 instead of 48, see "Tool profiles")
claude mcp add --transport http inkling "https://notes.example.com/mcp?profile=core"

Then in Claude Code run /mcp → inkling → Authenticate. The Inkling consent screen opens in your browser (if you are not signed in, you go through the login screen and come back; delegated login (external account ID) works too). Click Allow to return to Claude Code and finish connecting. Tokens refresh automatically every hour (refresh tokens last 60 days).

claude.ai

Customize → Connectors → + Add → Add custom connector → name Inkling, URL https://notes.example.com/mcp → Add → Connect (Team and Enterprise: an owner adds it under Organization settings → Connectors). Sign in in the window that opens and click Allow. (Leave the OAuth Client ID/Secret fields empty; dynamic client registration is used.) Claude Desktop uses the same connectors. The connection comes from Anthropic's servers, so the server must be reachable from the internet.

Client ID Metadata Documents (optional, 0.18)

Some MCP clients identify themselves with an https URL instead of registering (Client ID Metadata Documents, MCP authorization 2025-11-25): claude.ai's custom connectors ("use Claude's published ID") and Claude Code. Inkling accepts them when the server runs with OAUTH_CIMD=1 (off by default; OAUTH_CIMD_ALLOWED_HOSTS=claude.ai limits it to Claude's documents, docs/OPERATIONS.md section 12); otherwise those clients fall back to dynamic registration as before, so nothing is needed on the client side. On the consent screen such an app shows "Identified by claude.ai" under its name: the name comes from the app's own document, the host is what identifies it. A sign-in that returns to localhost (Claude Code, desktop editors) also shows a warning: allow it only right after you started the connection yourself. No real client has connected this way yet; the checklist at the end of this page is how to try it (ADR 2280–2282).

Other clients

Settings → Connections → Connect an AI app makes the settings for Claude Code, claude.ai / Claude Desktop, Cursor (.cursor/mcp.json), VS Code (.vscode/mcp.json) and a generic mcpServers JSON, and lets you pick the tool profile (all tools, or ?profile=core). Windsurf is not listed: its documentation no longer describes its format, so use the generic JSON. The formats and where they come from are in ADR 2020.

Apps that cannot sign in: agent connection tokens

Some apps cannot register themselves for sign-in, and sign-in does not work on a server at a plain http:// LAN address or with a certificate the app does not trust. For those, make an agent connection token in Settings › Connections: give it a name (shown as "via " on its edits), choose read or read and write, what it may see, and an expiry (7, 30, 90 or 365 days; 90 by default; there is no "never"). Copy it when it is shown — it is not shown again — and the Connect an AI app box fills it in for you while it is on screen:

claude mcp add --transport http inkling https://notes.example.com/mcp --header "Authorization: Bearer ink_agt_…"

A token is the same kind of connection as a signed-in app: workspace instructions, agent locks, edit policies, claims, blocks, hand-offs, the suggest-only rule, tool profiles, resources and prompts all apply, and it shows up in Connected agents and on the team board under its name. It works only at /mcp (on any other route it is 401), at most 20 live tokens per account. Unknown ink_agt_ tokens count towards the IP ban like failed logins. Revoke it in Settings › Connections; it stops at once (ADR 2060–2063).

A local trial with an agent in five minutes

  1. ./deploy/local.sh in a checkout (deploy/DEPLOY.md, "Local trial") and open the /setup?code=… link it prints; create your account (it is the administrator).
  2. Open Settings › Connections (http://localhost:<port>/settings/connections) and make an agent connection token: name it after the client (e.g. "Claude Code"), read and write, 7 days is enough for a trial. Copy it; it is shown once.
  3. Add the server to your client, e.g. Claude Code: claude mcp add --transport http inkling http://localhost:<port>/mcp --header "Authorization: Bearer <token>" (?profile=core on the URL lists fewer tools; Connect an AI app on the same screen makes the settings for other clients).
  4. Ask the agent to create a page, or to find_context something; its edits show "you (via Claude Code)".

Claude Code skill

examples/claude-skill/inkling/SKILL.md tells Claude Code the order to use the tools in (the "Guide for agents" below, shortened). Copy the inkling folder to ~/.claude/skills/ (every project) or .claude/skills/ in a project; Claude Code loads it when a task needs the notes (ADR 2022).

What it can do (tools)

ToolKindDescription
find_contextreadStart here. Ranked sections across all your workspaces (or one), packed into a token budget (default 3,500, max 12,000), each tagged with page id, a short §anchor and version v=…; at most two sections per page, more under "Also relevant". The same question from the same person within a few minutes is answered from a server-side cache that any edit, permission change or reindex in the searched workspaces invalidates; never shared between people (ADR 1550). Unsure of the wording, or the notes may be in another language? queries=[original, translation, …] (up to 5 phrasings) are searched together and merged into one ranked answer under one budget, each section once with matched: 1,3 naming the queries that found it (ADR 1720). With semantic search on (ADR 1740), each query also searches by meaning; a section found only that way is shown with its text (ADR 1723). Pages with a verification are listed in one last line, Verification: [1] verified; [3] stale: verification lapsed (verified, changed since after 3+ changed sections or a large change) (ADR 1842, 1907). Page ids are printed as their first 8 characters (ADR 1906). When an answer has results from two or more workspaces (only possible without workspaceId), each result, pointer and title match starts with the workspace name in braces, [1] {Wind Power Forecast Cup} HARNESS.md › Validate, and one line after the hints names the workspaces by id with their result numbers: Results come from 2 workspaces ({name} on each line): 5e6f7a8b [1], 1a2b3c4d [2]. To search one, pass workspaceId=<its id> (its name works too). With one workspace nothing is added (ADR 2185)
read_pagereadA page as Markdown. outline=true lists sections (§anchor, ~tokens, v=), section=<anchor or heading> reads one, maxChars caps the body. The header has the page version; known=<version> answers an unchanged page (or section, with section=) with one unchanged line, knownSections={anchor: v} returns only changed, new and removed sections (ADR 1540). The header prints 8-character ids (- id, - workspaceId, - parentId); the url keeps the full ids (ADR 1942). After the page text come the lines that change without the page: - owner status: "…" until …, - verified: until … / - stale: … and - claims: §a claimed by <client> until <time>Z; an outline ends with one claims: line after the section list, and unchanged with a claims line (a claim is not part of the version, ADR 1654, 1946). outline=true prints one line per section, - §<anchor> ~N tok v=…, indented one space per level, without the heading text; the outline's header ends with its own v=…, and known=<that v> with outline=true answers unchanged (page <id8> outline v=…; …). backlinks=true adds linked from (n): <id8> "Title", … at the end (ADR 1948). Charts read as <!-- inkling:chart {…} --> followed by <!-- inkling:chart-data … --> with the numbers for you; keep the chart line as it is when editing (the data line is ignored when you write the page back), delete it to remove the chart, edit its JSON to change it (ADR 1604). A database view (a page embed of a database) reads as <!-- inkling:pageEmbed {"pageId":"…","viewId":"…"} --> followed by <!-- inkling:view-info database "…", view "…" (table); its rows: query_rows --> for you (only for databases you can see; a hidden one says unavailable). Keep the first line when editing (the info line is ignored when you write the page back); write such a line yourself to add a view (viewId may be left out: the first view) (ADR 2123). pageId may be an 8-character short id. A verified page has - verified: until YYYY-MM-DD or - stale: verification lapsed YYYY-MM-DD, followed by , N sections changed since when it changed after it was verified (outline and section reads print the same line without the dash); the owner's status is its own line, - owner status: "…" until … (ADR 1842, 1846, 1946)
read_pagesreadUp to 20 pages in one call within a budget (default 8,000); each page line has v=; known={pageId: v} turns unchanged pages into one line each that uses no budget
list_workspacesreadYour workspaces; since 0.18 a workspace you put in a group of your switcher has "group", one you archived "archived": true (ADR 2305)
list_pagesreadPage tree. format: compact (the default since 0.15.1: 8-character ids, numbered/dated siblings folded into one line), lines (one line per page, full ids) or json (id, title, kind, parentId, section, path, children; the default before 0.15.1). parentId (full or short, or 'root') and depth narrow it. workspaceId may be left out with a parentId or when the connection has one workspace (ADR 1541, 1943, 1944)
searchreadPages by a name or exact words, across your workspaces or one: titles first, then headings, then bodies; whole words before parts of words (Korean particles allowed after the word). Default 10, limit up to 50; results from several workspaces are grouped under ## <name> (<id>); heading and body matches show §anchor; a last line says how many more matched and in which workspaces. To find what answers a question, use find_context. format: compact (default), lines (full ids) or json (ADR 2183, 2184)
changes_sincereadWhat changed since a cursor: per-section -/+ diffs, added/removed/renamed/moved sections, page renames/moves/trash/visibility (trashed, then restored when both happened between two cursors), new collections and rows (collection added:, row added:; ten or more rows of one collection in one answer are one rows added: N to collection … line) and changed row properties (properties: Status, Due), "by via " (ADR 1650, 1651, 1652). detail: none/diff (default)/full; budget default 3,000, max 12,000. No cursor = start tracking. The cursor is always the last line. wait (seconds, max 25, with a cursor): when nothing changed yet, the call waits and returns as soon as something changes in your workspaces, or empty at the end (ADR 1551)
query_rowsreadFilter/sort/page a collection's rows by property name (Status = Done AND Due < today); one line per row rowId | version | Title | …; describe=true for the schema (field names, options and templates inside <untrusted_content>, ADR 1656). Formulas can be filtered and sorted with the operators of their result type; describe=true shows Name (formula → number, read-only) and an error cell reads #error(code) (ADR 1826). Owner = this connection finds rows assigned to this connection; a person cell with an agent reads Bob → Claude Code (g:1a2b3c4d) (ADR 1864). A last line status: … names the people in the shown person cells who have a status, once, without your own person (ADR 1870). Automatic properties (0.17) filter like their type: Created >= 2026-11-01 (the UTC day), ID = TASK-12, Editor = me; an ID cell reads TASK-12, created / last edited by Name (via Client) when an agent made it. Sub-items: under="TASK-3" (a row id, an ID or an exact title) lists the rows under it, depth (1–8, default 1) how many levels; the Parent item column is always shown, as the parent's ID (ADR 2140, 2147). describe=true ends with the database's enabled automations (0.18, see "Buttons and automations" below, ADR 2245)
list_templatesreadTemplates you can use in a workspace, with their input questions
get_instructionsreadThe workspace's rules for agents from locked instruction pages: always ones in full, the ones matching forPageId (nearest first), a list of manual ones. Call once per workspace. workspaceId may be left out with forPageId or when the connection has one workspace (ADR 1943). When the instructions returned in full are longer than 200 lines or 25 KB, the answer ends with one note: line (ADR 2004)
patch_sectionwriteChange one section (replace/append/prepend/insert_after/delete) with baseVersion; a stale version returns a conflict with the current text. An anchor from before a heading rename still works: the output adds moved_to: §new-anchor; with an old baseVersion you get a conflict naming the new anchor and version (the version includes the heading, ADR 1501). suggest=true writes nothing and leaves the change as a suggestion for a person (ADR 1531); the workspace's agent edit policy or the page's lock can make that the rule, and the answer says what happened (see "Suggestions, edit policy and claims" below). A section another connection claimed answers SECTION_CLAIMED. replace and delete need baseVersion (ADR 1961). A short anchor (find_context) or heading text that another section answered to since you got it is refused with SECTION_AMBIGUOUS and the sections it could mean; passing the v=… you read as baseVersion picks the right one (ADR 1960)
patch_sectionswriteUp to 20 patch_section edits on one page in one call, all or nothing: any stale baseVersion, unknown or claimed section, or a section named twice writes nothing and lists every problem with the current text (ADR 1542). With suggest=true, or where the policy or lock turns agent edits into suggestions, every edit becomes a suggestion for its section, all made together or none, with one approval request (ADR 1538)
update_pagewriteAppend to / replace the whole body (replace keeps a "Before AI edit" snapshot and edits the page minimally: blocks you send back unchanged keep their ids, comments and formatting, ADR 1500). Prefer patch_section. On a page that splits itself, append goes to its current subpage and the output says which. Where agent edits become suggestions, the whole-page change is one suggestion that always waits for a person; replace is refused with SECTION_CLAIMED while another connection claims a section of the page. replace takes baseVersion = the version: line you read: if the page changed since, nothing is written (PAGE_CONFLICT). Without baseVersion a replace is refused when a person edited the page last; pages an agent wrote last are replaced as before (ADR 1947)
split_pagewriteSplit a long page into subpages at its headings (level, default 2); dry_run=true lists the sections first. Block ids, comments and links into the page keep working
create_pagewriteNew page from Markdown ([[Title]] becomes a wiki link), or an empty kind: "canvas" / "folder" (ADR 1948). With parentId the workspace comes from the parent; with one workspace workspaceId may be left out (ADR 1943)
import_folderwriteMany Markdown files at once, keeping folders; for Markdown you already hold as text
import_zipwriteA zip of a folder (base64): folders become folder pages, .md documents, .canvas canvases, files under assets/ attachments under the upload rules (the switch, the daily budget, the per-file cap, the type checked against the bytes; refused ones are skipped and listed while the pages import). At most AGENT_UPLOAD_MAX_MB (default 5 MB). Use it when you have the archive (a vault export, an Inkling zip export) or need the attachments; upload_file for one file into a page. Notion exports: the web app, or source="markdown" for plain files. Undo: trash the top page(s). In the core profile: through more_tools (ADR 2162)
update_row / create_rowwriteSet / add collection row properties by name; update_row needs baseVersion. create_row writes relation links in the same transaction as the row: if a link cannot be written (e.g. a locked target row of a two-way relation) no row is made (ADR 1524). A person field takes "this connection", grant:<id> or g:1a2b3c4d to assign a person's agent; only live connections of members (ADR 1864). Formula properties are refused ("formula (computed, read-only); change the properties it reads instead"). The answer ends with status: Name "…" until … when a person you assigned (or whose agent you assigned) has a status; your own person is not listed (ADR 1870). Automatic properties are refused ("Created" is an automatic value (createdTime, read-only); the server sets it). create_row parent="TASK-3" makes a sub-item (a row id, an ID or an exact title); update_row {"Parent task": "TASK-5"} moves one; one parent, a loop is refused (ADR 2147)
create_collectionwriteA collection with its properties in one call, by name: {"name": "Status", "type": "select", "options": ["Todo", "Done"]}, {"name": "Project", "type": "relation", "target": "<collection id>", "twoWay": true}, {"name": "Done %", "type": "rollup", "relation": "Project", "property": "Done", "fn": "percentChecked"}. Ids are made by the server; a refused spec writes nothing. Comes with a table view; add others with create_view (ADR 1523). Formula: {"name": "Total", "type": "formula", "expression": "prop(\"Price\") * prop(\"Qty\")"} (also in update_fields); the field list prints - Total (formula: <expression>, read-only) #id (ADR 1823). Types email and phone (checked on write), and the automatic, read-only createdTime, editedTime, createdBy, editedBy and uniqueId ({"name": "ID", "type": "uniqueId", "prefix": "TASK"}; one per collection) (ADR 2140)
update_fieldswriteChange a collection's properties: add (same specs), change (rename, switch between simple types, set/add/remove select options — existing options keep their ids, so row values survive), remove (values stay stored but are no longer shown), order. One write; any error writes nothing. The edit lock and the hidden-target rule of ADR 1353 apply. Takes the 0.17 types too; subItems: true on a relation to the collection itself turns on sub-items (one Parent item per collection, ADR 2144)
create_viewwriteAdd a view to a collection: table, board, calendar, gallery, timeline, chart or form. Property names work wherever a field id goes (groupByFieldId, dateFieldId, sort and filter fields); for type="chart" pass chart (kind, groupBy, bucket, series, measure, measureField, sort, limit, title). The chart counts the rows its view's filters keep (ADR 1603, 1606). For type="form" pass form: { title?, description?, fields: [{ property, required?, description? }], submitLabel?, successMessage? } (property names or ids, "title" for the row title); without it the form asks for the title and the first properties it can ask. The answer ends with asks: Title*, Email, … (* = required). Members fill it in the app; an owner or admin can turn on its public link. Public links are turned on in the app only (ADR 1820)
create_chartwriteInsert a chart into a document page. Data: collectionId (optionally view, by name or id) or query (a query block query). Properties by name: groupBy (with bucket day/week/month for dates), series, measure (count, sum, avg, min, max) and measureField; kind is bar, barH, stackedBar, line, area, donut, pie or one of the further kinds. section puts it at the end of that section (placement: start, after); without it the chart is appended to the page. Suggestions, edit policies and auto-accept apply as for patch_section; suggest=true (needs section) asks for a suggestion. The answer shows the numbers the chart draws for you. Nothing is written when the source is not visible to you or a property does not exist (the error lists the properties). The chart stores only its settings: everyone who opens the page sees the numbers of the rows they can see (ADR 1600, 1606)
rename_page / move_pagewriteRename / move within the same workspace
trash_pagewriteMove to trash (restorable for 30 days). There is no permanent-delete tool
add_commentwriteStart a comment thread; section anchors it to that section's heading (text, or the older body). handoffTo: ["g:1a2b3c4d"] (up to 10) hands the thread to those agent connections of members: only their inbox lists it (ADR 1863). A short anchor that became ambiguous (a heading with the same name was added, moved or renamed) asks for the full anchor (ADR 1960)
list_commentsreadThreads of a page, one line each (t:<8-character thread id> | §section | open/resolved | author (via client) | replies) plus the text as untrusted data; section, status = open (default) / resolved / all
reply_comment / resolve_commentwriteReply in a thread; resolve (or reopen) a thread — agents may resolve only threads their person started. reply_comment takes handoffTo like add_comment
inboxreadMentions, replies, comments on your person's pages, assignments and approval_result (a person accepted or rejected one of your suggestions, ADR 1534), not yet acknowledged, after cursor; one line each with can: edit/comment/read; cursor on the last line. kinds, budget (default 2,000). Items handed to this connection itself (a person mentioned or assigned this agent, not the person) are marked → this connection and counted in the header (N handed to this connection); items handed to your person's other connections are not listed (ADR 1863)
ackwriteAcknowledge inbox items by ids or up to a cursor (does not mark them read for the person). A cursor acknowledges only what the listing it came from could show: the cursor of inbox(workspaceId=…) or inbox(kinds=[…]) carries that filter (ADR 1922)
catch_upwrite (its marker)What happened while you were away, in one call, most important first: mentions/replies/assignments for your person, tasks due within 7 days and overdue, due Later reminders, new comment threads and replies, then pages changed by others (who, via which client, how many edits, section diffs; new, trashed, moved pages, new collections and rows), then your person's own changes. A page counts as changed by others when another identified person changed it; edits nobody could be credited with (live typing) are shown as unattributed edits N and put a page there only when none of its changes are yours (ADR 1653). Without since it continues from this connection's last catch_up (else your person's last one, else 24 hours); since also takes a changes_since cursor or a time. budget default 4,000, max 12,000; peek=true keeps the marker. Moving the marker is its only write, so it is not marked read-only, and a read-only connection may still call it (ADR 2460). Acknowledges nothing; the line before the last names the due window (due window: up to <date>), the last line is next since: (ADR 1520, 1521, 1537). team=true adds "Team agents": other connections' live section claims (- claim §a · "Title" <8-char id> · Bob via Claude Code (g:1a2b3c4d) · until 10:12Z (12 min)) and one line per other agent with what it did in the window (- Bob via Claude Code (g:1a2b3c4d): 4 edits, 1 new, 2 suggested, 1 open, 1 reverted · last …); pages you cannot open print (hidden) <8-char id>. Off by default (ADR 1865)
laterreadYour person's Later list (pages, comment threads, notifications they saved) with reminders, newest first; state open (default) or done; items they can no longer open are listed without a title. budget (default 1,500). Read-only: saving and reminders stay in the app (ADR 1413)
list_suggestionsreadSuggested edits and their outcome. With pageId: that page's suggestions (open ones with their Markdown as untrusted data) and its live section claims; without: your person's own (not the example suggestions that come with a sample page, ADR 2388). status: open (default), decided (accepted, accepted_partial, rejected), all, or one status (withdrawn, superseded, …), the same filter on both paths. One line each: id | status | page §section | mode | by (via client) | time | decided by … at …; a superseded row says "replaced by ", an accepted_partial one "(n of m changes applied)" (ADR 1530, 1622, 1626)
withdraw_suggestionwriteTake back one of your open suggestions. A suggestion that is no longer open is answered with its state: replaced by which newer suggestion, already decided by whom, or already withdrawn; nothing to retry (ADR 1626). Accepting and rejecting are for people only (web app or a personal API token); there is no tool for them (ADR 1533)
claim_sectionwrite"Working on this section" for this connection, minutes default 5, max 30; claiming again extends it. Other agents' patch_section / patch_sections on that section (and update_page replace of the page) is refused with SECTION_CLAIMED until it ends; suggest=true still works and people are never blocked. read_page shows claimed by <client> until <time>Z (full, outline and section reads). An anchor from before a heading rename claims the section under its new anchor; an unknown section answers with the current anchors; a short anchor that became ambiguous asks for the full anchor (ADR 1960, 1535, 1536, 1655)
release_sectionwriteEnd your claim on a section (claims also end by themselves)
create_from_templatewriteA page or page tree from a template
read_inkreadA page's handwriting (pen and highlighter strokes) as PNG images, drawn like the web ink layer (896 px wide sheet, y from the top of the body; strokes only, no text). Tall pages come in up to 3 images per call with top= to continue; top/height pick a range, scale 0.25–2. Off unless the workspace turns on "Agents can read handwriting" (owners/admins, Workspace settings › Connected agents); while off the tool says so and pages do not mention ink. When on, read_page/find_context add ink: N strokes (read_ink to view) to pages that have handwriting (ADR 1510–1512)
list_versionsreadA page's saved versions, newest first: id | when | "label" | by <person> via <client>; AI steps as AI step n | by … via … | <tool> <mode> §anchors ±lines. Newest 20, runs of more than 4 steps folded; all=true lists every version (≤ 50) (ADR 2182)
diff_versionsreadMarkdown line diff between two versions (from, to: a version id or current, default to=current); maxChars (default 12,000)
restore_versionwriteBring a saved version of a document back (any AI step too). Undoable: the answer names the version equal to the page before (your previous AI step, or a new "Before restore" version). The restore is a new AI step; later steps stay. Edit lock, write gate and suggest-only apply (ADR 1513, 2181)
list_trashreadTrashed pages you can see in a workspace, with when they were trashed, when they are deleted for good, and their former parent
restore_pagewriteBring a trashed page and its trashed subpages back (to the top level when the old parent is gone). Same rules as the web trash. Still no permanent-delete tool
read_filereadAn attachment by id or by the /files/<id> link read_page shows: PNG/JPEG/WebP/GIF up to 3 MB as an image; text files as untrusted text (maxChars, default 20,000; up to 2 MB) — by MIME type or by extension (txt, log, md, csv, tsv, json, yaml, xml, html and svg as source, ini, toml, cfg, conf, sql, rst, tex); PDFs as their text layer by pages ("2-5", default 1–20, at most 50 per call, files up to 20 MB, 10 s per call) with "pages A–B of N" and where to continue — scanned PDFs have no text (no OCR), password-protected and damaged ones say so; other types as metadata only. Returned text is scanned: a hit prints suspicious: injection-like (…) and makes the connection suggest-only (see below) (ADR 1514, 2046, 2047, 2048)
upload_filewriteAttach a file you made to a page you may edit: png, jpg, gif, webp, pdf (base64) or txt, log, tsv, csv, md, json (text), at most 5 MB (the default; the server admin can change it). Linked at the end of the page, or of section, as an image or a link — an ordinary agent edit: in changes_since and catch_up, revertable, a suggestion where edits are reviewed. attachOnly: true stores it without a link. SVG, HTML and other types are refused; the server checks the bytes against the name. Can be turned off per workspace or server (AGENT_UPLOADS_OFF, ADR 2065). In the core profile: more_tools(tool="upload_file", arguments={…}) (ADR 2044, 2045)
check_notesreadMemory check of a workspace or subtree (parentId): broken [[links]] (missing, or not linked, page <id> has that name now), section links whose heading is gone ([[Page#Heading]] heading not found in page <id>, ADR 2103) and links to pages in the trash, duplicate titles (case, punctuation, spacing and word order ignored), pages with no link in or out, lapsed or much-changed verifications, documents ≥ 3,000 tokens unchanged for 180 days. Totals per kind and the top limit (default 10) inside <untrusted_content source="check">, within budget (default 2,000). Decided over the pages you can see: a title that only another member's private page has is missing (ADR 2003). In the core profile: more_tools(tool="check_notes", arguments={…})
more_toolswrite (runs any hidden tool)Core profile only: more_tools() lists the tools this connection does not list, more_tools(tool) prints one tool's arguments, more_tools(tool, arguments) runs it with the tool's own checks (ADR 2000). Annotated as the worst case of what it runs (destructive); a read-only connection may call it, and a write tool it runs is refused as when called directly (ADR 2460)

Tokens are for /mcp only. Calling the REST API directly with the same token is rejected (no member management, public sharing or admin features).

Tool annotations

Every tool states the four MCP annotation hints, so a client can tell a read from a write and a write that only adds from one that overwrites or removes (ADR 2460). destructive is true when the call can remove or overwrite something that was there, even if version history or the trash can bring it back; idempotent is true when repeating the call with the same arguments changes nothing more. No tool is openWorld: they act on this server's notes and workspace members only (the mail, push and webhook notifications a change triggers go to members and to destinations owners set, as for an edit in the browser). catch_up is not read-only, because it moves this connection's "last catch_up" marker (peek=true does not); a read-only connection may still call it. Every tool a read-only connection refuses has readOnly false. more_tools(tool=…) prints a tool's true hints after its name. The table below is the decision for every hint; tools/list leaves out the hints that equal the MCP defaults, so a read-only tool lists {"readOnlyHint":true,"openWorldHint":false} and a write tool lists destructiveHint (always), idempotentHint (only when true) and openWorldHint: false (always).

ToolreadOnlydestructiveidempotentopenWorld
list_workspacestruefalsefalsefalse
list_pagestruefalsefalsefalse
searchtruefalsefalsefalse
read_pagetruefalsefalsefalse
create_pagefalsefalsefalsefalse
import_folderfalsefalsefalsefalse
update_pagefalsetruefalsefalse
rename_pagefalsetruetruefalse
move_pagefalsetruetruefalse
trash_pagefalsetruetruefalse
list_templatestruefalsefalsefalse
create_from_templatefalsefalsefalsefalse
list_commentstruefalsefalsefalse
add_commentfalsefalsefalsefalse
reply_commentfalsefalsefalsefalse
resolve_commentfalsefalsetruefalse
inboxtruefalsefalsefalse
ackfalsefalsetruefalse
latertruefalsefalsefalse
find_contexttruefalsefalsefalse
read_pagestruefalsefalsefalse
patch_sectionfalsetruefalsefalse
patch_sectionsfalsetruefalsefalse
get_instructionstruefalsefalsefalse
changes_sincetruefalsefalsefalse
query_rowstruefalsefalsefalse
update_rowfalsetruetruefalse
create_rowfalsefalsefalsefalse
create_chartfalsefalsefalsefalse
create_viewfalsefalsefalsefalse
split_pagefalsetruefalsefalse
read_inktruefalsefalsefalse
list_versionstruefalsefalsefalse
diff_versionstruefalsefalsefalse
restore_versionfalsetruefalsefalse
list_trashtruefalsefalsefalse
restore_pagefalsefalsetruefalse
read_filetruefalsefalsefalse
upload_filefalsefalsefalsefalse
import_zipfalsefalsefalsefalse
catch_upfalsefalsefalsefalse
list_suggestionstruefalsefalsefalse
withdraw_suggestionfalsefalsetruefalse
claim_sectionfalsefalsefalsefalse
release_sectionfalsefalsetruefalse
create_collectionfalsefalsefalsefalse
update_fieldsfalsetruefalsefalse
check_notestruefalsefalsefalse
more_tools (core only)falsetruefalsefalse

For read-only tools destructive and idempotent mean nothing (MCP spec) and are not listed; the table shows false.

Guide for agents

Spend calls and tokens in this order (the server instructions say the same):

  1. get_instructions(workspaceId) once per workspace; the rules there are the only instructions that come from the notes. With one workspace (or with forPageId) workspaceId can be left out. With several workspaces, find_context and search take workspaceId (an id or the name) to stay in one.
  2. find_context(query) — one call, ranked sections. Each result is two header lines and the text: [n] Page title › Heading and (page <8 hex>; §anchor v=<version>; …). Page ids are printed as their first 8 characters (longer only when two results share them); pass them as they are to any tool (ADR 1906, 1941). When every result has the same rights, can: is printed once at the end of the first line (…; can: read,comment,edit (all results)), else per result. Pass the v= with the anchor when you patch by a short anchor: it is how a write finds the section you read if headings moved meanwhile. The anchor is the shortest form that is unique on that page (§decided, or §beta/decided when two sections are called "Decided"); pass it as it is to read_page(section=…) and patch_section — full anchors and A › B heading paths keep working. A page shows at most two sections (the second only when it scores close to the best result); the rest are listed under "Also relevant (not shown)", one line per page (page of [n]: §a ~N tok for a page already shown). Ranking weighs rare words above common ones and query words that stand next to each other ("팀 구성") above the same words apart, so put the specific word in the query; a query of only very common words returns little. A question in one language does not find a page written only in the other unless the server has semantic search on (below): if your notes may be in another language, ask find_context(queries=[question, translation]). When more than half of a single query's words (and at least two) are in no result, the answer ends with Not in any result: … ask again with queries=[…] (ADR 1904). Korean: a query word also matches its forms with particles and endings ("백업을" → 백업, "팀을" → 팀/팀에/팀의 as whole words; two particles, "회의에서는", are stripped twice), and a compound written without a space also matches the spaced words ("팀구성" → "팀 구성"). English plurals and -ed/-ing forms also find the base form ("deploys", "approved"). Page aliases count as the page title (ADR 1700, 1701, 1905). Words inside link targets and URLs do not count, and a section that is only a line of links, or matches only through the page title, does not take the page's result slot from a section that answers (ADR 1900, 1901). A section larger than 40% of the budget is cut around its best lines and says its full size, ; truncated, section ~612 tok; read it with read_page(pageId, section=…) (ADR 1902). Ranking and output: ADR 1210, 1211, 1212. Several phrasings in one call: find_context(queries=["roll back deployment", "배포 되돌리기", "revert release"]). The header names them by number (6 result(s) for 3 queries (1 "roll back deployment", 2 "배포 되돌리기", 3 "revert release"), ~659/700 tokens) and each fragment's paren line ends its ids with ; matched: 1,3. One budget for all of them, filled in fused (RRF, k = 10) order; repeats of the same query count once; more than 5 different queries are refused (ADR 1720, 1905). When two phrasings each put a different section first, the tie goes to the first query: put the phrasing in the notes' language first. When the operator has turned on semantic search (ADR 1740), every query is also matched by meaning and merged in the same way; a section that shares no word with the question is shown with its text, and one query keeps the single-query header without matched: (ADR 1723).
  3. Not enough? read_page(pageId, outline=true) then read_page(pageId, section=anchor); several pages at once with read_pages(ids). Full read_page and list_pages are for when you really need everything.
  4. Edit with patch_section(pageId, section, markdown, mode, baseVersion) using the v= you read. On Conflict: the result contains the section's current text and version: merge your change and retry. Other sections and people typing elsewhere in the page are not affected. If the heading was renamed since you read it, the old anchor still works: read_page(section=old) and patch_section answer for the section under its new anchor and print moved_to: §new; use the new anchor from then on. Section "x" was renamed and now matches several sections: a, b means pick one of those anchors. A short anchor or heading text that another section answered to since you got it (a heading with the same name was added above, moved or renamed) is refused with SECTION_AMBIGUOUS unless the baseVersion you pass picks one section; read the one you mean and retry with its full anchor (ADR 1960). Several sections of one page: patch_sections. If the answer starts with Not written, your edit is a suggestion waiting for a person (see "Suggestions, edit policy and claims"); do not send it again as a direct edit.
  5. Coming back after a while? catch_up() gives one ranked overview (what is for your person, what is due, new comments, what others changed, with diffs) within a budget, and remembers where this connection left off. It is a briefing, not a sync: it acknowledges nothing (use inbox/ack) and may leave items out (it counts them); for an exact copy use changes_since.
  6. Keep a local copy in sync: call changes_since() once and store the cursor (always the last line) with your notes; next time call changes_since(cursor) — it returns only what changed since then (new text for added sections, +/- lines for modified ones, net of edits that cancelled out) — and store the new cursor. Pages you can no longer see appear only as removed (no longer visible). On resync_required (cursor older than the retention, 30 days by default): store the fresh cursor it gives first, then re-read with list_pages + find_context/read_pages. To follow changes live, call changes_since(cursor, wait=25) in a loop instead of polling: it answers at once when there is something, otherwise when a change arrives or after 25 seconds (then empty, with the next cursor). If the server has too many waiting calls it answers at once with a wait skipped: line; call again a bit later.
  7. Collections: query_rows(collectionId, describe=true) for the schema, then filtered pages of rows; change them with update_row(rowId, properties, baseVersion). Make one with create_collection and change its properties with update_fields.
  8. What people asked of your person: inbox(cursor) lists mentions, replies, comments on their pages and assignments (each with can: from the edit lock). Handle what is yours, then ack(cursor) — acknowledging is separate from the person's read mark. The cursor of a filtered listing carries the filter: inbox(workspaceId=…) ends with cursor: 1234;ws=<full workspace id> (and ;kinds=mention,reply for a kind filter). Pass it back as is: ack(cursor) acknowledges only what that listing showed, and inbox(cursor) keeps the same filter unless you pass your own. An unfiltered listing's cursor is still the plain number (ADR 1922). Your own @Name text and mention chips never ping people (they reach them quietly and in their digest); reply in their thread or comment instead. Review threads: list_comments(pageId, section), answer with reply_comment; leave other people's threads for them to resolve.
  9. Logs and journals grow: split them. When a tool prints large page: … (stored state ≥ 1 MiB or ≥ 50k estimated tokens, ADR 1043), read that page by section only and write new entries to a child page (create_page(parentId=<that page>), e.g. one per week or per batch of runs) instead of appending to it. Every append to a multi-megabyte page re-saves and re-indexes the whole page; a child page stays small, and find_context still finds every page. A page that is already large can be cut at its headings with split_page (ADR 1140); a page whose person turned on "New entries: one subpage per month" (or by size) takes update_page append in its current subpage and the output names it (ADR 1141). [[Page#Heading]] links to the subpage made from that section when there is one, else to that heading of Page.

Math (ADR 0996): read_page, read_pages, find_context and changes_since show equations as LaTeX, and create_page, update_page and patch_section accept the same:

Links to a section (ADR 2100): write [[Page#Heading]], or [[Page#Heading|text to show]]. Page is a title (or alias) as in [[Page]]; Heading is the heading's text as read_page(pageId, outline=true) shows it. read_page, read_pages, find_context and changes_since print section links the same way, so a section you read and write back keeps its links. A link keeps working when the heading is renamed (it is found again by name or through the rename record), and check_notes lists section links whose heading is gone. The text shown in the page is not updated when a heading is renamed; to refresh it, write the link again with the new heading. [[#Heading]] (a heading of the same page) is not a section link; write the page's title. [[…]] inside a code block is code, never a link.

Diagrams (ADR 2104): a ```mermaid fence is a code block that people see drawn as a diagram; read and write it as an ordinary fence (it comes back byte for byte).

Callouts, mentions, embeds and files (ADR 1500): read_page, read_pages and conflict bodies show what plain Markdown cannot, in a form patch_section, patch_sections, update_page and create_page read back:

Leave these lines as they are and the nodes stay exactly as they were; delete a line to remove the node; edit the text or the JSON to change it (e.g. [!warning] → [!tip], another pageId); write a new line to add one (links must be http(s) or /files/<id>, page ids are UUIDs; an invalid token is ignored). Colors, underline and toggles are not shown but are kept on blocks you leave alone or edit.

Errors tell you the next step (for example "page not found or not visible to you; use find_context to get a valid id"). Token numbers in tool output are estimates (ASCII characters / 4, one per Korean/CJK character).

Suggestions, edit policy and claims

Workspace instructions, locks and untrusted content

Saving tokens on repeated reads

Re-reading costs the most when nothing changed. Keep the versions you read and pass them back (ADR 1540–1543):

Measured on a 2,000-page workspace (docs/PERFORMANCE.md): re-reading three agents' pages that did not change, 39,231 → 759 tokens; the full tree with compact, 25,256 → 10,821 tokens; a folder of 100 dated meeting notes, 1,564 → 543 tokens.

Prompt-cache friendly output

Read tools answer with the same bytes for the same request while the documents do not change (stable ordering, no timestamps or request ids), and put stable parts first (page header, outline) and variable parts last. To reuse your model's prompt cache, read the outline or overview first and keep it at the start of your context; append changes_since diffs after it instead of re-reading pages. The tool list and server instructions are the same bytes for every connection of the same kind (read-only and range-limited connections add one constant sentence), so agents sharing a provider account share that cached prefix (ADR 1543). Since 0.15.1 the tool list leaves out the SDK's execution and $schema defaults, and read_page prints the values that change without the page (owner status, verified, claims, backlinks) after the body, so the header and body stay a stable prefix (ADR 1945, 1946). Lines added in 0.15 go last and appear only when they say something: catch_up without team is byte-identical, inbox lines of items for your person are byte-identical, and update_row, create_row and query_rows without anyone's status answer exactly as before (the status: line is the last line). The core and full tool lists are each the same bytes for every connection of that profile; a core entry is byte-identical to the same tool in full (ADR 2000).

Access levels

The consent screen offers Read and write (default) or Read only. Clients may request scope=read (read-only, cannot be widened on the consent screen) or scope=write / no scope (read and write). Legacy scope=notes connections keep full access. A read-only connection still lists every tool; write tools answer "this connection is read-only …" and the server instructions say so. Change access by disconnecting in Settings → MCP connections and connecting again.

Tool profiles

Add ?profile=core to the MCP URL (https://notes.example.com/mcp?profile=core) to list 32 tools instead of 48 — about 7,900 tokens instead of 13,200 in every session. Reports from agent builders put the point where models start choosing tools less well at 30–50 tool definitions. core keeps reading, search, section writes, comments, inbox, catch_up, changes_since, section claims, suggestions, rows and read_file. The rest — collection structure and charts, templates, version history and the trash, check_notes, split_page, folder and zip import and file upload, handwriting — is one call away: more_tools() lists them, more_tools(tool="create_chart") prints the arguments, more_tools(tool="create_chart", arguments={…}) runs it with the same checks as a direct call. ?profile=full (or no profile) lists everything. Change the profile by changing the URL in your client (Claude Code: remove the server and add it again); nothing is stored on the server, and no new sign-in is needed. An unknown value is refused (HTTP 400). A client that asks the person per tool name sees more_tools as one tool: once it is allowed, every hidden tool runs under that approval. Use full for per-tool approval (ADR 2000).

Resources and prompts

search or find_context

search is the tool for names and exact strings, find_context the one for questions (ADR 2184). One search call ranks every workspace together: a page whose title is the word beats one that only mentions it in passing, and a whole word beats part of a longer word (harness before harnesses; HARNESS.md counts as harness). With several workspaces in the answer, each has a head line with its name and id; the closing line, for example 3 more matches (2 in d0e96824, 1 in 6d1fcc89); narrow with workspaceId=<id or name> or more specific words., says where the rest are. A heading match prints §anchor Heading, which read_page(section=…) accepts as it is.

Workspace arguments

Workspace arguments take an id, its first 8+ hex characters, or the workspace's name: compared case-insensitively (NFKC, runs of spaces as one), or a unique start of a name of at least 2 characters. A full id wins, then an id prefix (a hex-looking value with no matching id is tried as a name), then the exact name, then a name prefix. Several matches are an error listing them (aaaaaaaa "Twin", bbbbbbbb "twin"); none is an error listing your workspaces. inbox takes ids only (ADR 2186). There is no per-connection default workspace; limit a connection to some workspaces with its range instead (ADR 2187).

Archived workspaces

A person can archive workspaces they are done with (a finished contest) in their workspace switcher (0.18). find_context and search without workspaceId then skip them and say so in their last line: Not searched: 1 archived workspace (1a2b3c4d "OIBC 2026"); pass workspaceId=<id or name> to include one. catch_up without workspaceId ends with Not included: changes, comments and due tasks of 1 archived workspace (1a2b3c4d "OIBC 2026"); items for you from them are. Pass workspaceId=<id or name> for one. Up to five workspaces are named (names cut at 40 characters), then , N more. search with format: "json" adds archivedNotSearched: [{ workspaceId, workspace }] instead of the line. Pass workspaceId: "OIBC 2026" (or its id) when the question is about that workspace. Mentions and assignments from archived workspaces still appear in inbox and catch_up's "For you"; changes_since reports every workspace. A connection limited to some workspaces (Settings › Connections › range) always searches its range. list_workspaces marks them "archived": true and prints the person's "group". Agents cannot archive or group workspaces (ADR 2303, 2304).

Buttons and automations

Versions: one per agent write

Every write an agent makes (patch_section, patch_sections, update_page, restore_version, upload_file) is one version, an AI step, with what it changed: AI step 4 | by Mia via Claude | patch_section replace §goals +2 −2 lines. To undo part of your work, list_versions(pageId) and restore_version(pageId, version=<the step before the one to undo>); the later steps stay in the history, so a wrong restore is undone the same way. Each client keeps its newest 20 steps per page (30 over all clients); property writes (update_row), new pages and imports are not steps (undo a new page by trashing it) (ADR 2180–2182).

Range: all notes, some workspaces, or one subtree

The consent screen also asks what the connection may see (ADR 1200):

The range is enforced by the same checks the web app uses (every tool calls the REST API), and the server instructions tell the model about it. Change it any time in Settings → Connections → Change range; the next request uses the new range, no reconnect needed. Workspace instruction pages (get_instructions, the applies: line) still reach a subtree connection even when the instruction page itself lies outside the subtree: they are the workspace's rules for agents.

Links: a page in range that links to a page outside shows the link text as it is stored in the page; the current title, id and content of the target are not looked up (the same rule as links to someone else's private page).

Attribution

Edits, comments and created pages made through MCP are labelled " (via )" in version history, comments, the change feed and the activity screen; pages you create show "Written by AI (via )". A connection named exactly like another member of a workspace is refused in that workspace (CLIENT_NAME_CLASH) unless it is a common app name. Every agent write is one version, an "AI step", labelled with the client, the sections and the lines it changed; a "Before AI edit" version is stored only when the page changed since the newest version (ADR 2180). A suggestion a person accepts is applied as that person; one accepted by a rule shows " · auto-accepted" in page history and activity.

Servers with limits, features turned off or terms (0.22)

A server can run in restricted mode (docs/OPERATIONS.md, section 17). Tools then meet the same refusals as the web app, because they call the same REST routes; nothing is written when a call is refused.

Rewriting large pages (0.22.1)

On every server since 0.22.1 (ADR 2550, 2551):

Disconnecting and API tokens

On the web, open the command palette (⌘P, or Ctrl+P on Windows and Linux; ⌘K is search) → Manage MCP connections (/settings/connections), or Settings → Connections → Manage connections, then Disconnect next to the app. The access and refresh tokens are invalidated immediately. To remove the Claude Code side, run claude mcp remove inkling.

Scripts that call the REST API directly (not MCP) use a personal API token from the same screen (Authorization: Bearer ink_pat_…, ADR 1201). It takes the same read-only / read and write choice and the same range. MCP access tokens (ink_at_…) still only work at /mcp. Personal API tokens (ink_pat_) are for the REST API and do not work at /mcp; for an MCP app that cannot sign in, use an agent connection token (ink_agt_, see "Apps that cannot sign in" above). Revoking either stops it at once.

Operations notes

Checking connections with real clients (DCR and Client ID Metadata Documents)

Client ID Metadata Documents were tested with a local document server, the test suite and a Chrome run of the consent screen, and Claude's published documents were fetched and validated through the same code (2026-11-10), but no real client has connected to Inkling with them yet (KNOWN-ISSUES OAUTH-CIMD-1, AGT-4). Do this once on a test server reachable over HTTPS (claude.ai needs a public address), with a test account. For each row, connect twice: once to https://<host>/mcp, once to https://<host>/mcp?profile=core.

How to tell which registration a client used: with a metadata document the consent screen shows a grey box "Identified by " and the Connections list shows the host after the name; with dynamic registration (DCR) there is no box and the server log has a POST /oauth/register just before the consent screen.

#ClientServer settingExpect
1claude.ai → Settings → Connectors → Add custom connector, URL /mcpOAUTH_CIMD unsetDCR: no "Identified by" box; connect; a tool call works
2same, URL /mcp?profile=coreunsetDCR; tools/list shows the core set (32 tools)
3claude.ai, URL /mcp (Advanced: leave the client ID empty, or "use Claude's published ID")OAUTH_CIMD=1"Identified by claude.ai", name "Claude", returns to claude.ai; no localhost warning; connect; a tool call works
4same, URL /mcp?profile=coreOAUTH_CIMD=1as 3, core tools. If Claude refuses with a resource mismatch, note it under AGT-4
5Claude Code: claude mcp add --transport http inkling https://<host>/mcp, then /mcp → authenticateunsetDCR, loopback callback page ("Return to the app on this computer")
6same with /mcp?profile=coreunsetDCR, core tools
7Claude Code, /mcpOAUTH_CIMD=1"Identified by claude.ai", name "Claude Code", amber localhost warning; returns to http://localhost:<port>/callback
8Claude Code, /mcp?profile=coreOAUTH_CIMD=1as 7, core tools
9Cursor (mcp.json "url": "https://<host>/mcp"), and ?profile=coreunset, then OAUTH_CIMD=1DCR both times unless Cursor supports CIMD (then a box with Cursor's host). Write down which
10VS Code (.vscode/mcp.json {"type":"http","url":…}), and ?profile=coreunset, then OAUTH_CIMD=1as 9
11any CIMD connection from 3–8OAUTH_CIMD=1Settings → Connections shows it with the host; change its range to one page → a tool outside fails; disconnect → the next call asks to sign in again
12after 3 or 7, set OAUTH_CIMD_ALLOWED_HOSTS=example.org and restartthe next connection attempt shows "Apps from claude.ai are not allowed on this server"; an existing connection fails at its next refresh (≤ 1 h)

Record for each row: client version, date, which registration was used, pass or fail, and any error text.

Markdown sourceView on GitHubAll docs