# Prometheus MCP Server

MCP (Model Context Protocol) server for the Prometheus AI code reasoning platform.

## Features

- Knowledge graph queries via Neo4j
- AST-based code search using Tree-sitter
- File operations (read, create, edit)
- Issue classification (bug/feature/question/doc)
- Codebase Q&A with context retrieval

## Installation

```bash
pip install prometheus-mcp
```

## Usage

### As a standalone server

```bash
prometheus-mcp --repo /path/to/codebase
```

### With Claude Code

Add to your `~/.config/claude-code/config.json`:

```json
{
  "mcpServers": {
    "prometheus": {
      "command": "prometheus-mcp",
      "args": ["--repo", "/path/to/your/repo"]
    }
  }
}
```

## Available Tools

### Knowledge Graph Tools

- `prometheus_find_file` - Find files by basename
- `prometheus_search_code` - Search code by text
- `prometheus_search_docs` - Search documentation

### File Operations

- `prometheus_read_file` - Read file with line numbers
- `prometheus_create_file` - Create new file
- `prometheus_edit_file` - Edit file (exact string replacement)

### Agent Tools

- `prometheus_classify_issue` - Classify GitHub issues
- `prometheus_answer_question` - Answer codebase questions

## Development

```bash
# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Format code
black prometheus_mcp/

# Type check
mypy prometheus_mcp/
```

## License

Apache-2.0 (compatible with Prometheus)
