Skip to content

Conversation

mayankbohra
Copy link

Summary

This PR adds native support for Claude Code (Anthropic's official CLI) to OpenMemory via MCP integration, including project-specific memory isolation for better developer experience.

Motivation

  • Claude Code is Anthropic's official CLI tool with growing adoption
  • Currently no Claude Code support in OpenMemory (only Claude Desktop)
  • Developers need project-specific memory isolation when working across multiple codebases
  • Leverages existing MCP infrastructure with zero breaking changes

Changes

✅ Completed Tasks

  • Add Claude Code to supported MCP clients
  • Implement project-specific memory isolation (claude-code-projectname)
  • Fix MCP response formatting for Claude Code compatibility
  • Create setup script with auto-detection (package.json, git, directory)
  • Update UI to handle dynamic project app names
  • Add installation documentation
  • Pass all linting checks
  • Test backward compatibility

Features Added

  1. Claude Code Integration

    • Native .mcp.json configuration support
    • Installation helper script
    • UI integration with proper branding
  2. Project-Specific Memory Isolation

    • Auto-detects project context
    • Separate memory spaces per project
    • Clear naming: claude-code-projectA, claude-code-projectB
  3. Bug Fixes

    • Fixed MCP response validation errors (Pydantic string type)
    • Fixed UI display for dynamic app names
    • Fixed duplicate function name linting issue

Testing

  • Tested Claude Code connection with multiple projects
  • Verified memory isolation between projects
  • Confirmed backward compatibility with existing clients
  • All linting checks passed

Documentation

  • Updated README with Claude Code setup instructions
  • Added .mcp.json.example for reference
  • Created comprehensive setup script with help docs

Checklist

  • Code follows project conventions
  • Documentation updated
  • Linting checks passed
  • Backward compatible
  • No breaking changes

This feature has been in personal use for testing and works reliably.

- Convert dict responses to string for MCP compatibility
- Fix Pydantic validation errors
- Fix duplicate function name linting issue
- Maintain backward compatibility
- Add Claude Code to installation UI
- Handle dynamic project-specific app names
- Fix app name display for claude-code-* pattern
- Add Claude Code logo and proper branding
- Auto-detect project names from package.json, git, or directory
- Generate project-specific app names for memory isolation
- Add comprehensive documentation and usage examples
- Include .mcp.json.example for reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant