planko-mcp-server 0.11.0 → 0.12.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 +17 -2
- package/package.json +1 -1
- package/src/api.js +8 -0
- package/src/tools.js +47 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ MCP server for syncing [Planko](https://planko.io) tasks with local Markdown fil
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- **
|
|
7
|
+
- **22 tools**: 3 folder-sync tools + 10 standalone task/note/sticky-note CRUD tools + 7 standalone read (list/view) tools + `planko_recommend_task` (suggest a task for the owner to accept or reject) + `planko_suggest_agentic_task` (suggest a task for one of the owner's agents, accepted on the Agentes page), incl. `planko_list_all` and kanban board/column filters
|
|
8
8
|
- **Type-aware sync**: each folder syncs either **tasks** (type=1) or **notes** (type=2), chosen at setup
|
|
9
9
|
- **Multi-folder**: sync multiple projects to different local folders
|
|
10
10
|
- **Bidirectional sync**: pull remote changes, push local changes
|
|
@@ -87,7 +87,7 @@ Tasks are pulled as `.md` files into your folder. Local changes are pushed back
|
|
|
87
87
|
|
|
88
88
|
## Tools
|
|
89
89
|
|
|
90
|
-
The server exposes
|
|
90
|
+
The server exposes 22 tools in four groups: **folder-sync** tools (bind a project to a local folder), **standalone CRUD** tools (create/edit/complete/delete directly via your API key, no folder needed), **standalone read** tools (list/view directly via your API key, no folder needed), and two **suggestion** tools (suggest a task, or an agentic task, that the account owner accepts or rejects).
|
|
91
91
|
|
|
92
92
|
Planko has three kinds of item, all stored as tasks with a `type`: **tasks** (`type=1`), **notes** (`type=2`) and **sticky notes** (`type=3`, a task-page item with every task property). Every kind has its own create/edit/delete/view/list tool; `planko_list_all` lists the three together.
|
|
93
93
|
|
|
@@ -172,6 +172,21 @@ Notes:
|
|
|
172
172
|
- There is **no read-back**: the API has no endpoint to list recommendations or learn their outcome, and every call creates a new pending suggestion plus a new notification. Send each suggestion once; do not retry on a slow response.
|
|
173
173
|
- Under `PLANKO_PROJECT_LOCK` the suggestion always targets the locked project (see below).
|
|
174
174
|
|
|
175
|
+
### Agentic task suggestion
|
|
176
|
+
|
|
177
|
+
An agentic task is executed by one of the owner's Planko agents from an instruction. The MCP never creates, edits, completes or deletes one; it can only **suggest** one. The suggestion lands in the **Sugestão** column of the Agentes page and nothing runs until the owner accepts it there.
|
|
178
|
+
|
|
179
|
+
| Tool | Description | Key parameters |
|
|
180
|
+
|---|---|---|
|
|
181
|
+
| `planko_suggest_agentic_task` | Suggest an agentic task to the account owner | `name` (required), `instructions` (required, Markdown, up to 5500 characters once converted), `projectName` (optional), `level` (`baixo`\|`medio`\|`alto`, optional) |
|
|
182
|
+
|
|
183
|
+
Notes:
|
|
184
|
+
|
|
185
|
+
- One-off only: no subtasks and no recurrence.
|
|
186
|
+
- The executor is the **default agent of the target project**. A project without one fails with `Escolha o agente que vai executar esta tarefa`; the owner sets it in Planko.
|
|
187
|
+
- Available only to accounts with access to agentic tasks; otherwise the call fails with `403`.
|
|
188
|
+
- Under `PLANKO_PROJECT_LOCK` the suggestion always targets the locked project.
|
|
189
|
+
|
|
175
190
|
```
|
|
176
191
|
planko_recommend_task(title: "Renovar contrato Acme", datePlain: "2026-10-01", time: "14:00", priority: 1)
|
|
177
192
|
planko_recommend_task(title: "Revisar proposta", projectName: "Comercial", description: "Pontos:\n- prazo\n- valor")
|
package/package.json
CHANGED
package/src/api.js
CHANGED
|
@@ -139,6 +139,14 @@ export function createApiClient({ apiKey, apiBase }) {
|
|
|
139
139
|
return request('DELETE', `/mcp-project-sync/tasks/${taskId}`);
|
|
140
140
|
},
|
|
141
141
|
|
|
142
|
+
/**
|
|
143
|
+
* POST /mcp-project-sync/agent-tasks/suggest — agentic task (type 4) born in
|
|
144
|
+
* Sugestão; it only runs after the owner accepts it in the app.
|
|
145
|
+
*/
|
|
146
|
+
async suggestAgentTask(body) {
|
|
147
|
+
return request('POST', '/mcp-project-sync/agent-tasks/suggest', body);
|
|
148
|
+
},
|
|
149
|
+
|
|
142
150
|
/**
|
|
143
151
|
* POST /mcp-project-sync/recommendations — suggest something to the API
|
|
144
152
|
* key's owner (PL274). Body { type, payload }; returns the Recommendation
|
package/src/tools.js
CHANGED
|
@@ -386,6 +386,53 @@ export function registerStandaloneTools(server, { api, projectLock = null, wrapH
|
|
|
386
386
|
})
|
|
387
387
|
);
|
|
388
388
|
|
|
389
|
+
// ---- planko_suggest_agentic_task ----
|
|
390
|
+
// An agentic task (type 4, run by one of the owner's agents) in Sugestão: nothing runs until the
|
|
391
|
+
// owner accepts it on the Agentes page. One-off only (no parent, no recurrence); the executor is
|
|
392
|
+
// the project's default agent. Every other agentic write stays closed to the MCP.
|
|
393
|
+
server.registerTool(
|
|
394
|
+
'planko_suggest_agentic_task',
|
|
395
|
+
{
|
|
396
|
+
title: 'Suggest agentic task',
|
|
397
|
+
description: 'Suggest an agentic task: a task that one of the owner\'s Planko agents executes from an instruction. It is created in the "Sugestão" column of the Agentes page and runs only after the owner accepts it there; nothing executes before that. One-off only (no subtasks, no recurrence). The executor is the default agent of the target project; if the project has none, the call fails and the owner must pick a default agent for it in Planko. Send each suggestion once.',
|
|
398
|
+
inputSchema: {
|
|
399
|
+
name: z.string().trim().min(1).max(200).describe('Task name (required, up to 200 characters)'),
|
|
400
|
+
instructions: z
|
|
401
|
+
.string()
|
|
402
|
+
.trim()
|
|
403
|
+
.min(1)
|
|
404
|
+
.describe('What the agent must do (required, Markdown; up to 5500 characters once converted)'),
|
|
405
|
+
projectName: z
|
|
406
|
+
.string()
|
|
407
|
+
.optional()
|
|
408
|
+
.describe('Project name (optional — omit for your default project). Its default agent executes the task'),
|
|
409
|
+
level: z
|
|
410
|
+
.enum(['baixo', 'medio', 'alto'])
|
|
411
|
+
.optional()
|
|
412
|
+
.describe('Model level for the run (optional — omit for the agent\'s default level)'),
|
|
413
|
+
},
|
|
414
|
+
annotations: ANNOTATIONS.WRITE,
|
|
415
|
+
},
|
|
416
|
+
wrapHandler('planko_suggest_agentic_task', async (params) => {
|
|
417
|
+
try {
|
|
418
|
+
const body = { name: params.name, description: markdownToDescription(params.instructions) };
|
|
419
|
+
if (params.level) body.agentLevel = params.level;
|
|
420
|
+
if (PROJECT_LOCK) {
|
|
421
|
+
body.projectId = lockProjectId(PROJECT_LOCK, undefined);
|
|
422
|
+
} else if (!isBlankValue(params.projectName)) {
|
|
423
|
+
body.projectId = await resolveProjectId(params.projectName);
|
|
424
|
+
}
|
|
425
|
+
const res = await api.suggestAgentTask(body);
|
|
426
|
+
const { id, name: savedName } = describeTask(res);
|
|
427
|
+
return toolOk(
|
|
428
|
+
`Suggested agentic task "${savedName}" (id: ${id}). It is in "Sugestão" on the Agentes page and runs only after the owner accepts it.`
|
|
429
|
+
);
|
|
430
|
+
} catch (err) {
|
|
431
|
+
return toolError(`Suggest agentic task failed: ${err.message}`);
|
|
432
|
+
}
|
|
433
|
+
})
|
|
434
|
+
);
|
|
435
|
+
|
|
389
436
|
// ---- planko_edit_task ----
|
|
390
437
|
server.registerTool(
|
|
391
438
|
'planko_edit_task',
|