Ensure Clockify task
clockify_ensure_taskFind a task by name in a Clockify project, or create it if absent, to sync external labels like GitHub issues.
Instructions
Finds a task by name under a project or creates it (e.g. sync a GitHub label). Pass config_root as that repo's git toplevel when this MCP is user-scoped.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"name": "<name>"
},
"name": "clockify_ensure_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Task name (e.g. GitHub label name). | |
| project_id | Yes | Clockify project ID. | |
| config_root | No | Absolute git toplevel of the repo that contains .clockify/config.yml. Resolve once per session with `git rev-parse --show-toplevel` from the working directory (open tabs are not required); reuse that string on later calls unless the repo or focused root changed. Do not pass a multi-root .code-workspace folder. | |
| workspace_id | No | Workspace ID override. |