@vibescope/mcp-server 0.0.1

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.
Files changed (170) hide show
  1. package/README.md +98 -0
  2. package/dist/cli.d.ts +34 -0
  3. package/dist/cli.js +356 -0
  4. package/dist/cli.test.d.ts +1 -0
  5. package/dist/cli.test.js +367 -0
  6. package/dist/handlers/__test-utils__.d.ts +72 -0
  7. package/dist/handlers/__test-utils__.js +176 -0
  8. package/dist/handlers/blockers.d.ts +18 -0
  9. package/dist/handlers/blockers.js +81 -0
  10. package/dist/handlers/bodies-of-work.d.ts +34 -0
  11. package/dist/handlers/bodies-of-work.js +614 -0
  12. package/dist/handlers/checkouts.d.ts +37 -0
  13. package/dist/handlers/checkouts.js +377 -0
  14. package/dist/handlers/cost.d.ts +39 -0
  15. package/dist/handlers/cost.js +247 -0
  16. package/dist/handlers/decisions.d.ts +16 -0
  17. package/dist/handlers/decisions.js +64 -0
  18. package/dist/handlers/deployment.d.ts +36 -0
  19. package/dist/handlers/deployment.js +1062 -0
  20. package/dist/handlers/discovery.d.ts +14 -0
  21. package/dist/handlers/discovery.js +870 -0
  22. package/dist/handlers/fallback.d.ts +18 -0
  23. package/dist/handlers/fallback.js +216 -0
  24. package/dist/handlers/findings.d.ts +18 -0
  25. package/dist/handlers/findings.js +110 -0
  26. package/dist/handlers/git-issues.d.ts +22 -0
  27. package/dist/handlers/git-issues.js +247 -0
  28. package/dist/handlers/ideas.d.ts +19 -0
  29. package/dist/handlers/ideas.js +188 -0
  30. package/dist/handlers/index.d.ts +29 -0
  31. package/dist/handlers/index.js +65 -0
  32. package/dist/handlers/knowledge-query.d.ts +22 -0
  33. package/dist/handlers/knowledge-query.js +253 -0
  34. package/dist/handlers/knowledge.d.ts +12 -0
  35. package/dist/handlers/knowledge.js +108 -0
  36. package/dist/handlers/milestones.d.ts +20 -0
  37. package/dist/handlers/milestones.js +179 -0
  38. package/dist/handlers/organizations.d.ts +36 -0
  39. package/dist/handlers/organizations.js +428 -0
  40. package/dist/handlers/progress.d.ts +14 -0
  41. package/dist/handlers/progress.js +149 -0
  42. package/dist/handlers/project.d.ts +20 -0
  43. package/dist/handlers/project.js +278 -0
  44. package/dist/handlers/requests.d.ts +16 -0
  45. package/dist/handlers/requests.js +131 -0
  46. package/dist/handlers/roles.d.ts +30 -0
  47. package/dist/handlers/roles.js +281 -0
  48. package/dist/handlers/session.d.ts +20 -0
  49. package/dist/handlers/session.js +791 -0
  50. package/dist/handlers/tasks.d.ts +52 -0
  51. package/dist/handlers/tasks.js +1111 -0
  52. package/dist/handlers/tasks.test.d.ts +1 -0
  53. package/dist/handlers/tasks.test.js +431 -0
  54. package/dist/handlers/types.d.ts +94 -0
  55. package/dist/handlers/types.js +1 -0
  56. package/dist/handlers/validation.d.ts +16 -0
  57. package/dist/handlers/validation.js +188 -0
  58. package/dist/index.d.ts +2 -0
  59. package/dist/index.js +2707 -0
  60. package/dist/knowledge.d.ts +6 -0
  61. package/dist/knowledge.js +121 -0
  62. package/dist/tools.d.ts +2 -0
  63. package/dist/tools.js +2498 -0
  64. package/dist/utils.d.ts +149 -0
  65. package/dist/utils.js +317 -0
  66. package/dist/utils.test.d.ts +1 -0
  67. package/dist/utils.test.js +532 -0
  68. package/dist/validators.d.ts +35 -0
  69. package/dist/validators.js +111 -0
  70. package/dist/validators.test.d.ts +1 -0
  71. package/dist/validators.test.js +176 -0
  72. package/package.json +44 -0
  73. package/src/cli.test.ts +442 -0
  74. package/src/cli.ts +439 -0
  75. package/src/handlers/__test-utils__.ts +217 -0
  76. package/src/handlers/blockers.test.ts +390 -0
  77. package/src/handlers/blockers.ts +110 -0
  78. package/src/handlers/bodies-of-work.test.ts +1276 -0
  79. package/src/handlers/bodies-of-work.ts +783 -0
  80. package/src/handlers/cost.test.ts +436 -0
  81. package/src/handlers/cost.ts +322 -0
  82. package/src/handlers/decisions.test.ts +401 -0
  83. package/src/handlers/decisions.ts +86 -0
  84. package/src/handlers/deployment.test.ts +516 -0
  85. package/src/handlers/deployment.ts +1289 -0
  86. package/src/handlers/discovery.test.ts +254 -0
  87. package/src/handlers/discovery.ts +969 -0
  88. package/src/handlers/fallback.test.ts +687 -0
  89. package/src/handlers/fallback.ts +260 -0
  90. package/src/handlers/findings.test.ts +565 -0
  91. package/src/handlers/findings.ts +153 -0
  92. package/src/handlers/ideas.test.ts +753 -0
  93. package/src/handlers/ideas.ts +247 -0
  94. package/src/handlers/index.ts +69 -0
  95. package/src/handlers/milestones.test.ts +584 -0
  96. package/src/handlers/milestones.ts +217 -0
  97. package/src/handlers/organizations.test.ts +997 -0
  98. package/src/handlers/organizations.ts +550 -0
  99. package/src/handlers/progress.test.ts +369 -0
  100. package/src/handlers/progress.ts +188 -0
  101. package/src/handlers/project.test.ts +562 -0
  102. package/src/handlers/project.ts +352 -0
  103. package/src/handlers/requests.test.ts +531 -0
  104. package/src/handlers/requests.ts +150 -0
  105. package/src/handlers/session.test.ts +459 -0
  106. package/src/handlers/session.ts +912 -0
  107. package/src/handlers/tasks.test.ts +602 -0
  108. package/src/handlers/tasks.ts +1393 -0
  109. package/src/handlers/types.ts +88 -0
  110. package/src/handlers/validation.test.ts +880 -0
  111. package/src/handlers/validation.ts +223 -0
  112. package/src/index.ts +3205 -0
  113. package/src/knowledge.ts +132 -0
  114. package/src/tmpclaude-0078-cwd +1 -0
  115. package/src/tmpclaude-0ee1-cwd +1 -0
  116. package/src/tmpclaude-2dd5-cwd +1 -0
  117. package/src/tmpclaude-344c-cwd +1 -0
  118. package/src/tmpclaude-3860-cwd +1 -0
  119. package/src/tmpclaude-4b63-cwd +1 -0
  120. package/src/tmpclaude-5c73-cwd +1 -0
  121. package/src/tmpclaude-5ee3-cwd +1 -0
  122. package/src/tmpclaude-6795-cwd +1 -0
  123. package/src/tmpclaude-709e-cwd +1 -0
  124. package/src/tmpclaude-9839-cwd +1 -0
  125. package/src/tmpclaude-d829-cwd +1 -0
  126. package/src/tmpclaude-e072-cwd +1 -0
  127. package/src/tmpclaude-f6ee-cwd +1 -0
  128. package/src/utils.test.ts +681 -0
  129. package/src/utils.ts +375 -0
  130. package/src/validators.test.ts +223 -0
  131. package/src/validators.ts +122 -0
  132. package/tmpclaude-0439-cwd +1 -0
  133. package/tmpclaude-132f-cwd +1 -0
  134. package/tmpclaude-15bb-cwd +1 -0
  135. package/tmpclaude-165a-cwd +1 -0
  136. package/tmpclaude-1ba9-cwd +1 -0
  137. package/tmpclaude-21a3-cwd +1 -0
  138. package/tmpclaude-2a38-cwd +1 -0
  139. package/tmpclaude-2adf-cwd +1 -0
  140. package/tmpclaude-2f56-cwd +1 -0
  141. package/tmpclaude-3626-cwd +1 -0
  142. package/tmpclaude-3727-cwd +1 -0
  143. package/tmpclaude-40bc-cwd +1 -0
  144. package/tmpclaude-436f-cwd +1 -0
  145. package/tmpclaude-4783-cwd +1 -0
  146. package/tmpclaude-4b6d-cwd +1 -0
  147. package/tmpclaude-4ba4-cwd +1 -0
  148. package/tmpclaude-51e6-cwd +1 -0
  149. package/tmpclaude-5ecf-cwd +1 -0
  150. package/tmpclaude-6f97-cwd +1 -0
  151. package/tmpclaude-7fb2-cwd +1 -0
  152. package/tmpclaude-825c-cwd +1 -0
  153. package/tmpclaude-8baf-cwd +1 -0
  154. package/tmpclaude-8d9f-cwd +1 -0
  155. package/tmpclaude-975c-cwd +1 -0
  156. package/tmpclaude-9983-cwd +1 -0
  157. package/tmpclaude-a045-cwd +1 -0
  158. package/tmpclaude-ac4a-cwd +1 -0
  159. package/tmpclaude-b593-cwd +1 -0
  160. package/tmpclaude-b891-cwd +1 -0
  161. package/tmpclaude-c032-cwd +1 -0
  162. package/tmpclaude-cf43-cwd +1 -0
  163. package/tmpclaude-d040-cwd +1 -0
  164. package/tmpclaude-dcdd-cwd +1 -0
  165. package/tmpclaude-dcee-cwd +1 -0
  166. package/tmpclaude-e16b-cwd +1 -0
  167. package/tmpclaude-ecd2-cwd +1 -0
  168. package/tmpclaude-f48d-cwd +1 -0
  169. package/tsconfig.json +16 -0
  170. package/vitest.config.ts +13 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Knowledge Base
