affine-markdown-mcp 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +65 -25
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.3 (2026-11-30)
|
|
4
|
+
|
|
5
|
+
- README: what is supported, with marks
|
|
6
|
+
|
|
7
|
+
## 0.1.2 (2026-11-30)
|
|
8
|
+
|
|
9
|
+
- Demo video cut in Remotion: title, cropped panels, sped up, URLs blurred
|
|
10
|
+
|
|
3
11
|
## 0.1.1 (2026-11-30)
|
|
4
12
|
|
|
5
13
|
- Keep only the package in git
|
|
14
|
+
- Release on push to main through npm trusted publishing
|
|
6
15
|
|
|
7
16
|
## 0.1.0 (2026-12-01)
|
|
8
17
|
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ It talks to AFFiNE the same way the web app does (Yjs over the sync socket), so
|
|
|
11
11
|
|
|
12
12
|

|
|
13
13
|
|
|
14
|
-
*Left: Claude Code gets one sentence of task and uses the MCP. Right: the AFFiNE board and the new doc update live. [MP4 version](https://raw.githubusercontent.com/Tankonyako/affine-markdown-mcp/main/docs/demo/affine-mcp-demo.mp4).*
|
|
14
|
+
*Left: Claude Code gets one sentence of task and uses the MCP. Right: the AFFiNE board and the new doc update live. Sped up. [MP4 version](https://raw.githubusercontent.com/Tankonyako/affine-markdown-mcp/main/docs/demo/affine-mcp-demo.mp4).*
|
|
15
15
|
|
|
16
16
|

|
|
17
17
|
|
|
@@ -109,21 +109,70 @@ A line in the project's `CLAUDE.md` helps the agent use it, for example *"Tasks
|
|
|
109
109
|
|
|
110
110
|
<br>
|
|
111
111
|
|
|
112
|
-
##
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
|
119
|
-
|
|
120
|
-
|
|
|
121
|
-
|
|
|
122
|
-
|
|
|
123
|
-
|
|
|
124
|
-
|
|
|
125
|
-
|
|
126
|
-
|
|
112
|
+
## What is supported
|
|
113
|
+
|
|
114
|
+
✅ works, ⚠️ works with a limit, ❌ not supported
|
|
115
|
+
|
|
116
|
+
**Doc content** (read gives Markdown, write takes Markdown)
|
|
117
|
+
|
|
118
|
+
| AFFiNE | Markdown | Read | Write | Note |
|
|
119
|
+
|---|---|:-:|:-:|---|
|
|
120
|
+
| Headings 1 to 6 | `#` to `######` | ✅ | ✅ | |
|
|
121
|
+
| Paragraphs | text | ✅ | ✅ | |
|
|
122
|
+
| Bold, italic, strike, inline code, links | `**b**` `*i*` `~~s~~` `` `c` `` `[t](url)` | ✅ | ✅ | |
|
|
123
|
+
| Underline, text color, highlight | | ⚠️ | ❌ | read as plain text, gone after a `replace` |
|
|
124
|
+
| Bulleted and numbered lists, nested | `- item`, `1. item` | ✅ | ✅ | |
|
|
125
|
+
| Todo lists | `- [ ] todo`, `- [x] done` | ✅ | ✅ | |
|
|
126
|
+
| Quotes | `> quote` | ✅ | ✅ | |
|
|
127
|
+
| Code blocks with language | fenced code | ✅ | ✅ | |
|
|
128
|
+
| Dividers | `---` | ✅ | ✅ | |
|
|
129
|
+
| Tables | GFM table | ✅ | ✅ | AFFiNE table block |
|
|
130
|
+
| Links to other docs (`@` mention) | `[Title](affine://<docId>)` | ✅ | ✅ | |
|
|
131
|
+
| Kanban board (database block) | `<!-- board:... -->` section | ⚠️ | ⚠️ | read as a table, kept as it is on `replace`, cards change only through the board tools |
|
|
132
|
+
| Images, attachments, embeds, bookmarks, callouts, LaTeX and other blocks | `<!-- affine:block <id> <type> -->` | ⚠️ | ⚠️ | read as a marker, kept in place on `replace` while the marker stays, new ones cannot be added |
|
|
133
|
+
| Edgeless (canvas) content | | ❌ | ❌ | only the document view |
|
|
134
|
+
| Doc properties (Info), comments | | ❌ | ❌ | |
|
|
135
|
+
|
|
136
|
+
**Boards**
|
|
137
|
+
|
|
138
|
+
| Feature | | Note |
|
|
139
|
+
|---|:-:|---|
|
|
140
|
+
| Find boards in a doc or the whole workspace, with lanes | ✅ | `list_boards` |
|
|
141
|
+
| Read cards grouped by lane, with fields | ✅ | `read_board` |
|
|
142
|
+
| Add, rename, move, delete cards | ✅ | by card title or id |
|
|
143
|
+
| Fields: select, multi-select, text, number, checkbox, date | ✅ | new select values (a new status, a new author) are added to the board |
|
|
144
|
+
| Other field types (link, progress, ...) | ⚠️ | read as stored, written as plain text |
|
|
145
|
+
| Create a board or change its columns and views | ❌ | make the board in the editor, then the agent manages its cards |
|
|
146
|
+
|
|
147
|
+
**Workspace**
|
|
148
|
+
|
|
149
|
+
| Feature | | Note |
|
|
150
|
+
|---|:-:|---|
|
|
151
|
+
| Folder tree like the sidebar | ✅ | `tree` |
|
|
152
|
+
| Search docs by title and text | ⚠️ | reads docs one by one, max 300 |
|
|
153
|
+
| Create, rename and move docs | ✅ | |
|
|
154
|
+
| Create folders | ✅ | at the top or inside another |
|
|
155
|
+
| Rename or delete folders | ❌ | |
|
|
156
|
+
| Trash and restore docs | ✅ | |
|
|
157
|
+
| Delete a doc for good | ❌ | on purpose, empty the trash in AFFiNE |
|
|
158
|
+
| Tags, collections | ❌ | |
|
|
159
|
+
| Several workspaces | ✅ | by id or name, `AFFINE_WORKSPACE_ID` is the default |
|
|
160
|
+
| Read only mode | ✅ | `AFFINE_READ_ONLY=true` |
|
|
161
|
+
| Edits next to people working in the same doc | ✅ | changes merge through Yjs, nothing is overwritten whole |
|
|
162
|
+
|
|
163
|
+
**Server**
|
|
164
|
+
|
|
165
|
+
| Setup | | Note |
|
|
166
|
+
|---|:-:|---|
|
|
167
|
+
| Self-hosted AFFiNE 0.20 to 0.27.4 | ✅ | |
|
|
168
|
+
| Self-hosted AFFiNE 0.27.5 and newer | ❌ | new sync join protocol, the server stops with a clear message |
|
|
169
|
+
| AFFiNE Cloud (app.affine.pro) | ❌ | self-hosted only |
|
|
170
|
+
| stdio (Claude Code, Claude Desktop, Cursor, ...) | ✅ | |
|
|
171
|
+
| HTTP transport | ❌ | planned |
|
|
172
|
+
| Sign in with email and password | ✅ | a bot user is best |
|
|
173
|
+
| Accounts with OAuth or magic link only | ❌ | give the bot user a password |
|
|
174
|
+
|
|
175
|
+
When the agent writes a doc back with `replace` and leaves a marker or the board section in place, that block stays exactly as it was (at the new position). Taking a marker out removes the block, so `replace` is marked destructive for the client.
|
|
127
176
|
|
|
128
177
|
<br>
|
|
129
178
|
|
|
@@ -148,15 +197,6 @@ Code layout: `src/types` (plain types), `src/domain` (Markdown and board renderi
|
|
|
148
197
|
|
|
149
198
|
<br>
|
|
150
199
|
|
|
151
|
-
## Limits
|
|
152
|
-
|
|
153
|
-
- One AFFiNE version range (see Requirements). AFFiNE's sync protocol is internal, not a public API
|
|
154
|
-
- Boards are not created from Markdown, make the board in the editor, then the agent manages its cards
|
|
155
|
-
- `search` reads docs one by one (max 300), fine for team workspaces, slow for huge ones
|
|
156
|
-
- Edgeless (canvas) content is not read, only the document view
|
|
157
|
-
|
|
158
|
-
<br>
|
|
159
|
-
|
|
160
200
|
## Credits
|
|
161
201
|
|
|
162
202
|
The sync protocol details (join, load, push update, folder and table storage) were learned from [DAWNCR0W/affine-mcp-server](https://github.com/DAWNCR0W/affine-mcp-server) (MIT). This is a separate, smaller implementation focused on Markdown and Kanban.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "affine-markdown-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "MCP server for self-hosted AFFiNE: read and write docs as Markdown, see the folder tree, manage Kanban boards.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bandy (https://bandy.sh)",
|