MCP로 사물 그리기
모델 컨텍스트 프로토콜(MCP)을 사용하여 커서에 대한 Draw Things API 통합.
필수 조건
노드.js >= 14.0.0
http://127.0.0.1:7888 에서 실행되는 Draw Things API
설치
지엑스피1
커서 통합
Cursor에서 이 도구를 설정하려면 cursor-setup.md 에서 자세한 가이드를 참조하세요.
빠른 설정:
~/.cursor/claude_desktop_config.json
생성하거나 편집합니다.
커서 재시작
커서에서 사용:
generateImage({"prompt": "a cute cat"})
CLI 사용법
이미지 생성
매개변수
prompt
: 이미지 생성을 위한 텍스트 프롬프트(필수)negative_prompt
: 이미지 생성을 위한 부정 프롬프트width
: 이미지 너비(기본값: 360)height
: 이미지 높이(기본값: 360)steps
: 생성을 위한 단계 수 (기본값: 8)model
: 생성에 사용할 모델(기본값: "flux_1_schnell_q5p.ckpt")sampler
: 샘플링 방법(기본값: "DPM++ 2M AYS")
예:
MCP 도구 통합
Cursor에서 MCP 도구로 사용되는 경우 해당 도구는 다음 매개변수와 함께 generateImage
로 등록됩니다.
생성된 이미지는 <sanitized_prompt>_<timestamp>.png
파일 이름 형식으로 images
디렉토리에 저장됩니다.
응답 형식
성공:
오류:
문제 해결
문제가 발생하는 경우:
Draw Things API가 http://127.0.0.1:7888 에서 실행 중인지 확인하세요.
Cursor와 함께 사용하는 경우
~/.cursor/logs
에 있는 로그 파일을 확인하세요.src/index.js에 실행 권한이 있는지 확인하세요:
chmod +x src/index.js
특허
MIT
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
Cursor AI가 자연어 프롬프트를 사용하여 Draw Things API를 통해 이미지를 생성할 수 있도록 하는 통합입니다.
Related Resources
Related MCP Servers
- -securityAlicense-qualityAn AI-powered development toolkit for Cursor providing intelligent coding assistance through advanced reasoning, UI screenshot analysis, and code review tools.Last updated -596337MIT License
- -securityAlicense-qualityA Cursor-compatible toolkit that provides intelligent coding assistance through custom AI tools for code architecture planning, screenshot analysis, code review, and file reading capabilities.Last updated -59611MIT License
- AsecurityAlicenseAqualityAn MCP server integration that enables Cursor AI to communicate with Figma, allowing users to read designs and modify them programmatically through natural language commands.Last updated -191,5425,467MIT License
- AsecurityFlicenseAqualityEnables Cursor AI to interact with Figma designs, allowing users to read design information and programmatically modify elements through natural language commands.Last updated -381,5423