mdedit-cli 0.4.2 → 0.4.4
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/README.md +28 -26
- package/dist/index.js +370 -47
- package/dist/index.js.map +1 -1
- package/openclaw.json +61 -61
- package/package.json +3 -3
- package/skills/catalog.json +11 -11
- package/skills/find-mdedit-document/cli/SKILL.md +3 -3
- package/skills/find-mdedit-document/mcp/SKILL.md +3 -3
- package/skills/publish-mdedit-document/cli/SKILL.md +4 -4
- package/skills/publish-mdedit-document/mcp/SKILL.md +1 -1
- package/skills/review-mdedit-document/cli/SKILL.md +5 -5
- package/skills/review-mdedit-document/mcp/SKILL.md +1 -1
- package/skills/revise-mdedit-document/cli/SKILL.md +5 -5
- package/skills/revise-mdedit-document/mcp/SKILL.md +1 -1
- package/skills/save-mdedit-document/cli/SKILL.md +3 -3
- package/skills/save-mdedit-document/mcp/SKILL.md +3 -4
package/openclaw.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema_version": "1.0",
|
|
3
3
|
"name": "mdedit",
|
|
4
4
|
"display_name": "MDEdit.ai",
|
|
5
|
-
"description": "Manage
|
|
5
|
+
"description": "Manage documents, reviews, suggestions, folders, workspaces, and existing API keys on mdedit.ai from any AI agent. Supports server-authoritative review workflows, markdown editing, and JSON output.",
|
|
6
6
|
"homepage_url": "https://mdedit.ai",
|
|
7
7
|
"docs_url": "https://mdedit.ai/docs/cli",
|
|
8
8
|
"auth": {
|
|
@@ -38,57 +38,57 @@
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"name": "article_list",
|
|
41
|
-
"description": "List all
|
|
42
|
-
"command": "mdedit
|
|
41
|
+
"description": "List all documents in a workspace, optionally filtered by folder",
|
|
42
|
+
"command": "mdedit document list --format json",
|
|
43
43
|
"flags": {
|
|
44
44
|
"--workspace <id>": "Workspace ID",
|
|
45
45
|
"--folder <id>": "Filter by folder ID",
|
|
46
46
|
"--limit <n>": "Limit results (client-side)",
|
|
47
47
|
"--offset <n>": "Offset for pagination"
|
|
48
48
|
},
|
|
49
|
-
"example": "mdedit
|
|
49
|
+
"example": "mdedit document list --format json --limit 20"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"name": "article_get_metadata",
|
|
53
|
-
"description": "Get
|
|
54
|
-
"command": "mdedit
|
|
53
|
+
"description": "Get document metadata (markdown content is omitted unless requested).",
|
|
54
|
+
"command": "mdedit document get <documentId> --format json",
|
|
55
55
|
"flags": {
|
|
56
56
|
"--include-content": "Include markdown content in the output object",
|
|
57
|
-
"--full": "Show full raw
|
|
57
|
+
"--full": "Show full raw document object",
|
|
58
58
|
"--workspace <id>": "Workspace ID"
|
|
59
59
|
},
|
|
60
|
-
"example": "mdedit
|
|
60
|
+
"example": "mdedit document get abc123 --format json"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"name": "article_get_markdown",
|
|
64
|
-
"description": "Print only the
|
|
65
|
-
"command": "mdedit
|
|
64
|
+
"description": "Print only the document markdown to stdout (useful for piping / agents).",
|
|
65
|
+
"command": "mdedit document get <documentId> --content-only",
|
|
66
66
|
"flags": {
|
|
67
67
|
"--workspace <id>": "Workspace ID"
|
|
68
68
|
},
|
|
69
|
-
"example": "mdedit
|
|
69
|
+
"example": "mdedit document get abc123 --content-only"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"name": "article_create",
|
|
73
|
-
"description": "Create a new
|
|
74
|
-
"command": "mdedit
|
|
73
|
+
"description": "Create a new document, optionally with initial markdown content and a Live public link.",
|
|
74
|
+
"command": "mdedit document create --title <title> --format json",
|
|
75
75
|
"flags": {
|
|
76
|
-
"--title <title>": "
|
|
76
|
+
"--title <title>": "Document title (required)",
|
|
77
77
|
"--folder <id>": "Place in a folder",
|
|
78
78
|
"--file <path>": "Read initial content from file (use - for stdin)",
|
|
79
79
|
"--content <text>": "Inline content string",
|
|
80
|
-
"--publish": "Publish the created
|
|
80
|
+
"--publish": "Publish the created document to a Live public mded.it link without confirmation",
|
|
81
81
|
"--snapshot": "Publish a frozen Snapshot instead of a Live link (requires --publish)",
|
|
82
82
|
"--live": "Explicitly publish a Live link (requires --publish)",
|
|
83
83
|
"--slug <slug>": "Custom public-link slug (requires --publish)",
|
|
84
84
|
"--workspace <id>": "Workspace ID"
|
|
85
85
|
},
|
|
86
|
-
"example": "mdedit
|
|
86
|
+
"example": "mdedit document create --title 'My Post' --file post.md --publish --format json"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"name": "article_publish",
|
|
90
|
-
"description": "Publish or update
|
|
91
|
-
"command": "mdedit
|
|
90
|
+
"description": "Publish or update a document at a stable public mded.it link. New links default Live; existing links preserve their stored mode. Requires publishing:write.",
|
|
91
|
+
"command": "mdedit document publish <documentId> --format json",
|
|
92
92
|
"flags": {
|
|
93
93
|
"--slug <slug>": "Custom public-link slug",
|
|
94
94
|
"--seo-title <title>": "SEO/social title for the public page",
|
|
@@ -97,45 +97,45 @@
|
|
|
97
97
|
"--live": "Create or switch to a Live link that follows durable edits",
|
|
98
98
|
"--workspace <id>": "Workspace ID"
|
|
99
99
|
},
|
|
100
|
-
"example": "mdedit
|
|
100
|
+
"example": "mdedit document publish abc123 --slug public-draft --format json"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"name": "article_publish_status",
|
|
104
|
-
"description": "Get
|
|
105
|
-
"command": "mdedit
|
|
104
|
+
"description": "Get a document's stable public URL, mode, source revision/version, synchronization status/error, metadata, and view count. Requires publishing:read.",
|
|
105
|
+
"command": "mdedit document publish-status <documentId> --format json",
|
|
106
106
|
"flags": {
|
|
107
107
|
"--workspace <id>": "Workspace ID"
|
|
108
108
|
},
|
|
109
|
-
"example": "mdedit
|
|
109
|
+
"example": "mdedit document publish-status abc123 --format json"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
"name": "article_unpublish",
|
|
113
|
-
"description": "Disable
|
|
114
|
-
"command": "mdedit
|
|
113
|
+
"description": "Disable a document's public link. Requires publishing:write.",
|
|
114
|
+
"command": "mdedit document unpublish <documentId> --yes --format json",
|
|
115
115
|
"flags": {
|
|
116
116
|
"--yes": "Confirm that the public link should stop working",
|
|
117
117
|
"--workspace <id>": "Workspace ID"
|
|
118
118
|
},
|
|
119
|
-
"example": "mdedit
|
|
119
|
+
"example": "mdedit document unpublish abc123 --yes --format json"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
"name": "article_update",
|
|
123
|
-
"description": "Update
|
|
124
|
-
"command": "mdedit
|
|
123
|
+
"description": "Update a document's title, metadata, or markdown content",
|
|
124
|
+
"command": "mdedit document update <documentId> --format json",
|
|
125
125
|
"flags": {
|
|
126
126
|
"--title <title>": "New title",
|
|
127
127
|
"--file <path>": "Replace content from file (use - for stdin)",
|
|
128
128
|
"--content <text>": "Replace content with inline string",
|
|
129
|
-
"--archive": "Archive the
|
|
130
|
-
"--pin": "Pin the
|
|
129
|
+
"--archive": "Archive the document",
|
|
130
|
+
"--pin": "Pin the document",
|
|
131
131
|
"--workspace <id>": "Workspace ID"
|
|
132
132
|
},
|
|
133
|
-
"example": "cat updated.md | mdedit
|
|
133
|
+
"example": "cat updated.md | mdedit document update abc123 --file -"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
"name": "article_edit",
|
|
137
137
|
"description": "Apply anchored one-shot edits through a live collaboration session or conditional REST fallback.",
|
|
138
|
-
"command": "mdedit
|
|
138
|
+
"command": "mdedit document edit <documentId> --format json",
|
|
139
139
|
"flags": {
|
|
140
140
|
"--replace <text>": "Unique text to replace (requires --with)",
|
|
141
141
|
"--with <text>": "Replacement text (requires --replace)",
|
|
@@ -147,21 +147,21 @@
|
|
|
147
147
|
"3": "AMBIGUOUS_ANCHOR",
|
|
148
148
|
"4": "EDIT_CONFLICT; re-read before continuing"
|
|
149
149
|
},
|
|
150
|
-
"example": "mdedit
|
|
150
|
+
"example": "mdedit document edit abc123 --replace 'old text' --with 'new text' --format json"
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"name": "article_delete",
|
|
154
|
-
"description": "Delete
|
|
155
|
-
"command": "mdedit
|
|
154
|
+
"description": "Delete a document (non-reversible)",
|
|
155
|
+
"command": "mdedit document delete <documentId> --yes",
|
|
156
156
|
"flags": {
|
|
157
157
|
"--yes": "Skip confirmation prompt (required for non-interactive agents)"
|
|
158
158
|
},
|
|
159
|
-
"example": "mdedit
|
|
159
|
+
"example": "mdedit document delete abc123 --yes"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"name": "review_list",
|
|
163
|
-
"description": "List review comments, highlights, and suggestions from the live
|
|
164
|
-
"command": "mdedit review list <
|
|
163
|
+
"description": "List review comments, highlights, and suggestions from the live document session or REST fallback.",
|
|
164
|
+
"command": "mdedit review list <documentId> --format json",
|
|
165
165
|
"flags": {
|
|
166
166
|
"--status <status>": "Filter by review status",
|
|
167
167
|
"--target <file.md>": "Markdown target (default: content.md)",
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
{
|
|
173
173
|
"name": "review_add",
|
|
174
174
|
"description": "Add a server-authored review comment anchored to quoted text.",
|
|
175
|
-
"command": "mdedit review add <
|
|
175
|
+
"command": "mdedit review add <documentId> --quote <text> --body <text> --format json",
|
|
176
176
|
"flags": {
|
|
177
177
|
"--occurrence <n>": "One-based occurrence when the quote repeats",
|
|
178
178
|
"--before <text>": "Context immediately before the quote",
|
|
@@ -184,19 +184,19 @@
|
|
|
184
184
|
{
|
|
185
185
|
"name": "review_reply",
|
|
186
186
|
"description": "Reply to a review thread.",
|
|
187
|
-
"command": "mdedit review reply <
|
|
187
|
+
"command": "mdedit review reply <documentId> --thread <reviewId> --body <text> --format json",
|
|
188
188
|
"example": "mdedit review reply abc123 --thread c_123 --body 'Fixed.' --format json"
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
"name": "review_decide",
|
|
192
192
|
"description": "Resolve, reopen, accept, or reject a review thread. Accept requires articles:write.",
|
|
193
|
-
"command": "mdedit review <resolve|reopen|accept|reject> <
|
|
193
|
+
"command": "mdedit review <resolve|reopen|accept|reject> <documentId> --thread <reviewId> --format json",
|
|
194
194
|
"example": "mdedit review resolve abc123 --thread c_123 --format json"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
"name": "review_delete",
|
|
198
198
|
"description": "Delete a review item or one reply owned by the authenticated reviewer.",
|
|
199
|
-
"command": "mdedit review delete <
|
|
199
|
+
"command": "mdedit review delete <documentId> --thread <reviewId> --format json",
|
|
200
200
|
"flags": {
|
|
201
201
|
"--reply <replyId>": "Delete only this reply"
|
|
202
202
|
},
|
|
@@ -204,8 +204,8 @@
|
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
"name": "suggest",
|
|
207
|
-
"description": "Create a safe replacement suggestion without directly changing
|
|
208
|
-
"command": "mdedit suggest <
|
|
207
|
+
"description": "Create a safe replacement suggestion without directly changing document text.",
|
|
208
|
+
"command": "mdedit suggest <documentId> --quote <text> --replace <text> --format json",
|
|
209
209
|
"flags": {
|
|
210
210
|
"--note <text>": "Optional explanation",
|
|
211
211
|
"--occurrence <n>": "One-based occurrence when the quote repeats",
|
|
@@ -215,12 +215,12 @@
|
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"name": "article_export",
|
|
218
|
-
"description": "Export
|
|
219
|
-
"command": "mdedit
|
|
218
|
+
"description": "Export a document as a ZIP archive",
|
|
219
|
+
"command": "mdedit document export <documentId>",
|
|
220
220
|
"flags": {
|
|
221
|
-
"--output <path>": "Output file path (default:
|
|
221
|
+
"--output <path>": "Output file path (default: document.zip)"
|
|
222
222
|
},
|
|
223
|
-
"example": "mdedit
|
|
223
|
+
"example": "mdedit document export abc123 --output my-document.zip"
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
"name": "folder_list",
|
|
@@ -359,36 +359,36 @@
|
|
|
359
359
|
],
|
|
360
360
|
"workflows": {
|
|
361
361
|
"read_and_update_article": [
|
|
362
|
-
"CONTENT=$(mdedit
|
|
363
|
-
"echo \"$MODIFIED_CONTENT\" | mdedit
|
|
362
|
+
"CONTENT=$(mdedit document get <documentId> --content-only)",
|
|
363
|
+
"echo \"$MODIFIED_CONTENT\" | mdedit document update <documentId> --file -"
|
|
364
364
|
],
|
|
365
365
|
"anchored_article_edit": [
|
|
366
|
-
"mdedit
|
|
367
|
-
"On exit 4, re-read the
|
|
366
|
+
"mdedit document edit <documentId> --replace 'old text' --with 'new text' --format json",
|
|
367
|
+
"On exit 4, re-read the document before continuing"
|
|
368
368
|
],
|
|
369
369
|
"review_article": [
|
|
370
|
-
"mdedit review list <
|
|
371
|
-
"mdedit review add <
|
|
372
|
-
"mdedit suggest <
|
|
370
|
+
"mdedit review list <documentId> --status open --format json",
|
|
371
|
+
"mdedit review add <documentId> --quote 'claim' --body 'Needs a source.' --format json",
|
|
372
|
+
"mdedit suggest <documentId> --quote 'teh' --replace 'the' --note 'Typo' --format json"
|
|
373
373
|
],
|
|
374
374
|
"create_article_in_folder": [
|
|
375
375
|
"mdedit folder list --format json",
|
|
376
|
-
"mdedit
|
|
376
|
+
"mdedit document create --title 'New Post' --folder <folderId> --file content.md --format json"
|
|
377
377
|
],
|
|
378
378
|
"create_live_public_link": [
|
|
379
|
-
"mdedit
|
|
379
|
+
"mdedit document create --file document.md --publish --format json",
|
|
380
380
|
"Read publication.shortUrl, publication.mode, publication.sourceVersionId, and publication.syncStatus"
|
|
381
381
|
],
|
|
382
382
|
"publish_frozen_snapshot": [
|
|
383
|
-
"mdedit
|
|
384
|
-
"Run
|
|
383
|
+
"mdedit document publish <documentId> --snapshot --format json",
|
|
384
|
+
"Run document publish again to update the frozen content"
|
|
385
385
|
],
|
|
386
386
|
"upgrade_legacy_snapshot": [
|
|
387
|
-
"mdedit
|
|
388
|
-
"mdedit
|
|
387
|
+
"mdedit document publish-status <documentId> --format json",
|
|
388
|
+
"mdedit document publish <documentId> --live --format json"
|
|
389
389
|
],
|
|
390
390
|
"bulk_export": [
|
|
391
|
-
"mdedit
|
|
391
|
+
"mdedit document list --format json > documents.json"
|
|
392
392
|
],
|
|
393
393
|
"setup_fresh_environment": [
|
|
394
394
|
"mdedit config login --api-key $MDEDIT_API_KEY",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdedit-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Command-line interface for mdedit.ai.",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"prepack": "yarn --cwd ../.. check:agent-skills && yarn build"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@mdedit/agent-client": "1.0.
|
|
48
|
-
"@mdedit/sdk": "0.
|
|
47
|
+
"@mdedit/agent-client": "1.0.8",
|
|
48
|
+
"@mdedit/sdk": "0.4.0",
|
|
49
49
|
"@napi-rs/keyring": "^1.3.0",
|
|
50
50
|
"chalk": "^5.6.2",
|
|
51
51
|
"commander": "^14.0.3",
|
package/skills/catalog.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"evidenceDate": "2026-08-
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"evidenceDate": "2026-08-27",
|
|
5
5
|
"product": "mdedit",
|
|
6
6
|
"docsUrl": "https://mdedit.ai/docs/skills",
|
|
7
7
|
"installUrl": "https://mdedit.ai/docs/skills/install",
|
|
8
8
|
"publicInstallationUrl": "https://mdedit.ai",
|
|
9
|
-
"portableCompatibility": "Requires mdedit-cli 0.4.
|
|
9
|
+
"portableCompatibility": "Requires mdedit-cli 0.4.3 or newer and an authenticated mdedit profile or scoped API key.",
|
|
10
10
|
"channels": [
|
|
11
11
|
{
|
|
12
12
|
"id": "portable",
|
|
13
|
-
"name": "Portable Agent
|
|
14
|
-
"status": "
|
|
15
|
-
"detail": "
|
|
13
|
+
"name": "Portable Agent Plugin",
|
|
14
|
+
"status": "available",
|
|
15
|
+
"detail": "The public Agent Plugins 1.0 repository combines the shared skills and hosted MCP connection, with thin Gemini CLI, Cursor, and Claude Code compatibility manifests generated from the same source."
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"id": "openai",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"id": "claude-code",
|
|
25
25
|
"name": "Claude Code plugin",
|
|
26
26
|
"status": "release-candidate",
|
|
27
|
-
"detail": "The package
|
|
27
|
+
"detail": "The shared package contains the validated Claude Code OAuth adapter; marketplace publication remains a separate release gate."
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"id": "cursor",
|
|
31
31
|
"name": "Cursor plugin",
|
|
32
|
-
"status": "
|
|
33
|
-
"detail": "
|
|
32
|
+
"status": "release-candidate",
|
|
33
|
+
"detail": "Cursor can load the portable Agent Plugin, while a thin adapter retains its dedicated public OAuth client for marketplace compatibility."
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"id": "gemini-cli",
|
|
37
37
|
"name": "Gemini CLI extension",
|
|
38
|
-
"status": "
|
|
39
|
-
"detail": "
|
|
38
|
+
"status": "release-candidate",
|
|
39
|
+
"detail": "The public shared repository retains Gemini CLI's required root manifest and dedicated public OAuth client for gallery submission."
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
42
|
"skills": [
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
---
|
|
3
3
|
name: find-mdedit-document
|
|
4
4
|
description: Find and read an existing Markdown Document stored in mdedit. Use when the user asks to locate, open, retrieve, quote, summarize, or inspect a saved mdedit document. Do not use for local files, web pages, or generic Markdown questions unrelated to mdedit storage.
|
|
5
|
-
compatibility: Requires mdedit-cli 0.4.
|
|
5
|
+
compatibility: Requires mdedit-cli 0.4.3 or newer and an authenticated mdedit profile or scoped API key.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Find and read a document in mdedit
|
|
@@ -10,12 +10,12 @@ compatibility: Requires mdedit-cli 0.4.0 or newer and an authenticated mdedit pr
|
|
|
10
10
|
Resolve real saved content before describing it.
|
|
11
11
|
|
|
12
12
|
1. Run `mdedit workspace list --format json` unless a returned workspace ID is already established. Ask the user to choose when several workspaces could match.
|
|
13
|
-
2. Run `mdedit
|
|
13
|
+
2. Run `mdedit document list --workspace <workspaceId> --full --format json`.
|
|
14
14
|
3. Match only against returned document metadata.
|
|
15
15
|
- Continue when there is one clear match.
|
|
16
16
|
- When several documents plausibly match, present their returned titles and ask the user to choose.
|
|
17
17
|
- When none match, say so and stop.
|
|
18
|
-
4. Run `mdedit
|
|
18
|
+
4. Run `mdedit document get <documentId> --workspace <workspaceId> --include-content --format json`.
|
|
19
19
|
5. Answer from the returned saved content. Distinguish exact saved text from any summary or interpretation. Keep IDs, revisions, hashes, and raw JSON internal unless the user explicitly asks for diagnostic details.
|
|
20
20
|
|
|
21
21
|
This workflow is read-only. Do not run create, edit, publish, or unpublish commands. Never infer document content, identifiers, publication state, or URLs from titles or conversation memory.
|
|
@@ -9,15 +9,15 @@ compatibility: Requires the mdedit MCP server with workspace and article read to
|
|
|
9
9
|
|
|
10
10
|
Resolve a real saved document before describing its content.
|
|
11
11
|
|
|
12
|
-
1. Resolve the workspace with `list_workspaces
|
|
12
|
+
1. Resolve the workspace with `list_workspaces`.
|
|
13
13
|
- If several workspaces could match, ask the user to choose by returned name.
|
|
14
14
|
- If no workspace matches, stop without guessing.
|
|
15
|
-
2. Call `list_articles
|
|
15
|
+
2. Call `list_articles`. If exactly one workspace was returned, omit the workspace selector. If the user chose among several, pass `workspaceName`. When the user gives a title or keywords, pass them as `query`. Work from one bounded page at a time; do not retrieve every page merely to reproduce a long document list in chat.
|
|
16
16
|
3. Match the user's title or description against returned document metadata.
|
|
17
17
|
- If there is one clear match, continue.
|
|
18
18
|
- If several documents plausibly match, present only their returned titles and ask the user to choose.
|
|
19
19
|
- If there is no match, say so and stop.
|
|
20
|
-
4. Call `read_article` with
|
|
20
|
+
4. Call `read_article` with `articleTitle` and, when needed, `workspaceName`. Do not search local code or ask the user for routing identifiers.
|
|
21
21
|
5. For open, show, or preview requests, call `render_article` with `focus: preview`. Answer from the returned saved `content` when a textual answer is also needed. Distinguish exact saved content from any summary or interpretation. Keep `contentRevision`, `contentHash`, `workspaceId`, and `articleId` internal unless the user explicitly asks for diagnostic details.
|
|
22
22
|
|
|
23
23
|
This workflow is read-only. Do not call create, edit, publish, or unpublish tools. Never infer document content, identifiers, revisions, publication status, or URLs from titles or conversation memory.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
---
|
|
3
3
|
name: publish-mdedit-document
|
|
4
4
|
description: Check or change Public Document Publishing for an existing mdedit Markdown Document. Use when the user explicitly asks to publish, unpublish, inspect publication status, or create or update a public mded.it link. Do not use for private editor links, local files, or generic sharing advice.
|
|
5
|
-
compatibility: Requires mdedit-cli 0.4.
|
|
5
|
+
compatibility: Requires mdedit-cli 0.4.3 or newer and an authenticated mdedit profile or scoped API key with publishing permissions.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Manage Public Document Publishing
|
|
@@ -10,10 +10,10 @@ compatibility: Requires mdedit-cli 0.4.0 or newer and an authenticated mdedit pr
|
|
|
10
10
|
Public visibility is a separate, explicit action. Never treat saving or editing as permission to publish.
|
|
11
11
|
|
|
12
12
|
1. Resolve the workspace and document from returned CLI results. Ask the user to choose when a match is ambiguous.
|
|
13
|
-
2. For a status-only request, run `mdedit
|
|
13
|
+
2. For a status-only request, run `mdedit document publish-status <documentId> --workspace <workspaceId> --format json`, report the returned state and exact URL fields, then stop.
|
|
14
14
|
3. Before publishing or updating a public link, warn that anyone with the link can view the document and ask for explicit confirmation.
|
|
15
|
-
4. After confirmation, run `mdedit
|
|
15
|
+
4. After confirmation, run `mdedit document publish <documentId> --workspace <workspaceId> --format json`. The command atomically defaults a new link to Live while preserving an existing link's mode, so do not add a status preflight. Add `--snapshot`, `--live`, `--slug`, or SEO metadata only when the user requested or approved it.
|
|
16
16
|
5. Treat publication as successful only when the command returns a public URL and publication identity. Return the exact command-provided URL.
|
|
17
|
-
6. Before disabling a link, run `publish-status` to identify the current link and ask for explicit confirmation. After confirmation, run `mdedit
|
|
17
|
+
6. Before disabling a link, run `publish-status` to identify the current link and ask for explicit confirmation. After confirmation, run `mdedit document unpublish <documentId> --workspace <workspaceId> --yes --format json`.
|
|
18
18
|
|
|
19
19
|
Never construct an `mded.it` URL, expose an editor URL as a public link, or claim publication from a requested slug. On denied permission, failure, or missing result fields, report the bounded error and leave visibility unchanged.
|
|
@@ -9,7 +9,7 @@ compatibility: Requires the mdedit MCP server with publishing tools and explicit
|
|
|
9
9
|
|
|
10
10
|
Public visibility is a separate, explicit action. Never treat saving or editing as permission to publish.
|
|
11
11
|
|
|
12
|
-
1. Resolve the workspace and document using `list_workspaces`, `list_articles`, and `read_article`. Use `list_articles.query` when the user provides a title or keywords, and work from one bounded page at a time instead of retrieving every page. Ask the user to choose when a returned match is ambiguous.
|
|
12
|
+
1. Resolve the workspace and document using `list_workspaces`, `list_articles`, and `read_article`. Omit the workspace selector when there is one workspace; otherwise pass the chosen `workspaceName`. Pass the chosen `articleTitle` to later tools instead of asking for internal identifiers. Use `list_articles.query` when the user provides a title or keywords, and work from one bounded page at a time instead of retrieving every page. Ask the user to choose when a returned match is ambiguous.
|
|
13
13
|
2. For a status-only request, call `get_publish_status`, then call `render_article` with `focus: publish`. Report only the returned state and exact URL fields, then stop without mutating.
|
|
14
14
|
3. Before publishing or updating a public link, warn that anyone with the link can view the document and ask for explicit confirmation. Do not infer confirmation from an earlier save or edit request.
|
|
15
15
|
4. After confirmation, call `publish_article` with `confirmPublic: true`. The tool atomically defaults a new link to Live while preserving an existing link's mode, so do not add a status preflight. Include a custom slug or SEO metadata only when the user supplied or approved it.
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
---
|
|
3
3
|
name: review-mdedit-document
|
|
4
4
|
description: Review an existing Markdown Document in mdedit with anchored comments and suggestions, or accept or reject an existing suggestion. Use when the user asks to review, critique, proofread, suggest improvements, or decide pending review feedback on a saved mdedit document. Do not use when the user asks for an unrelated direct edit, publishing, or review of local or unsaved content.
|
|
5
|
-
compatibility: Requires mdedit-cli 0.4.
|
|
5
|
+
compatibility: Requires mdedit-cli 0.4.3 or newer with an authenticated profile or scoped API key.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Review a document in mdedit
|
|
9
9
|
|
|
10
10
|
Read the saved document, then leave focused feedback without changing the writer's Markdown.
|
|
11
11
|
|
|
12
|
-
1. Resolve the workspace and document with `mdedit workspace list --format json` and `mdedit
|
|
13
|
-
2. Read the current document with `mdedit
|
|
12
|
+
1. Resolve the workspace and document with `mdedit workspace list --format json` and `mdedit document list --workspace <returned-workspace-id> --format json`. Ask the user to choose by returned name if several results plausibly match.
|
|
13
|
+
2. Read the current document with `mdedit document get <returned-document-id> --workspace <returned-workspace-id> --format json`.
|
|
14
14
|
3. Inspect existing feedback with `mdedit review list <returned-article-id> --workspace <returned-workspace-id> --status open --format json` so you do not duplicate it.
|
|
15
15
|
4. Add focused review items:
|
|
16
16
|
- Use `mdedit review add` with `--quote` and `--body` for comments.
|
|
17
17
|
- Use `mdedit review suggest` with `--quote` and `--replace` for concrete replacements.
|
|
18
18
|
5. Summarize the number and themes of the comments or suggestions. Do not display workspace IDs, article IDs, thread IDs, command IDs, hashes, revisions, or raw JSON unless the user explicitly asks for diagnostics.
|
|
19
19
|
|
|
20
|
-
When the user asks to accept or reject review feedback, locate the exact open suggestion with `mdedit review list`, ask one focused question if more than one suggestion could match, then use `mdedit review accept` or `mdedit review reject` with the returned thread ID. Do not simulate acceptance with a separate
|
|
20
|
+
When the user asks to accept or reject review feedback, locate the exact open suggestion with `mdedit review list`, ask one focused question if more than one suggestion could match, then use `mdedit review accept` or `mdedit review reject` with the returned thread ID. Do not simulate acceptance with a separate document edit. Confirm the decision only after the command succeeds.
|
|
21
21
|
|
|
22
|
-
Review requests never authorize unrelated
|
|
22
|
+
Review requests never authorize unrelated document edits, publishing, or unpublishing. Adding review feedback leaves Markdown unchanged; accepting a specifically selected suggestion applies only that proposed replacement. Review commands work on ordinary documents. If a quote or suggestion choice is ambiguous or no longer matches, read the document again and ask one focused question instead of guessing.
|
|
@@ -9,7 +9,7 @@ compatibility: Requires the mdedit MCP server with article read and review tools
|
|
|
9
9
|
|
|
10
10
|
Read the saved document, then leave focused feedback without changing the writer's Markdown.
|
|
11
11
|
|
|
12
|
-
1. Resolve the workspace and document with `list_workspaces` and `list_articles`. Use `query` when the user provides a title or keywords, and work from one bounded page at a time instead of retrieving every page. If several returned names plausibly match, ask the user to choose by name. Never ask the user for an internal ID unless troubleshooting requires it.
|
|
12
|
+
1. Resolve the workspace and document with `list_workspaces` and `list_articles`. Omit the workspace selector when there is one workspace; otherwise pass the chosen `workspaceName`. Pass the chosen `articleTitle` to later tools instead of asking for internal identifiers. Use `query` when the user provides a title or keywords, and work from one bounded page at a time instead of retrieving every page. If several returned names plausibly match, ask the user to choose by name. Never ask the user for an internal ID unless troubleshooting requires it.
|
|
13
13
|
2. Call `read_article` for the selected document. Use its current saved content as the only source for the review.
|
|
14
14
|
3. Call `list_review_threads` so you do not duplicate existing feedback.
|
|
15
15
|
4. Add only useful, non-duplicative review items:
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
---
|
|
3
3
|
name: revise-mdedit-document
|
|
4
4
|
description: Safely revise an existing Markdown Document stored in mdedit with anchored, conflict-aware edits. Use when the user asks to update, rewrite, correct, insert, remove, or reorganize content in a saved mdedit document. Do not use for unsaved local Markdown, local files, or generic editing advice.
|
|
5
|
-
compatibility: Requires mdedit-cli 0.4.
|
|
5
|
+
compatibility: Requires mdedit-cli 0.4.3 or newer and an authenticated mdedit profile or scoped API key.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Revise a document in mdedit
|
|
9
9
|
|
|
10
10
|
Read the current durable content, then apply the smallest unambiguous anchored change.
|
|
11
11
|
|
|
12
|
-
1. Resolve the workspace and document with `mdedit workspace list --format json`, `mdedit
|
|
12
|
+
1. Resolve the workspace and document with `mdedit workspace list --format json`, `mdedit document list --workspace <workspaceId> --full --format json`, and `mdedit document get <documentId> --workspace <workspaceId> --include-content --format json`.
|
|
13
13
|
2. Ask a focused question when the target text, section, or replacement is unclear.
|
|
14
|
-
3. For one unique replacement, run `mdedit
|
|
15
|
-
4. For insertions, deletions, contextual anchors, or several edits, write the smallest operation array and run `mdedit
|
|
14
|
+
3. For one unique replacement, run `mdedit document edit <documentId> --workspace <workspaceId> --replace <exactText> --with <replacement> --format json`.
|
|
15
|
+
4. For insertions, deletions, contextual anchors, or several edits, write the smallest operation array and run `mdedit document edit <documentId> --workspace <workspaceId> --ops-file <path> --format json`.
|
|
16
16
|
5. Avoid whole-document replacement unless the user explicitly requests a full rewrite.
|
|
17
17
|
6. Treat the edit as successful only when the JSON result has no unresolved conflict. Re-read the saved document when the result is ambiguous, then summarize the durable change without displaying IDs, revisions, hashes, or raw JSON unless the user asks for diagnostics.
|
|
18
18
|
|
|
19
|
-
If the command reports a conflict, stop, run `
|
|
19
|
+
If the command reports a conflict, stop, run `mdedit document get` again, and explain what changed concurrently. Do not retry against new content until the user's intent has been reconciled. Never invent anchors or claim success from requested text alone.
|
|
@@ -9,7 +9,7 @@ compatibility: Requires the mdedit MCP server with read_article and edit_article
|
|
|
9
9
|
|
|
10
10
|
Read the current durable content, then apply the smallest unambiguous anchored change.
|
|
11
11
|
|
|
12
|
-
1. Resolve the workspace and document using `list_workspaces`, `list_articles`, and `read_article`. Use `list_articles.query` when the user provides a title or keywords, and work from one bounded page at a time instead of retrieving every page. Ask the user to choose when a returned workspace or document match is ambiguous.
|
|
12
|
+
1. Resolve the workspace and document using `list_workspaces`, `list_articles`, and `read_article`. Omit the workspace selector when there is one workspace; otherwise pass the chosen `workspaceName`. Pass the chosen `articleTitle` to later tools instead of asking for internal identifiers. Use `list_articles.query` when the user provides a title or keywords, and work from one bounded page at a time instead of retrieving every page. Ask the user to choose when a returned workspace or document match is ambiguous.
|
|
13
13
|
2. Confirm the requested change is specific enough to apply. Ask a focused question when the target text, section, or replacement is unclear.
|
|
14
14
|
3. Build one or more `edit_article` operations:
|
|
15
15
|
- Prefer a unique `quote` anchor with nearby `context`.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
---
|
|
3
3
|
name: save-mdedit-document
|
|
4
4
|
description: Create and durably save a private Markdown Document in mdedit. Use when the user explicitly asks to save, persist, archive, or turn conversation content into a document in mdedit. Do not use for generic Markdown writing, formatting, or local-file creation that does not require mdedit storage.
|
|
5
|
-
compatibility: Requires mdedit-cli 0.4.
|
|
5
|
+
compatibility: Requires mdedit-cli 0.4.3 or newer and an authenticated mdedit profile or scoped API key.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Save a document to mdedit
|
|
@@ -14,9 +14,9 @@ Create one durable private document from content the user supplied or asked you
|
|
|
14
14
|
- If exactly one workspace is returned, use it.
|
|
15
15
|
- If several could match, ask the user to choose by returned name.
|
|
16
16
|
- If none match, stop without guessing.
|
|
17
|
-
3. Save the content once with `mdedit
|
|
17
|
+
3. Save the content once with `mdedit document create --workspace <workspaceId> --title <title> --file <path> --format json`. Use `--content` only for short content that is safe to pass as one argument.
|
|
18
18
|
4. Do not pass `--publish`, `--live`, `--snapshot`, or public-link metadata.
|
|
19
|
-
5. Read the created document with `mdedit
|
|
19
|
+
5. Read the created document with `mdedit document get <documentId> --workspace <workspaceId> --include-content --format json` and verify that the returned durable content matches the intended document.
|
|
20
20
|
6. Report the saved title and returned document identity. State that the document remains private.
|
|
21
21
|
|
|
22
22
|
Never invent workspace IDs, article IDs, revisions, hashes, or URLs. If creation or content persistence fails, report the bounded error and do not claim the document was saved.
|
|
@@ -11,10 +11,9 @@ Create one durable private document from content the user supplied or asked you
|
|
|
11
11
|
|
|
12
12
|
1. Determine the intended title and Markdown content. Ask a focused question if the source material or document boundary is unclear.
|
|
13
13
|
2. Resolve the destination workspace:
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
3. Call `create_article` once with the returned `workspaceId`, title, complete Markdown content, and `collaborative: false` unless the user explicitly asks for live collaboration.
|
|
14
|
+
- Call `list_workspaces` unless the conversation has already established one by name.
|
|
15
|
+
- If exactly one workspace is returned, omit the workspace selector in later calls. If several are returned, ask the user which returned workspace name to use and pass it as `workspaceName`. If none are returned, stop.
|
|
16
|
+
3. Call `create_article` once with the natural workspace selector above, title, complete Markdown content, and `collaborative: false` unless the user explicitly asks for live collaboration.
|
|
18
17
|
4. Treat the save as successful only when the tool returns the saved title, `editorUrl`, `contentHash`, and internal `contentRevision` metadata; keep routing, hash, and revision values out of the conversational response.
|
|
19
18
|
5. Call `render_article` with `focus: preview` so UI-capable hosts show the saved document. Report the saved title in one short sentence and use the exact returned resource link. State that the document remains private.
|
|
20
19
|
|