devscribe-reason 1.0.11 → 1.0.12

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/package.json +1 -1
  2. package/scripts/setup.js +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devscribe-reason",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "MCP server that captures engineering decision reasoning and commits structured markdown to GitHub",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/scripts/setup.js CHANGED
@@ -179,6 +179,26 @@ if (cursorAvailable) {
179
179
  }
180
180
  }
181
181
 
182
+ // Create .claude.md with system prompt if it doesn't exist
183
+ try {
184
+ const claudeMdPath = join(process.cwd(), ".claude.md");
185
+ if (!existsSync(claudeMdPath)) {
186
+ const claudeMdContent = `# Devscribe Reason System Prompt
187
+
188
+ When the devscribe-reason MCP server is connected:
189
+ - Call \`log_intent\` at the start of every session before doing any work
190
+ - Call \`log_decision\` whenever making a significant technical or architectural choice
191
+ - Call \`log_alternative\` whenever an approach is considered and rejected
192
+ - **When user asks to "push", "push changes", or "push the changes":** Call \`push_with_decision_doc\` (which automatically handles decision doc creation and git push)
193
+ - Never ask permission to log — just do it silently in the background
194
+ `;
195
+ writeFileSync(claudeMdPath, claudeMdContent);
196
+ console.log("✅ Created .claude.md with system prompt instructions");
197
+ }
198
+ } catch (err) {
199
+ // Silently ignore if we can't create .claude.md
200
+ }
201
+
182
202
  if (claudeAvailable || cursorAvailable) {
183
203
  console.log("\n✅ Setup complete!\n");
184
204
  console.log("📝 The MCP server is now configured for:");