planko-mcp-server 0.5.2 → 0.7.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 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
- - **14 tools**: 3 folder-sync tools + 7 standalone task/note CRUD tools + 4 standalone read (list/view) tools
7
+ - **21 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), 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,9 @@ 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 14 tools in three 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), and **standalone read** tools (list/view directly via your API key, no folder needed).
90
+ The server exposes 21 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 a **recommendation** tool (suggest a task that the account owner accepts or rejects).
91
+
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.
91
93
 
92
94
  ### Folder-sync tools
93
95
 
@@ -99,17 +101,20 @@ The server exposes 14 tools in three groups: **folder-sync** tools (bind a proje
99
101
 
100
102
  ### Standalone CRUD tools
101
103
 
102
- These work with the **same API key** and require **no folder setup**. Notes are Planko tasks with `type=2`; tasks are `type=1`. They live in the same collection, so edit/delete work on both. `create_*` tools accept all task/note properties as optional params (only `name` is required); the Markdown `description` is converted to Planko's rich-text (BlockNote) format automatically.
104
+ These work with the **same API key** and require **no folder setup**. Tasks, notes and sticky notes live in the same collection, so edit/delete work on any id regardless of the tool's name. `create_*` tools accept all task/note properties as optional params (only `name` is required); the Markdown `description` is converted to Planko's rich-text (BlockNote) format automatically.
103
105
 
104
106
  | Tool | Description | Key parameters |
105
107
  |---|---|---|
106
108
  | `planko_create_task` | Create a task (type=1) | `name` (required), `projectName` (optional), plus any properties below |
107
109
  | `planko_create_note` | Create a note (type=2) | `name` (required), `projectName` (optional), plus any properties below |
110
+ | `planko_create_sticky_note` | Create a sticky note (type=3) | `name` (required), `projectName` (optional), plus any properties below |
108
111
  | `planko_edit_task` | Edit an existing task by id | `taskId` (required), plus any properties to change |
109
112
  | `planko_edit_note` | Edit an existing note by id (shares the task edit endpoint) | `taskId` (required), plus any properties to change |
110
- | `planko_complete_task` | Mark a task complete (status=2) | `taskId` (required) |
113
+ | `planko_edit_sticky_note` | Edit an existing sticky note by id (shares the task edit endpoint) | `taskId` (required), plus any properties to change |
114
+ | `planko_complete_task` | Mark a task (or sticky note) complete (status=2) | `taskId` (required) |
111
115
  | `planko_delete_task` | Delete a task by id | `taskId` (required) |
112
116
  | `planko_delete_note` | Delete a note by id (shares the task delete endpoint) | `taskId` (required) |
117
+ | `planko_delete_sticky_note` | Delete a sticky note by id (shares the task delete endpoint) | `taskId` (required) |
113
118
 
114
119
  **Optional properties** accepted by the create/edit tools (all optional; omit to leave unchanged):
115
120
 
@@ -123,12 +128,12 @@ These work with the **same API key** and require **no folder setup**. Notes are
123
128
  | `alertLeadTime` | `null`\|`ontime`\|`15min`\|`30min`\|`1hour`\|`1day` | Reminder lead time |
124
129
  | `priority` | `1`\|`2`\|`3` | |
125
130
  | `repeat` | `null`\|`daily`\|`workdays`\|`weekly`\|`biweekly`\|`monthly`\|`custom_weekly`\|`yearly` | Recurrence rule |
126
- | `repeatDate` | ISO 8601 string | Recurrence anchor/end |
131
+ | `repeatDate` | integer | Recurrence day, not a date: weekday `1`–`7` for `weekly`, day of month `1`–`31` for `monthly` |
127
132
  | `selectedWeekdays` | array of `0`–`6` | For `custom_weekly` (0=Sunday) |
128
133
  | `parentId` | ObjectId | Parent task, for subtasks |
129
134
  | `tags` | array of ObjectId | Tag ids |
130
135
  | `kanbanColumnId` / `boardId` | ObjectId | Kanban placement |
131
- | `type` | `1`\|`2` | (edit tools only) switch task↔note |
136
+ | `type` | `1`\|`2`\|`3` | (edit tools only) switch between task, note and sticky note |
132
137
  | `projectId` | ObjectId | (edit tools only) move to another project |
133
138
 
134
139
  Notes:
@@ -147,6 +152,27 @@ planko_complete_task(taskId: "665f...c0")
147
152
  planko_delete_note(taskId: "665f...aa")
148
153
  ```
149
154
 
155
+ ### Recommendation tool
156
+
157
+ A recommendation is a **suggestion, not a write**. The backend stores it as `pending`, notifies the owner of the API key (notification centre + mobile push) with **Accept / Reject** buttons, and creates the task only when they accept. Use it when a human should approve before anything is written, or when the agent must not create tasks directly.
158
+
159
+ | Tool | Description | Key parameters |
160
+ |---|---|---|
161
+ | `planko_recommend_task` | Suggest a new task to the account owner | `title` (required), `projectName` (optional), plus any of the task properties above (applied to the task on accept) |
162
+
163
+ Notes:
164
+
165
+ - The recipient is **always the owner of the API key**, never other project members, even when the suggestion targets a shared workspace project.
166
+ - `description` is Markdown, converted to BlockNote like the create tools. `datePlain` is derived from the date part of `dueDate` when only `dueDate` is given, because the owner's notification card shows `datePlain` (plus `time` and `priority`).
167
+ - A reference the owner cannot access (`projectId`, `parentId`, `tags`, `boardId`, `kanbanColumnId`) is rejected at send time with a `400`. A reference that becomes stale later is dropped when the owner accepts; the task is still created.
168
+ - 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.
169
+ - Under `PLANKO_PROJECT_LOCK` the suggestion always targets the locked project (see below).
170
+
171
+ ```
172
+ planko_recommend_task(title: "Renovar contrato Acme", datePlain: "2026-10-01", time: "14:00", priority: 1)
173
+ planko_recommend_task(title: "Revisar proposta", projectName: "Comercial", description: "Pontos:\n- prazo\n- valor")
174
+ ```
175
+
150
176
  ### Standalone read tools
151
177
 
152
178
  These also work with the **same API key** and require **no folder setup**. `list_*` returns a concise, readable summary (one line per item plus a `total`/page footer) — never a raw JSON dump. `view_*` returns full detail with the `description` converted from BlockNote to **Markdown** for display.
@@ -154,15 +180,22 @@ These also work with the **same API key** and require **no folder setup**. `list
154
180
  | Tool | Description | Key parameters |
155
181
  |---|---|---|
156
182
  | `planko_list_tasks` | List your tasks (type=1) | all filters below |
157
- | `planko_list_notes` | List your notes (type=2) | filter subset: `showCompleted`, `projectName`/`projectId`, `tags`, `search`, `sortBy`, `limit`, `page` |
183
+ | `planko_list_notes` | List your notes (type=2) | filter subset: `showCompleted`, `projectName`/`projectId`, `tags`, `search`, board/column, `sortBy`, `limit`, `page` |
184
+ | `planko_list_sticky_notes` | List your sticky notes (type=3) | same filters as `planko_list_tasks` |
185
+ | `planko_list_all` | Tasks + sticky notes + notes together, ordered by last update | same filters as `planko_list_tasks`, except `page` (see below) |
158
186
  | `planko_view_task` | View one task by id | `taskId` (required) |
159
187
  | `planko_view_note` | View one note by id (shares the view endpoint) | `taskId` (required) |
188
+ | `planko_view_sticky_note` | View one sticky note by id (shares the view endpoint) | `taskId` (required) |
160
189
 
161
- **Scope.** Without `projectId`/`projectName`, a list is scoped to **your own** items. With a project (resolved from `projectName` via your accessible projects), it includes that project's items **including workspace-shared** ones from other members. Use `assigneeId` to narrow a project listing to one member; omit it for all members. `view_*` returns the item if you own it or can access its project, otherwise it errors (404 if missing, 403 if not visible). `view_task`/`view_note` do not filter by type — either id resolves; the `task`/`note` label is informational.
190
+ **Scope.** Without `projectId`/`projectName`, a list is scoped to **your own** items. With a project (resolved from `projectName` via your accessible projects), it includes that project's items **including workspace-shared** ones from other members. Use `assigneeId` to narrow a project listing to one member; omit it for all members. `view_*` returns the item if you own it or can access its project, otherwise it errors (404 if missing, 403 if not visible). `view_*` tools do not filter by type — any id resolves; the `type:` line in the output reflects the item itself.
191
+
192
+ **`planko_list_all`.** Runs two backend queries with the same filters (tasks + sticky notes in one, notes in the other), each returning its first `limit` items by `sortBy`, then merges them by the same `sortBy` (default `updatedAt:desc`) and cuts the union to `limit`. Because the union has no server-side pagination there is no `page` parameter; the footer reports both totals. To page through one kind, use its own list tool. Note that a `dueDateFrom`/`dueDateTo` range is applied to the notes query too, which (as on the server for any dated notes query) includes recurring-note occurrences that an undated `planko_list_notes` hides.
162
193
 
163
194
  **Owner in output.** When the backend populates an item's `userId` as an object `{ _id, name, email }`, list lines and `view_*` detail append `owner: <name>` so you can tell whose task it is in a multi-member project listing. If `userId` is a bare id/string, nothing extra is shown.
164
195
 
165
- **List filters** (`planko_list_tasks` accepts all; `planko_list_notes` accepts the applicable subset):
196
+ **Board / column in output.** Items on a kanban board show `board: <name>` and `column: <name>` (falling back to the id when the reference is not populated).
197
+
198
+ **List filters** (`planko_list_tasks`, `planko_list_sticky_notes` and `planko_list_all` accept all; `planko_list_notes` accepts the applicable subset):
166
199
 
167
200
  | Filter | Type | Notes |
168
201
  |---|---|---|
@@ -173,6 +206,9 @@ These also work with the **same API key** and require **no folder setup**. `list
173
206
  | `projectId` | ObjectId | Alternative to `projectName` |
174
207
  | `assigneeId` | ObjectId | Filter to a single project member by their user id. Omit for **all members**. Applies within a project listing (needs a project scope to be meaningful) |
175
208
  | `parentId` | ObjectId | (tasks only) list subtasks of this parent |
209
+ | `boardName` | string | Kanban board name, case-insensitive, resolved against your own + workspace boards (`GET /mcp-project-sync/boards`). Errors listing the available boards on a miss |
210
+ | `kanbanColumnName` | string | Kanban column name (e.g. `To Do`). Resolved inside `boardName` when given; without a board it must be unique across your boards — default column names repeat on every board, so an ambiguous name errors with the `board › column` candidates instead of guessing |
211
+ | `boardId` / `kanbanColumnId` | ObjectId | Direct id alternatives to the names (not offered under project lock) |
176
212
  | `tags` | array of ObjectId | AND semantics — item must have all tags |
177
213
  | `search` | string | Case-insensitive match on the name |
178
214
  | `dueDateFrom` / `dueDateTo` | `YYYY-MM-DD` | (tasks only) inclusive due-date bounds |
@@ -180,13 +216,18 @@ These also work with the **same API key** and require **no folder setup**. `list
180
216
  | `limit` | int | Default 50, max 200 |
181
217
  | `page` | int | Default 1 |
182
218
 
183
- Notes-specific behavior: deleted notes and recurring-copy notes are excluded server-side. For tasks, recurring occurrences appear as separate dated items.
219
+ Notes-specific behavior: deleted notes and recurring-copy notes are excluded server-side. For tasks and sticky notes, recurring occurrences appear as separate dated items.
220
+
221
+ Board/column filters are ANDed onto the list scope. Boards belong to a user or a workspace, not to a project: with a project scope, a teammate's items placed on **their personal** board are not matched by a board filter (only your own and workspace boards are resolvable).
184
222
 
185
223
  #### Examples
186
224
 
187
225
  ```
188
226
  planko_list_tasks(status: 1, priority: 1, dueDateFrom: "2026-07-20", dueDateTo: "2026-07-26", sortBy: "dueDate:asc")
189
227
  planko_list_tasks(projectName: "Work", search: "invoice", limit: 20)
228
+ planko_list_tasks(boardName: "Time Planko", kanbanColumnName: "In Progress")
229
+ planko_list_sticky_notes(showCompleted: false)
230
+ planko_list_all(search: "orçamento", limit: 20)
190
231
  planko_list_notes(search: "meeting", showCompleted: false)
191
232
  planko_view_task(taskId: "665f...c0")
192
233
  planko_view_note(taskId: "665f...aa")
@@ -226,11 +267,23 @@ shared automation should only ever touch a single project.
226
267
 
227
268
  When set, it changes behavior as follows:
228
269
 
229
- - **Create** (`create_task` / `create_note`): the new item is always created in the
270
+ - **Create** (`create_task` / `create_note` / `create_sticky_note`) and **Recommend**
271
+ (`recommend_task`): the new item (or the suggested task) always targets the
230
272
  locked project; any `projectName` the caller passes is ignored (and not resolved).
231
- - **List** (`list_tasks` / `list_notes`): always scoped to the locked project
232
- (ignoring `projectName`/`projectId`), which yields the all-members listing for
233
- that project. Combine with `assigneeId` to narrow to one member.
273
+ A recommendation's response says so when that happens. Note that `priority`,
274
+ `parentId`, `boardId` and `kanbanColumnId` on create/recommend are NOT stripped
275
+ under a lock (unlike the list filters): a fabricated id is rejected by the backend
276
+ with a `400` rather than silently misplacing the item.
277
+ - **List** (`list_tasks` / `list_notes` / `list_sticky_notes` / `list_all`): always
278
+ scoped to the locked project (ignoring `projectName`/`projectId`), which yields
279
+ the all-members listing for that project. The `priority`, `projectName`,
280
+ `projectId`, `assigneeId`, `parentId`, `boardId` and `kanbanColumnId` filters are
281
+ **not offered** under a lock (and dropped if forced) — GPT-class callers reliably
282
+ fabricate them with plausible-but-wrong non-blank values that silently zero the
283
+ result. Narrow to one member with **`assigneeName`** (their name/email, matched
284
+ client-side against the owner) and to a board/column with **`boardName`** /
285
+ **`kanbanColumnName`** (resolved against the key owner's boards) instead; omit
286
+ them for all members / all boards.
234
287
  - **Edit** (`edit_task` / `edit_note`): if the caller supplies a `projectId`, it is
235
288
  forced back to the locked project (an edit can never move a task out of it). If no
236
289
  project field is supplied, the project is left unchanged.