internaltool-mcp 1.6.26 → 1.6.27

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 (2) hide show
  1. package/index.js +7 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3782,6 +3782,7 @@ If you have uncommitted tracked changes, it will tell you exactly what to do bef
3782
3782
  if (scopedProjectId && projectId !== scopedProjectId) {
3783
3783
  return errorText(`Access denied: session is scoped to project ${scopedProjectId}`)
3784
3784
  }
3785
+ trackTaskActivity(taskId, 'create_branch', { summary: confirmed ? 'Branch created on GitHub' : 'Branch creation preview' })
3785
3786
 
3786
3787
  const taskRes = await api.get(`/api/tasks/${taskId}`)
3787
3788
  if (!taskRes?.success) return errorText('Task not found')
@@ -4045,6 +4046,7 @@ Set confirmed=false first to preview, then confirmed=true to park the task.`,
4045
4046
  confirmed: z.boolean().optional().default(false).describe('Set true to park the task after reviewing the preview'),
4046
4047
  },
4047
4048
  async ({ taskId, summary = '', reason = '', confirmed = false }) => {
4049
+ trackTaskActivity(taskId, 'stash_changes', { summary: confirmed ? 'Task parked + stash instructions provided' : 'Stash preview' })
4048
4050
  const taskRes = await api.get(`/api/tasks/${taskId}`)
4049
4051
  const task = taskRes?.data?.task
4050
4052
 
@@ -4104,6 +4106,7 @@ Set confirmed=false first to review the park note, then confirmed=true to unpark
4104
4106
  confirmed: z.boolean().optional().default(false).describe('Set true to unpark the task after reviewing'),
4105
4107
  },
4106
4108
  async ({ taskId, stashIndex = 0, confirmed = false }) => {
4109
+ trackTaskActivity(taskId, 'pop_stash', { summary: confirmed ? `Stash[${stashIndex}] popped + task unparked` : 'Pop stash preview' })
4107
4110
  const taskRes = await api.get(`/api/tasks/${taskId}`)
4108
4111
  if (!taskRes?.success) return errorText('Task not found')
4109
4112
  const task = taskRes.data.task
@@ -4160,6 +4163,8 @@ Set confirmed=false first to preview the full plan, then confirmed=true to save
4160
4163
  confirmed: z.boolean().optional().default(false).describe('Set true to park Task B and get the full command sequence'),
4161
4164
  },
4162
4165
  async ({ taskAId, taskBId, confirmed = false }) => {
4166
+ trackTaskActivity(taskAId, 'fix_pr_feedback', { summary: confirmed ? 'PR feedback fix plan confirmed' : 'PR feedback fix preview' })
4167
+ if (taskBId) trackTaskActivity(taskBId, 'fix_pr_feedback', { summary: 'Paused to fix PR feedback on another task' })
4163
4168
  const taskARes = await api.get(`/api/tasks/${taskAId}`)
4164
4169
  if (!taskARes?.success) return errorText('Task A not found')
4165
4170
  const taskA = taskARes.data.task
@@ -4259,6 +4264,7 @@ Set confirmed=false first to preview the full PR content, then confirmed=true to
4259
4264
  if (scopedProjectId && projectId !== scopedProjectId) {
4260
4265
  return errorText(`Access denied: session is scoped to project ${scopedProjectId}`)
4261
4266
  }
4267
+ trackTaskActivity(taskId, 'raise_pr', { summary: confirmed ? `PR raised: ${headBranch}${draft ? ' (draft)' : ''}` : 'PR preview' })
4262
4268
 
4263
4269
  let taskRes
4264
4270
  try { taskRes = await apiWithRetry(() => api.get(`/api/tasks/${taskId}`)) }
@@ -4404,6 +4410,7 @@ branchAction values (only needed when current branch ≠ task branch):
4404
4410
  .describe('Required when confirmed=true and current branch ≠ task branch'),
4405
4411
  },
4406
4412
  async ({ taskId, repoPath, confirmed = false, branchAction }) => {
4413
+ if (taskId) trackTaskActivity(taskId, 'commit_helper', { summary: confirmed ? 'Commit command generated' : 'Commit preview' })
4407
4414
  const cwd = repoPath || process.cwd()
4408
4415
 
4409
4416
  // ── Read local git state ──────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "internaltool-mcp",
3
- "version": "1.6.26",
3
+ "version": "1.6.27",
4
4
  "description": "MCP server for InternalTool — connect AI assistants (Claude Code, Cursor) to your project and task management platform",
5
5
  "type": "module",
6
6
  "main": "index.js",