Skip to main content
Glama
18abhi89

exception-mcp-server

by 18abhi89
README.md
# Exception Analysis Framework

**AI-powered exception analysis for operations teams**

---

## ๐Ÿš€ Quick Start

```bash
# 1. Install dependencies
pip install -r requirements.txt

# 2. Configure credentials
# Edit config.yaml and paste your Azure OpenAI endpoint and API key:
#   azure_openai:
#     endpoint: "https://your-resource.openai.azure.com/"
#     api_key: "your-api-key-here"

# 3. Run tests
python test_framework.py

# 4. Ingest data
python ingest.py

# 5. Launch UI
streamlit run streamlit_app.py
```

---

## ๐Ÿ“š Full Documentation

See **[FRAMEWORK_README.md](FRAMEWORK_README.md)** for complete documentation including:

- Configuration guide
- Testing procedures
- Usage examples
- Adaptation for other projects
- Troubleshooting

---

## ๐Ÿงช Test Framework

```bash
python test_framework.py
```

Expected: **5/7 tests pass** (2 expected failures: ChromaDB install, Azure credentials)

---

## ๐Ÿ“ Project Structure

```
โ”œโ”€โ”€ config.yaml              # Configuration
โ”œโ”€โ”€ llm_client.py           # Azure OpenAI client
โ”œโ”€โ”€ stacktrace_parser.py    # Parse stack traces
โ”œโ”€โ”€ vector_store.py         # ChromaDB wrapper
โ”œโ”€โ”€ server.py               # MCP server
โ”œโ”€โ”€ streamlit_app.py        # UI
โ”œโ”€โ”€ ingest.py              # Load data into vector DB
โ”œโ”€โ”€ test_framework.py      # Test suite
โ”œโ”€โ”€ data/
โ”‚   โ””โ”€โ”€ exceptions.csv     # Exception data (100 samples)
โ””โ”€โ”€ FRAMEWORK_README.md    # Complete documentation
```

---

## โœจ Features

- **Vector similarity search** using ChromaDB
- **AI analysis** with Azure OpenAI
- **Simple architecture** that works across projects
- **Comprehensive tests** included
- **Copy-paste schema** - no manual definitions

---

**Framework is production-ready. Run tests and start analyzing exceptions!** ๐ŸŽฏ

Maintenance

ActivityInactive
ResponsivenessNo issues