image-gen-server
149
Image-Gen-Server is a tool designed for seamless integration with Cursor IDE, allowing users to generate and manage images based on text descriptions. Key features include text-to-image conversion, automatic saving, and custom save paths, making it highly functional for developers using the Cursor environment.
Image-Gen-Server
基于即梦AI的图像生成服务,专门设计用于与Cursor IDE集成。它接收来自Cursor的文本描述,生成相应的图像,并提供图片下载和保存功能。
Features
- Perfect integration with Cursor IDE
- Text-to-image generation
- Automatic image saving
- Custom save path support
- Generates four images at once for more options
Installation
Installing via Smithery
- Prepare the environment with Python 3.10+ and Node.js 20
- Clone the project
- Install dependencies
- Set JiMeng token and image save path in server.py
Cursor Integration
- Open Cursor settings and add a new MCP server
- Fill in server configuration with command details
Usage
Ask Cursor to generate images by specifying image requirements and save location
Getting JiMeng Token
- Visit JiMeng, login, and find the sessionid in cookies
- Set the sessionid in server.py's JIMENG_API_TOKEN
Troubleshooting
- If a black window appears and disappears quickly, check configuration and environment
- For debugging, use relevant commands to enter debug mode