Metadata-Version: 2.4
Name: fitz-graveyard
Version: 0.1.0
Summary: MCP server for local-first AI architectural planning using local LLMs
Author-email: Yan Fitzer <yan@example.com>
License: MIT License
        
        Copyright (c) 2026 Yan Fitzer
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/yafitzdev/fitz-graveyard
Project-URL: Repository, https://github.com/yafitzdev/fitz-graveyard
Project-URL: Issues, https://github.com/yafitzdev/fitz-graveyard/issues
Project-URL: Documentation, https://github.com/yafitzdev/fitz-graveyard#readme
Keywords: mcp,planning,ai,model-context-protocol,ollama,local-llm
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastmcp>=2.0
Requires-Dist: pydantic>=2.0
Requires-Dist: platformdirs>=4.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: aiosqlite>=0.20
Requires-Dist: ollama>=0.4.0
Requires-Dist: tenacity>=9.0.0
Requires-Dist: psutil>=6.1.0
Requires-Dist: typer>=0.9
Provides-Extra: api-review
Requires-Dist: anthropic>=0.40; extra == "api-review"
Requires-Dist: CurrencyConverter>=0.17; extra == "api-review"
Provides-Extra: lm-studio
Requires-Dist: openai>=1.0.0; extra == "lm-studio"
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
Requires-Dist: build>=1.0; extra == "dev"
Requires-Dist: twine>=5.0; extra == "dev"
Dynamic: license-file

# fitz-graveyard

[![PyPI version](https://img.shields.io/pypi/v/fitz-graveyard.svg)](https://pypi.org/project/fitz-graveyard/)
[![Python versions](https://img.shields.io/pypi/pyversions/fitz-graveyard.svg)](https://pypi.org/project/fitz-graveyard/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Tests](https://github.com/yafitzdev/fitz-graveyard/workflows/tests/badge.svg)](https://github.com/yafitzdev/fitz-graveyard/actions)

MCP server for overnight AI architectural planning using local LLMs.

## Features

- Local-first planning with Ollama (Qwen Coder Next 80B/32B)
- Five-stage pipeline: context, architecture, design, roadmap, risk
- SQLite job queue with crash recovery and checkpoint resume
- KRAG-powered codebase context via fitz-ai integration
- Per-section confidence scoring with optional API review
- Cross-platform: Windows, macOS, Linux

## Prerequisites

- Python 3.10+
- Ollama installed and running ([https://ollama.com](https://ollama.com))
- Qwen model pulled:
  ```bash
  ollama pull qwen2.5-coder:32b
  ```

## Installation

```bash
pip install fitz-graveyard
```

For API review feature:

```bash
pip install "fitz-graveyard[api-review]"
```

## Usage - MCP Server (Claude Code)

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "fitz-planner": {
      "command": "fitz-graveyard"
    }
  }
}
```

Restart Claude Desktop, then use planning tools directly in conversations.

## Available Tools

| Tool | Description |
|------|-------------|
| `create_plan` | Queue a new planning job |
| `check_status` | Check job progress |
| `get_plan` | Retrieve completed plan |
| `list_plans` | List all planning jobs |
| `retry_job` | Retry a failed job |
| `confirm_review` | Approve API review after seeing cost |
| `cancel_review` | Skip API review, finalize plan |

## Configuration

Default configuration location:

- **Windows**: `%APPDATA%\fitz-graveyard\config.yaml`
- **macOS**: `~/Library/Application Support/fitz-graveyard/config.yaml`
- **Linux**: `~/.config/fitz-graveyard/config.yaml`

Key settings (YAML):

```yaml
llm:
  provider: ollama
  model: qwen2.5-coder:32b
  base_url: http://localhost:11434

planning:
  confidence_threshold: 0.75
  max_retries: 3
  checkpoint_interval: 60

api_review:
  provider: anthropic  # Optional: for confidence scoring
  model: claude-opus-4
  enabled: false
```

## Development

```bash
git clone https://github.com/yafitzdev/fitz-graveyard.git
cd fitz-graveyard
pip install -e ".[dev]"
pytest
```

## Architecture

```
fitz_graveyard/
├── server.py           # MCP server entry point
├── engine/             # Planning orchestration
│   ├── stages/         # Five-stage pipeline
│   └── checkpoints/    # Crash recovery
├── queue/              # SQLite job queue
├── context/            # fitz-ai KRAG integration
├── review/             # Optional API review
└── config/             # Configuration management
```

## License

[MIT](LICENSE)
