Glyphs mcp development

From thierryc/Glyphs-mcp · View interactive version

Glyphs mcp development is an AI agent skill from the GitHub repository thierryc/Glyphs-mcp. Use this skill to create, extend, or review reusable workspace-first Glyphs Python scripts and Python plug-ins, including general, reporter, filter, palette, select-tool, and file-format plug-ins, while grounding API and template choices in the bundled Glyphs documentation.

How to use this skill

Skill file

Glyphs MCP development

Create workspace-first Glyphs scripts and plug-ins from pinned SDK templates.

Core rules

debug a one-off script inside the live Glyphs app. Bring verified behavior

back here when it should become a reusable script or plug-in.

and process-local state free of GlyphsApp/AppKit imports; keep MCP wrappers

responsible for snapshots and guarded mutation; keep Reporter callbacks

drawing-only. Add every public tool to TOOL_CATALOG, then register it only

with glyphs_tool; direct mcp.tool decorators are forbidden. Give it all

four safety hints, one visibility/effect class, concise routing metadata, and

an output schema when it belongs to a structured workflow. Import its module

through mcp_tools.py, and export every Reporter principal class through both

plugin.py and Info.plist.

multiplexer, but do not add a wrapper when an existing candidate adapter or

lifecycle transition already expresses the same operation.

add the validated structured-result envelope. Keep workflow details in typed

data; do not expand the common envelope with domain-specific fields.

Workflow

  1. Determine whether the artifact is a standalone script or a Python plug-in. For plug-ins, choose general, reporter, filter, palette, select-tool, or file-format.
  2. Resolve the human name, purpose, destination, and plug-in class/developer metadata. Use a workspace destination when none is specified.
  3. Search the bundled docs for the APIs and plug-in base class involved. Fetch the scripting or template guide plus only the API pages needed.
  4. Run scripts/scaffold.py create from this skill directory. It refuses existing outputs and live Glyphs installation folders by default.
  5. Edit the generated Python for the requested behavior. Prefer documented GlyphsApp APIs and keep Glyphs 3.5/4 compatibility explicit.
  6. For this repository, run the catalog, registration, routing, structured-result,

single-surface startup, and mirror tests before broader release gates.

  1. Run scripts/scaffold.py validate <artifact> --target both. Treat static validation as necessary but not equivalent to running inside Glyphs.
  2. Report the created path, documentation consulted, validation result, compatibility notes, and any separate manual install or runtime test the user may choose.

Scaffold helper

Create a script:

python3 scripts/scaffold.py create script --name "My Script" --description "What it does" --destination .

Create a plug-in:

python3 scripts/scaffold.py create reporter --name "My Reporter" --class-name MyReporter --developer "Your Name" --destination .

Validate an artifact:

python3 scripts/scaffold.py validate "My Reporter.glyphsReporter" --target both

Use --allow-live-install only after the user explicitly asks to create directly in a Glyphs Scripts or Plugins folder. This flag does not install, reload, or execute the artifact.

Documentation queries

Deeper references

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.