@vibescope/mcp-server 0.2.0 → 0.2.2
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 +60 -7
- package/dist/api-client.d.ts +251 -1
- package/dist/api-client.js +82 -3
- package/dist/handlers/blockers.js +9 -8
- package/dist/handlers/bodies-of-work.js +96 -63
- package/dist/handlers/connectors.d.ts +45 -0
- package/dist/handlers/connectors.js +183 -0
- package/dist/handlers/cost.d.ts +10 -0
- package/dist/handlers/cost.js +112 -50
- package/dist/handlers/decisions.js +32 -19
- package/dist/handlers/deployment.js +144 -122
- package/dist/handlers/discovery.d.ts +7 -0
- package/dist/handlers/discovery.js +96 -7
- package/dist/handlers/fallback.js +29 -23
- package/dist/handlers/file-checkouts.d.ts +20 -0
- package/dist/handlers/file-checkouts.js +133 -0
- package/dist/handlers/findings.d.ts +6 -0
- package/dist/handlers/findings.js +96 -40
- package/dist/handlers/git-issues.js +40 -36
- package/dist/handlers/ideas.js +49 -31
- package/dist/handlers/index.d.ts +3 -0
- package/dist/handlers/index.js +9 -0
- package/dist/handlers/milestones.js +39 -32
- package/dist/handlers/organizations.js +99 -91
- package/dist/handlers/progress.js +24 -13
- package/dist/handlers/project.js +68 -28
- package/dist/handlers/requests.js +18 -14
- package/dist/handlers/roles.d.ts +18 -0
- package/dist/handlers/roles.js +130 -0
- package/dist/handlers/session.js +58 -17
- package/dist/handlers/sprints.js +93 -81
- package/dist/handlers/tasks.d.ts +2 -0
- package/dist/handlers/tasks.js +189 -91
- package/dist/handlers/types.d.ts +64 -2
- package/dist/handlers/types.js +48 -1
- package/dist/handlers/validation.js +21 -17
- package/dist/index.js +7 -2716
- package/dist/token-tracking.d.ts +74 -0
- package/dist/token-tracking.js +122 -0
- package/dist/tools.js +685 -9
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +17 -0
- package/docs/TOOLS.md +2053 -0
- package/package.json +4 -1
- package/scripts/generate-docs.ts +212 -0
- package/src/api-client.test.ts +718 -0
- package/src/api-client.ts +320 -6
- package/src/handlers/__test-setup__.ts +16 -0
- package/src/handlers/blockers.test.ts +31 -19
- package/src/handlers/blockers.ts +9 -8
- package/src/handlers/bodies-of-work.test.ts +55 -32
- package/src/handlers/bodies-of-work.ts +115 -115
- package/src/handlers/connectors.test.ts +834 -0
- package/src/handlers/connectors.ts +229 -0
- package/src/handlers/cost.test.ts +34 -44
- package/src/handlers/cost.ts +136 -85
- package/src/handlers/decisions.test.ts +37 -27
- package/src/handlers/decisions.ts +35 -30
- package/src/handlers/deployment.ts +180 -208
- package/src/handlers/discovery.test.ts +4 -5
- package/src/handlers/discovery.ts +98 -8
- package/src/handlers/fallback.test.ts +26 -22
- package/src/handlers/fallback.ts +36 -33
- package/src/handlers/file-checkouts.test.ts +670 -0
- package/src/handlers/file-checkouts.ts +165 -0
- package/src/handlers/findings.test.ts +178 -19
- package/src/handlers/findings.ts +112 -74
- package/src/handlers/git-issues.test.ts +51 -43
- package/src/handlers/git-issues.ts +44 -84
- package/src/handlers/ideas.test.ts +28 -23
- package/src/handlers/ideas.ts +61 -59
- package/src/handlers/index.ts +9 -0
- package/src/handlers/milestones.test.ts +33 -28
- package/src/handlers/milestones.ts +52 -50
- package/src/handlers/organizations.test.ts +104 -83
- package/src/handlers/organizations.ts +117 -142
- package/src/handlers/progress.test.ts +20 -14
- package/src/handlers/progress.ts +26 -24
- package/src/handlers/project.test.ts +34 -27
- package/src/handlers/project.ts +95 -63
- package/src/handlers/requests.test.ts +27 -18
- package/src/handlers/requests.ts +21 -17
- package/src/handlers/roles.test.ts +303 -0
- package/src/handlers/roles.ts +208 -0
- package/src/handlers/session.test.ts +47 -0
- package/src/handlers/session.ts +71 -26
- package/src/handlers/sprints.test.ts +71 -50
- package/src/handlers/sprints.ts +113 -146
- package/src/handlers/tasks.test.ts +77 -15
- package/src/handlers/tasks.ts +231 -156
- package/src/handlers/tool-categories.test.ts +66 -0
- package/src/handlers/types.ts +81 -2
- package/src/handlers/validation.test.ts +78 -45
- package/src/handlers/validation.ts +23 -25
- package/src/index.ts +12 -2732
- package/src/token-tracking.test.ts +453 -0
- package/src/token-tracking.ts +164 -0
- package/src/tools.ts +685 -9
- package/src/utils.test.ts +2 -2
- package/src/utils.ts +17 -0
- package/dist/config/tool-categories.d.ts +0 -31
- package/dist/config/tool-categories.js +0 -253
- package/dist/knowledge.d.ts +0 -6
- package/dist/knowledge.js +0 -218
package/dist/utils.d.ts
CHANGED
|
@@ -55,6 +55,11 @@ export declare const FALLBACK_ACTIVITIES: readonly [{
|
|
|
55
55
|
readonly title: "Validate completed tasks";
|
|
56
56
|
readonly description: "Review tasks completed by other agents to ensure quality.";
|
|
57
57
|
readonly prompt: "Call get_tasks_awaiting_validation to find completed tasks that need review. Validate each one by checking the implementation and running tests if applicable.";
|
|
58
|
+
}, {
|
|
59
|
+
readonly activity: "worktree_cleanup";
|
|
60
|
+
readonly title: "Clean up stale worktrees";
|
|
61
|
+
readonly description: "Find and remove git worktrees from completed or abandoned tasks.";
|
|
62
|
+
readonly prompt: "Clean up stale git worktrees to reclaim disk space and prevent confusion:\n\n1. Call get_stale_worktrees(project_id) to find worktrees needing cleanup\n2. For each stale worktree returned:\n a. Check if the worktree directory exists: ls -la <worktree_path>\n b. If it exists, remove it: git worktree remove <worktree_path>\n c. If removal fails (untracked files), use: git worktree remove --force <worktree_path>\n d. Call clear_worktree_path(task_id) to mark it as cleaned up\n3. Run 'git worktree list' to verify cleanup\n4. Log any issues encountered with add_blocker if worktrees cannot be removed\n\nThis prevents disk bloat from accumulated worktrees and keeps the workspace clean.";
|
|
58
63
|
}];
|
|
59
64
|
export type FallbackActivity = typeof FALLBACK_ACTIVITIES[number];
|
|
60
65
|
/**
|
package/dist/utils.js
CHANGED
|
@@ -125,6 +125,23 @@ export const FALLBACK_ACTIVITIES = [
|
|
|
125
125
|
description: 'Review tasks completed by other agents to ensure quality.',
|
|
126
126
|
prompt: 'Call get_tasks_awaiting_validation to find completed tasks that need review. Validate each one by checking the implementation and running tests if applicable.',
|
|
127
127
|
},
|
|
128
|
+
{
|
|
129
|
+
activity: 'worktree_cleanup',
|
|
130
|
+
title: 'Clean up stale worktrees',
|
|
131
|
+
description: 'Find and remove git worktrees from completed or abandoned tasks.',
|
|
132
|
+
prompt: `Clean up stale git worktrees to reclaim disk space and prevent confusion:
|
|
133
|
+
|
|
134
|
+
1. Call get_stale_worktrees(project_id) to find worktrees needing cleanup
|
|
135
|
+
2. For each stale worktree returned:
|
|
136
|
+
a. Check if the worktree directory exists: ls -la <worktree_path>
|
|
137
|
+
b. If it exists, remove it: git worktree remove <worktree_path>
|
|
138
|
+
c. If removal fails (untracked files), use: git worktree remove --force <worktree_path>
|
|
139
|
+
d. Call clear_worktree_path(task_id) to mark it as cleaned up
|
|
140
|
+
3. Run 'git worktree list' to verify cleanup
|
|
141
|
+
4. Log any issues encountered with add_blocker if worktrees cannot be removed
|
|
142
|
+
|
|
143
|
+
This prevents disk bloat from accumulated worktrees and keeps the workspace clean.`,
|
|
144
|
+
},
|
|
128
145
|
];
|
|
129
146
|
/**
|
|
130
147
|
* Get a random fallback activity
|