claude-recall 0.2.5 → 0.2.7

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.
package/README.md CHANGED
@@ -123,6 +123,7 @@ The npm installation automatically:
123
123
  - Installs the Claude Recall CLI globally
124
124
  - Configures the MCP server in your `~/.claude.json` file
125
125
  - Creates a database directory at `~/.claude-recall/`
126
+ - Updates `~/CLAUDE.md` with global instructions for Claude to use memory tools
126
127
  - Sets up the proper command structure for Claude Code integration
127
128
 
128
129
  ### Database Location
@@ -251,7 +251,7 @@ async function main() {
251
251
  program
252
252
  .name('claude-recall')
253
253
  .description('Memory-enhanced Claude Code via MCP')
254
- .version('0.2.5')
254
+ .version('0.2.7')
255
255
  .option('--verbose', 'Enable verbose logging')
256
256
  .option('--config <path>', 'Path to custom config file');
257
257
  // MCP command
@@ -200,8 +200,7 @@ class MemoryTools {
200
200
  });
201
201
  return {
202
202
  id: key,
203
- success: true,
204
- message: 'Memory stored successfully'
203
+ success: true
205
204
  };
206
205
  }
207
206
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-recall",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "MCP server for persistent memory in Claude Code conversations",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -60,7 +60,9 @@ try {
60
60
 
61
61
  // Update CLAUDE.md with instructions
62
62
  const claudeMdInstructions = `
63
- # Claude Recall Memory Instructions
63
+ # Claude Recall Memory Instructions (Global)
64
+
65
+ Claude Recall is a global MCP tool that maintains a single memory database across all your projects.
64
66
 
65
67
  IMPORTANT: When the user uses any of these words or phrases, you MUST call the appropriate claude-recall MCP tool:
66
68
 
@@ -93,30 +95,21 @@ When you see these words/phrases, ALWAYS call \`mcp__claude-recall__search\` or
93
95
  - "do you remember"
94
96
 
95
97
  ## Important
96
- - ALWAYS acknowledge that you're storing/retrieving the memory
97
- - Be explicit about what was stored or retrieved
98
+ - When storing memories, just briefly acknowledge (e.g., "Got it!" or "Noted.")
99
+ - When retrieving memories, integrate the information naturally into your response
100
+ - Don't elaborate on the tool usage - keep responses concise and natural
98
101
  - These instructions ensure your memory system works reliably
102
+
103
+ ## Response Guidelines
104
+ - For storage: Simple acknowledgment like "I'll remember that" or "Stored!"
105
+ - For retrieval: Just answer with the information, don't explain the search process
106
+ - Keep the conversation flow natural and unobtrusive
99
107
  `;
100
108
 
101
- // Try to find CLAUDE.md in common locations
102
- const workingDir = process.cwd();
103
- const claudeMdPaths = [
104
- path.join(workingDir, 'CLAUDE.md'),
105
- path.join(workingDir, '.claude', 'CLAUDE.md'),
106
- path.join(os.homedir(), 'CLAUDE.md'),
107
- path.join(os.homedir(), '.claude', 'CLAUDE.md'),
108
- // Check parent directories
109
- path.join(path.dirname(workingDir), 'CLAUDE.md'),
110
- path.join(path.dirname(path.dirname(workingDir)), 'CLAUDE.md')
111
- ];
112
-
113
- let claudeMdPath = claudeMdPaths.find(p => fs.existsSync(p));
114
-
115
- // If not found, create it in the home directory (global)
116
- if (!claudeMdPath) {
117
- claudeMdPath = path.join(os.homedir(), 'CLAUDE.md');
118
- console.log('📝 Creating new CLAUDE.md in home directory for global Claude instructions');
119
- }
109
+ // Always use global CLAUDE.md since claude-recall is a global tool
110
+ // with a single database for all projects
111
+ const claudeMdPath = path.join(os.homedir(), 'CLAUDE.md');
112
+ console.log('📝 Updating global CLAUDE.md for claude-recall instructions');
120
113
 
121
114
  try {
122
115
  let existingContent = '';
@@ -128,13 +121,15 @@ When you see these words/phrases, ALWAYS call \`mcp__claude-recall__search\` or
128
121
  console.log('📝 CLAUDE.md already contains Claude Recall instructions');
129
122
  } else {
130
123
  // Append instructions
131
- fs.writeFileSync(claudeMdPath, existingContent + '\n' + claudeMdInstructions);
132
- console.log(`📝 Updated ${claudeMdPath} with memory instructions`);
124
+ fs.writeFileSync(claudeMdPath, existingContent + '\n\n' + claudeMdInstructions);
125
+ console.log(`📝 Updated ${claudeMdPath} with claude-recall memory instructions`);
126
+ console.log(' These global instructions apply to all your projects');
133
127
  }
134
128
  } else {
135
129
  // Create new file
136
130
  fs.writeFileSync(claudeMdPath, claudeMdInstructions);
137
- console.log(`📝 Created ${claudeMdPath} with memory instructions`);
131
+ console.log(`📝 Created ${claudeMdPath} with claude-recall memory instructions`);
132
+ console.log(' These global instructions apply to all your projects');
138
133
  }
139
134
  } catch (err) {
140
135
  console.log('⚠️ Could not update CLAUDE.md:', err.message);