internaltool-mcp 1.6.28 → 1.6.29

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 +16 -31
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1626,41 +1626,26 @@ the human opens the windows. Each builder agent then runs independently.`,
1626
1626
  const filesArg = (st.files || []).map(f => `"${f}"`).join(', ')
1627
1627
  const fileList = (st.files || []).map(f => ` - \`${f}\``).join('\n')
1628
1628
 
1629
- // Prompt is structured as a direct agent instruction no ambiguity, explicit MCP calls first
1629
+ // Prompt is a short, direct imperative Cursor immediately executes.
1630
+ // Key: start with "Use the InternalTool MCP" so Cursor knows to call tools.
1631
+ // Avoid pseudocode like fn(arg=val) — use plain English with quoted values.
1632
+ const fileListPlain = (st.files || []).join(', ')
1630
1633
  const prompt = [
1631
- `## Builder Agent ${task.key} · Subtask ${i + 1} of ${parallelCount}`,
1634
+ `Use the InternalTool MCP tools to implement subtask "${st.title}" for task ${task.key}.`,
1632
1635
  ``,
1633
- `**Subtask:** ${st.title}`,
1634
- `**Description:** ${st.description || '(see task description)'}`,
1635
- `**Your exclusive files (do NOT touch any other file):**`,
1636
- fileList || ' (none pre-assigned — use your judgement)',
1636
+ `Do these steps immediately in order — do not ask for confirmation, do not skip any step:`,
1637
1637
  ``,
1638
- `## DO THIS NOW in order, no skipping:`,
1638
+ `1. Call kickoff_task with taskId "${taskId}", agentRole "builder", confirmed true`,
1639
+ `2. Call claim_files with taskId "${taskId}" and files [${filesArg}]`,
1640
+ `3. Call get_agent_context with taskId "${taskId}" to read the full task plan`,
1641
+ `4. Implement the subtask: ${st.description || st.title}`,
1642
+ ` - You may ONLY modify these files: ${fileListPlain}`,
1643
+ ` - Do NOT touch any other file`,
1644
+ `5. Run npm test — all tests must pass before continuing`,
1645
+ `6. Call commit_helper with taskId "${taskId}"`,
1646
+ `7. Call update_task with taskId "${taskId}" and mark the subtask "${st.title}" as done`,
1639
1647
  ``,
1640
- `**Step 1** Call this MCP tool immediately:`,
1641
- ` kickoff_task(taskId="${taskId}", agentRole="${st.role || 'builder'}", confirmed=true)`,
1642
- ``,
1643
- `**Step 2** — Lock your files (prevents conflicts with the other parallel agent):`,
1644
- ` claim_files(taskId="${taskId}", files=[${filesArg}])`,
1645
- ``,
1646
- `**Step 3** — Get full context:`,
1647
- ` get_agent_context(taskId="${taskId}", role="${st.role || 'builder'}")`,
1648
- ``,
1649
- `**Step 4** — Implement the subtask`,
1650
- ` Modify ONLY your claimed files listed above.`,
1651
- ` Do NOT read or write files owned by another builder.`,
1652
- ``,
1653
- `**Step 5** — Verify`,
1654
- ` Run \`npm test\` — all tests must pass before committing.`,
1655
- ``,
1656
- `**Step 6** — Commit`,
1657
- ` commit_helper(taskId="${taskId}")`,
1658
- ``,
1659
- `**Step 7** — Mark done`,
1660
- ` Call update_task to tick the subtask checkbox for "${st.title}"`,
1661
- ``,
1662
- `⚠️ You are 1 of ${parallelCount} parallel builders. Another agent is working simultaneously on different files.`,
1663
- ` Conflict prevention: claim_files will BLOCK you if another agent has already claimed your files.`,
1648
+ `You are builder ${i + 1} of ${parallelCount} running in parallel. Another builder is working on different files at the same time.`,
1664
1649
  ].join('\n')
1665
1650
 
1666
1651
  return { subtask: st.title, role: st.role || 'builder', files: st.files || [], prompt }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "internaltool-mcp",
3
- "version": "1.6.28",
3
+ "version": "1.6.29",
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",