clokio-mcp 0.13.1 → 0.13.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/README.md +1 -1
- package/dist/tools/employees.js +14 -5
- package/dist/tools/tasks.js +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ are marked mutating (deletes are `destructive`).
|
|
|
75
75
|
| **Tasks** | list (with `compact` / `sort` / `updated_since`), get (with `comments_limit`), create, update, delete, bulk update, set assignees, list/add/edit comments, list/upload/download attachments, activity, list/add/remove dependencies, set custom field |
|
|
76
76
|
| **Projects & clients** | list projects, project statuses, project custom fields, project contacts, get client, add client contact |
|
|
77
77
|
| **Reference** | task statuses, task labels, locations, list webhooks (read-only), whoami |
|
|
78
|
-
| **Employees** | list (name search), lookup by PIN, task-stats, inbox, create, set status |
|
|
78
|
+
| **Employees** | list (name search), lookup by PIN, task-stats, inbox (mentions, new assignments, others' status changes), create, set status |
|
|
79
79
|
| **Attendance** | daily, range, per-employee, monthly summary, clock in/out, break start/end, time entries, leaves, leave balances |
|
|
80
80
|
|
|
81
81
|
### Conventions
|
package/dist/tools/employees.js
CHANGED
|
@@ -73,16 +73,25 @@ export function registerEmployeeTools(server, config) {
|
|
|
73
73
|
});
|
|
74
74
|
registerTool(server, config, {
|
|
75
75
|
name: 'clokio_get_inbox',
|
|
76
|
-
description: 'What needs one person\'s attention: mentions_waiting (comments that @-mention them and
|
|
77
|
-
'NOT replied to yet
|
|
78
|
-
'
|
|
79
|
-
'
|
|
76
|
+
description: 'What needs one person\'s attention, in three lists: mentions_waiting (comments that @-mention them and ' +
|
|
77
|
+
'that they have NOT replied to yet; mentions on closed tasks are excluded), newly_assigned (tasks ' +
|
|
78
|
+
'assigned to them in the window), and status_changes (status moves on tasks they hold or created, made ' +
|
|
79
|
+
'by SOMEONE ELSE - their own moves and task-creation rows are excluded). This is how you find that ' +
|
|
80
|
+
'someone asked a question or moved your work, without scanning the board. `since` defaults to 14 days ' +
|
|
81
|
+
'(max 90). status_changes is capped by `limit` (default 100, max 500); the response sets ' +
|
|
82
|
+
'status_changes_truncated=true when more exist past the cap. To answer for the KEY OWNER, pass their ' +
|
|
83
|
+
'own employee_code (from clokio_whoami).',
|
|
80
84
|
schema: {
|
|
81
85
|
employee_code: employeeCode,
|
|
82
86
|
since: z.string().optional().describe('ISO-8601 or YYYY-MM-DD. Only items after this. Default 14 days ago'),
|
|
87
|
+
limit: z
|
|
88
|
+
.number()
|
|
89
|
+
.int()
|
|
90
|
+
.optional()
|
|
91
|
+
.describe('Max status_changes to return (default 100, max 500). status_changes_truncated flags overflow'),
|
|
83
92
|
},
|
|
84
93
|
handler: (args, cfg) => request(cfg, `/employees/${seg(args.employee_code)}/inbox`, {
|
|
85
|
-
query: { since: args.since },
|
|
94
|
+
query: { since: args.since, limit: args.limit },
|
|
86
95
|
}),
|
|
87
96
|
});
|
|
88
97
|
registerTool(server, config, {
|
package/dist/tools/tasks.js
CHANGED
|
@@ -46,9 +46,11 @@ export function registerTaskTools(server, config) {
|
|
|
46
46
|
compact: z
|
|
47
47
|
.boolean()
|
|
48
48
|
.optional()
|
|
49
|
-
.describe('STRONGLY PREFERRED when scanning. Returns id, title, status, priority,
|
|
50
|
-
'
|
|
51
|
-
'
|
|
49
|
+
.describe('STRONGLY PREFERRED when scanning. Returns a slim row - id, title, status, priority, ' +
|
|
50
|
+
'due_date, parent_id, project_id, assignee_codes (employee_code strings), labels (names) ' +
|
|
51
|
+
'and updated_at - dropping the HTML description and flattening the nested project/assignee ' +
|
|
52
|
+
'objects to ids. Resolve a project_id with clokio_list_projects, and fetch the one task you ' +
|
|
53
|
+
'actually need in full with clokio_get_task (its URL is /tasks/{id}/view).'),
|
|
52
54
|
sort: z
|
|
53
55
|
.enum([
|
|
54
56
|
'due_date',
|
package/package.json
CHANGED