Metadata-Version: 2.5
Name: synfig-mcp
Version: 1.0.6
Summary: Live MCP control of Synfig Studio (native bridge + headless fallback)
Project-URL: Homepage, https://github.com/anusara-bemal/synfig-mcp
Project-URL: Documentation, https://anusara-bemal.github.io/synfig-mcp/docs/
Project-URL: Repository, https://github.com/anusara-bemal/synfig-mcp
Project-URL: Issues, https://github.com/anusara-bemal/synfig-mcp/issues
Project-URL: Changelog, https://github.com/anusara-bemal/synfig-mcp/blob/main/CHANGELOG.md
Author: Synfig MCP Contributors
Author-email: ABM <anusarabemal805@gmail.com>
License-Expression: MIT
Keywords: ai,animation,llm,mcp,synfig
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Multimedia :: Video
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: anyio>=4.3.0
Requires-Dist: lxml>=5.2.0
Requires-Dist: mcp>=1.2.0
Requires-Dist: numpy>=1.26.0
Requires-Dist: pillow>=10.3.0
Requires-Dist: pydantic>=2.7.0
Requires-Dist: rich>=13.7.0
Requires-Dist: structlog>=24.1.0
Requires-Dist: typer>=0.12.0
Provides-Extra: dev
Requires-Dist: bandit>=1.7.8; extra == 'dev'
Requires-Dist: hypothesis>=6.100.0; extra == 'dev'
Requires-Dist: mypy>=1.10.0; extra == 'dev'
Requires-Dist: poethepoet>=0.25.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.2.0; extra == 'dev'
Requires-Dist: ruff>=0.4.0; extra == 'dev'
Requires-Dist: syrupy>=4.6.0; extra == 'dev'
Requires-Dist: tiktoken>=0.7.0; extra == 'dev'
Requires-Dist: types-jsonschema>=4.21.0.20240118; extra == 'dev'
Requires-Dist: types-lxml>=2024.4.14; extra == 'dev'
Requires-Dist: types-pillow>=10.2.0.20240520; extra == 'dev'
Description-Content-Type: text/markdown

# synfig-mcp

[![Server CI](https://github.com/anusara-bemal/synfig-mcp/actions/workflows/server-ci.yml/badge.svg?branch=v1.0.0)](https://github.com/anusara-bemal/synfig-mcp/actions/workflows/server-ci.yml)
[![PyPI](https://img.shields.io/badge/pypi-synfig--mcp-blue.svg)](https://pypi.org/project/synfig-mcp/)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/anusara-bemal/synfig-mcp/blob/v1.0.0/LICENSE)

**Model Context Protocol server for Synfig Studio — live canvas automation with a headless fallback.**

This package provides the Python MCP server. It can drive a running patched Synfig Studio over an authenticated local bridge, or operate entirely headless using the `synfig` CLI.

Full documentation, screenshots, client setup, and prebuilt Studio bundles: **[github.com/anusara-bemal/synfig-mcp](https://github.com/anusara-bemal/synfig-mcp)**.

## Install

```bash
uv pip install "synfig-mcp @ https://github.com/anusara-bemal/synfig-mcp/releases/download/v0.8.0-rc2/synfig_mcp-0.8.0rc2-py3-none-any.whl"
```

Or from source:

```bash
uv pip install "git+https://github.com/anusara-bemal/synfig-mcp.git#subdirectory=server"
```

## Use

```bash
synfig-mcp doctor
synfig-mcp
```

Example MCP client configuration:

```json
{
  "mcpServers": {
    "synfig": {
      "command": "synfig-mcp",
      "env": {
        "SYNFIG_MCP_PROFILE": "core",
        "SYNFIG_MCP_BACKEND": "auto"
      }
    }
  }
}
```

## Operating modes

| Mode | Backend | Use case |
|---|---|---|
| `auto` | Live if reachable, otherwise headless | Desktop |
| `live` | Patched Synfig Studio | Interactive editing with undo/redo |
| `headless` | SIF engine + `synfig` CLI | Servers, CI, containers |

## Tool profiles

`SYNFIG_MCP_PROFILE` selects the exposed tools:

| Profile | Tools | Approx. tokens |
|---|---:|---:|
| `core` (default) | 12 | ~2,658 |
| `anim` | 14 | ~3,800 |
| `fx` | 21 | ~4,200 |
| `rig` | 12 | ~2,800 |
| `assets` | 10 | ~1,900 |
| `review` | 15 | ~3,900 |
| `all` | 56 | ~18,500 |

## Configuration

| Variable | Default | Description |
|---|---|---|
| `SYNFIG_MCP_PROFILE` | `core` | Tool profile |
| `SYNFIG_MCP_BACKEND` | `auto` | `auto`, `live`, or `headless` |
| `SYNFIG_MCP_HOST` / `SYNFIG_MCP_PORT` | `127.0.0.1` / `19998` | Live bridge endpoint |
| `SYNFIG_MCP_TOKEN_PATH` | `~/.synfig/mcp_token` | Bridge token |
| `SYNFIG_MCP_WORKSPACE_ROOTS` | `~/Documents/SynfigMCP` | Sandbox roots |

## Development

```bash
cd server
uv sync --locked --all-extras
uv run poe check
```

## License

The Python server is MIT licensed. The native bridge and patched Studio binaries are GPL-3.0-or-later. See [LICENSE](https://github.com/anusara-bemal/synfig-mcp/blob/v1.0.0/LICENSE) and [docs/gpl-compliance.md](https://github.com/anusara-bemal/synfig-mcp/blob/v1.0.0/docs/gpl-compliance.md).
