API & MCP
Everything a person can do on Vector Shape Generator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://luminavectorshapegenerator.usefulweb.site/api/v1/calculate– run Vector Shape GeneratorGET https://luminavectorshapegenerator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Vector Shape Generator
Create a transparent SVG shape with adjustable points, rotation, colors and stroke. Download the artwork or import it into Flipline Motion Desk for animation.
| Field | Type | Default | Description |
|---|---|---|---|
kind | select (polygon, star, spiral) | "star" | Shape |
size | integer | 512 | Canvas size (px) |
points | integer | 5 | Points (polygon and star) |
innerRadius | number | 0.45 | Star inner radius (fraction) |
turns | number | 3 | Spiral turns |
rotation | number | 0 | Rotation (degrees) |
fill | text | "#E5AA4F" | Fill (six-digit HEX or none) |
stroke | text | "#253C3A" | Stroke (six-digit HEX or none) |
strokeWidth | number | 8 | Stroke width (px) |
Example request
Five-point star
curl -X POST https://luminavectorshapegenerator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"kind":"star","size":512,"points":5,"innerRadius":0.45,"turns":3,"rotation":0,"fill":"#E5AA4F","stroke":"#253C3A","strokeWidth":8}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://luminavectorshapegenerator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_vector_shape_generator - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-vector-shape-generator
{
"mcpServers": {
"lumina-vector-shape-generator": { "type": "http", "url": "https://luminavectorshapegenerator.usefulweb.site/mcp" }
}
}