Metadata-Version: 2.5
Name: repo-memory-mcp-ai
Version: 0.1.0
Summary: Persistent local memory for AI coding agents via MCP.
Author: repo-memory contributors
License: MIT License
        
        Copyright (c) 2026 repo-memory contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: ai,coding-agents,developer-tools,mcp,memory,sqlite
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.10
Requires-Dist: mcp<2,>=1.8.0
Requires-Dist: pydantic<3,>=2.7
Provides-Extra: dev
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Description-Content-Type: text/markdown

# repo-memory-mcp

mcp-name: io.github.Umarjaum/repo-memory-mcp

## Persistent memory for AI coding agents

AI coding agents are powerful, but they forget repository-specific corrections, conventions, and architectural decisions. **repo-memory-mcp** gives an MCP-compatible coding agent a persistent, local, repository-aware memory layer.

> Teach your coding agent once. Let your repository remember.

### Why it exists

MCP hosts decide when tools are called; MCP does not automatically intercept every conversation. This project therefore exposes explicit tools for startup context, searching, storing corrections and decisions, updating stale guidance, and archiving obsolete memories.

### Features

- Repository-scoped SQLite storage in `.repo-memory/`
- FastMCP tools for corrections, rules, decisions, search, and startup context
- Deterministic local relevance scoring; no pretend semantic search
- Local-first, API-key-free, cloud-free, telemetry-free operation
- Conservative secret detection for explicitly submitted content
- Import/export and audit-friendly archiving
- Python 3.10+, Pydantic v2, pytest, standard-library-first design

### Install

For local development:

```bash
pip install -e .[dev]
repo-memory doctor
```

After publishing the package to PyPI:

```bash
pip install repo-memory-mcp-ai
uvx repo-memory-mcp-ai
```

The published-package commands should only be used once the package is publicly available.

### Configure an MCP client

The examples in [`examples/`](examples/) use the common stdio configuration shape. Clients can differ; follow the client’s documented MCP configuration format.

### Tool workflow

1. New session: call `get_startup_context()`.
2. Developer correction: call `remember_correction(topic, lesson)`.
3. Relevant work: call `recall_memory(query)`.
4. Obsolete guidance: call `forget_memory(memory_id)`.

Your memories stay on your machine. The implementation does not require API keys, cloud accounts, remote databases, external embeddings, or telemetry. The claims apply to this codebase as shipped; your operating system, package manager, backups, or MCP host may have separate behavior.

### Development

```bash
pytest
repo-memory init
repo-memory list
repo-memory search "pydantic models"
```

### Roadmap

Future work may improve ranking, add confidence feedback, provide optional local embeddings, generate project context, and add a memory inspection UI. Team/shared memory remains explicitly opt-in.

### License

MIT. See [`LICENSE`](LICENSE).
