internaltool-mcp 1.6.8 → 1.6.9

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 +9 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -960,6 +960,12 @@ Use this when a developer says "start task", "brief me on", or "what do I need t
960
960
  } catch { /* might already be in_progress */ }
961
961
  }
962
962
 
963
+ // Write cursor rules file to local repo immediately on kickoff
964
+ let cursorRulesFile = null
965
+ if (hasCursorRules) {
966
+ cursorRulesFile = writeCursorRulesFile(task.key, task.cursorRules)
967
+ }
968
+
963
969
  return text({
964
970
  started: {
965
971
  key: task.key,
@@ -973,6 +979,9 @@ Use this when a developer says "start task", "brief me on", or "what do I need t
973
979
  cursorRules: hasCursorRules
974
980
  ? { 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.' }
975
981
  : { active: false },
982
+ cursorRulesFile: cursorRulesFile
983
+ ? { written: true, path: cursorRulesFile, note: 'Rules file written to your repo. Cursor enforces it automatically on every prompt.' }
984
+ : hasCursorRules ? { written: false, note: 'Could not write rules file — not inside a git repo.' } : null,
976
985
  recentCommits: recentCommits.slice(0, 5).map(c => ({
977
986
  sha: c.sha?.slice(0, 7),
978
987
  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.8",
3
+ "version": "1.6.9",
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",