mcp-task-server 2.1.0 → 3.0.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 +193 -14
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -0
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +4 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +7 -0
- package/dist/context.js.map +1 -1
- package/dist/index.js +107 -4
- package/dist/index.js.map +1 -1
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +110 -12
- package/dist/storage.js.map +1 -1
- package/dist/templates.d.ts.map +1 -1
- package/dist/templates.js +136 -7
- package/dist/templates.js.map +1 -1
- package/dist/tools.d.ts +72 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +323 -6
- package/dist/tools.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ Invoke any tool with `call <tool_name>`:
|
|
|
55
55
|
|
|
56
56
|
| Command | Description |
|
|
57
57
|
|---------|-------------|
|
|
58
|
-
| `call help` | List all
|
|
58
|
+
| `call help` | List all 33 available tools |
|
|
59
59
|
| `call list_tasks` | Show all tasks |
|
|
60
60
|
| `call next_task` | Get recommended next task |
|
|
61
61
|
| `call diagnose` | Check server configuration |
|
|
@@ -73,35 +73,44 @@ flowchart TB
|
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
subgraph MCP Task Server
|
|
76
|
-
B[
|
|
76
|
+
B[33 Tools]
|
|
77
77
|
C[Preferences Engine]
|
|
78
|
+
P[Project Context]
|
|
78
79
|
end
|
|
79
80
|
|
|
80
81
|
subgraph Your Machine
|
|
81
82
|
D[~/.cursor/shared-context.json]
|
|
82
83
|
E[memory_bank/tasks/]
|
|
83
|
-
F[memory_bank/execution/progress
|
|
84
|
+
F[memory_bank/execution/progress*.md]
|
|
85
|
+
G[~/.cursor/content-context.md]
|
|
84
86
|
end
|
|
85
87
|
|
|
86
88
|
A <-->|MCP Protocol| B
|
|
87
89
|
B --> C
|
|
90
|
+
B --> P
|
|
88
91
|
C -->|read/write| D
|
|
92
|
+
P -->|filter tasks| E
|
|
89
93
|
B -->|read/write| E
|
|
90
94
|
B -->|auto-sync| F
|
|
95
|
+
B -->|read/write| G
|
|
91
96
|
D -->|inject into responses| A
|
|
92
97
|
```
|
|
93
98
|
|
|
94
99
|
## Features
|
|
95
100
|
|
|
96
|
-
- **
|
|
101
|
+
- **33 MCP Tools**: Comprehensive task management and coordination
|
|
102
|
+
- **Multi-Project Support**: Manage tasks across multiple projects from one workspace with automatic filtering
|
|
97
103
|
- **Auto Workspace Detection**: Works globally without per-project config
|
|
98
104
|
- **Multi-Agent Coordination**: Support for Planner, Worker, and Judge roles
|
|
99
105
|
- **Dependency Tracking**: Tasks can depend on other tasks
|
|
100
106
|
- **Priority Levels**: Critical, High, Medium, Low
|
|
101
|
-
- **Scalable Storage**: Individual task files with JSON registry and markdown
|
|
107
|
+
- **Scalable Storage**: Individual task files with JSON registry and per-project markdown summaries
|
|
102
108
|
- **Prompt-Based Operations**: PRD parsing, task expansion, complexity analysis
|
|
103
109
|
- **Shared Context**: Reads user preferences from `~/.cursor/shared-context.json` to personalise prompts
|
|
104
|
-
- **
|
|
110
|
+
- **Content Context**: Global content inventory at `~/.cursor/content-context.md` for content creators
|
|
111
|
+
- **Project Initialisation**: Scaffolds 27 template files across agent-kit, memory_bank, and cursor rules
|
|
112
|
+
- **Wellness Tracking**: Break reminder system via cursor rules, using session tracking in shared memory
|
|
113
|
+
- **Work Stats Integration**: Fetch activity data from stats dashboard for work/break recommendations
|
|
105
114
|
|
|
106
115
|
## Quick Start
|
|
107
116
|
|
|
@@ -118,6 +127,32 @@ call add_task({ title: "Set up development environment" })
|
|
|
118
127
|
call next_task
|
|
119
128
|
```
|
|
120
129
|
|
|
130
|
+
## Multi-Project Workflow
|
|
131
|
+
|
|
132
|
+
Manage tasks across multiple projects from a single workspace:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
# Set project context
|
|
136
|
+
call set_project({ project: "coach-platform" })
|
|
137
|
+
|
|
138
|
+
# All task operations now filter by project
|
|
139
|
+
call list_tasks # Only shows coach-platform tasks
|
|
140
|
+
call add_task({ title: "Add auth" }) # Creates in coach-platform
|
|
141
|
+
|
|
142
|
+
# Switch to another project
|
|
143
|
+
call set_project({ project: "obsidian-data-hub" })
|
|
144
|
+
call list_tasks # Only shows obsidian-data-hub tasks
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Progress files are generated per-project:
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
memory_bank/execution/
|
|
151
|
+
├── progress.md # Combined view (all projects)
|
|
152
|
+
├── progress-coach-platform.md # Coach platform tasks only
|
|
153
|
+
└── progress-obsidian-data-hub.md # Obsidian data hub tasks only
|
|
154
|
+
```
|
|
155
|
+
|
|
121
156
|
## Shared Context & Preferences
|
|
122
157
|
|
|
123
158
|
The server reads `~/.cursor/shared-context.json` for user preferences and automatically injects them into tool responses and prompts.
|
|
@@ -138,10 +173,13 @@ flowchart LR
|
|
|
138
173
|
Before creating or reviewing content, agents should:
|
|
139
174
|
|
|
140
175
|
1. Call `show_memory` to check for user preferences
|
|
141
|
-
2. Look for
|
|
176
|
+
2. Look for recognised memory categories (see below)
|
|
142
177
|
3. Apply discovered preferences to all content
|
|
143
178
|
|
|
144
|
-
This is enforced by the Cursor rules
|
|
179
|
+
This is enforced by the Cursor rules created by `init_project`:
|
|
180
|
+
- `.cursor/rules/agent-workflow.mdc` - Task management protocol
|
|
181
|
+
- `.cursor/rules/wellness-check.mdc` - Break reminders based on time/duration
|
|
182
|
+
- `.cursor/rules/shared-context-sync.mdc` - Memory sync guidance
|
|
145
183
|
|
|
146
184
|
### Memory Storage Architecture
|
|
147
185
|
|
|
@@ -177,6 +215,16 @@ Memories use simple sequential IDs (1, 2, 3...) managed by the server:
|
|
|
177
215
|
| `sync` | Create or update by title match (recommended) |
|
|
178
216
|
| `migrate` | One-time conversion of old IDs to sequential |
|
|
179
217
|
|
|
218
|
+
### Recognised Memory Titles
|
|
219
|
+
|
|
220
|
+
| Title (case-insensitive) | Purpose |
|
|
221
|
+
|--------------------------|---------|
|
|
222
|
+
| `identity` or `values` | User context for prompts |
|
|
223
|
+
| `writing preferences` | Formatting, style, avoided words |
|
|
224
|
+
| `workflow` or `memory bank` | Task management preferences |
|
|
225
|
+
| `wellness preferences` | Break reminder settings and thresholds |
|
|
226
|
+
| `current_project` | Active project for multi-project filtering |
|
|
227
|
+
|
|
180
228
|
The `sync` action is recommended because it matches by title, avoiding duplicates:
|
|
181
229
|
|
|
182
230
|
```bash
|
|
@@ -245,6 +293,7 @@ flowchart TB
|
|
|
245
293
|
| `list_tasks`, `get_task`, `add_task`, `update_task`, `next_task` | Brief hint in response |
|
|
246
294
|
| `parse_prd`, `expand_task`, `research_task` | Full context in generated prompt |
|
|
247
295
|
| `check_compliance` | All preferences for validation |
|
|
296
|
+
| Wellness cursor rule | Session tracking and break reminders |
|
|
248
297
|
|
|
249
298
|
### Compliance Checking
|
|
250
299
|
|
|
@@ -415,7 +464,7 @@ grep -r "warning\|error" ~/Library/Application\ Support/Cursor/logs/*/window*/ex
|
|
|
415
464
|
|
|
416
465
|
Key log messages:
|
|
417
466
|
- `No workspace folders found` → Empty workspace issue
|
|
418
|
-
- `Found
|
|
467
|
+
- `Found 33 tools` → Server connected successfully
|
|
419
468
|
- `Workspace: /path` → Shows detected workspace
|
|
420
469
|
|
|
421
470
|
## Configuration
|
|
@@ -427,6 +476,7 @@ Configure via environment variables:
|
|
|
427
476
|
| `TASK_MD_PATH` | `memory_bank/execution/progress.md` | Path to markdown summary |
|
|
428
477
|
| `TASK_JSON_PATH` | `memory_bank/tasks/tasks.json` | Path to JSON registry |
|
|
429
478
|
| `TASK_DIR` | `memory_bank/tasks` | Directory for task files |
|
|
479
|
+
| `STATS_API_URL` | `https://stats-dev.reids.net.au` | Work stats dashboard API URL |
|
|
430
480
|
|
|
431
481
|
## Storage Architecture
|
|
432
482
|
|
|
@@ -473,9 +523,14 @@ Full implementation details here...
|
|
|
473
523
|
### Description: Create initial project structure
|
|
474
524
|
```
|
|
475
525
|
|
|
476
|
-
### 3. Progress Summary
|
|
526
|
+
### 3. Progress Summary
|
|
477
527
|
|
|
478
|
-
|
|
528
|
+
The server generates progress summaries automatically:
|
|
529
|
+
|
|
530
|
+
- `memory_bank/execution/progress.md` - Combined view of all projects
|
|
531
|
+
- `memory_bank/execution/progress-{project}.md` - Per-project progress files
|
|
532
|
+
|
|
533
|
+
**Combined Progress** (shows all projects):
|
|
479
534
|
|
|
480
535
|
```markdown
|
|
481
536
|
# Implementation Progress
|
|
@@ -549,6 +604,104 @@ call init_project({ force: true })
|
|
|
549
604
|
| `check_compliance` | Check file/folder against user preferences from shared context | ✓ full |
|
|
550
605
|
| `analyse_project` | Analyse project structure and suggest memory_bank updates | ✓ full |
|
|
551
606
|
|
|
607
|
+
### Project Context Tools
|
|
608
|
+
|
|
609
|
+
| Tool | Description |
|
|
610
|
+
|------|-------------|
|
|
611
|
+
| `set_project` | Set current project context for session |
|
|
612
|
+
| `get_project` | Get current project and list all known projects |
|
|
613
|
+
| `tag_all_tasks` | Bulk tag tasks with a project name (for migration) |
|
|
614
|
+
|
|
615
|
+
```bash
|
|
616
|
+
# Set project context for the session
|
|
617
|
+
call set_project({ project: "coach-platform" })
|
|
618
|
+
# Returns: { project: "coach-platform", is_new_project: false, known_projects: [...] }
|
|
619
|
+
|
|
620
|
+
# Check current project and see all projects
|
|
621
|
+
call get_project
|
|
622
|
+
# Returns: { current_project: "coach-platform", known_projects: [...], project_stats: {...} }
|
|
623
|
+
|
|
624
|
+
# Bulk tag all unassigned tasks with a project
|
|
625
|
+
call tag_all_tasks({ project: "coach-platform" })
|
|
626
|
+
# Returns: { tagged: 100, skipped: 0, message: "Tagged 100 tasks..." }
|
|
627
|
+
|
|
628
|
+
# Overwrite existing project assignments
|
|
629
|
+
call tag_all_tasks({ project: "new-project", overwrite: true })
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
All task operations (`list_tasks`, `add_task`, `next_task`) automatically filter by the current project context.
|
|
633
|
+
|
|
634
|
+
### Content Context Tools
|
|
635
|
+
|
|
636
|
+
| Tool | Description |
|
|
637
|
+
|------|-------------|
|
|
638
|
+
| `show_content_context` | Read global content context file |
|
|
639
|
+
| `update_content_context` | Update a section of the content context |
|
|
640
|
+
|
|
641
|
+
```bash
|
|
642
|
+
# Read content context
|
|
643
|
+
call show_content_context
|
|
644
|
+
# Returns: { exists: true, path: "~/.cursor/content-context.md", content: "..." }
|
|
645
|
+
|
|
646
|
+
# Update a section
|
|
647
|
+
call update_content_context({ section: "Published Content", content: "- Post 1\n- Post 2" })
|
|
648
|
+
```
|
|
649
|
+
|
|
650
|
+
The content context file (`~/.cursor/content-context.md`) stores content inventory, themes, and locations for content creators.
|
|
651
|
+
|
|
652
|
+
### Work Stats Tools
|
|
653
|
+
|
|
654
|
+
| Tool | Description |
|
|
655
|
+
|------|-------------|
|
|
656
|
+
| `stats` | Fetch work activity statistics from stats dashboard |
|
|
657
|
+
|
|
658
|
+
```bash
|
|
659
|
+
# Quick check - today's hours and recommendation
|
|
660
|
+
call stats
|
|
661
|
+
# Returns: { today: { hours: 3.5 }, recommendation: { status: "continue", message: "..." } }
|
|
662
|
+
|
|
663
|
+
# Detailed with costs and billing period
|
|
664
|
+
call stats({ detailed: true })
|
|
665
|
+
# Returns: Full stats including costs, period, and totals
|
|
666
|
+
```
|
|
667
|
+
|
|
668
|
+
Returns data from your stats dashboard (`STATS_API_URL` env var, defaults to `stats-dev.reids.net.au`):
|
|
669
|
+
|
|
670
|
+
| Field | Description |
|
|
671
|
+
|-------|-------------|
|
|
672
|
+
| `today` | Hours, commits, pipelines for today |
|
|
673
|
+
| `thisWeek` | Weekly totals |
|
|
674
|
+
| `streak` | Current and longest streak |
|
|
675
|
+
| `recommendation` | continue/pause/stop with message |
|
|
676
|
+
| `costs` (detailed) | Usage and subscription costs |
|
|
677
|
+
| `period` (detailed) | Billing cycle start/end dates |
|
|
678
|
+
| `totals` (detailed) | Active days, estimated hours, projects |
|
|
679
|
+
|
|
680
|
+
**File Format:**
|
|
681
|
+
|
|
682
|
+
```markdown
|
|
683
|
+
# Content Context
|
|
684
|
+
|
|
685
|
+
## Current State
|
|
686
|
+
| Property | Value |
|
|
687
|
+
|----------|-------|
|
|
688
|
+
| Last update | 2026-02-01 |
|
|
689
|
+
|
|
690
|
+
## Published Content
|
|
691
|
+
- Post 1: Title (2026-01-15)
|
|
692
|
+
- Post 2: Title (2026-01-20)
|
|
693
|
+
|
|
694
|
+
## Themes Covered
|
|
695
|
+
- Theme A
|
|
696
|
+
- Theme B
|
|
697
|
+
|
|
698
|
+
## Content Locations
|
|
699
|
+
| Type | Location |
|
|
700
|
+
|------|----------|
|
|
701
|
+
| Draft posts | ~/drafts |
|
|
702
|
+
| Published | ~/published |
|
|
703
|
+
```
|
|
704
|
+
|
|
552
705
|
### Utility Tools
|
|
553
706
|
|
|
554
707
|
| Tool | Description |
|
|
@@ -562,7 +715,7 @@ call init_project({ force: true })
|
|
|
562
715
|
```bash
|
|
563
716
|
# List all tools
|
|
564
717
|
call help
|
|
565
|
-
# Returns: { server, version, usage, tool_count:
|
|
718
|
+
# Returns: { server, version, usage, tool_count: 33, tools: [...] }
|
|
566
719
|
|
|
567
720
|
# Get help for specific tool
|
|
568
721
|
call help({ tool: "update_memory" })
|
|
@@ -673,6 +826,7 @@ After running `init_project`:
|
|
|
673
826
|
your-project/
|
|
674
827
|
├── agent-kit/
|
|
675
828
|
│ ├── AGENT_RULES.md # Role definitions and permissions
|
|
829
|
+
│ ├── KICKOFF.md # Session startup checklist
|
|
676
830
|
│ ├── TASKS.md # Task reference (points to memory_bank)
|
|
677
831
|
│ ├── HANDOFF.md # Handoff protocol reference
|
|
678
832
|
│ └── SHARED_CONTEXT.md # Shared context documentation
|
|
@@ -707,10 +861,12 @@ your-project/
|
|
|
707
861
|
│ └── ...
|
|
708
862
|
└── .cursor/
|
|
709
863
|
└── rules/
|
|
710
|
-
|
|
864
|
+
├── agent-workflow.mdc # Task management protocol
|
|
865
|
+
├── wellness-check.mdc # Break reminders
|
|
866
|
+
└── shared-context-sync.mdc # Memory sync guidance
|
|
711
867
|
```
|
|
712
868
|
|
|
713
|
-
The full structure includes
|
|
869
|
+
The full structure includes 27 template files covering architecture, context, execution tracking, and cursor rules.
|
|
714
870
|
|
|
715
871
|
## Migration from v1.x
|
|
716
872
|
|
|
@@ -795,6 +951,29 @@ npm run dev
|
|
|
795
951
|
npm pack # Creates .tgz file for inspection
|
|
796
952
|
```
|
|
797
953
|
|
|
954
|
+
### Testing Local Changes
|
|
955
|
+
|
|
956
|
+
To test changes without publishing, create a per-project MCP config that points to your local build:
|
|
957
|
+
|
|
958
|
+
```json
|
|
959
|
+
// .cursor/mcp.json (in this project)
|
|
960
|
+
{
|
|
961
|
+
"mcpServers": {
|
|
962
|
+
"task-server": {
|
|
963
|
+
"command": "node",
|
|
964
|
+
"args": ["/Users/andy/Projects/tools/mcp-task-server/dist/index.js"]
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
```
|
|
969
|
+
|
|
970
|
+
This overrides the global config only for this workspace. Other projects continue using the npm version.
|
|
971
|
+
|
|
972
|
+
After making changes:
|
|
973
|
+
1. Run `npm run build`
|
|
974
|
+
2. Reload Cursor (`Cmd+Shift+P` → "Developer: Reload Window")
|
|
975
|
+
3. Test with `call help` to verify tools are available
|
|
976
|
+
|
|
798
977
|
## License
|
|
799
978
|
|
|
800
979
|
MIT
|
package/dist/config.d.ts
CHANGED
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGpC,eAAO,MAAM,aAAa,QAAgE,CAAC;AAE3F,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,IAAI,kBAAkB,CA8BxD;AAKD;;GAEG;AACH,wBAAgB,YAAY,IAAI,kBAAkB,CAKjD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAmBlC;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAKxE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAGtE"}
|
package/dist/config.js
CHANGED
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAGrC,0BAA0B;AAC1B,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,gCAAgC,CAAC;AAO3F;;;;;;;;GAQG;AACH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C;QACjC,OAAO,YAAY,CAAC;IACtB,CAAC;IACD,OAAO,GAAG,MAAM,CAAC,aAAa,IAAI,YAAY,EAAE,CAAC;AACnD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,MAAc,EAAE,MAAc;IAC5D,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACzC,OAAO,WAAW,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,QAAQ,SAAS,QAAQ,MAAM,CAAC,CAAC;AACxE,CAAC"}
|
package/dist/context.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ export declare function getUserIdentity(): string | null;
|
|
|
31
31
|
* Get workflow preferences from shared context
|
|
32
32
|
*/
|
|
33
33
|
export declare function getWorkflowPreferences(): string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Get wellness preferences from shared context
|
|
36
|
+
*/
|
|
37
|
+
export declare function getWellnessPreferences(): string | null;
|
|
34
38
|
/**
|
|
35
39
|
* Clear the cached context (useful for testing or reloading)
|
|
36
40
|
*/
|
package/dist/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,eAAe,EAAE,YAAY,EAAE,CAAC;CACjC;AAID;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,aAAa,GAAG,IAAI,CAgBxD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAKxE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,GAAG,IAAI,CAOvD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,I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jC,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClE,KAAK,EAAE,MAAM,CAAC;CACf,CA4BA"}
|
package/dist/context.js
CHANGED
|
@@ -61,6 +61,13 @@ export function getWorkflowPreferences() {
|
|
|
61
61
|
const memory = getMemoryByTitle("workflow") || getMemoryByTitle("memory bank");
|
|
62
62
|
return memory?.content || null;
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Get wellness preferences from shared context
|
|
66
|
+
*/
|
|
67
|
+
export function getWellnessPreferences() {
|
|
68
|
+
const memory = getMemoryByTitle("wellness preferences");
|
|
69
|
+
return memory?.content || null;
|
|
70
|
+
}
|
|
64
71
|
/**
|
|
65
72
|
* Clear the cached context (useful for testing or reloading)
|
|
66
73
|
*/
|
package/dist/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAYxE,IAAI,aAAa,GAAyB,IAAI,CAAC;AAE/C;;;GAGG;AACH,MAAM,UAAU,iBAAiB;IAC/B,IAAI,aAAa;QAAE,OAAO,aAAa,CAAC;IAExC,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,qBAAqB,CAAC,CAAC;IAEtE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IA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EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAC3E,CAAC;IAED,MAAM,OAAO,GAA6D,EAAE,CAAC;IAE7E,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;QAC5C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAChC,IAAI,MAAM,CAAC,EAAE,KAAK,KAAK,EAAE,CAAC;YACxB,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;YACxE,MAAM,CAAC,EAAE,GAAG,KAAK,CAAC;QACpB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,iBAAiB,CAAC,GAAG,CAAC,CAAC;IACvB,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;AAChG,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { getConfig, getWorkspace } from "./config.js";
|
|
|
7
7
|
import * as tools from "./tools.js";
|
|
8
8
|
import { loadSharedContext, getWritingPreferences, getUserIdentity, getWorkflowPreferences, clearContextCache, upsertMemory, upsertMemoryByTitle, deleteMemory, generateMemoryId, migrateMemories, } from "./context.js";
|
|
9
9
|
// Version constant - update with each release
|
|
10
|
-
const VERSION = "
|
|
10
|
+
const VERSION = "3.0.0";
|
|
11
11
|
const config = getConfig();
|
|
12
12
|
const workspace = getWorkspace();
|
|
13
13
|
// Always log workspace info on startup for debugging
|
|
@@ -54,7 +54,7 @@ const TOOL_DEFINITIONS = [
|
|
|
54
54
|
// Core Tools
|
|
55
55
|
{
|
|
56
56
|
name: "list_tasks",
|
|
57
|
-
description: "List all tasks, optionally filtered by status or
|
|
57
|
+
description: "List all tasks, optionally filtered by status, assignee, or project. Uses current project context if set.",
|
|
58
58
|
inputSchema: {
|
|
59
59
|
type: "object",
|
|
60
60
|
properties: {
|
|
@@ -67,6 +67,10 @@ const TOOL_DEFINITIONS = [
|
|
|
67
67
|
type: "string",
|
|
68
68
|
description: "Filter tasks by assigned agent",
|
|
69
69
|
},
|
|
70
|
+
project: {
|
|
71
|
+
type: "string",
|
|
72
|
+
description: "Filter by project (defaults to current project context)",
|
|
73
|
+
},
|
|
70
74
|
agent_id: { type: "string", description: "ID of the calling agent (for multi-agent mode)" },
|
|
71
75
|
role: { type: "string", enum: ["planner", "worker", "judge"], description: "Role of the calling agent" },
|
|
72
76
|
},
|
|
@@ -87,7 +91,7 @@ const TOOL_DEFINITIONS = [
|
|
|
87
91
|
},
|
|
88
92
|
{
|
|
89
93
|
name: "add_task",
|
|
90
|
-
description: "Create a new top-level task (Planner role in multi-agent mode)",
|
|
94
|
+
description: "Create a new top-level task. Uses current project context if set. (Planner role in multi-agent mode)",
|
|
91
95
|
inputSchema: {
|
|
92
96
|
type: "object",
|
|
93
97
|
properties: {
|
|
@@ -98,6 +102,7 @@ const TOOL_DEFINITIONS = [
|
|
|
98
102
|
testStrategy: { type: "string", description: "How to verify the task is complete" },
|
|
99
103
|
priority: { type: "string", enum: ["low", "medium", "high", "critical"], default: "medium" },
|
|
100
104
|
dependencies: { type: "array", items: { type: "string" }, description: "IDs of tasks this depends on" },
|
|
105
|
+
project: { type: "string", description: "Project to assign task to (defaults to current project context)" },
|
|
101
106
|
agent_id: { type: "string" },
|
|
102
107
|
role: { type: "string", enum: ["planner", "worker", "judge"] },
|
|
103
108
|
},
|
|
@@ -139,10 +144,11 @@ const TOOL_DEFINITIONS = [
|
|
|
139
144
|
},
|
|
140
145
|
{
|
|
141
146
|
name: "next_task",
|
|
142
|
-
description: "Get the next recommended task based on priority and dependencies",
|
|
147
|
+
description: "Get the next recommended task based on priority and dependencies. Uses current project context if set.",
|
|
143
148
|
inputSchema: {
|
|
144
149
|
type: "object",
|
|
145
150
|
properties: {
|
|
151
|
+
project: { type: "string", description: "Filter by project (defaults to current project context)" },
|
|
146
152
|
agent_id: { type: "string" },
|
|
147
153
|
role: { type: "string", enum: ["planner", "worker", "judge"] },
|
|
148
154
|
},
|
|
@@ -439,6 +445,88 @@ const TOOL_DEFINITIONS = [
|
|
|
439
445
|
},
|
|
440
446
|
},
|
|
441
447
|
},
|
|
448
|
+
// Project Context Tools
|
|
449
|
+
{
|
|
450
|
+
name: "set_project",
|
|
451
|
+
description: "Set the current project context for the session. All subsequent task operations (list_tasks, add_task, next_task) will use this project.",
|
|
452
|
+
inputSchema: {
|
|
453
|
+
type: "object",
|
|
454
|
+
properties: {
|
|
455
|
+
project: {
|
|
456
|
+
type: "string",
|
|
457
|
+
description: "Project name to set as current context",
|
|
458
|
+
},
|
|
459
|
+
},
|
|
460
|
+
required: ["project"],
|
|
461
|
+
},
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
name: "get_project",
|
|
465
|
+
description: "Get the current project context and list of known projects with task counts.",
|
|
466
|
+
inputSchema: {
|
|
467
|
+
type: "object",
|
|
468
|
+
properties: {},
|
|
469
|
+
},
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
name: "tag_all_tasks",
|
|
473
|
+
description: "Bulk tag all tasks (or unassigned tasks) with a project name. Useful for migrating existing tasks to the multi-project system.",
|
|
474
|
+
inputSchema: {
|
|
475
|
+
type: "object",
|
|
476
|
+
properties: {
|
|
477
|
+
project: {
|
|
478
|
+
type: "string",
|
|
479
|
+
description: "Project name to assign to tasks",
|
|
480
|
+
},
|
|
481
|
+
overwrite: {
|
|
482
|
+
type: "boolean",
|
|
483
|
+
description: "If true, overwrite existing project assignments. Default: false (only tag unassigned tasks)",
|
|
484
|
+
},
|
|
485
|
+
},
|
|
486
|
+
required: ["project"],
|
|
487
|
+
},
|
|
488
|
+
},
|
|
489
|
+
// Content Context Tools
|
|
490
|
+
{
|
|
491
|
+
name: "show_content_context",
|
|
492
|
+
description: "Show the global content context file (~/.cursor/content-context.md). Contains content inventory, themes, and locations.",
|
|
493
|
+
inputSchema: {
|
|
494
|
+
type: "object",
|
|
495
|
+
properties: {},
|
|
496
|
+
},
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
name: "update_content_context",
|
|
500
|
+
description: "Update a section of the global content context file. Creates the file if it doesn't exist.",
|
|
501
|
+
inputSchema: {
|
|
502
|
+
type: "object",
|
|
503
|
+
properties: {
|
|
504
|
+
section: {
|
|
505
|
+
type: "string",
|
|
506
|
+
description: "Section name (e.g., 'Published Content', 'Themes Covered', 'Current State')",
|
|
507
|
+
},
|
|
508
|
+
content: {
|
|
509
|
+
type: "string",
|
|
510
|
+
description: "New content for the section",
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
required: ["section", "content"],
|
|
514
|
+
},
|
|
515
|
+
},
|
|
516
|
+
// Work Stats Tools
|
|
517
|
+
{
|
|
518
|
+
name: "stats",
|
|
519
|
+
description: "Fetch work activity statistics from the stats dashboard. Shows today's hours, weekly totals, streak, and work/break recommendations.",
|
|
520
|
+
inputSchema: {
|
|
521
|
+
type: "object",
|
|
522
|
+
properties: {
|
|
523
|
+
detailed: {
|
|
524
|
+
type: "boolean",
|
|
525
|
+
description: "Include cost breakdown and billing period details (default: false)",
|
|
526
|
+
},
|
|
527
|
+
},
|
|
528
|
+
},
|
|
529
|
+
},
|
|
442
530
|
];
|
|
443
531
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
444
532
|
return { tools: TOOL_DEFINITIONS };
|
|
@@ -499,6 +587,21 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
499
587
|
// Project Analysis
|
|
500
588
|
case "analyse_project":
|
|
501
589
|
return tools.analyseProject(config, tools.AnalyseProjectSchema.parse(args));
|
|
590
|
+
// Project Context Tools
|
|
591
|
+
case "set_project":
|
|
592
|
+
return tools.setProject(config, tools.SetProjectSchema.parse(args));
|
|
593
|
+
case "get_project":
|
|
594
|
+
return tools.getProject(config, tools.GetProjectSchema.parse(args));
|
|
595
|
+
case "tag_all_tasks":
|
|
596
|
+
return tools.tagAllTasks(config, tools.TagAllTasksSchema.parse(args));
|
|
597
|
+
// Content Context Tools
|
|
598
|
+
case "show_content_context":
|
|
599
|
+
return tools.showContentContext(config, tools.ShowContentContextSchema.parse(args));
|
|
600
|
+
case "update_content_context":
|
|
601
|
+
return tools.updateContentContext(config, tools.UpdateContentContextSchema.parse(args));
|
|
602
|
+
// Work Stats Tools
|
|
603
|
+
case "stats":
|
|
604
|
+
return tools.showWorkStats(config, tools.ShowWorkStatsSchema.parse(args));
|
|
502
605
|
// Utility Tools
|
|
503
606
|
case "help": {
|
|
504
607
|
const { tool: toolName } = args;
|