image-gen-server

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

  1. Prepare the environment with Python 3.10+ and Node.js 20
  2. Clone the project
  3. Install dependencies
  4. Set JiMeng token and image save path in server.py

Cursor Integration

  1. Open Cursor settings and add a new MCP server
  2. Fill in server configuration with command details

Usage

Ask Cursor to generate images by specifying image requirements and save location

Getting JiMeng Token

  1. Visit JiMeng, login, and find the sessionid in cookies
  2. 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