Step 4: Set Up Your .env File
Create a .env file in the mnt_tracker directory with these values:
ANTHROPIC_API_KEY=sk-ant-xxxxx
AZURE_CLIENT_ID=your-client-id-here
AZURE_REDIRECT_URI=http://localhost:8000/auth/callback
SECRET_KEY=generate-a-random-secret-here
ONEDRIVE_ROOT_FOLDER=path/to/client/folders
Generate a secret key by running: python -c "import secrets; print(secrets.token_hex(32))"
Step 5: OneDrive Folder Structure
The scanner expects your OneDrive to have this structure:
Root Folder (e.g., "MNT Cases")
├── Client Name 1/
│ ├── complaint.pdf
│ ├── NTA.pdf
│ ├── removal_order.pdf
│ └── ...
├── Client Name 2/
│ ├── indictment.pdf
│ └── ...
└── ...
Each top-level subfolder is treated as a client. The scanner will recursively search all files within each client folder.