Name Signature
Renders a name as a cursive signature and writes it out as an SVG image. Like the signature a typed name produces in an e-sign tool, this is a stylized rendering of the letters, not a reproduction of any particular person's handwriting.
Deterministic: the same name and style always produce byte-identical output, because the hand-wobble is seeded from a hash of the name rather than from a random source. That makes it usable as a fixture, and it means a person's signature stays stable across runs.
Instructions
Run the script with the name to sign. Every argument after the name is optional:
python scripts/sign.py "<name>" [flowing|compact|bold] [#hexcolor] [caption] > signature.svgAn attribution line is set beneath the signature, defaulting to
Generated by MCP Team. Pass a different string to change it, or""to leave it off:python scripts/sign.py "Ada Lovelace" flowing "#1a2b4c" "Approved by Legal" python scripts/sign.py "Ada Lovelace" flowing "#1a2b4c" ""Read
references/STYLES.mdbefore choosing a style or colour, and whenever the user asks for a different size, weight, slant or ink.Tell the user where the file was written. SVG opens in any browser and embeds directly in HTML or email;
references/STYLES.mdlists the one-liners for converting to PNG if a raster image is required.Never invent your own SVG by hand. Always run the script, so the output stays deterministic and matches what a previous run produced for the same name.
Notes
- Pure standard library. No fonts, no image packages, no network access.
- Only letters are drawn. Spaces break the stroke between words, and other characters (dots, hyphens, initials' periods) advance the pen without drawing.
- Non-Latin scripts are not supported; unknown letters render as a neutral connecting stroke rather than failing, so the signature still flows.
Files
scripts/sign.py- the renderer. Prints SVG to stdout.references/STYLES.md- the three styles, tuning knobs, colour guidance, and PNG conversion commands.assets/sample-ada-lovelace.svg- a rendered sample, for eyeballing the output shape without running anything.