JSXImage
Design image templates in JSX and Tailwind: OG images, social cards and badges from your data.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (2)
- HIGH
- MEDIUMin modify_template
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"jsximage": {
"url": "https://jsximage.com/mcp"
}
}
}Remote-Endpunkte
https://jsximage.com/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (2)
🔴create_template(name, code)
Create a JSXImage template from JSX source code and get a link to it. The link opens the template in the JSXImage playground with a live preview, and works for 7 days. No account is needed to create or open it. You write the whole template as source code: a default-exported React function component styled with Tailwind classes in the `class` attribute (not className), plus `export const options = { width, height, format }`. `export const props` (every input and its default) is required. No imports, no hooks. To show live data from a public API (GitHub, Shopify products, npm, PyPI, Wikipedia, weather...), add `export async function data(props)`, which can fetch and returns props. See the server instructions for the complete rules and an example. The code is checked before it is stored: if it fails, you get the error back and should fix the code and call again. Design it like a senior designer, with none of the habits that make an image look AI-generated: one font family (two at most); aim for ONE text size for all text plus ONE big display size for the hero (a number or a headline), with hierarchy only from weight, color and spacing (three sizes at the very most); no small uppercase labels; no boxes around everything (one at most); a flat background, never a decorative gradient, glow or vignette, and no emoji (a fade behind text on a photo is the one gradient allowed); never text straight on a photo (darken it with an overlay or a fade at the bottom); Geist (built in) unless the brand has its own font, no thin weights, and tighter letter-spacing and line-height as text grows; double the whitespace you think you need, with outer margins at least as large as the gaps inside; colors taken from the brand's own site (its CSS, buttons or logo), never a default palette such as navy or slate with an orange accent, cream with terracotta, or black with acid green, and one accent used sparingly; a clear grid with generous margins; the brand's real logo when you have it; nothing under about 24px on a phone-sized image. These rules give way only when the user explicitly asks for something they forbid (a gradient, uppercase labels, a given color): then do what the user asked. The tool's reply flags these if it finds them: fix them with modify_template before giving the user the link, except what the user explicitly asked for.
Eingabe-Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "A short title for the template, for example \"Blog post cover\". Up to 80 characters."
},
"code": {
"type": "string",
"description": "The complete template source: JSX with `export const props` (required: every input and its default), `type Props = typeof props`, `export default function Component(props: Props)` and `export const options = { width, height, format }`. Use `class`, not `className`. No imports, no hooks."
}
},
"required": [
"name",
"code"
]
}🔴modify_template(url, code, name)
Change a JSXImage template that the user shared with you as a link (a URL containing `shared=` or `temp=`, for example https://jsximage.com/playground?shared=...). Works in two steps: 1. Call with only `url`: you get the template's current source code. 2. Make the requested changes, then call again with the same `url` and the COMPLETE modified source in `code`: you get a link to the modified copy. The original template is never changed; the result is a new link that works for 7 days. The same template rules as create_template apply (`class` not `className`, no imports, no hooks, `export const options`, a default for every prop). If the code fails the check, you get the error back: fix it and call again. If the link is not available, tell the user and ask for a new one. Design it like a senior designer, with none of the habits that make an image look AI-generated: one font family (two at most); aim for ONE text size for all text plus ONE big display size for the hero (a number or a headline), with hierarchy only from weight, color and spacing (three sizes at the very most); no small uppercase labels; no boxes around everything (one at most); a flat background, never a decorative gradient, glow or vignette, and no emoji (a fade behind text on a photo is the one gradient allowed); never text straight on a photo (darken it with an overlay or a fade at the bottom); Geist (built in) unless the brand has its own font, no thin weights, and tighter letter-spacing and line-height as text grows; double the whitespace you think you need, with outer margins at least as large as the gaps inside; colors taken from the brand's own site (its CSS, buttons or logo), never a default palette such as navy or slate with an orange accent, cream with terracotta, or black with acid green, and one accent used sparingly; a clear grid with generous margins; the brand's real logo when you have it; nothing under about 24px on a phone-sized image. These rules give way only when the user explicitly asks for something they forbid (a gradient, uppercase labels, a given color): then do what the user asked. The tool's reply flags these if it finds them: fix them with modify_template before giving the user the link, except what the user explicitly asked for.
Eingabe-Schema
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The JSXImage link the user gave you, for example https://jsximage.com/playground?shared=<token>. Pass it exactly as given."
},
"code": {
"type": "string",
"description": "Leave out to read the template's current source. To save a change, the COMPLETE modified template source (not a diff)."
},
"name": {
"type": "string",
"description": "Optional title for the modified copy. Defaults to the original name plus \"(modified)\". Up to 80 characters."
}
},
"required": [
"url"
]
}Community
Nachweis