Metadata-Version: 2.4
Name: graphics-mcp
Version: 0.1.1
Summary: Unified MCP server for graphics manipulation with multiple backends
Project-URL: Homepage, https://github.com/lesleslie/graphics-mcp
Project-URL: Repository, https://github.com/lesleslie/graphics-mcp.git
Author-email: Les Leslie <les@wedgwood.us>
License: BSD-3-Clause
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.13
Requires-Dist: fastmcp>=2.12.3
Requires-Dist: httpx>=0.28.0
Requires-Dist: mcp-common>=0.4.8
Requires-Dist: oneiric>=0.3.6
Requires-Dist: pilkit>=3.0
Requires-Dist: pillow>=11.0.0
Requires-Dist: pydantic-settings>=2.0.0
Requires-Dist: pydantic>=2.10.0
Requires-Dist: rich>=13.0.0
Requires-Dist: structlog>=25.0.0
Requires-Dist: typer>=0.15.0
Requires-Dist: uvicorn>=0.30.0
Description-Content-Type: text/markdown

# graphics-mcp

Unified MCP server for graphics manipulation with multiple backends.

## Installation

```bash
uv pip install -e .
```

## Usage

```bash
# Stdio mode (default)
graphics-mcp serve

# HTTP mode
graphics-mcp serve --http --port 3040

# With custom allowed directories
graphics-mcp serve --allowed-dir /path/to/images
```

## Tools

- `get_image_info` - Get image metadata
- `convert_image` - Convert between formats
- `resize_image` - Resize with multiple modes
- `crop_image` - Crop to boundaries
- `apply_filter` - Apply effects (blur, sharpen, grayscale, etc.)
- `rotate_image` - Rotate by degrees
- `flip_image` - Flip horizontally/vertically
- `create_thumbnail` - Generate thumbnails

## Configuration

Set via environment variables with `GRAPHICS_` prefix:
- `GRAPHICS_ALLOWED_DIRECTORIES` - Comma-separated list of allowed paths
- `GRAPHICS_MAX_FILE_SIZE_MB` - Maximum file size (default: 100)
