Metadata-Version: 2.4
Name: mcdb
Version: 0.1.0
Summary: Modular Construction Database: Python API client and retrieval service
Author: MCDB Research Project
License: Proprietary - evaluation release
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Provides-Extra: server
Requires-Dist: fastapi<1,>=0.115; extra == "server"
Requires-Dist: uvicorn<1,>=0.30; extra == "server"
Requires-Dist: neo4j<7,>=5.20; extra == "server"
Requires-Dist: pydantic<3,>=2.7; extra == "server"
Requires-Dist: openai<3,>=1.50; extra == "server"
Provides-Extra: test
Requires-Dist: pytest<10,>=8; extra == "test"
Requires-Dist: httpx<1,>=0.27; extra == "test"
Requires-Dist: fastapi<1,>=0.115; extra == "test"
Requires-Dist: pydantic<3,>=2.7; extra == "test"

# MCDB — Modular Construction Database

This distribution packages the existing material retrieval prototype and provides an importable Python API client. The MCDB service must be deployed separately; installing this package does not install the material database or a model.

## Client

```python
from mcdb import MCDB

mcdb = MCDB('https://YOUR-DEPLOYED-SERVICE', token='YOUR_TOKEN')
results = mcdb.search('concrete')
filtered = mcdb.filter(['ROOT_PID'], filters=[{'path':'engineering.compressive_strength','op':'exists'}])
answer = mcdb.ask('Find materials with compressive strength data')
print(mcdb.preview_url)
```

## Local test server (illustrative data)

```bash
pip install '.[server]'
AIF_DEMO=1 uvicorn mcdb.api:app --reload
```

Then open `http://127.0.0.1:8000/preview` and `http://127.0.0.1:8000/docs`.

## Production caveats

- Existing Neo4j storage adapter is retained and needs its database configuration.
- Agentic RAG remains experimental and requires LLM configuration.
- Email-code authentication and a public gateway **are not implemented**. The prototype bearer token must not be exposed as a public security solution.
- This is a functional initial release, not a completed production data service. It cannot reserve the PyPI name until PyPI accepts an upload.
