Metadata-Version: 2.4
Name: kg-mcp
Version: 0.1.7
Summary: Memory/Knowledge Graph MCP Server for IDE Assistants - Persistent context and knowledge for AI coding agents
Project-URL: Homepage, https://github.com/Hexecu/mcp-neuralmemory
Project-URL: Documentation, https://github.com/Hexecu/mcp-neuralmemory#readme
Project-URL: Repository, https://github.com/Hexecu/mcp-neuralmemory
Project-URL: Issues, https://github.com/Hexecu/mcp-neuralmemory/issues
Author: Davide Leopardi
License: MIT
Keywords: ai-assistant,gemini,knowledge-graph,llm,mcp,model-context-protocol,neo4j
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.11
Requires-Dist: google-auth>=2.0.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: litellm>=1.40.0
Requires-Dist: mcp>=1.0.0
Requires-Dist: neo4j>=5.0.0
Requires-Dist: pydantic-settings>=2.0.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: uvicorn>=0.30.0
Provides-Extra: dev
Requires-Dist: black>=24.0.0; extra == 'dev'
Requires-Dist: mypy>=1.10.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: ruff>=0.4.0; extra == 'dev'
Description-Content-Type: text/markdown

# MCP-KG-Memory Server

Python MCP server implementation with Neo4j backend.

## Development Setup

```bash
# Create virtual environment
python -m venv .venv
source .venv/bin/activate

# Install dependencies (including dev)
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

# Run server
python -m kg_mcp.main
```

## Project Structure

```
src/kg_mcp/
├── main.py           # Entry point
├── config.py         # Settings management
├── llm/              # LLM integration
│   ├── client.py     # LiteLLM wrapper
│   ├── schemas.py    # Pydantic models
│   └── prompts/      # Prompt templates
├── kg/               # Knowledge graph
│   ├── neo4j.py      # Driver/client
│   ├── schema.cypher # DB schema
│   ├── repo.py       # Query repository
│   ├── ingest.py     # Ingestion pipeline
│   └── retrieval.py  # Context builder
├── mcp/              # MCP components
│   ├── tools.py      # Tool definitions
│   ├── resources.py  # Resource handlers
│   └── prompts.py    # Prompt templates
├── codegraph/        # Code indexing (V1)
│   ├── model.py      # Data models
│   └── indexer.py    # File indexer
└── security/         # Auth/Origin
    ├── auth.py       # Token validation
    └── origin.py     # Origin checking
```
