mcp-tasker 1.0.0__tar.gz
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.
- mcp_tasker-1.0.0/LICENSE +21 -0
- mcp_tasker-1.0.0/PKG-INFO +259 -0
- mcp_tasker-1.0.0/README.md +215 -0
- mcp_tasker-1.0.0/pyproject.toml +55 -0
- mcp_tasker-1.0.0/src/tasker/__init__.py +3 -0
- mcp_tasker-1.0.0/src/tasker/base_types.py +57 -0
- mcp_tasker-1.0.0/src/tasker/cli/__init__.py +8 -0
- mcp_tasker-1.0.0/src/tasker/cli/_common.py +138 -0
- mcp_tasker-1.0.0/src/tasker/cli/_create_commands.py +103 -0
- mcp_tasker-1.0.0/src/tasker/cli/_mcp_commands.py +25 -0
- mcp_tasker-1.0.0/src/tasker/cli/_organize_commands.py +186 -0
- mcp_tasker-1.0.0/src/tasker/cli/_task_commands.py +328 -0
- mcp_tasker-1.0.0/src/tasker/cli/_view_commands.py +160 -0
- mcp_tasker-1.0.0/src/tasker/exceptions.py +40 -0
- mcp_tasker-1.0.0/src/tasker/main.py +4 -0
- mcp_tasker-1.0.0/src/tasker/mcp/__init__.py +19 -0
- mcp_tasker-1.0.0/src/tasker/mcp/_common.py +15 -0
- mcp_tasker-1.0.0/src/tasker/mcp/_create_methods.py +23 -0
- mcp_tasker-1.0.0/src/tasker/mcp/_model.py +41 -0
- mcp_tasker-1.0.0/src/tasker/mcp/_status_methods.py +32 -0
- mcp_tasker-1.0.0/src/tasker/mcp/_view_methods.py +46 -0
- mcp_tasker-1.0.0/src/tasker/parse.py +326 -0
- mcp_tasker-1.0.0/src/tasker/render.py +44 -0
- mcp_tasker-1.0.0/src/tasker/repo/__init__.py +7 -0
- mcp_tasker-1.0.0/src/tasker/repo/_archive_task.py +77 -0
- mcp_tasker-1.0.0/src/tasker/repo/_move_task.py +133 -0
- mcp_tasker-1.0.0/src/tasker/repo/_task_loader.py +291 -0
- mcp_tasker-1.0.0/src/tasker/repo/_task_repo.py +216 -0
- mcp_tasker-1.0.0/src/tasker/repo/_utils.py +147 -0
- mcp_tasker-1.0.0/src/tasker/templates/task.md.j2 +38 -0
- mcp_tasker-1.0.0/src/tasker/utils.py +89 -0
mcp_tasker-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) [2026] [Evgeniy A. Cymbalyuk <cimbaluk@gmail.com>]
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mcp-tasker
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Simple file-based task tracker for git repos
|
|
5
|
+
License: MIT License
|
|
6
|
+
|
|
7
|
+
Copyright (c) [2026] [Evgeniy A. Cymbalyuk <cimbaluk@gmail.com>]
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
in the Software without restriction, including without limitation the rights
|
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
furnished to do so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
SOFTWARE.
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Author: Evgeniy A. Cymbalyuk
|
|
28
|
+
Author-email: cimbaluk@gmail.com
|
|
29
|
+
Requires-Python: >=3.10
|
|
30
|
+
Classifier: License :: Other/Proprietary License
|
|
31
|
+
Classifier: Programming Language :: Python :: 3
|
|
32
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
33
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
35
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
37
|
+
Requires-Dist: jinja2 (>=3.1.6,<4.0.0)
|
|
38
|
+
Requires-Dist: mcp (>=1.26.0,<2.0.0)
|
|
39
|
+
Requires-Dist: pydantic (>=2.0)
|
|
40
|
+
Requires-Dist: typer (>=0.12.0)
|
|
41
|
+
Requires-Dist: typer-di (>=0.1.0)
|
|
42
|
+
Project-URL: Repository, https://github.com/greendwin/mcp-tasker
|
|
43
|
+
Description-Content-Type: text/markdown
|
|
44
|
+
|
|
45
|
+
# Tasker
|
|
46
|
+
|
|
47
|
+
[](https://github.com/greendwin/mcp-tasker/actions/workflows/ci.yml)
|
|
48
|
+
|
|
49
|
+
A simple file-based task tracker for git repositories. Tasks are stored as plain Markdown files inside a `tasker/` directory, tracked alongside your code with git.
|
|
50
|
+
|
|
51
|
+
## Installation
|
|
52
|
+
|
|
53
|
+
Install with [pipx](https://pipx.pypa.io/) (recommended — installs in an isolated environment):
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
pipx install mcp-tasker
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Or with pip:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
pip install mcp-tasker
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
For development (requires [Poetry](https://python-poetry.org/)):
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
git clone https://github.com/greendwin/mcp-tasker.git
|
|
69
|
+
cd mcp-tasker
|
|
70
|
+
poetry install --with dev
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Quick Start
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Create a story
|
|
77
|
+
tasker new "Build authentication"
|
|
78
|
+
|
|
79
|
+
# Add subtasks
|
|
80
|
+
tasker add s01 "Design login flow"
|
|
81
|
+
tasker add s01 "Implement JWT tokens" --details "Use RS256 signing"
|
|
82
|
+
|
|
83
|
+
# Work on a task
|
|
84
|
+
tasker start s01t01
|
|
85
|
+
|
|
86
|
+
# View what's on your plate
|
|
87
|
+
tasker list
|
|
88
|
+
|
|
89
|
+
# Mark tasks done
|
|
90
|
+
tasker done s01t01
|
|
91
|
+
|
|
92
|
+
# Edit a task in your editor
|
|
93
|
+
tasker edit s01t02
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Tasks are stored as Markdown in `tasker/` and committed with your code:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
tasker/
|
|
100
|
+
s01-build-authentication/
|
|
101
|
+
README.md
|
|
102
|
+
s01t01-design-login-flow.md
|
|
103
|
+
s01t02-implement-jwt-tokens.md
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Usage
|
|
107
|
+
|
|
108
|
+
### Create tasks
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
tasker new <title> # new root story
|
|
112
|
+
tasker new <title> --details "..." --slug <slug> # with description and slug
|
|
113
|
+
tasker add <parent-id> <title> # inline subtask
|
|
114
|
+
tasker add <parent-id> <title> --details "..." # subtask with description
|
|
115
|
+
tasker add-many <parent-id> # add multiple subtasks interactively
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Update status
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
tasker start <task-id>... # mark in-progress
|
|
122
|
+
tasker done <task-id>... # mark done
|
|
123
|
+
tasker cancel <task-id>... # cancel
|
|
124
|
+
tasker reset <task-id>... # reset to pending
|
|
125
|
+
|
|
126
|
+
# Force-close a parent with open subtasks
|
|
127
|
+
tasker done <task-id> --force
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### View tasks
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
tasker list # all open root tasks
|
|
134
|
+
tasker list -a # include closed tasks
|
|
135
|
+
tasker list <task-id> # subtasks of a specific task
|
|
136
|
+
tasker view <task-id> # full task details
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Edit tasks
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
tasker edit <task-id> # open in $EDITOR
|
|
143
|
+
tasker edit <task-id> --title "New title"
|
|
144
|
+
tasker edit <task-id> --details "New description"
|
|
145
|
+
tasker edit <task-id> --slug new-slug
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Organize
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
tasker move <task-id> --parent <new-parent> # reparent
|
|
152
|
+
tasker move <task-id> --root # promote to story
|
|
153
|
+
tasker archive <task-id> # archive completed story
|
|
154
|
+
tasker archive --closed # archive all closed stories
|
|
155
|
+
tasker unarchive <task-id> # restore from archive
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Shortcuts
|
|
159
|
+
|
|
160
|
+
Reference recent tasks without typing full IDs:
|
|
161
|
+
|
|
162
|
+
| Shortcut | Meaning |
|
|
163
|
+
|---|---|
|
|
164
|
+
| `q` | Last referenced task |
|
|
165
|
+
| `q01` | Subtask 01 of recent |
|
|
166
|
+
| `p` | Parent of recent |
|
|
167
|
+
| `p03` | Sibling 03 via parent |
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
tasker view s01t02 # sets recent = s01t02
|
|
171
|
+
tasker start q # starts s01t02
|
|
172
|
+
tasker view p # views s01 (parent)
|
|
173
|
+
tasker done q01 # marks s01t0201 done
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## MCP Server
|
|
177
|
+
|
|
178
|
+
`tasker` can run as a [Model Context Protocol](https://modelcontextprotocol.io/) server, allowing AI agents to manage your tasks directly.
|
|
179
|
+
|
|
180
|
+
### Configure in Claude Code
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
claude mcp add tasker -- tasker mcp
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### Configure per-project (`.mcp.json`)
|
|
187
|
+
|
|
188
|
+
```json
|
|
189
|
+
{
|
|
190
|
+
"mcpServers": {
|
|
191
|
+
"tasker": {
|
|
192
|
+
"command": "tasker",
|
|
193
|
+
"args": ["mcp"]
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
If running from a Poetry project:
|
|
200
|
+
|
|
201
|
+
```json
|
|
202
|
+
{
|
|
203
|
+
"mcpServers": {
|
|
204
|
+
"tasker": {
|
|
205
|
+
"command": "poetry",
|
|
206
|
+
"args": ["run", "tasker", "mcp"]
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### HTTP transport
|
|
213
|
+
|
|
214
|
+
For network-accessible clients, start with `--port`:
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
tasker mcp --port 8080
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Available tools
|
|
221
|
+
|
|
222
|
+
Once connected, the MCP server exposes:
|
|
223
|
+
|
|
224
|
+
| Tool | Description |
|
|
225
|
+
|---|---|
|
|
226
|
+
| `create_task` | Create a root task or subtask |
|
|
227
|
+
| `list_tasks` | List all root tasks |
|
|
228
|
+
| `view_task` | View task details and subtasks |
|
|
229
|
+
| `start_task` | Mark task in-progress |
|
|
230
|
+
| `reset_task` | Reset task to pending |
|
|
231
|
+
| `finish_task` | Mark task done |
|
|
232
|
+
|
|
233
|
+
## Development
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
poetry install --with dev
|
|
237
|
+
|
|
238
|
+
# Run all checks (lint + tests)
|
|
239
|
+
poetry run tox
|
|
240
|
+
|
|
241
|
+
# Run tests only
|
|
242
|
+
poetry run tox -e test
|
|
243
|
+
|
|
244
|
+
# Lint (black, isort, flake8, mypy)
|
|
245
|
+
poetry run tox -e lint
|
|
246
|
+
|
|
247
|
+
# Format code
|
|
248
|
+
black src tests
|
|
249
|
+
isort src tests
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
## Requirements
|
|
253
|
+
|
|
254
|
+
- Python >= 3.10
|
|
255
|
+
|
|
256
|
+
## Release Notes
|
|
257
|
+
|
|
258
|
+
### 1.0.0
|
|
259
|
+
- `pip` release
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# Tasker
|
|
2
|
+
|
|
3
|
+
[](https://github.com/greendwin/mcp-tasker/actions/workflows/ci.yml)
|
|
4
|
+
|
|
5
|
+
A simple file-based task tracker for git repositories. Tasks are stored as plain Markdown files inside a `tasker/` directory, tracked alongside your code with git.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Install with [pipx](https://pipx.pypa.io/) (recommended — installs in an isolated environment):
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pipx install mcp-tasker
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Or with pip:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install mcp-tasker
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
For development (requires [Poetry](https://python-poetry.org/)):
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
git clone https://github.com/greendwin/mcp-tasker.git
|
|
25
|
+
cd mcp-tasker
|
|
26
|
+
poetry install --with dev
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Quick Start
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# Create a story
|
|
33
|
+
tasker new "Build authentication"
|
|
34
|
+
|
|
35
|
+
# Add subtasks
|
|
36
|
+
tasker add s01 "Design login flow"
|
|
37
|
+
tasker add s01 "Implement JWT tokens" --details "Use RS256 signing"
|
|
38
|
+
|
|
39
|
+
# Work on a task
|
|
40
|
+
tasker start s01t01
|
|
41
|
+
|
|
42
|
+
# View what's on your plate
|
|
43
|
+
tasker list
|
|
44
|
+
|
|
45
|
+
# Mark tasks done
|
|
46
|
+
tasker done s01t01
|
|
47
|
+
|
|
48
|
+
# Edit a task in your editor
|
|
49
|
+
tasker edit s01t02
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Tasks are stored as Markdown in `tasker/` and committed with your code:
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
tasker/
|
|
56
|
+
s01-build-authentication/
|
|
57
|
+
README.md
|
|
58
|
+
s01t01-design-login-flow.md
|
|
59
|
+
s01t02-implement-jwt-tokens.md
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Usage
|
|
63
|
+
|
|
64
|
+
### Create tasks
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
tasker new <title> # new root story
|
|
68
|
+
tasker new <title> --details "..." --slug <slug> # with description and slug
|
|
69
|
+
tasker add <parent-id> <title> # inline subtask
|
|
70
|
+
tasker add <parent-id> <title> --details "..." # subtask with description
|
|
71
|
+
tasker add-many <parent-id> # add multiple subtasks interactively
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Update status
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
tasker start <task-id>... # mark in-progress
|
|
78
|
+
tasker done <task-id>... # mark done
|
|
79
|
+
tasker cancel <task-id>... # cancel
|
|
80
|
+
tasker reset <task-id>... # reset to pending
|
|
81
|
+
|
|
82
|
+
# Force-close a parent with open subtasks
|
|
83
|
+
tasker done <task-id> --force
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### View tasks
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
tasker list # all open root tasks
|
|
90
|
+
tasker list -a # include closed tasks
|
|
91
|
+
tasker list <task-id> # subtasks of a specific task
|
|
92
|
+
tasker view <task-id> # full task details
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Edit tasks
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
tasker edit <task-id> # open in $EDITOR
|
|
99
|
+
tasker edit <task-id> --title "New title"
|
|
100
|
+
tasker edit <task-id> --details "New description"
|
|
101
|
+
tasker edit <task-id> --slug new-slug
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Organize
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
tasker move <task-id> --parent <new-parent> # reparent
|
|
108
|
+
tasker move <task-id> --root # promote to story
|
|
109
|
+
tasker archive <task-id> # archive completed story
|
|
110
|
+
tasker archive --closed # archive all closed stories
|
|
111
|
+
tasker unarchive <task-id> # restore from archive
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Shortcuts
|
|
115
|
+
|
|
116
|
+
Reference recent tasks without typing full IDs:
|
|
117
|
+
|
|
118
|
+
| Shortcut | Meaning |
|
|
119
|
+
|---|---|
|
|
120
|
+
| `q` | Last referenced task |
|
|
121
|
+
| `q01` | Subtask 01 of recent |
|
|
122
|
+
| `p` | Parent of recent |
|
|
123
|
+
| `p03` | Sibling 03 via parent |
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
tasker view s01t02 # sets recent = s01t02
|
|
127
|
+
tasker start q # starts s01t02
|
|
128
|
+
tasker view p # views s01 (parent)
|
|
129
|
+
tasker done q01 # marks s01t0201 done
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## MCP Server
|
|
133
|
+
|
|
134
|
+
`tasker` can run as a [Model Context Protocol](https://modelcontextprotocol.io/) server, allowing AI agents to manage your tasks directly.
|
|
135
|
+
|
|
136
|
+
### Configure in Claude Code
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
claude mcp add tasker -- tasker mcp
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Configure per-project (`.mcp.json`)
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"mcpServers": {
|
|
147
|
+
"tasker": {
|
|
148
|
+
"command": "tasker",
|
|
149
|
+
"args": ["mcp"]
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
If running from a Poetry project:
|
|
156
|
+
|
|
157
|
+
```json
|
|
158
|
+
{
|
|
159
|
+
"mcpServers": {
|
|
160
|
+
"tasker": {
|
|
161
|
+
"command": "poetry",
|
|
162
|
+
"args": ["run", "tasker", "mcp"]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### HTTP transport
|
|
169
|
+
|
|
170
|
+
For network-accessible clients, start with `--port`:
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
tasker mcp --port 8080
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Available tools
|
|
177
|
+
|
|
178
|
+
Once connected, the MCP server exposes:
|
|
179
|
+
|
|
180
|
+
| Tool | Description |
|
|
181
|
+
|---|---|
|
|
182
|
+
| `create_task` | Create a root task or subtask |
|
|
183
|
+
| `list_tasks` | List all root tasks |
|
|
184
|
+
| `view_task` | View task details and subtasks |
|
|
185
|
+
| `start_task` | Mark task in-progress |
|
|
186
|
+
| `reset_task` | Reset task to pending |
|
|
187
|
+
| `finish_task` | Mark task done |
|
|
188
|
+
|
|
189
|
+
## Development
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
poetry install --with dev
|
|
193
|
+
|
|
194
|
+
# Run all checks (lint + tests)
|
|
195
|
+
poetry run tox
|
|
196
|
+
|
|
197
|
+
# Run tests only
|
|
198
|
+
poetry run tox -e test
|
|
199
|
+
|
|
200
|
+
# Lint (black, isort, flake8, mypy)
|
|
201
|
+
poetry run tox -e lint
|
|
202
|
+
|
|
203
|
+
# Format code
|
|
204
|
+
black src tests
|
|
205
|
+
isort src tests
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## Requirements
|
|
209
|
+
|
|
210
|
+
- Python >= 3.10
|
|
211
|
+
|
|
212
|
+
## Release Notes
|
|
213
|
+
|
|
214
|
+
### 1.0.0
|
|
215
|
+
- `pip` release
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "mcp-tasker"
|
|
3
|
+
version = "1.0.0"
|
|
4
|
+
description = "Simple file-based task tracker for git repos"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = {file = "LICENSE"}
|
|
7
|
+
urls = {repository = "https://github.com/greendwin/mcp-tasker"}
|
|
8
|
+
authors = [
|
|
9
|
+
{name = "Evgeniy A. Cymbalyuk", email = "cimbaluk@gmail.com"}
|
|
10
|
+
]
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
dependencies = [
|
|
13
|
+
"typer>=0.12.0",
|
|
14
|
+
"typer-di>=0.1.0",
|
|
15
|
+
"jinja2 (>=3.1.6,<4.0.0)",
|
|
16
|
+
"pydantic (>=2.0)",
|
|
17
|
+
"mcp (>=1.26.0,<2.0.0)",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.scripts]
|
|
21
|
+
tasker = "tasker.main:app"
|
|
22
|
+
|
|
23
|
+
[[tool.poetry.packages]]
|
|
24
|
+
include = "tasker"
|
|
25
|
+
from = "src"
|
|
26
|
+
|
|
27
|
+
[build-system]
|
|
28
|
+
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
|
29
|
+
build-backend = "poetry.core.masonry.api"
|
|
30
|
+
|
|
31
|
+
[tool.poetry.group.dev.dependencies]
|
|
32
|
+
pytest = ">=8.0"
|
|
33
|
+
pytest-cov = ">=5.0"
|
|
34
|
+
tox = ">=4.0"
|
|
35
|
+
mypy = ">=1.10"
|
|
36
|
+
black = ">=24.0"
|
|
37
|
+
isort = ">=5.13"
|
|
38
|
+
flake8 = ">=7.0"
|
|
39
|
+
pyfakefs = ">=6.1"
|
|
40
|
+
|
|
41
|
+
[tool.mypy]
|
|
42
|
+
strict = true
|
|
43
|
+
python_version = "3.10"
|
|
44
|
+
|
|
45
|
+
[tool.black]
|
|
46
|
+
line-length = 88
|
|
47
|
+
target-version = ["py310"]
|
|
48
|
+
|
|
49
|
+
[tool.isort]
|
|
50
|
+
profile = "black"
|
|
51
|
+
line_length = 88
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
[tool.pytest.ini_options]
|
|
55
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from enum import Enum
|
|
4
|
+
|
|
5
|
+
from pydantic import BaseModel
|
|
6
|
+
|
|
7
|
+
EXTENDED_TASK_FILENAME = "README.md"
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TaskStatus(str, Enum):
|
|
11
|
+
PENDING = "pending"
|
|
12
|
+
IN_PROGRESS = "in-progress"
|
|
13
|
+
DONE = "done"
|
|
14
|
+
CANCELLED = "cancelled"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class Task(BaseModel):
|
|
18
|
+
id: str # unique id that can be used to reference a task
|
|
19
|
+
title: str # short summary of a task
|
|
20
|
+
status: TaskStatus = TaskStatus.PENDING
|
|
21
|
+
|
|
22
|
+
# file-task fields (None/defaults for inline tasks)
|
|
23
|
+
slug: str | None = None
|
|
24
|
+
extended: bool = False
|
|
25
|
+
description: str | None = None
|
|
26
|
+
extra_sections: str | None = None
|
|
27
|
+
subtasks: list[Task] = []
|
|
28
|
+
|
|
29
|
+
@property
|
|
30
|
+
def is_inline(self) -> bool:
|
|
31
|
+
return self.slug is None
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def is_closed(self) -> bool:
|
|
35
|
+
return self.status in (TaskStatus.DONE, TaskStatus.CANCELLED)
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def ref(self) -> str:
|
|
39
|
+
if self.slug is not None:
|
|
40
|
+
return build_task_ref(self.id, self.slug)
|
|
41
|
+
return self.id
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def build_task_ref(task_id: str, slug: str) -> str:
|
|
45
|
+
return f"{task_id}-{slug}"
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def is_root_task_id(task_id: str) -> bool:
|
|
49
|
+
assert "-" not in task_id, "task id must be provided, not task ref"
|
|
50
|
+
# HACK: tasks are in form s123t4567, root tasks are always s123 without `t` suffix
|
|
51
|
+
return "t" not in task_id
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def is_nonleaf_task(task: Task) -> bool:
|
|
55
|
+
if not task.is_inline and task.subtasks:
|
|
56
|
+
return True
|
|
57
|
+
return False
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
__all__ = ["app"]
|
|
2
|
+
|
|
3
|
+
from . import _create_commands as _create_commands # noqa: F401
|
|
4
|
+
from . import _mcp_commands as _mcp_commands # noqa: F401
|
|
5
|
+
from . import _organize_commands as _organize_commands # noqa: F401
|
|
6
|
+
from . import _task_commands as _task_commands # noqa: F401
|
|
7
|
+
from . import _view_commands as _view_commands # noqa: F401
|
|
8
|
+
from ._common import app
|