JSXImage
Design image templates in JSX and Tailwind: OG images, social cards and badges from your data.
사용해야 할까요
품질 및 안전성
발견 사항 (2)
- HIGH
- MEDIUMmodify_template에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"jsximage": {
"url": "https://jsximage.com/mcp"
}
}
}원격 엔드포인트
https://jsximage.com/mcpstreamable-http할 수 있는 일
도구 목록
도구 (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.
입력 스키마
{
"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.
입력 스키마
{
"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"
]
}커뮤니티
증거