3
+ *
4
+ * Embedded help topics for on-demand agent guidance.
5
+ */
6
+ export declare const KNOWLEDGE_BASE: Record<string, string>;
@@ -0,0 +1,121 @@
1
+ /**
2
+ * Knowledge Base
3
+ *
4
+ * Embedded help topics for on-demand agent guidance.
5
+ */
6
+ export const KNOWLEDGE_BASE = {
7
+ getting_started: `# Getting Started
8
+ 1. Call start_work_session(git_url) to initialize
9
+ 2. Response includes next_task - start working on it immediately
10
+ 3. Use update_task to mark in_progress and track progress
11
+ 4. Call complete_task when done - it returns your next task
12
+ 5. Use get_help(topic) when you need guidance on specific workflows`,
13
+ tasks: `# Task Workflow
14
+ - Mark task in_progress with update_task before starting
15
+ - Update progress_percentage regularly (every 15-20% progress)
16
+ - Include progress_note to auto-log milestones
17
+ - One task at a time - complete current before starting another
18
+ - complete_task returns next_task and context counts (validation, blockers, deployment)
19
+ - Priority: 1=highest, 5=lowest`,
20
+ validation: `# Task Validation
21
+ Completed tasks need validation before deployment. PRIORITIZE validation over new tasks.
22
+ 1. Check: get_tasks_awaiting_validation(project_id)
23
+ 2. Claim: claim_validation(task_id) - marks "being reviewed" on dashboard
24
+ 3. Review code changes and run tests
25
+ 4. Complete: validate_task(task_id, approved: true/false, validation_notes: "...")
26
+ Self-validation allowed when single-agent or to unblock deployment.`,
27
+ deployment: `# Deployment Workflow
28
+ 1. Ensure all completed tasks are validated first
29
+ 2. request_deployment(project_id, environment: "production")
30
+ 3. claim_deployment_validation(project_id) - claim for validation
31
+ 4. Run: pnpm build && pnpm test
32
+ 5. report_validation(project_id, build_passed: true, tests_passed: true)
33
+ 6. start_deployment(project_id) - returns project's deployment_instructions
34
+ 7. Follow the instructions (e.g., push to main, run deploy command)
35
+ 8. complete_deployment(project_id, success: true, summary: "...")`,
36
+ git: `# Git Workflow
37
+
38
+ Call get_git_workflow(project_id) for project-specific config.
39
+
40
+ ## Workflow Types
41
+ - **none**: No branching strategy
42
+ - **trunk-based**: Commit directly to main, small frequent commits
43
+ - **github-flow**: Feature branches, merge via PR after validation
44
+ - **git-flow**: develop/release/feature branches
45
+
46
+ ## Lifecycle Integration
47
+
48
+ ### 1. Starting a Task
49
+ When you call update_task(status: "in_progress"), the response includes:
50
+ - **branch_name**: Suggested branch (e.g., feature/a1b2c3d4-task-title)
51
+ - **base_branch**: Branch to branch from
52
+ - **steps**: Git commands to create the branch
53
+ - **reminder**: Call to update task with git_branch
54
+
55
+ ### 2. Completing a Task
56
+ When you call complete_task, the response includes:
57
+ - **steps**: Push commands
58
+ - **pr_suggestion**: { title, body_template } - ready-to-use PR content
59
+ - **next_step**: Reminder that merge happens AFTER validation
60
+
61
+ Add the PR link via add_task_reference(task_id, url, label: "Pull Request").
62
+
63
+ ### 3. Validation Approved
64
+ When validate_task(approved: true) is called, the response includes:
65
+ - **target_branch**: Where to merge
66
+ - **feature_branch**: Branch being merged
67
+ - **steps**: Merge options (UI or command line)
68
+ - **cleanup**: Branch deletion commands
69
+ - **note**: Confirmation it's safe to merge
70
+
71
+ ## Key Rules
72
+ - Create branch when starting task (github-flow/git-flow)
73
+ - Push and create PR when completing task
74
+ - Wait for validation before merging
75
+ - Clean up branch after successful merge`,
76
+ blockers: `# Working with Blockers
77
+ When stuck and need human input:
78
+ 1. add_blocker(project_id, description: "What's blocking")
79
+ 2. Ask your question to the user
80
+ 3. resolve_blocker(blocker_id, resolution_note: "How resolved")
81
+ Only use for genuine blockers requiring decisions - not routine questions.`,
82
+ milestones: `# Task Milestones
83
+ For complex tasks, break into milestones:
84
+ 1. add_milestone(task_id, title: "Design schema")
85
+ 2. add_milestone(task_id, title: "Implement API")
86
+ 3. Update with complete_milestone(milestone_id) as you go
87
+ Dashboard shows progress bar with completed/total.`,
88
+ fallback: `# Fallback Activities
89
+ When no tasks available, get_next_task suggests activities:
90
+ - feature_ideation, code_review, performance_audit
91
+ - security_review, test_coverage, documentation_review
92
+ 1. start_fallback_activity(project_id, activity: "code_review")
93
+ 2. Do the work, use add_finding for issues, add_idea for improvements
94
+ 3. stop_fallback_activity(project_id, summary: "...")`,
95
+ session: `# Session Management
96
+ - start_work_session initializes and returns next_task (lite mode default)
97
+ - Use mode:'full' for complete context when needed
98
+ - heartbeat every 30-60 seconds maintains active status
99
+ - end_work_session releases claimed tasks and returns summary
100
+ - NEVER STOP: After completing a task, immediately start the next one
101
+ - When context grows large: /clear then start_work_session to continue fresh
102
+ - Your progress is saved to the dashboard - nothing is lost on /clear`,
103
+ tokens: `# Token Efficiency
104
+ Be mindful of token costs - every tool call has a cost.
105
+ - Use mode:'lite' (default) - saves ~85% vs full mode
106
+ - Call get_token_usage() to check consumption
107
+ - /compact when context grows large
108
+ - Batch related updates when possible
109
+ - Trust lite mode; only use full mode for initial exploration`,
110
+ topics: `# Available Help Topics
111
+ - getting_started: Basic workflow overview
112
+ - tasks: Working on tasks, progress tracking
113
+ - validation: Cross-agent task validation
114
+ - deployment: Deployment coordination
115
+ - git: Git workflow configuration
116
+ - blockers: Handling blockers
117
+ - milestones: Breaking down complex tasks
118
+ - fallback: Background activities when idle
119
+ - session: Session management
120
+ - tokens: Token efficiency tips`,
121
+ };
@@ -0,0 +1,2 @@
1
+ import type { Tool } from '@modelcontextprotocol/sdk/types.js';
2
+ export declare const tools: Tool[];