Repository navigation
v0.1.5 — agent interface, layout check, MCP server
New: usable from AI agents
mpltweak describe <script>— export the current layout as params JSON, without opening a windowmpltweak check <script>— geometric layout check: alignment / equal size / even gaps / font consistency / overflow / overlap (exit 1 on problems, CI friendly)mpltweak schema— JSON Schema (draft-07) for the params filempltweak apply --json— machine-readable results; chatter goes to stderrmpltweak mcp— stdio MCP server for Claude Desktop / Cursor / Claude Code
Read → check → write is now a complete loop: an agent no longer needs to "see" the figure.
Fixes
- Script stdout is isolated while collecting (a
printin your script used to corrupt the MCP JSON-RPC channel) figsize_inno longer assumes 100 dpicheckcolumn grouping is no longer order-sensitive
Docs
- README restructured, with a table of contents plus MCP and skill sections
skills/mpltweak/SKILL.md— an operating manual written for AI assistants
Install: pip install mpltweak — MCP extra: pip install "mpltweak[mcp]"