@claydiffrient/repo-tasks-mcp-server 0.1.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/LICENSE-APACHE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Clay Diffrient
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/LICENSE-MIT ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Clay Diffrient
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.
package/README.md ADDED
@@ -0,0 +1,373 @@
1
+ # repo-tasks MCP Server
2
+
3
+ Model Context Protocol (MCP) server for [repo-tasks](../README.md) task management. This server allows LLMs like Claude to interact with your tasks through natural language.
4
+
5
+ ## Features
6
+
7
+ The MCP server exposes all repo-tasks functionality through MCP tools:
8
+
9
+ ### Task Management
10
+ - **list_tasks** - List tasks by status, priority, or tag
11
+ - **show_task** - Display detailed task information
12
+ - **create_task** - Create new tasks with title, priority, tags, and notes
13
+ - **update_task** - Update existing task properties
14
+ - **move_task** - Move tasks between statuses
15
+ - **start_task** - Begin work on a task (move to in-progress + create git branch)
16
+
17
+ ### Search & Discovery
18
+ - **search_tasks** - Full-text search across all tasks with regex support
19
+
20
+ ### Version Control
21
+ - **save_tasks** - Commit task changes to git
22
+
23
+ ### Editor Integration
24
+ - **open_task** - Open task in default editor
25
+
26
+ ## Installation
27
+
28
+ ### From npm (Recommended)
29
+
30
+ Install the MCP server globally:
31
+
32
+ ```bash
33
+ npm install -g @claydiffrient/repo-tasks-mcp-server
34
+ ```
35
+
36
+ This will make the `repo-tasks-mcp` command available in your PATH.
37
+
38
+ ### Prerequisites
39
+
40
+ The MCP server requires the **repo-tasks CLI** to be installed. Install it using one of these methods:
41
+
42
+ ```bash
43
+ # Homebrew (macOS/Linux)
44
+ brew install claydiffrient/tap/repo-tasks
45
+
46
+ # Cargo (all platforms)
47
+ cargo install repo-tasks
48
+
49
+ # From source
50
+ git clone https://github.com/claydiffrient/repo-tasks.git
51
+ cd repo-tasks
52
+ cargo install --path .
53
+ ```
54
+
55
+ **Note:** Node.js v18 or later is required for the MCP server.
56
+
57
+ ### From Source (Development)
58
+
59
+ If you want to build from source or contribute:
60
+
61
+ 1. Clone the repository:
62
+ ```bash
63
+ git clone https://github.com/claydiffrient/repo-tasks.git
64
+ cd repo-tasks/mcp-server
65
+ ```
66
+
67
+ 2. Install dependencies:
68
+ ```bash
69
+ npm install
70
+ ```
71
+
72
+ 3. Build the TypeScript code:
73
+ ```bash
74
+ npm run build
75
+ ```
76
+
77
+ 4. Test the server:
78
+ ```bash
79
+ node dist/index.js
80
+ ```
81
+
82
+ ## Configuration
83
+
84
+ ### Claude Code
85
+
86
+ Add to your Claude Code MCP settings (`~/.config/claude-code/mcp_settings.json`):
87
+
88
+ **If installed via npm:**
89
+
90
+ ```json
91
+ {
92
+ "mcpServers": {
93
+ "repo-tasks": {
94
+ "command": "repo-tasks-mcp"
95
+ }
96
+ }
97
+ }
98
+ ```
99
+
100
+ **If running from source:**
101
+
102
+ ```json
103
+ {
104
+ "mcpServers": {
105
+ "repo-tasks": {
106
+ "command": "node",
107
+ "args": [
108
+ "/absolute/path/to/repo-tasks/mcp-server/dist/index.js"
109
+ ]
110
+ }
111
+ }
112
+ }
113
+ ```
114
+
115
+ Replace `/absolute/path/to/repo-tasks` with the actual path to your repo-tasks repository.
116
+
117
+ After adding the configuration, restart Claude Code or reload the MCP servers.
118
+
119
+ ### Claude Desktop
120
+
121
+ The server also works with Claude Desktop. Add to `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS:
122
+
123
+ **If installed via npm:**
124
+
125
+ ```json
126
+ {
127
+ "mcpServers": {
128
+ "repo-tasks": {
129
+ "command": "repo-tasks-mcp"
130
+ }
131
+ }
132
+ }
133
+ ```
134
+
135
+ **If running from source:**
136
+
137
+ ```json
138
+ {
139
+ "mcpServers": {
140
+ "repo-tasks": {
141
+ "command": "node",
142
+ "args": [
143
+ "/absolute/path/to/repo-tasks/mcp-server/dist/index.js"
144
+ ]
145
+ }
146
+ }
147
+ }
148
+ ```
149
+
150
+ ### Other MCP Clients
151
+
152
+ The server uses stdio transport and follows the standard MCP protocol. Configure your MCP client to run:
153
+
154
+ **If installed via npm:**
155
+
156
+ ```bash
157
+ repo-tasks-mcp
158
+ ```
159
+
160
+ **If running from source:**
161
+
162
+ ```bash
163
+ node /path/to/mcp-server/dist/index.js
164
+ ```
165
+
166
+ ## Usage Examples
167
+
168
+ Once configured, you can interact with repo-tasks through natural language in Claude Code:
169
+
170
+ ### Creating Tasks
171
+ ```
172
+ Create a new high priority task titled "Add user authentication" with tags "security,backend"
173
+ ```
174
+
175
+ ### Listing and Searching
176
+ ```
177
+ Show me all tasks in the todo status
178
+
179
+ Search for tasks related to "authentication"
180
+
181
+ List all high priority tasks
182
+ ```
183
+
184
+ ### Working on Tasks
185
+ ```
186
+ Start working on task 20260110184347
187
+
188
+ Move task create-start-command to testing
189
+
190
+ Show details for task 20260110201217
191
+ ```
192
+
193
+ ### Version Control
194
+ ```
195
+ Save all task changes with message "Update sprint tasks"
196
+ ```
197
+
198
+ ## Tool Reference
199
+
200
+ ### list_tasks
201
+
202
+ List tasks with optional filters.
203
+
204
+ **Parameters:**
205
+ - `status` (string, optional): Filter by status (todo, in-progress, testing, done). Default: "todo"
206
+ - `priority` (string, optional): Filter by priority (Low, Medium, High, Critical)
207
+ - `tag` (string, optional): Filter by tag
208
+
209
+ **Example:**
210
+ ```typescript
211
+ {
212
+ "status": "in-progress",
213
+ "priority": "High"
214
+ }
215
+ ```
216
+
217
+ ### show_task
218
+
219
+ Show detailed information about a specific task.
220
+
221
+ **Parameters:**
222
+ - `task_id` (string, required): Task ID or slug
223
+
224
+ **Example:**
225
+ ```typescript
226
+ {
227
+ "task_id": "20260110184347"
228
+ }
229
+ ```
230
+
231
+ ### create_task
232
+
233
+ Create a new task.
234
+
235
+ **Parameters:**
236
+ - `title` (string, required): Task title
237
+ - `priority` (string, optional): Priority level. Default: "Medium"
238
+ - `tags` (string, optional): Comma-separated tags
239
+ - `notes` (string, optional): Task description/notes
240
+
241
+ **Example:**
242
+ ```typescript
243
+ {
244
+ "title": "Implement user authentication",
245
+ "priority": "High",
246
+ "tags": "security,backend",
247
+ "notes": "Add JWT-based authentication system"
248
+ }
249
+ ```
250
+
251
+ ### update_task
252
+
253
+ Update task properties (interactive).
254
+
255
+ **Parameters:**
256
+ - `task_id` (string, required): Task ID or slug
257
+
258
+ ### move_task
259
+
260
+ Move a task to a different status.
261
+
262
+ **Parameters:**
263
+ - `task_id` (string, required): Task ID or slug
264
+ - `new_status` (string, required): New status (todo, in-progress, testing, done)
265
+
266
+ **Example:**
267
+ ```typescript
268
+ {
269
+ "task_id": "20260110184347",
270
+ "new_status": "testing"
271
+ }
272
+ ```
273
+
274
+ ### start_task
275
+
276
+ Start working on a task (recommended for beginning work).
277
+
278
+ Moves the task to in-progress and creates a git branch with format `{id}-{slug}`.
279
+
280
+ **Parameters:**
281
+ - `task_id` (string, required): Task ID or slug
282
+
283
+ **Example:**
284
+ ```typescript
285
+ {
286
+ "task_id": "20260110184347"
287
+ }
288
+ ```
289
+
290
+ ### search_tasks
291
+
292
+ Search tasks by content.
293
+
294
+ **Parameters:**
295
+ - `query` (string, required): Search query (regex supported)
296
+
297
+ **Example:**
298
+ ```typescript
299
+ {
300
+ "query": "authentication"
301
+ }
302
+ ```
303
+
304
+ ### save_tasks
305
+
306
+ Commit task changes to git.
307
+
308
+ **Parameters:**
309
+ - `message` (string, optional): Commit message (auto-generated if not provided)
310
+
311
+ **Example:**
312
+ ```typescript
313
+ {
314
+ "message": "Update sprint tasks"
315
+ }
316
+ ```
317
+
318
+ ### open_task
319
+
320
+ Open a task in the default editor.
321
+
322
+ **Parameters:**
323
+ - `task_id` (string, required): Task ID or slug
324
+
325
+ ## Development
326
+
327
+ ### Watch Mode
328
+
329
+ Run TypeScript compiler in watch mode:
330
+
331
+ ```bash
332
+ npm run watch
333
+ ```
334
+
335
+ ### Testing
336
+
337
+ Test the server manually using the MCP inspector:
338
+
339
+ ```bash
340
+ npx @modelcontextprotocol/inspector node dist/index.js
341
+ ```
342
+
343
+ ## Troubleshooting
344
+
345
+ ### "repo-tasks binary not found"
346
+
347
+ The server looks for the repo-tasks binary in:
348
+ 1. System PATH
349
+ 2. `./target/release/repo-tasks` (local release build)
350
+ 3. `./target/debug/repo-tasks` (local debug build)
351
+
352
+ Ensure repo-tasks is installed or built from source.
353
+
354
+ ### Changes not reflected
355
+
356
+ After modifying the TypeScript code, rebuild:
357
+
358
+ ```bash
359
+ npm run build
360
+ ```
361
+
362
+ Then restart Claude Code to reload the MCP server.
363
+
364
+ ### Server not showing in Claude
365
+
366
+ 1. Check the configuration file path (`~/.config/claude-code/mcp_settings.json`)
367
+ 2. Verify the absolute path to `dist/index.js` is correct
368
+ 3. Check Claude Code logs for errors
369
+ 4. Restart Claude Code after configuration changes
370
+
371
+ ## License
372
+
373
+ Same as repo-tasks: MIT OR Apache-2.0
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Post-install check to verify repo-tasks CLI is installed.
4
+ * This script is designed to provide helpful guidance rather than fail the installation.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=check-binary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-binary.d.ts","sourceRoot":"","sources":["../src/check-binary.ts"],"names":[],"mappings":";AAEA;;;GAGG"}
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Post-install check to verify repo-tasks CLI is installed.
4
+ * This script is designed to provide helpful guidance rather than fail the installation.
5
+ */
6
+ import { execSync } from "child_process";
7
+ // ANSI color codes
8
+ const YELLOW = "\x1b[33m";
9
+ const BLUE = "\x1b[34m";
10
+ const RESET = "\x1b[0m";
11
+ const BOLD = "\x1b[1m";
12
+ function checkBinary() {
13
+ try {
14
+ execSync("command -v repo-tasks", { stdio: "ignore" });
15
+ return true;
16
+ }
17
+ catch {
18
+ try {
19
+ execSync("command -v tasks", { stdio: "ignore" });
20
+ return true;
21
+ }
22
+ catch {
23
+ return false;
24
+ }
25
+ }
26
+ }
27
+ function printWarning() {
28
+ console.error(`
29
+ ${YELLOW}${BOLD}⚠️ repo-tasks CLI not found${RESET}
30
+
31
+ ${BOLD}The @claydiffrient/repo-tasks-mcp-server package requires the repo-tasks CLI to be installed.${RESET}
32
+
33
+ Install it using one of these methods:
34
+
35
+ ${BLUE}•${RESET} ${BOLD}Homebrew:${RESET} brew install claydiffrient/tap/repo-tasks
36
+ ${BLUE}•${RESET} ${BOLD}Cargo:${RESET} cargo install repo-tasks
37
+ ${BLUE}•${RESET} ${BOLD}From source:${RESET}
38
+ git clone https://github.com/claydiffrient/repo-tasks.git
39
+ cd repo-tasks
40
+ cargo install --path .
41
+
42
+ ${BOLD}For more information:${RESET} ${BLUE}https://github.com/claydiffrient/repo-tasks${RESET}
43
+ `);
44
+ }
45
+ // Main check
46
+ if (!checkBinary()) {
47
+ printWarning();
48
+ }
49
+ // Exit with 0 (success) so we don't fail the npm install
50
+ process.exit(0);
51
+ //# sourceMappingURL=check-binary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-binary.js","sourceRoot":"","sources":["../src/check-binary.ts"],"names":[],"mappings":";AAEA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,mBAAmB;AACnB,MAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,MAAM,IAAI,GAAG,UAAU,CAAC;AACxB,MAAM,KAAK,GAAG,SAAS,CAAC;AACxB,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB,SAAS,WAAW;IAClB,IAAI,CAAC;QACH,QAAQ,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;QACvD,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,IAAI,CAAC;YACH,QAAQ,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;YAClD,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,YAAY;IACnB,OAAO,CAAC,KAAK,CAAC;EACd,MAAM,GAAG,IAAI,+BAA+B,KAAK;;EAEjD,IAAI,gGAAgG,KAAK;;;;IAIvG,IAAI,IAAI,KAAK,IAAI,IAAI,YAAY,KAAK;IACtC,IAAI,IAAI,KAAK,IAAI,IAAI,SAAS,KAAK;IACnC,IAAI,IAAI,KAAK,IAAI,IAAI,eAAe,KAAK;;;;;EAK3C,IAAI,wBAAwB,KAAK,IAAI,IAAI,8CAA8C,KAAK;CAC7F,CAAC,CAAC;AACH,CAAC;AAED,aAAa;AACb,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;IACnB,YAAY,EAAE,CAAC;AACjB,CAAC;AAED,yDAAyD;AACzD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1,312 @@
1
+ #!/usr/bin/env node
2
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
3
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
+ import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
5
+ import { execSync } from "child_process";
6
+ import { existsSync } from "fs";
7
+ import { resolve } from "path";
8
+ // Find the repo-tasks binary
9
+ function findRepoTasksBinary() {
10
+ // Try common locations
11
+ const locations = [
12
+ "repo-tasks", // In PATH
13
+ "./target/release/repo-tasks", // Local release build
14
+ "./target/debug/repo-tasks", // Local debug build
15
+ ];
16
+ for (const loc of locations) {
17
+ try {
18
+ execSync(`command -v ${loc}`, { stdio: "ignore" });
19
+ return loc;
20
+ }
21
+ catch {
22
+ if (existsSync(loc)) {
23
+ return resolve(loc);
24
+ }
25
+ }
26
+ }
27
+ throw new Error("repo-tasks binary not found. Please install it or build from source.");
28
+ }
29
+ const REPO_TASKS_BIN = findRepoTasksBinary();
30
+ // Execute repo-tasks command
31
+ function executeCommand(args) {
32
+ try {
33
+ return execSync(`${REPO_TASKS_BIN} ${args.join(" ")}`, {
34
+ encoding: "utf-8",
35
+ stdio: ["pipe", "pipe", "pipe"],
36
+ });
37
+ }
38
+ catch (error) {
39
+ throw new Error(error.stderr || error.message);
40
+ }
41
+ }
42
+ // Define all available tools
43
+ const TOOLS = [
44
+ {
45
+ name: "list_tasks",
46
+ description: "List tasks in a given status (todo, in-progress, testing, done). Returns tasks with their IDs, titles, priorities, and tags.",
47
+ inputSchema: {
48
+ type: "object",
49
+ properties: {
50
+ status: {
51
+ type: "string",
52
+ description: "Status to filter by (todo, in-progress, testing, done)",
53
+ default: "todo",
54
+ },
55
+ priority: {
56
+ type: "string",
57
+ description: "Filter by priority (Low, Medium, High, Critical)",
58
+ },
59
+ tag: {
60
+ type: "string",
61
+ description: "Filter by tag",
62
+ },
63
+ },
64
+ },
65
+ },
66
+ {
67
+ name: "show_task",
68
+ description: "Show detailed information about a specific task including title, status, priority, tags, and full description.",
69
+ inputSchema: {
70
+ type: "object",
71
+ properties: {
72
+ task_id: {
73
+ type: "string",
74
+ description: "Task ID or slug to show",
75
+ },
76
+ },
77
+ required: ["task_id"],
78
+ },
79
+ },
80
+ {
81
+ name: "create_task",
82
+ description: "Create a new task with the given title, priority, and optional tags/notes.",
83
+ inputSchema: {
84
+ type: "object",
85
+ properties: {
86
+ title: {
87
+ type: "string",
88
+ description: "Task title",
89
+ },
90
+ priority: {
91
+ type: "string",
92
+ description: "Priority level (Low, Medium, High, Critical)",
93
+ default: "Medium",
94
+ },
95
+ tags: {
96
+ type: "string",
97
+ description: "Comma-separated tags",
98
+ },
99
+ notes: {
100
+ type: "string",
101
+ description: "Task description/notes",
102
+ },
103
+ },
104
+ required: ["title"],
105
+ },
106
+ },
107
+ {
108
+ name: "update_task",
109
+ description: "Update task properties (title, priority, tags). Opens an interactive editor.",
110
+ inputSchema: {
111
+ type: "object",
112
+ properties: {
113
+ task_id: {
114
+ type: "string",
115
+ description: "Task ID or slug to update",
116
+ },
117
+ },
118
+ required: ["task_id"],
119
+ },
120
+ },
121
+ {
122
+ name: "move_task",
123
+ description: "Move a task to a different status (todo, in-progress, testing, done).",
124
+ inputSchema: {
125
+ type: "object",
126
+ properties: {
127
+ task_id: {
128
+ type: "string",
129
+ description: "Task ID or slug to move",
130
+ },
131
+ new_status: {
132
+ type: "string",
133
+ description: "New status (todo, in-progress, testing, done)",
134
+ enum: ["todo", "in-progress", "testing", "done"],
135
+ },
136
+ },
137
+ required: ["task_id", "new_status"],
138
+ },
139
+ },
140
+ {
141
+ name: "start_task",
142
+ description: "Start working on a task: moves it to in-progress and creates a git branch with format {id}-{slug}. This is the recommended way to begin work on a task.",
143
+ inputSchema: {
144
+ type: "object",
145
+ properties: {
146
+ task_id: {
147
+ type: "string",
148
+ description: "Task ID or slug to start working on",
149
+ },
150
+ },
151
+ required: ["task_id"],
152
+ },
153
+ },
154
+ {
155
+ name: "search_tasks",
156
+ description: "Search for tasks by content using regex patterns. Searches across all task files.",
157
+ inputSchema: {
158
+ type: "object",
159
+ properties: {
160
+ query: {
161
+ type: "string",
162
+ description: "Search query (regex supported)",
163
+ },
164
+ },
165
+ required: ["query"],
166
+ },
167
+ },
168
+ {
169
+ name: "save_tasks",
170
+ description: "Commit changes to task files using git. Use this after creating or modifying tasks to save them to version control.",
171
+ inputSchema: {
172
+ type: "object",
173
+ properties: {
174
+ message: {
175
+ type: "string",
176
+ description: "Commit message (auto-generated if not provided)",
177
+ },
178
+ },
179
+ },
180
+ },
181
+ {
182
+ name: "open_task",
183
+ description: "Open a task file in the default editor for manual editing.",
184
+ inputSchema: {
185
+ type: "object",
186
+ properties: {
187
+ task_id: {
188
+ type: "string",
189
+ description: "Task ID or slug to open",
190
+ },
191
+ },
192
+ required: ["task_id"],
193
+ },
194
+ },
195
+ ];
196
+ // Create server instance
197
+ const server = new Server({
198
+ name: "repo-tasks",
199
+ version: "0.1.0",
200
+ }, {
201
+ capabilities: {
202
+ tools: {},
203
+ },
204
+ });
205
+ // Handle list tools request
206
+ server.setRequestHandler(ListToolsRequestSchema, async () => {
207
+ return { tools: TOOLS };
208
+ });
209
+ // Handle tool execution
210
+ server.setRequestHandler(CallToolRequestSchema, async (request) => {
211
+ const { name, arguments: args } = request.params;
212
+ try {
213
+ switch (name) {
214
+ case "list_tasks": {
215
+ const cmdArgs = ["list"];
216
+ if (args?.status)
217
+ cmdArgs.push(args.status);
218
+ if (args?.priority)
219
+ cmdArgs.push("--priority", args.priority);
220
+ if (args?.tag)
221
+ cmdArgs.push("--tag", args.tag);
222
+ const output = executeCommand(cmdArgs);
223
+ return {
224
+ content: [{ type: "text", text: output }],
225
+ };
226
+ }
227
+ case "show_task": {
228
+ const output = executeCommand(["show", args?.task_id]);
229
+ return {
230
+ content: [{ type: "text", text: output }],
231
+ };
232
+ }
233
+ case "create_task": {
234
+ const cmdArgs = ["new"];
235
+ if (args?.title)
236
+ cmdArgs.push("--title", args.title);
237
+ if (args?.priority)
238
+ cmdArgs.push("--priority", args.priority);
239
+ if (args?.tags)
240
+ cmdArgs.push("--tags", args.tags);
241
+ if (args?.notes)
242
+ cmdArgs.push("--notes", args.notes);
243
+ const output = executeCommand(cmdArgs);
244
+ return {
245
+ content: [{ type: "text", text: output }],
246
+ };
247
+ }
248
+ case "update_task": {
249
+ const output = executeCommand(["update", args?.task_id]);
250
+ return {
251
+ content: [{ type: "text", text: output }],
252
+ };
253
+ }
254
+ case "move_task": {
255
+ const output = executeCommand([
256
+ "move",
257
+ args?.task_id,
258
+ args?.new_status,
259
+ ]);
260
+ return {
261
+ content: [{ type: "text", text: output }],
262
+ };
263
+ }
264
+ case "start_task": {
265
+ const output = executeCommand(["start", args?.task_id]);
266
+ return {
267
+ content: [{ type: "text", text: output }],
268
+ };
269
+ }
270
+ case "search_tasks": {
271
+ const output = executeCommand(["search", args?.query]);
272
+ return {
273
+ content: [{ type: "text", text: output }],
274
+ };
275
+ }
276
+ case "save_tasks": {
277
+ const cmdArgs = ["save"];
278
+ if (args?.message)
279
+ cmdArgs.push("--message", args.message);
280
+ const output = executeCommand(cmdArgs);
281
+ return {
282
+ content: [{ type: "text", text: output }],
283
+ };
284
+ }
285
+ case "open_task": {
286
+ const output = executeCommand(["open", args?.task_id]);
287
+ return {
288
+ content: [{ type: "text", text: output }],
289
+ };
290
+ }
291
+ default:
292
+ throw new Error(`Unknown tool: ${name}`);
293
+ }
294
+ }
295
+ catch (error) {
296
+ return {
297
+ content: [{ type: "text", text: `Error: ${error.message}` }],
298
+ isError: true,
299
+ };
300
+ }
301
+ });
302
+ // Start the server
303
+ async function main() {
304
+ const transport = new StdioServerTransport();
305
+ await server.connect(transport);
306
+ console.error("repo-tasks MCP server running on stdio");
307
+ }
308
+ main().catch((error) => {
309
+ console.error("Fatal error:", error);
310
+ process.exit(1);
311
+ });
312
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GAEvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,6BAA6B;AAC7B,SAAS,mBAAmB;IAC1B,uBAAuB;IACvB,MAAM,SAAS,GAAG;QAChB,YAAY,EAAE,UAAU;QACxB,6BAA6B,EAAE,sBAAsB;QACrD,2BAA2B,EAAE,oBAAoB;KAClD,CAAC;IAEF,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;QAC5B,IAAI,CAAC;YACH,QAAQ,CAAC,cAAc,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;YACnD,OAAO,GAAG,CAAC;QACb,CAAC;QAAC,MAAM,CAAC;YACP,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;gBACpB,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC;YACtB,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAC;AACJ,CAAC;AAED,MAAM,cAAc,GAAG,mBAAmB,EAAE,CAAC;AAE7C,6BAA6B;AAC7B,SAAS,cAAc,CAAC,IAAc;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AAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@claydiffrient/repo-tasks-mcp-server",
3
+ "version": "0.1.0",
4
+ "description": "MCP server for repo-tasks task management",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "repo-tasks-mcp": "dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist/",
12
+ "README.md",
13
+ "LICENSE-MIT",
14
+ "LICENSE-APACHE"
15
+ ],
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "watch": "tsc --watch",
19
+ "prepare": "npm run build",
20
+ "postinstall": "node dist/check-binary.js || true"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/claydiffrient/repo-tasks.git",
25
+ "directory": "mcp-server"
26
+ },
27
+ "homepage": "https://github.com/claydiffrient/repo-tasks/tree/main/mcp-server",
28
+ "bugs": {
29
+ "url": "https://github.com/claydiffrient/repo-tasks/issues"
30
+ },
31
+ "keywords": [
32
+ "mcp",
33
+ "task-management",
34
+ "repo-tasks",
35
+ "llm",
36
+ "ai"
37
+ ],
38
+ "author": "Clay Diffrient",
39
+ "license": "MIT OR Apache-2.0",
40
+ "engines": {
41
+ "node": ">=18.0.0"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "dependencies": {
47
+ "@modelcontextprotocol/sdk": "^1.0.0"
48
+ },
49
+ "devDependencies": {
50
+ "@types/node": "^20.0.0",
51
+ "typescript": "^5.3.0"
52
+ }
53
+ }