Skip to main content

Version control for AI coding context - Commit your intent, not just your code

Project description

Lore MCP

Version control for AI coding context - Commit your intent, not just your code.

PyPI version Python 3.12+ License: Apache 2.0

What is Lore MCP?

Lore MCP captures and preserves the thinking process behind AI-assisted coding. When you work with AI coding assistants like Claude, the conversation context—your intent, assumptions, alternatives considered, and decisions made—is just as valuable as the code itself.

Traditional Version Control:
  git commit → "Added authentication module"

Lore MCP:
  lore commit → Intent: "Implement JWT authentication with refresh tokens"
                Assumptions: ["Redis available for token storage"]
                Alternatives: ["Session-based auth", "OAuth2 only"]
                Decision: "JWT chosen for stateless scalability"

Features

  • Context Commits: Record intent, assumptions, alternatives, and decisions
  • Context Search: Search your coding history by intent
  • Context Blame: Find the AI conversation that led to any code change
  • MCP Integration: Native integration with Claude Code via Model Context Protocol
  • Claude Code Hooks: Automatic context capture during AI coding sessions
  • Cloud Sync: All data synced to cloud for access anywhere
  • Team Sharing: Share context with your team (Pro/Team plans)

Installation

pip install lore-mcp

Or with uvx (no installation required):

uvx lore-mcp lore --help

Quick Start

1. Get Your API Key

  1. Visit Lore Dashboard
  2. Sign up / Login with GitHub
  3. Go to API Keys and create a new key

2. Configure API Key

export LORE_API_KEY=lore_xxxxxxxxxxxxxxxx

Or add to your shell profile (~/.bashrc, ~/.zshrc):

echo 'export LORE_API_KEY=lore_xxxxxxxxxxxxxxxx' >> ~/.zshrc

3. Create Context Commits

# Manual commit with intent
lore commit -m "Implement user authentication with JWT"

# Interactive mode
lore commit -i

4. Search and Blame

# Search by intent
lore search "authentication"

# Blame a file (find context for code)
lore blame src/auth.py

# Check usage
lore usage

MCP Server Integration

Lore provides an MCP server for Claude Code integration.

Setup with Claude Code

Add to your Claude Code settings (~/.claude/settings.json):

{
  "mcpServers": {
    "lore": {
      "command": "lore-mcp",
      "env": {
        "LORE_API_KEY": "lore_xxxxxxxxxxxxxxxx"
      }
    }
  }
}

Or with uvx:

{
  "mcpServers": {
    "lore": {
      "command": "uvx",
      "args": ["lore-mcp"],
      "env": {
        "LORE_API_KEY": "lore_xxxxxxxxxxxxxxxx"
      }
    }
  }
}

Available MCP Tools

Tool Description
lore_init Set up Claude Code hooks
lore_commit Create a context commit
lore_blame Find context for a file
lore_search Search context commits
lore_status Check connection status

Claude Code Hooks

For automatic context capture, ask Claude to run lore_init (MCP tool), or run manually:

uvx lore-mcp lore init

This will configure hooks in ~/.claude/settings.json automatically.

Or manually add to ~/.claude/settings.json:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "uvx --from lore-mcp python -m lore.hooks.post_tool_use"
          }
        ]
      }
    ],
    "Stop": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "uvx --from lore-mcp python -m lore.hooks.on_stop"
          }
        ]
      }
    ]
  }
}

CLI Commands

Command Description
lore commit -m "message" Create a context commit
lore search <query> Search context commits
lore blame <file> Find context for a file
lore sync Sync local commits to cloud
lore usage Show usage statistics
lore status Show connection status
lore login Open dashboard for API key
lore version Show version

Pricing

Plan Price Features
Free $0 100 syncs/month, 50 searches/month
Pro $9/month Unlimited syncs, Unlimited searches
Team $19/user/month Everything in Pro + Team sharing

View Pricing

Dashboard

Manage your context commits, API keys, and team at:

lore-dashboard.jadecon2655.workers.dev

Features:

  • View all context commits
  • Search and filter commits
  • Manage API keys
  • Team management (Team plan)
  • Usage analytics

License

Apache License 2.0 - see LICENSE for details.


Lore - Because your intent matters as much as your code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lore_mcp-1.0.13.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lore_mcp-1.0.13-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file lore_mcp-1.0.13.tar.gz.

File metadata

  • Download URL: lore_mcp-1.0.13.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for lore_mcp-1.0.13.tar.gz
Algorithm Hash digest
SHA256 b51a0f7748fd5a2d1e73353f47df321768c6897170ddfc28a4cb095d8487421b
MD5 c2041686a7bcba5af2840acb34a296f9
BLAKE2b-256 2aedbb68496f72cdfc5e2da84a02c21a83f1e4eb83f09a267395555f4db45c3a

See more details on using hashes here.

File details

Details for the file lore_mcp-1.0.13-py3-none-any.whl.

File metadata

  • Download URL: lore_mcp-1.0.13-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for lore_mcp-1.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 69ac5e7fc7a9715ae7c016c3f162f1e64d5a06d87459766ca5e0d921dc65894b
MD5 189d5f7ae461a562d621ba11ddb7a475
BLAKE2b-256 cc7f34ba64716ad3255a679884a5887ff2e1aa48b149372317f6c981e66eee6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page