Troubleshooting
Common issues and solutions for Tensorheart Memory MCP.
Connection Issues
"Server not found" or "Failed to connect"
Symptoms:
- Claude Desktop shows "Server not found" error
- Memory tools don't appear in Claude's available tools
Solutions:
-
Check Configuration File Location
# macOS
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
type %APPDATA%\Claude\claude_desktop_config.json
# Linux
cat ~/.config/Claude/claude_desktop_config.jsonMake sure the file exists and is valid JSON.
-
Verify Python Path
which python3
# Should output: /path/to/python3Use this exact path in your config file.
-
Test Installation
python3 -m tensorheart_memory_mcp --versionIf this fails, reinstall:
pip3 install --force-reinstall tensorheart-memory-mcp -
Restart Claude Desktop
- Completely quit Claude Desktop (not just close window)
- Reopen and check developer tools for errors
"Authentication failed" or 401 errors
Symptoms:
- Tools appear but return authentication errors
- "Invalid API key" messages
Solutions:
-
Verify API Key
- Log in to Tensorheart Memory
- Go to Settings → API Keys
- Generate a new key if needed
- Copy the key exactly (no extra spaces)
-
Check Environment Variable
echo $MEMORY_API_KEYShould output your API key. If empty:
# Add to ~/.zshrc or ~/.bashrc
export MEMORY_API_KEY="your-key-here"
# Reload
source ~/.zshrc # or ~/.bashrc -
Verify Config File Make sure the key is set correctly:
{
"mcpServers": {
"memory": {
"command": "python3",
"args": ["-m", "tensorheart_memory_mcp"],
"env": {
"MEMORY_API_KEY": "tmk_your_actual_key_here"
}
}
}
}
Performance Issues
Slow query responses
Symptoms:
- Memory queries take more than 5 seconds
- Timeouts when searching memories
Solutions:
-
Increase Timeout
{
"mcpServers": {
"memory": {
"env": {
"MEMORY_TIMEOUT": "60.0"
}
}
}
} -
Use More Specific Queries
- Instead of: "show me everything"
- Try: "Python authentication code from last week"
-
Limit Results
- Use
max_memoriesparameter to limit results - Default is 10, which is usually sufficient
- Use
-
Check Network Connection
curl -I https://api.tensorheart.com
# Should return: HTTP/2 200
Document ingestion takes too long
Symptoms:
- PDF uploads timeout
- Large files fail to process
Solutions:
-
Check File Size
- Max recommended: 50 MB
- For larger files, split into sections
-
Increase Timeout
{
"env": {
"MEMORY_TIMEOUT": "120.0"
}
} -
Use Smaller Files
- Extract relevant pages from PDFs
- Compress images before uploading
Memory Management Issues
Duplicate memories created
Symptoms:
- Same information stored multiple times
- Similar memories with slight variations
Solutions:
-
Run Consolidation Ask Claude:
Run consolidation on my memories with threshold 0.8 -
Search Before Creating Before saving new information:
Check if I already have information about [topic] -
Update Instead of Create If information exists:
Update my memory about [topic] with this new information: [details]
Can't find saved memories
Symptoms:
- Memories were saved but queries don't return them
- Search returns no results for known information
Solutions:
-
Check Space
- If you saved to a specific space, query that space:
Search my "work-projects" space for [query] -
Use Different Query Terms
- Try synonyms or related terms
- Use more context in your query
-
List Recent Memories
Show me my recent memoriesThis uses the
memory://recentresource. -
Verify Memory Was Created
- Check Claude's response when you created it
- Should say "Saved!" or show success message
Spaces not organizing correctly
Symptoms:
- Memories appear in wrong spaces
- Can't filter by space
Solutions:
-
Verify Space Names
List all my spacesCheck exact spelling and formatting.
-
Specify Space Explicitly When creating memories:
Save this to my "project-alpha" space: [information] -
Move Memories Update the space for a memory:
Move memory [id] to space "new-space"
Configuration Issues
JSON syntax errors
Symptoms:
- Claude Desktop won't start after config changes
- "Invalid configuration" errors
Solutions:
-
Validate JSON Use a JSON validator:
python3 -m json.tool < ~/Library/Application\ Support/Claude/claude_desktop_config.json -
Common JSON Mistakes
- Missing commas between entries
- Trailing comma after last entry
- Unescaped backslashes in paths (Windows)
- Smart quotes instead of straight quotes
-
Use Template Start with the exact template from the Configuration guide.
Environment variables not loading
Symptoms:
- API key set in config but still getting auth errors
- Other env vars not taking effect
Solutions:
-
Check JSON Structure Env vars must be in
envobject:{
"mcpServers": {
"memory": {
"command": "python3",
"args": ["-m", "tensorheart_memory_mcp"],
"env": {
"MEMORY_API_KEY": "your-key"
}
}
}
} -
System vs Config Env Vars
- Config file
envoverrides system environment variables - To use system variables, omit
envsection
- Config file
-
Restart Required
- Changes require complete restart of Claude Desktop
- Quit entirely and reopen
Advanced Troubleshooting
Enable debug logging
For development/testing:
{
"mcpServers": {
"memory": {
"env": {
"MEMORY_LOG_LEVEL": "DEBUG"
}
}
}
}
Check logs in Claude Desktop developer tools (View → Developer → Developer Tools).
Check server health
Test the MCP server directly:
# Set API key
export MEMORY_API_KEY="your-key"
# Run server
python3 -m tensorheart_memory_mcp
# Should start without errors
# Press Ctrl+C to stop
Verify API connectivity
Test the Memory API directly:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.tensorheart.com/v1/memories
Should return JSON response with your memories.
Reset configuration
If all else fails, start fresh:
-
Backup current config
cp ~/Library/Application\ Support/Claude/claude_desktop_config.json ~/claude_config_backup.json -
Remove MCP config Edit config file and remove the
memoryentry. -
Restart Claude Desktop Verify it works without MCP.
-
Re-add MCP config Use the template from Configuration guide.
Getting Help
If you're still experiencing issues:
-
Check API Status
- Visit status.tensorheart.com (if available)
- Check for ongoing incidents
-
Review Recent Changes
- Did you update Claude Desktop recently?
- Did you change your API key?
- Did you modify the config file?
-
Collect Information When reporting issues, include:
- Operating system and version
- Claude Desktop version
- Python version (
python3 --version) - tensorheart-memory-mcp version (
pip3 show tensorheart-memory-mcp) - Relevant error messages from developer tools
-
Contact Support
- Email: support@tensorheart.com
- Include the information above
- Describe what you were trying to do
- Include any error messages
Common Error Messages
"ModuleNotFoundError: No module named 'tensorheart_memory_mcp'"
Solution: Install or reinstall the package
pip3 install tensorheart-memory-mcp
"FileNotFoundError: [Errno 2] No such file or directory"
Solution: Check that the Python path in config is correct
which python3
Use the full path in your config.
"JSONDecodeError: Expecting property name enclosed in double quotes"
Solution: Fix JSON syntax in config file
- Remove trailing commas
- Use double quotes (not single quotes)
- Validate with
python3 -m json.tool
"RateLimitError: Too many requests"
Solution: You've hit API rate limits
- Wait a few minutes before retrying
- Reduce frequency of requests
- Contact support for rate limit increase if needed
"ValueError: Invalid file path"
Solution: Check file path when using document ingestion
- Use absolute paths:
/Users/name/Documents/file.pdf - Ensure file exists and is readable
- Check file size (max 50 MB recommended)
"MemoryNotFoundError: Memory with id 'xxx' not found"
Solution: The memory was deleted or ID is incorrect
- Use
query_memoriesto find the correct memory - List recent memories to verify it exists