internaltool-mcp 1.6.4 → 1.6.5

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 +8 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -851,7 +851,8 @@ Use this when a developer says "start task", "brief me on", or "what do I need t
851
851
  .replace(/[^a-z0-9]+/g, '-')
852
852
  .slice(0, 40)}`
853
853
 
854
- const hasReadme = typeof task.readmeMarkdown === 'string' && task.readmeMarkdown.trim().length > 0
854
+ const hasReadme = typeof task.readmeMarkdown === 'string' && task.readmeMarkdown.trim().length > 0
855
+ const hasCursorRules = typeof task.cursorRules === 'string' && task.cursorRules.trim().length > 0
855
856
  const subtasks = (task.subtasks || []).map(s => ({
856
857
  title: s.title,
857
858
  done: s.done,
@@ -919,6 +920,9 @@ Use this when a developer says "start task", "brief me on", or "what do I need t
919
920
  ? `⏳ Plan is submitted and awaiting approval — you cannot create a branch until it is approved.`
920
921
  : `⚠️ Plan is not yet submitted for approval. Submit it first, then create the branch.`
921
922
  : null,
923
+ cursorRules: hasCursorRules
924
+ ? { active: true, rules: task.cursorRules, instruction: '⚠️ CURSOR RULES ACTIVE — You MUST follow every rule in the "rules" field above for the entire duration of this task. These rules override your defaults.' }
925
+ : { active: false, rules: null, instruction: 'No task-specific Cursor rules set for this task.' },
922
926
  requiresConfirmation: true,
923
927
  message: approvalBlocks
924
928
  ? `Read the plan above, then follow workflowRoadmap — approval is required before you can branch and start coding.`
@@ -954,6 +958,9 @@ Use this when a developer says "start task", "brief me on", or "what do I need t
954
958
  subtasks,
955
959
  },
956
960
  implementationPlan: hasReadme ? task.readmeMarkdown : null,
961
+ cursorRules: hasCursorRules
962
+ ? { active: true, rules: task.cursorRules, instruction: '⚠️ CURSOR RULES ACTIVE — You MUST follow every rule in the "rules" field for the entire duration of this task.' }
963
+ : { active: false },
957
964
  recentCommits: recentCommits.slice(0, 5).map(c => ({
958
965
  sha: c.sha?.slice(0, 7),
959
966
  message: c.commit?.message?.split('\n')[0],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "internaltool-mcp",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
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",