planko-mcp-server 0.6.0 → 0.8.0
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 +10 -4
- package/index.js +2 -771
- package/package.json +8 -3
- package/src/listing.js +4 -2
- package/src/tools.js +913 -0
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "planko-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "MCP server for syncing Planko tasks with local Markdown files",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./index.js",
|
|
8
|
+
"./tools": "./src/tools.js"
|
|
9
|
+
},
|
|
6
10
|
"bin": {
|
|
7
11
|
"planko-mcp-server": "./index.js"
|
|
8
12
|
},
|
|
@@ -17,10 +21,11 @@
|
|
|
17
21
|
},
|
|
18
22
|
"scripts": {
|
|
19
23
|
"test": "vitest run",
|
|
20
|
-
"prepublishOnly": "node --check index.js && node --check src/api.js && node --check src/converters.js && node --check src/sync-state.js && node --check src/projectLock.js && node --check src/sanitize.js && node --check src/listing.js && node --check src/recommend.js"
|
|
24
|
+
"prepublishOnly": "node --check index.js && node --check src/api.js && node --check src/converters.js && node --check src/sync-state.js && node --check src/projectLock.js && node --check src/sanitize.js && node --check src/listing.js && node --check src/recommend.js && node --check src/tools.js"
|
|
21
25
|
},
|
|
22
26
|
"dependencies": {
|
|
23
|
-
"@modelcontextprotocol/sdk": "^1.12.1"
|
|
27
|
+
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
28
|
+
"zod": "^4.3.6"
|
|
24
29
|
},
|
|
25
30
|
"devDependencies": {
|
|
26
31
|
"vitest": "^3.1.1"
|
package/src/listing.js
CHANGED
|
@@ -166,6 +166,7 @@ export function summarizeItem(item, index) {
|
|
|
166
166
|
if (item.priority != null) parts.push(`priority: ${item.priority}`);
|
|
167
167
|
if (item.dueDate) parts.push(`due: ${item.dueDate}${item.time ? ` ${item.time}` : ''}`);
|
|
168
168
|
else if (item.datePlain) parts.push(`due: ${item.datePlain}${item.time ? ` ${item.time}` : ''}`);
|
|
169
|
+
if (item.type === TYPE_TASK && item.deadline) parts.push(`deadline: ${item.deadline}`);
|
|
169
170
|
const tagStr = formatTags(item.tags);
|
|
170
171
|
if (tagStr) parts.push(`tags: ${tagStr}`);
|
|
171
172
|
const board = boardLabel(item);
|
|
@@ -207,6 +208,7 @@ export function renderItem(item) {
|
|
|
207
208
|
if (item.priority != null) lines.push(`priority: ${item.priority}`);
|
|
208
209
|
if (item.dueDate) lines.push(`due: ${item.dueDate}${item.time ? ` ${item.time}` : ''}`);
|
|
209
210
|
else if (item.datePlain) lines.push(`due: ${item.datePlain}${item.time ? ` ${item.time}` : ''}`);
|
|
211
|
+
if (item.type === TYPE_TASK && item.deadline) lines.push(`deadline: ${item.deadline}`);
|
|
210
212
|
const tagStr = formatTags(item.tags);
|
|
211
213
|
if (tagStr) lines.push(`tags: ${tagStr}`);
|
|
212
214
|
const board = boardLabel(item);
|
|
@@ -227,8 +229,8 @@ export function renderItem(item) {
|
|
|
227
229
|
return lines.join('\n');
|
|
228
230
|
}
|
|
229
231
|
|
|
230
|
-
const SORTABLE_FIELDS = new Set(['dueDate', 'createdAt', 'updatedAt', 'priority', 'position', 'name']);
|
|
231
|
-
const DATE_FIELDS = new Set(['dueDate', 'createdAt', 'updatedAt']);
|
|
232
|
+
const SORTABLE_FIELDS = new Set(['dueDate', 'deadline', 'createdAt', 'updatedAt', 'priority', 'position', 'name']);
|
|
233
|
+
const DATE_FIELDS = new Set(['dueDate', 'deadline', 'createdAt', 'updatedAt']);
|
|
232
234
|
|
|
233
235
|
/** Parse 'field:dir' with the backend's whitelist; default updatedAt:desc. */
|
|
234
236
|
export function parseSort(sortBy) {
|