vectorcraft/crates/mcp/src
bflatastic 7f17d980d4 #1003: MCP add_text colours type made on or in a path
add_text passed `color` to text.create only, and text.createInPath built its own character
style without a colour, so type on a path and path-based area type took the current fill.

text.createInPath now uses the same new-type style as text.create (size, font, style, color,
else the current fill), and add_text sends `color` on both routes.

The MCP test draws a blue rectangle (the current fill), turns it into on-path and area type
with color #ff0000, and reads red back through inspect_document.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	ROADMAP.md
2026-10-11 03:51:15 +07:00
..
backend.rs Robustness: VectorCraft never crashes — no panics in shipped code 2026-10-05 06:28:59 +07:00
headless.rs Fix #832: --automation-read-root and --automation-write-root confine the MCP server's files 2026-10-10 14:27:24 +07:00
lib.rs M1: common MCP tools and strict argument handling 2026-10-08 21:26:41 -07:00
logging.rs MCP: prompts, resource templates, completions and logging 2026-10-07 07:25:02 +07:00
prompts.rs Image Trace: Flat Logo mode (sub-pixel edges, restored corners, true lines and circles) 2026-10-09 17:57:04 +11:00
resources.rs M1: command catalog resource and version-aware MCP results 2026-10-08 21:35:07 -07:00
server.rs M1: command catalog resource and version-aware MCP results 2026-10-08 21:35:07 -07:00
tests.rs #1003: MCP add_text colours type made on or in a path 2026-10-11 03:51:15 +07:00
tests_conventions.rs Part of #785: run and command_batch steps can use earlier results 2026-10-10 10:28:03 +07:00
tests_distortkeys.rs Fix #392: Cmd+A selects a focused field's text or the type being edited 2026-10-08 07:18:52 +07:00
tests_exportas.rs M4.33: Export As with Use Artboards (All or a range) and art bounds 2026-10-05 09:14:42 +07:00
tests_fileio.rs Fix #526: the exports and the CLI write .ai as Save As does 2026-10-09 03:18:07 +07:00
tests_freeform.rs M3.97: freeform points drag out to delete, spread ring drags, Lines mode draws lines 2026-10-05 04:43:43 +07:00
tests_gradient.rs M3.17: interactive gradient annotator — drag the start handle or the bar to move the gradient, the end handle to change length and angle, just past the end to rotate (Shift snaps to 45°); a bar click adds a stop, stops drag along the bar, off it to delete (never below two), Alt-drag copies, diamonds move midpoints; a click inside selected art applies the gradient from that point; double-clicking a stop opens a popover (Color/Swatches, Opacity, Location); the selected stop lives in the session (gradient.selectStop), shared by the tool, the Gradient and Color panels and agents, and takes Delete/Backspace and ←/→ ahead of their shortcuts (Tool::claims_key, also headless); stop chips draw as Overlay::Swatch with generated add/remove-stop cursors; the stop math moves into the color crate 2026-10-04 17:39:36 +07:00
tests_links.rs M4.53: Linked images remember their file and keep a preview; missing links ask Replace or Ignore, modified ones follow Update Links 2026-10-05 10:07:10 +07:00
tests_liquify.rs M8.4: Liquify keeps going while held, leaves non-paths alone, strokes apply incrementally 2026-10-06 12:00:52 +07:00
tests_pen.rs Fix #501: a Pen drag out of the first anchor always closes the path 2026-10-08 22:00:24 +07:00
tests_persp.rs M8.12: Perspective Selection tool scales, copies, moves perpendicular and nudges in perspective 2026-10-06 11:00:15 +07:00
tests_place.rs M4.25: Drop files on the canvas to place them; several placed files load the place cursor 2026-10-05 08:42:30 +07:00
tests_protocol.rs MCP: prompts, resource templates, completions and logging 2026-10-07 07:25:02 +07:00
tests_svg.rs M4.26: SVG Options in the engine, a dialog and MCP 2026-10-05 07:55:59 +07:00
tools.rs #1003: MCP add_text colours type made on or in a path 2026-10-11 03:51:15 +07:00